#1369 ✓resolved
dleffler

Feature request: allow for custom/theme CKEditor configuration

Reported by dleffler | June 15th, 2016 @ 02:08 PM | in 2.3.9 (closed)

We should allow for a custom CKEditor configuration (e.g., config.js) in the theme. Could be placed in the /theme/editors/ckeditor folder and a quick check that if exists load it instead of default (which is typically empty of anything but comments.

We could perhaps also allow for custom styles.js file but it can be easily be done via WYSIWYG editor custom configuration by setting it to a url vs the actual styles rules object. http://docs.ckeditor.com/#!/guide/dev_styles

Comments and changes to this ticket

  • dleffler

    dleffler June 15th, 2016 @ 02:28 PM

    FYI, the Configuration Loading Order (from http://docs.ckeditor.com/#!/guide/dev_configuration)

    The following list presents the configuration loading order used when creating an editor instance:

    1 An editor instance is created. At this point all its default configuration options are set.
    2 If the customConfig setting has been set "in-page", that file is loaded, otherwise the default config.js file is loaded. All settings in the custom configuration file override current instance settings.
    3 If the settings loaded in step 2 also define a new customConfig value, another custom configuration file is loaded and its settings override current instance settings. This happens recursively for all files until no customConfig is defined.
    4 Finally the settings defined "in-page" override current instance settings (except customConfig, which has been used in step 1).

    FYI, we set many options via #4 above, especially those from a WYSIWYG custom editor configuration

  • expNinja

    expNinja June 16th, 2016 @ 11:17 PM

    • State changed from “new” to “resolved”

    (from [ae9f8fca64303981bacd4fd98d89d9848af1aba2]) allows for custom ckeditor config.js within theme (/themes/customtheme/editors/ckeditor/config.js) [#1369 state:resolved] https://github.com/exponentcms/exponent-cms/commit/ae9f8fca64303981...

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

Bug Tracker for Exponent CMS

Shared Ticket Bins

People watching this ticket

Tags

Pages