X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fcore%2Fckeditor_basic.js;h=a2ef2cb2404c7bb3e77b2cc27744c70cab3a687e;hb=039a051ccf3901311661022a30afd60fc38130c9;hp=723d34cf0eb4a90148cf2906885e49d958e53535;hpb=e7789c1ad838194d45eeee6ac2eb6e55f5cf35a1;p=ckeditor.git diff --git a/_source/core/ckeditor_basic.js b/_source/core/ckeditor_basic.js index 723d34c..a2ef2cb 100644 --- a/_source/core/ckeditor_basic.js +++ b/_source/core/ckeditor_basic.js @@ -29,7 +29,7 @@ if ( CKEDITOR.status == 'unloaded' ) // If not the basic code is not ready it, just mark it to be loaded. if ( CKEDITOR.status != 'basic_ready' ) { - CKEDITOR.loadFullCore._load = true; + CKEDITOR.loadFullCore._load = 1; return; } @@ -77,7 +77,7 @@ if ( CKEDITOR.status == 'unloaded' ) * // Disable the auto-replace feature. * CKEDITOR.replaceByClassEnabled = false; */ - CKEDITOR.replaceByClassEnabled = true; + CKEDITOR.replaceByClassEnabled = 1; var createInstance = function( elementOrIdOrName, config, creationFunction, data ) { @@ -137,10 +137,7 @@ if ( CKEDITOR.status == 'unloaded' ) return createInstance( elementOrId, config, CKEDITOR.editor.appendTo, data ); }; - /** - * @ignore - * Documented at ckeditor.js. - */ + // Documented at ckeditor.js. CKEDITOR.add = function( editor ) { // For now, just put the editor in the pending list. It will be @@ -174,9 +171,9 @@ if ( CKEDITOR.status == 'unloaded' ) for ( var i = 0 ; i < textareas.length ; i++ ) { - var config = null; - var textarea = textareas[i]; - var name = textarea.name; + var config = null, + textarea = textareas[i], + name = textarea.name; // The "name" and/or "id" attribute must exist. if ( !textarea.name && !textarea.id ) @@ -187,7 +184,7 @@ if ( CKEDITOR.status == 'unloaded' ) // The textarea class name could be passed as the function // parameter. - var classRegex = new RegExp( '(?:^| )' + arguments[0] + '(?:$| )' ); + var classRegex = new RegExp( '(?:^|\\s)' + arguments[0] + '(?:$|\\s)' ); if ( !classRegex.test( textarea.className ) ) continue;