Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

TinyMCE disable escaping

I'm using tinyMCE to edit content from an existing website. This website has links in the format:

http://localhost/start.jsp%3Fparam=value

where the %3F is the escaped string for the question mark character. When TinyMCE edits a page containing one of these links, it converts the "%" sign into "%25" which breaks the link.

How can I disable tinyMCE's escaping of percent signs?

I have the following configuration set:

tinyMCE.init({
     mode: "specific_textareas",
     editor_encoding: "raw",
     editor_selector: "tinyMCE",
     relative_urls : false,
     convert_urls : false
}

Note: I am using setContent to populate the initial value of the tinyMCE editor.

like image 224
David Avatar asked Jul 06 '10 14:07

David


People also ask

How do you get rid of Tinyed by power on TinyMCE?

You can remove this status bar with "statusbar: false".

How do you make TinyMCE readonly?

👽Use the checkbox to toggle between the "design" and "readonly" modes. This domain is not registered with Tiny Cloud.

How do you get content in TinyMCE with HTML tags?

The TinyMCE getContent and setContent methods You can do this using the getContent() API method. Let's say you have initialized the editor on a textarea with id=”myTextarea”. This will return the content in the editor marked up as HTML.

How do I know if my TinyMCE is empty?

You can do this to check if the content is empty without parsing html: var content = tinymce. get('tinymceEditor').


1 Answers

Should be:

entity_encoding: "raw"

instead of:

editor_encoding: "raw"

See http://tinymce.moxiecode.com/wiki.php/Configuration

like image 136
Vojta Avatar answered Jan 11 '23 16:01

Vojta