Ckeditor works fine along with my custom plugins when I'm on edit node (node/NID/edit) but not when using "Edit" module. Checking "Console" panel shows that my plugin path is invalid (404). Custom plugins are pointed to 'base_url/sites/all/libraries/ckeditor/plugins/
Original path:
sites/all/modules/custom/core/ckeditor_plugins/greybox
sites/all/modules/custom/core/ckeditor_plugins/qna
sites/all/modules/custom/core/ckeditor_plugins/pagebreak
sites/all/modules/custom/core/ckeditor_plugins/inline
When using Edit module (In-line edit), the paths becomes...
sites/all/libraries/ckeditor/plugins/greybox
sites/all/libraries/ckeditor/plugins/qna
sites/all/libraries/ckeditor/plugins/pagebreak
sites/all/libraries/ckeditor/plugins/inline
A bit weird as they are working fine in nod edit form.
See the attached screenshots of my 'Profile' settings.
| Comment | File | Size | Author |
|---|---|---|---|
| console_error.png | 4.49 KB | stoickthevast | |
| profile_conf.png | 32.09 KB | stoickthevast |
Comments
Comment #1
stoickthevast commentedAny chance to sort this thing out?
Comment #2
wwalc commentedCheck the latest dev version. Probably a dup of #1063482: Use Libraries API for CKEditor
Comment #3
stoickthevast commentedAlready checkout the latest dev version and the problem still exist. Fortunately, after digging more I modified the config.js in libraries/ckeditor/ with the following:
var custom_plugin = '/sites/all/modules/custom/cnngo_core/ckeditor_plugins/';
config.extraPlugins = ['internalnav', 'qna', 'greybox', 'insertinline', 'pagebreak', 'source'];
CKEDITOR.plugins.addExternal('internalnav', custom_plugin + 'internalnav/');
CKEDITOR.plugins.addExternal('qna', custom_plugin + 'qna/');
CKEDITOR.plugins.addExternal('greybox', custom_plugin + 'greybox/');
CKEDITOR.plugins.addExternal('insertinline', custom_plugin + 'insertinline/');
CKEDITOR.plugins.addExternal('pagebreak', custom_plugin + 'pagebreak/');
And it works.
Any idea?
Comment #4
wwalc commentedOkay, I recreated the same environment locally and found one problem with your configuration.
The paths to plugin directories were wrong in the Global profile (local path was wrong).
I set the following instead:
Path to the CKEditor plugins directory
%b/sites/all/modules/custom/core/ckeditor_pluginsLocal path to the CKEditor plugins directory
./sites/all/modules/custom/core/ckeditor_pluginsAfter saving the Global profile, in CKEditor profiles I could check in Editor Appearance the plugins located in custom/core/ckeditor_plugins. The plugins that I checked and added to the toolbar appeared both: when creating a node and when (inline) editing the node through the Edit module.
I used the dev version of edit module ("7.x-1.0-alpha10+1-dev").
Comment #5
jcisio commentedI posted another problem with "local paths" at #1966798: Replace usage of ckeditor_path('url') with drupal_add_js.