#1879120: Use Drupal-specific image and link plugins — use core dialogs rather than CKEditor dialogs, containing alterable Drupal forms (commit) introduced the automatic ckeditorConfig.drupal.format setting to contain the machine name of the text format. However, we only did this for Drupal.editors.ckeditor.attach(), not for Drupal.editors.ckeditor.attachInlineEditor(). This can cause problems.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Wim Leers’s picture

Status: Active » Reviewed & tested by the community
FileSize
728 bytes

Attached patch brings attachInlineEditor() in line with attach():

  attach: function (element, format) {
    this._loadExternalPlugins(format);
    this._ACF_HACK_to_support_blacklisted_attributes(element, format);
    // Also pass settings that are Drupal-specific.
    format.editorSettings.drupal = {
      format: format.format
    };
    return !!CKEDITOR.replace(element, format.editorSettings);
  },

I don't like RTBC'ing my own patches. But, given that quicksketch has stepped down and this is an extremely trivial patch, I think nobody else would RTBC it…

Wim Leers’s picture

Issue tags: +sprint, +Spark

.

nod_’s picture

self-RTBC++, power to the JS people \o/

That said, RTBC++

Wim Leers’s picture

#3: haha :D

Wim Leers’s picture

Issue tags: +quickfix
webchick’s picture

Status: Reviewed & tested by the community » Fixed

Thanks for the review, nod_!

Committed and pushed to 8.x. Thanks!

Wim Leers’s picture

Issue tags: -sprint

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