Hello,
In a configuration with the modules 'maxlength' and 'ckeditor' installed, and in an node edit page without a ckeditor, I get a JS error: 'CKEDITOR not defined' because of the following code:
ml.ckeditor = function() {
// We only run it once
var onlyOnce = false;
if (!onlyOnce) {
onlyOnce = true;
CKEDITOR.on('instanceReady', function(e) {
which is called on the condition:
} else if (Drupal.settings.ckeditor != undefined) {
which checks that the module 'ckeditor' is installed, but not that ckeditor is actually initialized on the page.
The patch to fix this will follow.
Comments
Comment #1
ndeschildre commentedPlease find attached the patch.
Comment #2
rooby commentedThis also happens on my site.
It is more of an issue because it breaks other javascript on the page and things don't work properly.
The patch fixes it for me and looks good so setting RTBC to maybe get someone else's eyes on it.
Comment #3
mvwensen commentedFix also works on 7.x-3.0-beta1 after changing (manually)
Comment #4
dawehnerWhat about adding a small comment why we are doing that here? Just as a random guy i wouldn't know what is going on :)
Comment #5
drclaw commentedThis patch also worked for me (manually applied). Thanks!
To help other people searching this issue: I needed this because the maxlength was giving an error Uncaught ReferenceError: CKEDITOR is not defined. This was because even though I had CKEDITOR installed, it wasn't being used on my field which was using the "Plain Text" text format.
Comment #6
Anonymous (not verified) commentedPatch worked for me. Please include in the module soon :)
Comment #7
dasjothis needs a re-roll
Comment #8
dasjothis one applies to the latest dev
Comment #9
frjo commentedThis fix is already committed to 7-dev and are part of 7.x-3.0.