简体   繁体   中英

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.

Should be:

entity_encoding: "raw"

instead of:

editor_encoding: "raw"

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM