text: !function(c){if(void 0===c)throw Error("jQuery should be loaded before CKEditor jQuery adapter.");if("undefined"==typeof CKEDITOR)throw Error("CKEditor should be loaded before CKEditor jQuery adapter.");CKEDITOR.config.jqueryOverrideVal=void 0===CKEDITOR.config.jqueryOverrideVal||CKEDITOR.config.jqueryOverrideVal,c.extend(c.fn,{ckeditorGet:function(){var e=this.eq(0).data("ckeditorInstance");if(!e)throw"CKEditor is not initialized yet, use ckeditor() with a callback.";return e},ckeditor:function(d,r){if(!CKEDITOR.env.isCompatible)throw Error("The environment is incompatible.");var e;c.isFunction(d)||(e=r,r=d,d=e);var n=[];r=r||{},this.each(function(){var i=c(this),t=i.data("ckeditorInstance"),e=i.data("_ckeditorInstanceLock"),o=this,a=new c.Deferred;n.push(a.promise()),t&&!e?(d&&d.apply(t,[this]),a.resolve()):e?t.once("instanceReady",function(){setTimeout(function e(){t.element?(t.element.$==o&&d&&d.apply(t,[o]),a.resolve()):setTimeout(e,100)},0)},null,null,9999):((r.autoUpdateElement||void 0===r.autoUpdateElement&&CKEDITOR.config.autoUpdateElement)&&(r.autoUpdateElementJquery=!0),r.autoUpdateElement=!1,i.data("_ckeditorInstanceLock",!0),t=c(this).is("textarea")?CKEDITOR.replace(o,r):CKEDITOR.inline(o,r),i.data("ckeditorInstance",t),t.on("instanceReady",function(r){var n=r.editor;setTimeout(function e(){var t;n.element?(r.removeListener(),n.on("dataReady",function(){i.trigger("dataReady.ckeditor",[n])}),n.on("setData",function(e){i.trigger("setData.ckeditor",[n,e.data])}),n.on("getData",function(e){i.trigger("getData.ckeditor",[n,e.data])},999),n.on("destroy",function(){i.trigger("destroy.ckeditor",[n])}),n.on("save",function(){return c(o.form).submit(),!1},null,null,20),n.config.autoUpdateElementJquery&&i.is("textarea")&&c(o.form).length&&(t=function(){i.ckeditor(function(){n.updateElement()})},c(o.form).submit(t),c(o.form).bind("form-pre-serialize",t),i.bind("destroy.ckeditor",function(){c(o.form).unbind("submit",t),c(o.form).unbind("form-pre-serialize",t)})),n.on("destroy",function(){i.removeData("ckeditorInstance")}),i.removeData("_ckeditorInstanceLock"),i.trigger("instanceReady.ckeditor",[n]),d&&d.apply(n,[o]),a.resolve()):setTimeout(e,100)},0)},null,null,9999))});var t=new c.Deferred;return this.promise=t.promise(),c.when.apply(this,n).then(function(){t.resolve()}),this.editor=this.eq(0).data("ckeditorInstance"),this}}),CKEDITOR.config.jqueryOverrideVal&&(c.fn.val=CKEDITOR.tools.override(c.fn.val,function(a){return function(n){if(arguments.length){var e=this,i=[],t=this.each(function(){var e=c(this),t=e.data("ckeditorInstance");if(e.is("textarea")&&t){var r=new c.Deferred;return t.setData(n,function(){r.resolve()}),i.push(r.promise()),!0}return a.call(e,n)});if(i.length){var r=new c.Deferred;return c.when.apply(this,i).done(function(){r.resolveWith(e)}),r.promise()}return t}var o=(t=c(this).eq(0)).data("ckeditorInstance");return t.is("textarea")&&o?o.getData():a.call(t)}}))}(window.jQuery);