TinyMCE禁用转义 [英] TinyMCE disable escaping

查看:2205
本文介绍了TinyMCE禁用转义的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用tinyMCE从现有网站编辑内容。本网站的格式如下:

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

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

%3F是问号字符的转义字符串。当TinyMCE编辑包含其中一个链接的页面时,会将%号转换为%25,从而中断链接。

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.

如何禁用tinyMCE的转义百分号?

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

我有以下配置集:

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

注意:我正在使用setContent来填充tinyMCE编辑器的初始值。 / p>

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

推荐答案

应该是:

entity_encoding: "raw"

而不是:

editor_encoding: "raw"

请参阅 http://tinymce.moxiecode.com/wiki.php/Configuration

这篇关于TinyMCE禁用转义的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆