There is a problem with the option “Load ckeditor.config.js from theme path: “ while editing a ckeditor profile.
When editing the profile the file “ckeditor.config.js” is not loaded from the themepad, even if you set the option to yes. At the front of the site it all worked ok, for instance when editing a node the config is loaded from my theme pad.
Only problem here is that because when configuring the profile for ckeditor the wrong file is loaded and therefore the option “Toolbar” in “Editor appearance” does not provide me with the correct options.
When taking al look at the code I noticed that when loading the editor (front) there is a check to see where to load the config file so no problem there, only when editing the profile the path for the config file is hardcoded to load from the module directory.
So I was thinking about a solution for this, the easyest way is to alter the code for editing the profile and let it also load the config from the correct location.
The only problem is that the configuration for the config location is after the toolbar option, and even if it where before than we should use ajax for a real-time change of the options.
Not the best solution if you asked me.
Second solution is to move the option to the global configuration, we would lose the options for giving each profile his own config file.
In my case there aren't any configurations in the file that are profile specific so for me this is the solution I'm going to use.
So wath have I done,
Moved the option loading the “Load ckeditor.config.js from theme path: “ from the profile configuration to the global configuration.
When checked it will load the file from the default theme directory.
It's not a complete solution because sites with multiple themes can only load from one location, i will look into that also, but for now this is what I have done.
Suggestions for a better patch are welcome I will see what I can do.
| Comment | File | Size | Author |
|---|---|---|---|
| ckeditor_config_js_themepath.patch | 6.09 KB | jorgvloet |
Comments
Comment #1
bartezz commentedHaving the same issues.
Patch doesn't work against 6.x-1.4 but I don't think this is a solid solution anyway.
Like you said; 'sites with multiple themes can only load from one location'
Cheers
Comment #2
anrikun commentedSubscribing.
Comment #3
Anonymous (not verified) commentedI am also having a problem with the ckeditor.config.js file not loading from the theme path when the Load ckeditor.config.js from theme path option is set to Yes.
Comment #4
escoles commentedCurrently seeing this on one site in 6.x-1.8.
Comment #5
johntang commentedTry set chmod 777 for sites/all/modules/ckeditor/ckeditor.config.js