Created
October 14, 2015 17:22
-
-
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
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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