Search code examples
javascriptckeditor

CKEditor: Multiple config.js files


I have 2 HTML pages using CKEditor.

In Page 1, I want to use the default config.js file.

In Page 2, I want to use a custom config.js file.

How would I achieve this?

Thanks!


Solution

  • You can customConfig option and specify path to your config file

    CKEDITOR.replace( 'editor1', {
        customConfig: '/custom/ckeditor_config.js'
    });
    

    More information - https://docs.ckeditor.com/ckeditor4/docs/?mobile=/guide/dev_configuration