After updating to 2.x, I'm finding that ckeditor isn't loading/displaying anymore. Upon inspecting things in the console, I found these errors:

  • [CKEDITOR.resourceManager.add] The resource name "default" is already registered.
  • plugin.jsFailed to load resource: the server responded with a status of 404 (Not Found)
  • [CKEDITOR.resourceManager.load] Resource name "picture_ckeditor" was not found at "/sites/all/modules/picture/plugins/plugin.js?t=E3OD".

http://domainhere.com/sites/all/modules/picture/plugins/plugin.js?t=XXXX

The path is incorrect based on the current version 2 module folder structure which has a "ckeditor" folder and no "plugins" folder in the modules' main folder level. The correct path would be:
http://domainhere.com/sites/all/modules/picture/ckeditor/plugins/plugin.js?t=XXXX

Disabling Picture and first Flexslider Picture worked to bring back poor CKEditor. This error and the Colorbox Node error are killing my ability to implement Picture in a few sites I'm working on now.

Thanks for your time!

A few keywords to help people debugging ckeditor:
ckeditor disappeared
ckeditor disappears
ckeditor is gone
where did ckeditor go
I lost my ckeditor
ckeditor not working
ckeditor won't work
ckeditor won't show up
ckeditor picture error

Comments

deanflory’s picture

Issue summary: View changes
deanflory’s picture

Issue summary: View changes
attiks’s picture

Status: Active » Needs work
greenskin’s picture

It looks like the path defined in picture_ckeditor_plugin() needs to include the base_path().

mgwisni’s picture

Having the same problem after updating from Picture 1.5 to 2.0. I'm guessing it has something to do with this:

function picture_ckeditor_plugin() {
  return array(
    'picture_ckeditor' => array(
      // Name of the plugin used to write it.
      'name' => 'picture_ckeditor',
      // Description of the plugin - it would be displayed in the plugins management section of profile settings.
      'desc' => t('Support responsive images with the Picture module.'),
      // The full path to the CKEditor plugins directory, with the trailing slash.
      'buttons' => FALSE,
      'path' => drupal_get_path('module', 'picture') . '/ckeditor/plugins/',
      'default' => 't',
    )
  );
}

The code there looks correct, but CKEditor is still looking for where the plugin used to be in version 1.5 (plugins/plugin.js).

EDIT: Short term solution for me was just copying the plugins folder into the Picture directory.

attiks’s picture

Assigned: Unassigned » jelle_s

I'll ask Jelle to have a look, I assume you're using the latest version of ckeditor with wysiwyg api?

deanflory’s picture

If you're asking me, I'm not using the WYSIWYG module if that's what you're referring to, but I am using what was the latest version of the CKEditor library at the time of the original post.

  • Jelle_S committed 72a2b60 on 7.x-2.x
    Issue #2294299 by deanflory: Fixed Picture Breaks CKEditor (path error).
    
jelle_s’s picture

Assigned: jelle_s » Unassigned
Status: Needs work » Fixed

Fixed in latest dev (run update.php)

deanflory’s picture

Thanks for your time and effort Jelle_S!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.