(function(a){if("undefined"==typeofa)throwError("jQuery should be loaded before CKEditor jQuery adapter.");if("undefined"==typeofCKEDITOR)throwError("CKEditor should be loaded before CKEditor jQuery adapter.");CKEDITOR.config.jqueryOverrideVal="undefined"==typeofCKEDITOR.config.jqueryOverrideVal?!0:CKEDITOR.config.jqueryOverrideVal;a.extend(a.fn,{ckeditorGet:function(){vara=this.eq(0).data("ckeditorInstance");if(!a)throw"CKEditor is not initialized yet, use ckeditor() with a callback.";returna},
ckeditor:function(g,d){if(!CKEDITOR.env.isCompatible)throwError("The environment is incompatible.");if(!a.isFunction(g)){varm=d;d=g;g=m}vark=[];d=d||{};this.each(function(){varb=a(this),c=b.data("ckeditorInstance"),f=b.data("_ckeditorInstanceLock"),h=this,l=newa.Deferred;k.push(l.promise());if(c&&!f)g&&g.apply(c,[this]),l.resolve();elseif(f)c.once("instanceReady",function(){setTimeout(function(){c.element?(c.element.$==h&&g&&g.apply(c,[h]),l.resolve()):setTimeout(arguments.callee,100)},0)},