Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#733 2010-02-17 00:11:41

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_tinymce WYSIWYG article editor

Combine these lines with any content for these entries you might already have, mostly really the plugins section already has a few defined by default.

plugins : “paste”, 
theme_advanced_buttons3_add : “pastetext,pasteword,selectall”, 
paste_auto_cleanup_on_paste : true, 

Don’t know that you need these since all they do is alert

paste_preprocess : function(pl, o) { // Content string containing the HTML  from the clipboard alert(o.content); }, 
paste_postprocess : function(pl, o) { // Content DOM node containing the DOM structure of the clipboard alert(o.node.innerHTML); },

Shoving is the answer – pusher robot

Offline

#734 2010-03-20 21:42:09

premek.b
Member
From: Pilsen, CZ
Registered: 2006-05-17
Posts: 18
Website

Re: hak_tinymce WYSIWYG article editor

Hakjoon,

I have created a Czech localization of the txpimage plugin, it is available at my site (http://premek.abilo.net/) — please feel free to include it in the hak_tinymce plugin .zip distro.

Premek


“So, where is the patch?”
((former nick pbrada))

Offline

#735 2010-04-16 01:38:21

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: hak_tinymce WYSIWYG article editor

Just upgraded a site (4.2 txp and 0.99 Tiny MCE) and now all my image urls are relative :(

When you choose an image, the absolute url is shown in the image pop box, but when you insert – its relative

What did I do wrong?

This is my body initilisation

theme : "advanced",
language : "en",
convert_fonts_to_spans : "true",
relative_urls : "false",
remove_script_host : "false",
plugins : "searchreplace,txpimage,table,layer,paste",
theme_advanced_buttons1 : "bold,italic,underline,strikethrough,forecolor,backcolor,removeformat,numlist,bullist,outdent,indent,justifyleft,justifycenter,justifyright,justifyfull,cleanup,anchor",
theme_advanced_buttons2 : "link,unlink,separator,image,separator,search,replace,separator,cut,copy,paste,separator,code,separator,formatselect",
theme_advanced_buttons3 : "tablecontrols,pasteword,pastetext,selectall,",
paste_auto_cleanup_on_paste : true,
paste_remove_spans: true,
paste_convert_middot_lists : true,
paste_unindented_list_class : "",
paste_create_paragraphs : true,
paste_create_linebreaks : true,
paste_use_dialog : true,
paste_auto_cleanup_on_paste : true,
paste_convert_middot_lists : false,
paste_unindented_list_class : "unindentedList",
paste_convert_headers_to_strong : true,
paste_insert_word_content_callback : "convertWord",
theme_advanced_toolbar_location : "top",
theme_advanced_toolbar_align : "left",
height:"420",

Last edited by tye (2010-04-16 01:40:08)

Offline

#736 2010-04-16 02:14:49

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_tinymce WYSIWYG article editor

Change the “false” to false (no quotes) the new version does a type comparison (===) so “false” is actually true.


Shoving is the answer – pusher robot

Offline

#737 2010-04-16 03:10:44

tye
Member
From: Pottsville, NSW
Registered: 2005-07-06
Posts: 859
Website

Re: hak_tinymce WYSIWYG article editor

Perfect – thanks Patrick
is this the same for all my options? No quotes for any of them?

Offline

#738 2010-04-16 12:02:43

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_tinymce WYSIWYG article editor

Anything that says true or false should not have quotes. It looked like your trues were already right. Although it’s only really an issue with false because “true” is true.


Shoving is the answer – pusher robot

Offline

#739 2010-05-27 00:06:29

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_tinymce WYSIWYG article editor

Folks, I just uploaded version 0.9.9.1 which takes care of a potential vulnerability Bryan Pack pointed out to me.

Please update.

Last edited by hakjoon (2010-05-27 00:06:50)


Shoving is the answer – pusher robot

Offline

#740 2010-05-27 10:29:38

Hennie
Member
From: Nederland
Registered: 2009-02-06
Posts: 18
Website

Re: hak_tinymce WYSIWYG article editor

Dear Patrick, do I have to re-upload the files in /tiny_mce too? I have a lot of sites to modify :-(

It’s, by the way, an awesome plugin.

Offline

#741 2010-05-27 12:01:45

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_tinymce WYSIWYG article editor

No need to reupload all the files just reinstall the plugin itself. Also since the call that’s vulnerable requires priviledges it’s not a public vulnerability, but you know better safe than sorry.


Shoving is the answer – pusher robot

Offline

#742 2010-05-31 08:07:18

fantasmo
Member
Registered: 2010-05-05
Posts: 40

Re: hak_tinymce WYSIWYG article editor

Hi,
is there a way to use txp:tags INSIDE the tinymce-editor?
Because if I type in a txp:tag (in my case to insert a smd_gallery) and also want to add a little bit of text via tinymce, my txp:tag gets erased when turning on tinymce…or another case is, tinymce is turned on automatically in the moment i press publish.

Is there a way to insert txp:tags into tinymce?

I also asked that question in a smd_gallery thread ( http://forum.textpattern.com/viewtopic.php?id=33012 ) but didn’t get a reponse yet.

EDIT: Or another idea… is there a way to add a “rel attribute” to the images I insert via tinymce? I know i can add a class, but it would be perfect to also add a “rel attribute” to make it possible to use lightbox gallery.

Last edited by fantasmo (2010-05-31 08:23:44)

Offline

#743 2010-06-01 00:35:55

hakjoon
Member
From: Arlington, VA
Registered: 2004-07-29
Posts: 1,634
Website

Re: hak_tinymce WYSIWYG article editor

fantasmo: Look at this series of posts for approaches to allow txp:tags.

From what I remember of lightbox (it’s been awhile) I think the rel need to be in the href (I don’t believe rel is not a valid img attribute). You can always insert the image and hyperlink it with the hyperlink widget.


Shoving is the answer – pusher robot

Offline

#744 2010-06-01 10:03:01

fantasmo
Member
Registered: 2010-05-05
Posts: 40

Re: hak_tinymce WYSIWYG article editor

Hi,

ok, I realized it seems not as easy i thought to just insert an image with the image button, say “use this one as thumb, this one as full size image, and this word should be the ‘rel-Categoryname’ inside th <a>-Tag”?

I tried that thing with:
1. insert an image, then go to the hyperlink-tool and type in the URL for the full size image. (really annoying to TYPE the url for full size image)
2. now i missed the opportunity to give the link a “rel-attribute” (thought it would be possible to easyly add a little input field for that via “admin > extensions > tinymce initalization”??)
3. alternatively i switched now on “advlink” which i actually don’t like because those many options confuse me little bit I went then to “advanced” chose “lightbox” from the “rel-pulldown” but when i save and finish, my link is not a link and when i go back into the hyperlink tool, the pulldownmenue the “lightbox” in the “rel-pulldown” is not there anymore, like i had never chose it.

Offline

Board footer

Powered by FluxBB