CKEDITOR: how to I convert ALL html entities

NullVoxPopuli picture NullVoxPopuli · Feb 29, 2012 · Viewed 10.8k times · Source

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)

Is there a way to do this?

there is the config.entities_additional = "", but that is a comma separated list of all the entities you want to store.

preferably, I'd like to disable the entities entirely, but setting config.entities = false; doesn't do anything. o.o

@Cheery's answer solves the situation where the editor uses the config.js file.

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);

Still has the HTML entities.

Answer

Cheery picture Cheery · Mar 1, 2012

Set all of them to false:

config.entities  = false;
config.basicEntities = false;
config.entities_greek = false;
config.entities_latin = false;