Nul*_*uli 3 javascript fckeditor ckeditor
这里是列表:http://www.elizabethcastro.com/html/extras/entities.html 我想要启用所有这些,或者禁用所有这些...(当然除了<和>)
有没有办法做到这一点?
有config.entities_additional ="",但这是您要存储的所有实体的逗号分隔列表.
最好,我想完全禁用实体,但设置config.entities = false; 什么都不做 OO
@ Cheery的答案解决了编辑器使用config.js文件的情况.
然而,
CKEDITOR.replace("selected_text_actual", {
uiColor: "#F5F5F5",
toolbar: "myToolbar",
scayt_autoStartup: false,
enterMode: CKEDITOR.ENTER_BR,
forcePasteAsPlainText: true,
forceSimpleAmpersand: true,
height: '170px',
entities: false,
basicEntities: false,
entities_greek: false,
entities_latin: false,
toolbarCanCollapse: false,
resize_enabled: false,
disableNativeSpellChecker: false,
removePlugins: 'elementspath',
editingBlock: false}).setData(text_for_editor);
Run Code Online (Sandbox Code Playgroud)
仍然有HTML实体.
将所有这些设置为false:
config.entities = false;
config.basicEntities = false;
config.entities_greek = false;
config.entities_latin = false;
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
10100 次 |
| 最近记录: |