(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))vark=d,d=g,g=k;vari=[],d=d||{};this.each(function(){varb=a(this),c=b.data("ckeditorInstance"),f=b.data("_ckeditorInstanceLock"),h=this,j=newa.Deferred;i.push(j.promise());if(c&&!f)g&&g.apply(c,[this]),j.resolve();elseif(f)c.once("instanceReady",function(){setTimeout(function(){c.element?(c.element.$==h&&g&&g.apply(c,[h]),j.resolve()):setTimeout(arguments.callee,100)},0)},null,