Just updated to ver. 4.3 and I am trying to improve how I have the config set up...
I inherited the code for the website system that I am now working to update as a volunteer. It is basically an in-house built "CMS-like" system that assembles websites using template HTML and user content that is stored in a MySQL db. Because of this, I have to be careful to distinguish between static HTML and javascript and user supplied content that is patched in by the server side perl scripts to build the various end user websites...
My users really like CKEditor for updating their content, so I want to make as much of its features and plug-ins available to them as is appropriate. However, what I am noticing is some type of initialization delay with CKEditor, particularly with ver. 4.3. Also, I want to relocate the explicit configuration settings from the template head section to a config.js type file that I just reference in the head. One tricky part of this is that the system is themed, so the server side perl patches in the location of the contentsCSS CSS file locations depending on the theme in use. Part of the CKEditor config can be moved to a static config.js type file, and part of the config must be set up in the HTML that is subject to the parameter replacements by the server script.
Questions:
- Given that I will likely be using quite a few plug-ins, are there any tips/suggestions for tweaking CKEditor for optimal performance and minimal initialization time? I am using the minified code and trying to include plugins via CKBuilder vs extraPlugins, but still I am wondering if that is the best approach, or what else I could be doing.
- I have created a copy of the default config.js file and renamed it CKEditor-config.js and relocated it to a different folder than the 4.3 folder on the server to allow for easy CKEditor update. Is there any reason that need to keep this file in the CKEditor install folder?
- I intend to set up the CKEditor-config.js to load in the head, but how do I handle the contentsCSS config setting that I need to have separate from that file. The contentsCSS setting is what will get "patched in" by the server script. All editor instances can have the same config--I do not need instance specific configs. I could put it in a separate script snippet in the HMTL head, but I am just not sure of the proper syntax for doing that. Can you please advise?
Much thanks in advance!
Steve
