1 line
655 KiB
JavaScript
1 line
655 KiB
JavaScript
![]() |
(function(){if(window.CKEDITOR&&window.CKEDITOR.dom){return;}window.CKEDITOR||(window.CKEDITOR=function(){var a=/(^|.*[\\\/])ckeditor\.js(?:\?.*|;.*)?$/i,d={timestamp:"J6IA",version:"4.12.1",revision:"64749bb245",rnd:Math.floor(900*Math.random())+100,_:{pending:[],basePathSrcPattern:a},status:"unloaded",basePath:function(){var b=window.CKEDITOR_BASEPATH||"";if(!b){for(var c=document.getElementsByTagName("script"),d=0;d<c.length;d++){var g=c[d].src.match(a);if(g){b=g[1];break;}}}-1==b.indexOf(":/")&&"//"!=b.slice(0,2)&&(b=0===b.indexOf("/")?location.href.match(/^.*?:\/\/[^\/]*/)[0]+b:location.href.match(/^[^\?]*\/(?:)/)[0]+b);if(!b){throw'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';}return b;}(),getUrl:function(a){-1==a.indexOf(":/")&&0!==a.indexOf("/")&&(a=this.basePath+a);this.timestamp&&"/"!=a.charAt(a.length-1)&&!/[&?]t=/.test(a)&&(a+=(0<=a.indexOf("?")?"\x26":"?")+"t\x3d"+this.timestamp);return a;},domReady:function(){function a(){try{document.addEventListener?(document.removeEventListener("DOMContentLoaded",a,!1),b()):document.attachEvent&&"complete"===document.readyState&&(document.detachEvent("onreadystatechange",a),b());}catch(c){}}function b(){for(var a;a=c.shift();){a();}}var c=[];return function(b){function l(){try{document.documentElement.doScroll("left");}catch(b){setTimeout(l,1);return;}a();}c.push(b);"complete"===document.readyState&&setTimeout(a,1);if(1==c.length){if(document.addEventListener){document.addEventListener("DOMContentLoaded",a,!1),window.addEventListener("load",a,!1);}else{if(document.attachEvent){document.attachEvent("onreadystatechange",a);window.attachEvent("onload",a);b=!1;try{b=!window.frameElement;}catch(d){}document.documentElement.doScroll&&b&&l();}}}};}()},b=window.CKEDITOR_GETURL;if(b){var c=d.getUrl;d.getUrl=function(a){return b.call(d,a)||c.call(d,a);};}return d;}());CKEDITOR.event||(CKEDITOR.event=function(){},CKEDITOR.event.implementOn=function(a){var d=CKEDITOR.event.prototype,b;for(b in d){null==a[b]&&(a[b]=d[b]);}},CKEDITOR.event.prototype=function(){function a(a){var f=d(this);return f[a]||(f[a]=new b(a));}var d=function(a){a=a.getPrivate&&a.getPrivate()||a._||(a._={});return a.events||(a.events={});},b=function(a){this.name=a;this.listeners=[];};b.prototype={getListenerIndex:function(a){for(var b=0,d=this.listeners;b<d.length;b++){if(d[b].fn==a){return b;}}return -1;}};return{define:function(b,d){var h=a.call(this,b);CKEDITOR.tools.extend(h,d,!0);},on:function(b,d,h,k,g){function l(a,x,t,e){a={name:b,sender:this,editor:a,data:x,listenerData:k,stop:t,cancel:e,removeListener:u};return !1===d.call(h,a)?!1:a.data;}function u(){x.removeListener(b,d);}var e=a.call(this,b);if(0>e.getListenerIndex(d)){e=e.listeners;h||(h=this);isNaN(g)&&(g=10);var x=this;l.fn=d;l.priority=g;for(var t=e.length-1;0<=t;t--){if(e[t].priority<=g){return e.splice(t+1,0,l),{removeListener:u};}}e.unshift(l);}return{removeListener:u};},once:function(){var a=Array.prototype.slice.call(arguments),b=a[1];a[1]=function(a){a.removeListener();return b.apply(this,arguments);};return this.on.apply(this,a);},capture:function(){CKEDITOR.event.useCapture=1;var a=this.on.apply(this,arguments);CKEDITOR.event.useCapture=0;return a;},fire:function(){var a=0,b=function(){a=1;},h=0,k=function(){h=1;};return function(g,l,u){var e=d(this)[g];g=a;var x=h;a=h=0;if(e){var t=e.listeners;if(t.length){for(var t=t.slice(0),z,I=0;I<t.length;I++){if(e.errorProof){try{z=t[I].call(this,u,l,b,k);}catch(r){}}else{z=t[I].call(this,u,l,b,k);}!1===z?h=1:"undefined"!=typeof z&&(l=z);if(a||h){break;}}}}l=h?!1:"undefined"==typeof l?!0:l;a=g;h=x;return l;};}(),fireOnce:function(a,b,h){b=this.fire(a,b,h);delete d(this)[a];return b;},removeListener:function(a,b){var h=d(this)[a];if(h){var k=h.getListenerIndex(b);0<=k&&h.listeners.splice(k,1);}},removeAllListeners:function(){var a=d(this),b;for(b in a){delete a[b];}},hasListeners:function(a){return(a=d(this)[a])&&0<a.listeners.length;}};}());CKEDITOR.editor||(CKEDITOR.editor=function(){
|