(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,e){if(!CKEDITOR.env.isCompatible)throwError("The environment is incompatible.");if(!a.isFunction(g)){varm=e;e=g;g=m}vark=[];e=e||{};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(functiond(){c.element?(c.element.$==h&&g&&g.apply(c,[h]),l.resolve()):setTimeout(d,100)},0)},null,null,9999);