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.
You can remove this status bar with "statusbar: false".
👽Use the checkbox to toggle between the "design" and "readonly" modes. This domain is not registered with Tiny Cloud.
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.
You can do this to check if the content is empty without parsing html: var content = tinymce. get('tinymceEditor').
Should be:
entity_encoding: "raw"
instead of:
editor_encoding: "raw"
See http://tinymce.moxiecode.com/wiki.php/Configuration
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With