• It seems that modifications made by CKEDITOR.editorConfig() in ckeditor.config.js are completely overwritten or not even copied into CKEDITOR.config:

    setTimeout(function(){
      console.log(CKEDITOR.config); // untouched settings
      console.log(CKEDITOR.config.docType); // transitional xhtml
      console.log(CKEDITOR.config.i_was_here); // undefined
    },2000);
    CKEDITOR.editorConfig = function(config) {
      config.i_was_here=true;
      config.docType = '<!DOCTYPE html>';
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Contributor michal

    (@michal_cksource)

    Thx @biziclop for report this. We will check this ASAP.

    Plugin Contributor dczepierga

    (@dczepierga)

    Hi,
    @biziclop, first of all u should use CKEDITOR.editorConfig which is defined in ckeditor.config.js and add this config options there…
    When u add your own editorConfig function u overwrite or u will be overwritten by this function defined there…

    Next, if u try to see config options when CKEditor is rendered u should use following code:

    CKEDITOR.instances['textarea_id'].config.your_config_option

    Then u will see options that u defined before with CKEditor.editorConfig function.

    Greetings

    Thread Starter biziclop

    (@biziclop)

    Hi, thank you for your responses, my config vars are indeed set at the editor instance, except the entities, entities_latin, etc. options, which have their own checkbox in the Advanced Settings page, thus these settings cannot be overridden from ckeditor.config.js. 🙂

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘ckeditor.config.js / CKEDITOR.editorConfig() bug’ is closed to new replies.