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.

CommentFileSizeAuthor
console_error.png4.49 KBstoickthevast
profile_conf.png32.09 KBstoickthevast

Comments

stoickthevast’s picture

Any chance to sort this thing out?

wwalc’s picture

Check the latest dev version. Probably a dup of #1063482: Use Libraries API for CKEditor

stoickthevast’s picture

Already 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?

wwalc’s picture

Okay, 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_plugins

Local path to the CKEditor plugins directory
./sites/all/modules/custom/core/ckeditor_plugins

After 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").

jcisio’s picture

I posted another problem with "local paths" at #1966798: Replace usage of ckeditor_path('url') with drupal_add_js.