CKEDITOR:如何转换所有html实体 [英] CKEDITOR: how to I convert ALL html entities
问题描述
以下是列表: http://www.elizabethcastro.com/html/extras /entities.html
我或者要启用所有这些,或者禁用所有这些...(除了<和>当然除外)
here is the list: http://www.elizabethcastro.com/html/extras/entities.html I either want to enable all of them, or disable all of them... (aside from < and > of course)
有办法吗?
有config.entities_additional =,但这是一个以逗号分隔的所有实体列表要存储。
there is the config.entities_additional = "", but that is a comma separated list of all the entities you want to store.
最好,我想完全禁用实体,但设置config.entities = false;不做任何事情。 oo
preferably, I'd like to disable the entities entirely, but setting config.entities = false; doesn't do anything. o.o
@ Cheery的回答解决了编辑器使用config.js文件的情况。
@Cheery's answer solves the situation where the editor uses the config.js file.
/ p>
however,
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);
仍然有HTML实体。
推荐答案
将所有这些设置为 false
:
config.entities = false;
config.basicEntities = false;
config.entities_greek = false;
config.entities_latin = false;
这篇关于CKEDITOR:如何转换所有html实体的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!