Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Select an option

  • Save junaidpv/6a9f9566f538a5baf865 to your computer and use it in GitHub Desktop.

Select an option

Save junaidpv/6a9f9566f538a5baf865 to your computer and use it in GitHub Desktop.
Consider format value from quickedit module if ckeditor field format is not retrievable by id
diff --git a/editors/ckeditor/plugin.js b/editors/ckeditor/plugin.js
index 7cecc31..08b7493 100644
--- a/editors/ckeditor/plugin.js
+++ b/editors/ckeditor/plugin.js
@@ -49,6 +49,9 @@
}
else if (Drupal.settings.ckeditor) { // If using the CKEditor module
format = Drupal.settings.ckeditor.elements[editor.name];
+ if ((format == null || format === '') && Drupal.settings.quickedit.format) {
+ format = Drupal.settings.quickedit.format;
+ }
} else {
alert(Drupal.t('Could not find the Linkit profile.'));
return;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment