Ckeditor将`$()`转换为'%28%24%29'

时间:2016-02-04 13:25:29

标签: javascript ckeditor

要忽略特殊字符,我已在config下面添加了config.js:

config.pasteFromWordRemoveFontStyles = false;    
config.pasteFromWordRemoveStyles = false;    
config.forcePasteAsPlainText = false;    
config.pasteFromWordPromptCleanup = false;
config.htmlEncodeOutput = false;    
config.entities = false;
config.basicEntities = false;
config.entities = false;
config.entities_greek = false;
config.entities_latin = false;
config.htmlEncodeOutput = false;
config.entities_processNumerical = false;

但点击保存时,字符串($TEST)正在转换为%28%24TEST%29

我的配置不正确吗?

或者在src中ckeditor进行代码转换的位置,所以我可以硬编码忽略这些字符:$()

1 个答案:

答案 0 :(得分:0)