From 261a3752a149540abc47353c4b6a97689d98c58e Mon Sep 17 00:00:00 2001 From: webchick <webchick@24967.no-reply.drupal.org> Date: Fri, 22 Mar 2013 12:32:36 -0400 Subject: [PATCH] Issue #1950098 by Wim Leers: Update CKEditor library to 4.1. --- core/misc/ckeditor/CHANGES.md | 18 +- core/misc/ckeditor/ckeditor.js | 1025 +++++++++-------- .../plugins/a11yhelp/dialogs/lang/km.js | 9 + .../plugins/a11yhelp/dialogs/lang/th.js | 9 + .../ckeditor/plugins/image/dialogs/image.js | 2 +- .../sourcedialog/dialogs/sourcedialog.js | 6 + .../plugins/specialchar/dialogs/lang/pl.js | 12 + .../plugins/specialchar/dialogs/lang/th.js | 13 + core/modules/ckeditor/ckeditor.module | 2 +- 9 files changed, 581 insertions(+), 515 deletions(-) create mode 100644 core/misc/ckeditor/plugins/a11yhelp/dialogs/lang/km.js create mode 100644 core/misc/ckeditor/plugins/a11yhelp/dialogs/lang/th.js create mode 100644 core/misc/ckeditor/plugins/sourcedialog/dialogs/sourcedialog.js create mode 100644 core/misc/ckeditor/plugins/specialchar/dialogs/lang/pl.js create mode 100644 core/misc/ckeditor/plugins/specialchar/dialogs/lang/th.js diff --git a/core/misc/ckeditor/CHANGES.md b/core/misc/ckeditor/CHANGES.md index 008f8151274d..ae3469f54274 100644 --- a/core/misc/ckeditor/CHANGES.md +++ b/core/misc/ckeditor/CHANGES.md @@ -1,6 +1,16 @@ CKEditor 4 Changelog ==================== +## CKEditor 4.1 + +* [#10192](http://dev.ckeditor.com/ticket/10192): Closing lists with Enter key does not work with Advanced Content Filter in several cases. +* [#10191](http://dev.ckeditor.com/ticket/10191): Fixed allowed content rules unification, so the `filter.allowedContent` property always contains rules in the same format. +* [#10224](http://dev.ckeditor.com/ticket/10224): Advanced Content Filter does not remove non-empty `<a>` elements anymore. +* Minor issues in plugin integration with Advanced Content Filter: + * [#10166](http://dev.ckeditor.com/ticket/10166): Added transformation from the `align` attribute to `float` style to preserve backward compatibility after the introduction of Advanced Content Filter. + * [#10195](http://dev.ckeditor.com/ticket/10195): Image plugin no longer registers rules for links to Advanced Content Filter. + * [#10213](http://dev.ckeditor.com/ticket/10213): Justify plugin is now correctly registering rules to Advanced Content Filter when `config.justifyClasses` is defined. + ## CKEditor 4.1 RC * [#9829](http://dev.ckeditor.com/ticket/9829): Data and features activation based on editor configuration. @@ -12,7 +22,7 @@ CKEditor 4 Changelog * based on `config.allowedContent` rules - the data will be filtered and the editor features (toolbar items, commands, keystrokes) will be enabled if they are allowed. - See the `datafiltering.html` sample, [guides](http://docs.ckeditor.com/#!/guide/dev_data_filter) and [`CKEDITOR.filter` API documentation](http://docs.ckeditor.com/#!/api/CKEDITOR.filter). + See the `datafiltering.html` sample, [guides](http://docs.ckeditor.com/#!/guide/dev_advanced_content_filter) and [`CKEDITOR.filter` API documentation](http://docs.ckeditor.com/#!/api/CKEDITOR.filter). * [#9387](http://dev.ckeditor.com/ticket/9387): Reintroduced "Shared Spaces" - the ability to display toolbar and bottom editor space in selected locations and to share them by different editor instances. * [#9907](http://dev.ckeditor.com/ticket/9907): Added the `contentPreview` event for preview data manipulation. * [#9713](http://dev.ckeditor.com/ticket/9713): Introduced the `sourcedialog` plugin that brings raw HTML editing for inline editor instances. @@ -23,6 +33,12 @@ CKEditor 4 Changelog * Default `command` state is now `CKEDITOR.TRISTATE_DISABLE`. It will be activated on `editor.instanceReady` or immediately after being added if the editor is already initialized. * [#9796](http://dev.ckeditor.com/ticket/9796): Introduced `<s>` as a default tag for strikethrough, which replaces obsolete `<strike>` in HTML5. +## CKEditor 4.0.3 + +* [#10196](http://dev.ckeditor.com/ticket/10196): Fixed context menus not opening with keyboard shortcuts when Autogrow is enabled. +* [#10212](http://dev.ckeditor.com/ticket/10212): [IE7-10] Undo command throws errors after multiple switches between Source and WYSIWYG view. +* [#10219](http://dev.ckeditor.com/ticket/10219): [Inline editor] Error thrown after calling editor.destroy(). + ## CKEditor 4.0.2 * [#9779](http://dev.ckeditor.com/ticket/9779): Fixed overriding `CKEDITOR.getUrl` with `CKEDITOR_GETURL`. diff --git a/core/misc/ckeditor/ckeditor.js b/core/misc/ckeditor/ckeditor.js index 26fdb4c1a1fd..fd88f261111f 100644 --- a/core/misc/ckeditor/ckeditor.js +++ b/core/misc/ckeditor/ckeditor.js @@ -2,14 +2,14 @@ Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ -(function(){if(!window.CKEDITOR||!window.CKEDITOR.dom)window.CKEDITOR||(window.CKEDITOR=function(){var b={timestamp:"D28E",version:"4.0 DEV",revision:"0",rnd:Math.floor(900*Math.random())+100,_:{pending:[]},status:"unloaded",basePath:function(){var a=window.CKEDITOR_BASEPATH||"";if(!a)for(var b=document.getElementsByTagName("script"),g=0;g<b.length;g++){var f=b[g].src.match(/(^|.*[\\\/])ckeditor(?:_basic)?(?:_source)?.js(?:\?.*)?$/i);if(f){a=f[1];break}}-1==a.indexOf(":/")&&(a=0===a.indexOf("/")? +(function(){if(!window.CKEDITOR||!window.CKEDITOR.dom)window.CKEDITOR||(window.CKEDITOR=function(){var b={timestamp:"D2MB",version:"4.0 DEV",revision:"0",rnd:Math.floor(900*Math.random())+100,_:{pending:[]},status:"unloaded",basePath:function(){var a=window.CKEDITOR_BASEPATH||"";if(!a)for(var b=document.getElementsByTagName("script"),g=0;g<b.length;g++){var f=b[g].src.match(/(^|.*[\\\/])ckeditor(?:_basic)?(?:_source)?.js(?:\?.*)?$/i);if(f){a=f[1];break}}-1==a.indexOf(":/")&&(a=0===a.indexOf("/")? location.href.match(/^.*?:\/\/[^\/]*/)[0]+a:location.href.match(/^[^\?]*\/(?:)/)[0]+a);if(!a)throw'The CKEditor installation path could not be automatically detected. Please set the global variable "CKEDITOR_BASEPATH" before creating editor instances.';return a}(),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("?")?"&":"?")+"t="+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(f){}}function b(){for(var a;a=g.shift();)a()}var g=[];return function(b){g.push(b);"complete"===document.readyState&&setTimeout(a,1);if(1==g.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(h){}if(document.documentElement.doScroll&&b){var c=function(){try{document.documentElement.doScroll("left")}catch(b){setTimeout(c,1);return}a()};c()}}}}()},d=window.CKEDITOR_GETURL;if(d){var a=b.getUrl;b.getUrl=function(e){return d.call(b,e)||a.call(b,e)}}return b}()),CKEDITOR.event||(CKEDITOR.event=function(){},CKEDITOR.event.implementOn=function(b){var d=CKEDITOR.event.prototype,a;for(a in d)b[a]==void 0&&(b[a]=d[a])},CKEDITOR.event.prototype= -function(){function b(e){var b=d(this);return b[e]||(b[e]=new a(e))}var d=function(a){a=a.getPrivate&&a.getPrivate()||a._||(a._={});return a.events||(a.events={})},a=function(a){this.name=a;this.listeners=[]};a.prototype={getListenerIndex:function(a){for(var b=0,g=this.listeners;b<g.length;b++)if(g[b].fn==a)return b;return-1}};return{define:function(a,h){var g=b.call(this,a);CKEDITOR.tools.extend(g,h,true)},on:function(a,h,g,f,i){function c(b,c,i,l){b={name:a,sender:this,editor:b,data:c,listenerData:f, -stop:i,cancel:l,removeListener:j};return h.call(g,b)===false?false:b.data}function j(){m.removeListener(a,h)}var l=b.call(this,a);if(l.getListenerIndex(h)<0){l=l.listeners;g||(g=this);isNaN(i)&&(i=10);var m=this;c.fn=h;c.priority=i;for(var d=l.length-1;d>=0;d--)if(l[d].priority<=i){l.splice(d+1,0,c);return{removeListener:j}}l.unshift(c)}return{removeListener:j}},once:function(){var a=arguments[1];arguments[1]=function(b){b.removeListener();return a.apply(this,arguments)};return this.on.apply(this, -arguments)},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},g=0,f=function(){g=1};return function(i,c,j){var l=d(this)[i],i=a,m=g;a=g=0;if(l){var n=l.listeners;if(n.length)for(var n=n.slice(0),o,k=0;k<n.length;k++){if(l.errorProof)try{o=n[k].call(this,j,c,b,f)}catch(p){}else o=n[k].call(this,j,c,b,f);o===false?g=1:typeof o!="undefined"&&(c=o);if(a||g)break}}c=g?false:typeof c=="undefined"? -true:c;a=i;g=m;return c}}(),fireOnce:function(a,b,g){b=this.fire(a,b,g);delete d(this)[a];return b},removeListener:function(a,b){var g=d(this)[a];if(g){var f=g.getListenerIndex(b);f>=0&&g.listeners.splice(f,1)}},removeAllListeners:function(){var a=d(this),b;for(b in a)delete a[b]},hasListeners:function(a){return(a=d(this)[a])&&a.listeners.length>0}}}()),CKEDITOR.editor||(CKEDITOR.editor=function(){CKEDITOR._.pending.push([this,arguments]);CKEDITOR.event.call(this)},CKEDITOR.editor.prototype.fire= +function(){function b(e){var b=d(this);return b[e]||(b[e]=new a(e))}var d=function(a){a=a.getPrivate&&a.getPrivate()||a._||(a._={});return a.events||(a.events={})},a=function(a){this.name=a;this.listeners=[]};a.prototype={getListenerIndex:function(a){for(var b=0,g=this.listeners;b<g.length;b++)if(g[b].fn==a)return b;return-1}};return{define:function(a,h){var g=b.call(this,a);CKEDITOR.tools.extend(g,h,true)},on:function(a,h,g,f,i){function c(b,c,i,k){b={name:a,sender:this,editor:b,data:c,listenerData:f, +stop:i,cancel:k,removeListener:j};return h.call(g,b)===false?false:b.data}function j(){l.removeListener(a,h)}var k=b.call(this,a);if(k.getListenerIndex(h)<0){k=k.listeners;g||(g=this);isNaN(i)&&(i=10);var l=this;c.fn=h;c.priority=i;for(var d=k.length-1;d>=0;d--)if(k[d].priority<=i){k.splice(d+1,0,c);return{removeListener:j}}k.unshift(c)}return{removeListener:j}},once:function(){var a=arguments[1];arguments[1]=function(b){b.removeListener();return a.apply(this,arguments)};return this.on.apply(this, +arguments)},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},g=0,f=function(){g=1};return function(i,c,j){var k=d(this)[i],i=a,l=g;a=g=0;if(k){var n=k.listeners;if(n.length)for(var n=n.slice(0),o,m=0;m<n.length;m++){if(k.errorProof)try{o=n[m].call(this,j,c,b,f)}catch(p){}else o=n[m].call(this,j,c,b,f);o===false?g=1:typeof o!="undefined"&&(c=o);if(a||g)break}}c=g?false:typeof c=="undefined"? +true:c;a=i;g=l;return c}}(),fireOnce:function(a,b,g){b=this.fire(a,b,g);delete d(this)[a];return b},removeListener:function(a,b){var g=d(this)[a];if(g){var f=g.getListenerIndex(b);f>=0&&g.listeners.splice(f,1)}},removeAllListeners:function(){var a=d(this),b;for(b in a)delete a[b]},hasListeners:function(a){return(a=d(this)[a])&&a.listeners.length>0}}}()),CKEDITOR.editor||(CKEDITOR.editor=function(){CKEDITOR._.pending.push([this,arguments]);CKEDITOR.event.call(this)},CKEDITOR.editor.prototype.fire= function(b,d){b in{instanceReady:1,loaded:1}&&(this[b]=true);return CKEDITOR.event.prototype.fire.call(this,b,d,this)},CKEDITOR.editor.prototype.fireOnce=function(b,d){b in{instanceReady:1,loaded:1}&&(this[b]=true);return CKEDITOR.event.prototype.fireOnce.call(this,b,d,this)},CKEDITOR.event.implementOn(CKEDITOR.editor.prototype)),CKEDITOR.env||(CKEDITOR.env=function(){var b=navigator.userAgent.toLowerCase(),d=window.opera,a={ie:eval("/*@cc_on!@*/false"),opera:!!d&&d.version,webkit:b.indexOf(" applewebkit/")> -1,air:b.indexOf(" adobeair/")>-1,mac:b.indexOf("macintosh")>-1,quirks:document.compatMode=="BackCompat",mobile:b.indexOf("mobile")>-1,iOS:/(ipad|iphone|ipod)/.test(b),isCustomDomain:function(){if(!this.ie)return false;var a=document.domain,e=window.location.hostname;return a!=e&&a!="["+e+"]"},secure:location.protocol=="https:"};a.gecko=navigator.product=="Gecko"&&!a.webkit&&!a.opera;if(a.webkit)b.indexOf("chrome")>-1?a.chrome=true:a.safari=true;var e=0;if(a.ie){e=a.quirks||!document.documentMode? parseFloat(b.match(/msie (\d+)/)[1]):document.documentMode;a.ie9Compat=e==9;a.ie8Compat=e==8;a.ie7Compat=e==7;a.ie6Compat=e<7||a.quirks}if(a.gecko){var h=b.match(/rv:([\d\.]+)/);if(h){h=h[1].split(".");e=h[0]*1E4+(h[1]||0)*100+(h[2]||0)*1}}a.opera&&(e=parseFloat(d.version()));a.air&&(e=parseFloat(b.match(/ adobeair\/(\d+)/)[1]));a.webkit&&(e=parseFloat(b.match(/ applewebkit\/(\d+)/)[1]));a.version=e;a.isCompatible=a.iOS&&e>=534||!a.mobile&&(a.ie&&e>6||a.gecko&&e>=10801||a.opera&&e>=9.5||a.air&&e>= @@ -26,229 +26,230 @@ this.prototypedCopy(b.prototype);e.prototype.constructor=e;e.base=b;e.baseProto= /^-?\d+\.?\d*px$/,e;return function(b){e=CKEDITOR.tools.trim(b+"")+"px";return a.test(e)?e:b||""}}(),convertToPx:function(){var a;return function(e){if(!a){a=CKEDITOR.dom.element.createFromHtml('<div style="position:absolute;left:-9999px;top:-9999px;margin:0px;padding:0px;border:0px;"></div>',CKEDITOR.document);CKEDITOR.document.getBody().append(a)}if(!/%$/.test(e)){a.setStyle("width",e);return a.$.clientWidth}return e}}(),repeat:function(a,e){return Array(e+1).join(a)},tryThese:function(){for(var a, e=0,b=arguments.length;e<b;e++){var g=arguments[e];try{a=g();break}catch(f){}}return a},genKey:function(){return Array.prototype.slice.call(arguments).join("-")},defer:function(a){return function(){var e=arguments,b=this;window.setTimeout(function(){a.apply(b,e)},0)}},normalizeCssText:function(a,e){var b=[],g,f=CKEDITOR.tools.parseCssText(a,true,e);for(g in f)b.push(g+":"+f[g]);b.sort();return b.length?b.join(";")+";":""},convertRgbToHex:function(a){return a.replace(/(?:rgb\(\s*(\d+)\s*,\s*(\d+)\s*,\s*(\d+)\s*\))/gi, function(a,b,g,f){a=[b,g,f];for(b=0;b<3;b++)a[b]=("0"+parseInt(a[b],10).toString(16)).slice(-2);return"#"+a.join("")})},parseCssText:function(a,b,h){var g={};if(h){h=new CKEDITOR.dom.element("span");h.setAttribute("style",a);a=CKEDITOR.tools.convertRgbToHex(h.getAttribute("style")||"")}if(!a||a==";")return g;a.replace(/"/g,'"').replace(/\s*([^:;\s]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(a,i,c){if(b){i=i.toLowerCase();i=="font-family"&&(c=c.toLowerCase().replace(/["']/g,"").replace(/\s*,\s*/g,",")); -c=CKEDITOR.tools.trim(c)}g[i]=c});return g},writeCssText:function(a,b){var h,g=[];for(h in a)g.push(h+":"+a[h]);b&&g.sort();return g.join("; ")},objectCompare:function(a,b,h){var g;if(!a&&!b)return true;if(!a||!b)return false;for(g in a)if(a[g]!=b[g])return false;if(!h)for(g in b)if(a[g]!=b[g])return false;return true},objectKeys:function(a){var b=[],h;for(h in a)b.push(h);return b}}}(),CKEDITOR.dtd=function(){var b=CKEDITOR.tools.extend,d=function(a,b){for(var e=CKEDITOR.tools.clone(a),f=1;f<arguments.length;f++){var b= -arguments[f],c;for(c in b)delete e[c]}return e},a={},e={},h={address:1,article:1,aside:1,blockquote:1,details:1,div:1,dl:1,fieldset:1,figure:1,footer:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,header:1,hgroup:1,hr:1,menu:1,nav:1,ol:1,p:1,pre:1,section:1,table:1,ul:1},g={command:1,link:1,meta:1,noscript:1,script:1,style:1},f={},i={"#":1},c={center:1,dir:1,noframes:1};b(a,{a:1,abbr:1,area:1,audio:1,b:1,bdi:1,bdo:1,br:1,button:1,canvas:1,cite:1,code:1,command:1,datalist:1,del:1,dfn:1,em:1,embed:1,i:1,iframe:1, -img:1,input:1,ins:1,kbd:1,keygen:1,label:1,map:1,mark:1,meter:1,noscript:1,object:1,output:1,progress:1,q:1,ruby:1,s:1,samp:1,script:1,select:1,small:1,span:1,strong:1,sub:1,sup:1,textarea:1,time:1,u:1,"var":1,video:1,wbr:1},i,{acronym:1,applet:1,basefont:1,big:1,font:1,isindex:1,strike:1,style:1,tt:1});b(e,h,a,c);d={a:d(a,{a:1,button:1}),abbr:a,address:e,area:f,article:b({style:1},e),aside:b({style:1},e),audio:b({source:1,track:1},e),b:a,base:f,bdi:a,bdo:a,blockquote:e,body:e,br:f,button:d(a,{a:1, -button:1}),canvas:a,caption:e,cite:a,code:a,col:f,colgroup:{col:1},command:f,datalist:b({option:1},a),dd:e,del:a,details:b({summary:1},e),dfn:a,div:b({style:1},e),dl:{dt:1,dd:1},dt:e,em:a,embed:f,fieldset:b({legend:1},e),figcaption:e,figure:b({figcaption:1},e),footer:e,form:e,h1:a,h2:a,h3:a,h4:a,h5:a,h6:a,head:b({title:1,base:1},g),header:e,hgroup:{h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},hr:f,html:b({head:1,body:1},e,g),i:a,iframe:i,img:f,input:f,ins:a,kbd:a,keygen:f,label:a,legend:a,li:e,link:f,map:e,mark:a, -menu:b({li:1},e),meta:f,meter:d(a,{meter:1}),nav:e,noscript:b({link:1,meta:1,style:1},a),object:b({param:1},a),ol:{li:1},optgroup:{option:1},option:i,output:a,p:a,param:f,pre:a,progress:d(a,{progress:1}),q:a,rp:a,rt:a,ruby:b({rp:1,rt:1},a),s:a,samp:a,script:i,section:b({style:1},e),select:{optgroup:1,option:1},small:a,source:f,span:a,strong:a,style:i,sub:a,summary:a,sup:a,table:{caption:1,colgroup:1,thead:1,tfoot:1,tbody:1,tr:1},tbody:{tr:1},td:e,textarea:i,tfoot:{tr:1},th:e,thead:{tr:1},time:d(a, -{time:1}),title:i,tr:{th:1,td:1},track:f,u:a,ul:{li:1},"var":a,video:b({source:1,track:1},e),wbr:f,acronym:a,applet:b({param:1},e),basefont:f,big:a,center:e,dialog:f,dir:{li:1},font:a,isindex:f,noframes:e,strike:a,tt:a};b(d,{$block:b({audio:1,dd:1,dt:1,li:1,video:1},h,c),$blockLimit:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1,fieldset:1,figure:1,footer:1,form:1,header:1,hgroup:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1},$cdata:{script:1,style:1},$editable:{address:1, -article:1,aside:1,blockquote:1,body:1,details:1,div:1,fieldset:1,footer:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,header:1,hgroup:1,nav:1,p:1,pre:1,section:1},$empty:{area:1,base:1,basefont:1,br:1,col:1,command:1,dialog:1,embed:1,hr:1,img:1,input:1,isindex:1,keygen:1,link:1,meta:1,param:1,source:1,track:1,wbr:1},$inline:a,$list:{dl:1,ol:1,ul:1},$listItem:{dd:1,dt:1,li:1},$nonBodyContent:b({body:1,head:1,html:1},d.head),$nonEditable:{applet:1,audio:1,button:1,embed:1,iframe:1,map:1,object:1,option:1, -param:1,script:1,textarea:1,video:1},$object:{applet:1,audio:1,button:1,hr:1,iframe:1,img:1,input:1,object:1,select:1,table:1,textarea:1,video:1},$removeEmpty:{abbr:1,acronym:1,b:1,bdi:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,mark:1,meter:1,output:1,q:1,ruby:1,s:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,time:1,tt:1,u:1,"var":1},$tabIndex:{a:1,area:1,button:1,input:1,object:1,select:1,textarea:1},$tableContent:{caption:1,col:1,colgroup:1,tbody:1,td:1, -tfoot:1,th:1,thead:1,tr:1},$transparent:{a:1,audio:1,canvas:1,del:1,ins:1,map:1,noscript:1,object:1,video:1},$intermediate:{caption:1,colgroup:1,dd:1,dt:1,figcaption:1,legend:1,li:1,optgroup:1,option:1,rp:1,rt:1,summary:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1}});return d}(),CKEDITOR.dom.event=function(b){this.$=b},CKEDITOR.dom.event.prototype={getKey:function(){return this.$.keyCode||this.$.which},getKeystroke:function(){var b=this.getKey();if(this.$.ctrlKey||this.$.metaKey)b=b+CKEDITOR.CTRL;this.$.shiftKey&& -(b=b+CKEDITOR.SHIFT);this.$.altKey&&(b=b+CKEDITOR.ALT);return b},preventDefault:function(b){var d=this.$;d.preventDefault?d.preventDefault():d.returnValue=false;b&&this.stopPropagation()},stopPropagation:function(){var b=this.$;b.stopPropagation?b.stopPropagation():b.cancelBubble=true},getTarget:function(){var b=this.$.target||this.$.srcElement;return b?new CKEDITOR.dom.node(b):null},getPhase:function(){return this.$.eventPhase||2},getPageOffset:function(){var b=this.getTarget().getDocument().$;return{x:this.$.pageX|| -this.$.clientX+(b.documentElement.scrollLeft||b.body.scrollLeft),y:this.$.pageY||this.$.clientY+(b.documentElement.scrollTop||b.body.scrollTop)}}},CKEDITOR.CTRL=1114112,CKEDITOR.SHIFT=2228224,CKEDITOR.ALT=4456448,CKEDITOR.EVENT_PHASE_CAPTURING=1,CKEDITOR.EVENT_PHASE_AT_TARGET=2,CKEDITOR.EVENT_PHASE_BUBBLING=3,CKEDITOR.dom.domObject=function(b){if(b)this.$=b},CKEDITOR.dom.domObject.prototype=function(){var b=function(b,a){return function(e){typeof CKEDITOR!="undefined"&&b.fire(a,new CKEDITOR.dom.event(e))}}; -return{getPrivate:function(){var b;if(!(b=this.getCustomData("_")))this.setCustomData("_",b={});return b},on:function(d){var a=this.getCustomData("_cke_nativeListeners");if(!a){a={};this.setCustomData("_cke_nativeListeners",a)}if(!a[d]){a=a[d]=b(this,d);this.$.addEventListener?this.$.addEventListener(d,a,!!CKEDITOR.event.useCapture):this.$.attachEvent&&this.$.attachEvent("on"+d,a)}return CKEDITOR.event.prototype.on.apply(this,arguments)},removeListener:function(b){CKEDITOR.event.prototype.removeListener.apply(this, -arguments);if(!this.hasListeners(b)){var a=this.getCustomData("_cke_nativeListeners"),e=a&&a[b];if(e){this.$.removeEventListener?this.$.removeEventListener(b,e,false):this.$.detachEvent&&this.$.detachEvent("on"+b,e);delete a[b]}}},removeAllListeners:function(){var b=this.getCustomData("_cke_nativeListeners"),a;for(a in b){var e=b[a];this.$.detachEvent?this.$.detachEvent("on"+a,e):this.$.removeEventListener&&this.$.removeEventListener(a,e,false);delete b[a]}}}}(),function(b){var d={};CKEDITOR.on("reset", -function(){d={}});b.equals=function(a){try{return a&&a.$===this.$}catch(b){return false}};b.setCustomData=function(a,b){var h=this.getUniqueId();(d[h]||(d[h]={}))[a]=b;return this};b.getCustomData=function(a){var b=this.$["data-cke-expando"];return(b=b&&d[b])&&a in b?b[a]:null};b.removeCustomData=function(a){var b=this.$["data-cke-expando"],b=b&&d[b],h,g;if(b){h=b[a];g=a in b;delete b[a]}return g?h:null};b.clearCustomData=function(){this.removeAllListeners();var a=this.$["data-cke-expando"];a&&delete d[a]}; -b.getUniqueId=function(){return this.$["data-cke-expando"]||(this.$["data-cke-expando"]=CKEDITOR.tools.getNextNumber())};CKEDITOR.event.implementOn(b)}(CKEDITOR.dom.domObject.prototype),CKEDITOR.dom.node=function(b){return b?new CKEDITOR.dom[b.nodeType==CKEDITOR.NODE_DOCUMENT?"document":b.nodeType==CKEDITOR.NODE_ELEMENT?"element":b.nodeType==CKEDITOR.NODE_TEXT?"text":b.nodeType==CKEDITOR.NODE_COMMENT?"comment":b.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT?"documentFragment":"domObject"](b):this},CKEDITOR.dom.node.prototype= -new CKEDITOR.dom.domObject,CKEDITOR.NODE_ELEMENT=1,CKEDITOR.NODE_DOCUMENT=9,CKEDITOR.NODE_TEXT=3,CKEDITOR.NODE_COMMENT=8,CKEDITOR.NODE_DOCUMENT_FRAGMENT=11,CKEDITOR.POSITION_IDENTICAL=0,CKEDITOR.POSITION_DISCONNECTED=1,CKEDITOR.POSITION_FOLLOWING=2,CKEDITOR.POSITION_PRECEDING=4,CKEDITOR.POSITION_IS_CONTAINED=8,CKEDITOR.POSITION_CONTAINS=16,CKEDITOR.tools.extend(CKEDITOR.dom.node.prototype,{appendTo:function(b,d){b.append(this,d);return b},clone:function(b,d){var a=this.$.cloneNode(b),e=function(a){a["data-cke-expando"]&& -(a["data-cke-expando"]=false);if(a.nodeType==CKEDITOR.NODE_ELEMENT){d||a.removeAttribute("id",false);if(b)for(var a=a.childNodes,g=0;g<a.length;g++)e(a[g])}};e(a);return new CKEDITOR.dom.node(a)},hasPrevious:function(){return!!this.$.previousSibling},hasNext:function(){return!!this.$.nextSibling},insertAfter:function(b){b.$.parentNode.insertBefore(this.$,b.$.nextSibling);return b},insertBefore:function(b){b.$.parentNode.insertBefore(this.$,b.$);return b},insertBeforeMe:function(b){this.$.parentNode.insertBefore(b.$, -this.$);return b},getAddress:function(b){for(var d=[],a=this.getDocument().$.documentElement,e=this.$;e&&e!=a;){var h=e.parentNode;h&&d.unshift(this.getIndex.call({$:e},b));e=h}return d},getDocument:function(){return new CKEDITOR.dom.document(this.$.ownerDocument||this.$.parentNode.ownerDocument)},getIndex:function(b){var d=this.$,a=-1,e;if(!this.$.parentNode)return a;do if(!b||!(d!=this.$&&d.nodeType==CKEDITOR.NODE_TEXT&&(e||!d.nodeValue))){a++;e=d.nodeType==CKEDITOR.NODE_TEXT}while(d=d.previousSibling); -return a},getNextSourceNode:function(b,d,a){if(a&&!a.call)var e=a,a=function(a){return!a.equals(e)};var b=!b&&this.getFirst&&this.getFirst(),h;if(!b){if(this.type==CKEDITOR.NODE_ELEMENT&&a&&a(this,true)===false)return null;b=this.getNext()}for(;!b&&(h=(h||this).getParent());){if(a&&a(h,true)===false)return null;b=h.getNext()}return!b||a&&a(b)===false?null:d&&d!=b.type?b.getNextSourceNode(false,d,a):b},getPreviousSourceNode:function(b,d,a){if(a&&!a.call)var e=a,a=function(a){return!a.equals(e)};var b= -!b&&this.getLast&&this.getLast(),h;if(!b){if(this.type==CKEDITOR.NODE_ELEMENT&&a&&a(this,true)===false)return null;b=this.getPrevious()}for(;!b&&(h=(h||this).getParent());){if(a&&a(h,true)===false)return null;b=h.getPrevious()}return!b||a&&a(b)===false?null:d&&b.type!=d?b.getPreviousSourceNode(false,d,a):b},getPrevious:function(b){var d=this.$,a;do a=(d=d.previousSibling)&&d.nodeType!=10&&new CKEDITOR.dom.node(d);while(a&&b&&!b(a));return a},getNext:function(b){var d=this.$,a;do a=(d=d.nextSibling)&& -new CKEDITOR.dom.node(d);while(a&&b&&!b(a));return a},getParent:function(b){var d=this.$.parentNode;return d&&(d.nodeType==CKEDITOR.NODE_ELEMENT||b&&d.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)?new CKEDITOR.dom.node(d):null},getParents:function(b){var d=this,a=[];do a[b?"push":"unshift"](d);while(d=d.getParent());return a},getCommonAncestor:function(b){if(b.equals(this))return this;if(b.contains&&b.contains(this))return b;var d=this.contains?this:this.getParent();do if(d.contains(b))return d;while(d= -d.getParent());return null},getPosition:function(b){var d=this.$,a=b.$;if(d.compareDocumentPosition)return d.compareDocumentPosition(a);if(d==a)return CKEDITOR.POSITION_IDENTICAL;if(this.type==CKEDITOR.NODE_ELEMENT&&b.type==CKEDITOR.NODE_ELEMENT){if(d.contains){if(d.contains(a))return CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING;if(a.contains(d))return CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING}if("sourceIndex"in d)return d.sourceIndex<0||a.sourceIndex<0?CKEDITOR.POSITION_DISCONNECTED: -d.sourceIndex<a.sourceIndex?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING}for(var d=this.getAddress(),b=b.getAddress(),a=Math.min(d.length,b.length),e=0;e<=a-1;e++)if(d[e]!=b[e]){if(e<a)return d[e]<b[e]?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING;break}return d.length<b.length?CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING},getAscendant:function(b,d){var a=this.$,e;if(!d)a=a.parentNode;for(;a;){if(a.nodeName&& -(e=a.nodeName.toLowerCase(),typeof b=="string"?e==b:e in b))return new CKEDITOR.dom.node(a);try{a=a.parentNode}catch(h){a=null}}return null},hasAscendant:function(b,d){var a=this.$;if(!d)a=a.parentNode;for(;a;){if(a.nodeName&&a.nodeName.toLowerCase()==b)return true;a=a.parentNode}return false},move:function(b,d){b.append(this.remove(),d)},remove:function(b){var d=this.$,a=d.parentNode;if(a){if(b)for(;b=d.firstChild;)a.insertBefore(d.removeChild(b),d);a.removeChild(d)}return this},replace:function(b){this.insertBefore(b); -b.remove()},trim:function(){this.ltrim();this.rtrim()},ltrim:function(){for(var b;this.getFirst&&(b=this.getFirst());){if(b.type==CKEDITOR.NODE_TEXT){var d=CKEDITOR.tools.ltrim(b.getText()),a=b.getLength();if(d){if(d.length<a){b.split(a-d.length);this.$.removeChild(this.$.firstChild)}}else{b.remove();continue}}break}},rtrim:function(){for(var b;this.getLast&&(b=this.getLast());){if(b.type==CKEDITOR.NODE_TEXT){var d=CKEDITOR.tools.rtrim(b.getText()),a=b.getLength();if(d){if(d.length<a){b.split(d.length); -this.$.lastChild.parentNode.removeChild(this.$.lastChild)}}else{b.remove();continue}}break}if(!CKEDITOR.env.ie&&!CKEDITOR.env.opera)(b=this.$.lastChild)&&(b.type==1&&b.nodeName.toLowerCase()=="br")&&b.parentNode.removeChild(b)},isReadOnly:function(){var b=this;this.type!=CKEDITOR.NODE_ELEMENT&&(b=this.getParent());if(b&&typeof b.$.isContentEditable!="undefined")return!(b.$.isContentEditable||b.data("cke-editable"));for(;b;){if(b.data("cke-editable"))break;if(b.getAttribute("contentEditable")=="false")return true; -if(b.getAttribute("contentEditable")=="true")break;b=b.getParent()}return!b}}),CKEDITOR.dom.window=function(b){CKEDITOR.dom.domObject.call(this,b)},CKEDITOR.dom.window.prototype=new CKEDITOR.dom.domObject,CKEDITOR.tools.extend(CKEDITOR.dom.window.prototype,{focus:function(){this.$.focus()},getViewPaneSize:function(){var b=this.$.document,d=b.compatMode=="CSS1Compat";return{width:(d?b.documentElement.clientWidth:b.body.clientWidth)||0,height:(d?b.documentElement.clientHeight:b.body.clientHeight)|| -0}},getScrollPosition:function(){var b=this.$;if("pageXOffset"in b)return{x:b.pageXOffset||0,y:b.pageYOffset||0};b=b.document;return{x:b.documentElement.scrollLeft||b.body.scrollLeft||0,y:b.documentElement.scrollTop||b.body.scrollTop||0}},getFrame:function(){var b=this.$.frameElement;return b?new CKEDITOR.dom.element.get(b):null}}),CKEDITOR.dom.document=function(b){CKEDITOR.dom.domObject.call(this,b)},CKEDITOR.dom.document.prototype=new CKEDITOR.dom.domObject,CKEDITOR.tools.extend(CKEDITOR.dom.document.prototype, -{type:CKEDITOR.NODE_DOCUMENT,appendStyleSheet:function(b){if(this.$.createStyleSheet)this.$.createStyleSheet(b);else{var d=new CKEDITOR.dom.element("link");d.setAttributes({rel:"stylesheet",type:"text/css",href:b});this.getHead().append(d)}},appendStyleText:function(b){if(this.$.createStyleSheet){var d=this.$.createStyleSheet("");d.cssText=b}else{var a=new CKEDITOR.dom.element("style",this);a.append(new CKEDITOR.dom.text(b,this));this.getHead().append(a)}return d||a.$.sheet},createElement:function(b, -d){var a=new CKEDITOR.dom.element(b,this);if(d){d.attributes&&a.setAttributes(d.attributes);d.styles&&a.setStyles(d.styles)}return a},createText:function(b){return new CKEDITOR.dom.text(b,this)},focus:function(){this.getWindow().focus()},getActive:function(){return new CKEDITOR.dom.element(this.$.activeElement)},getById:function(b){return(b=this.$.getElementById(b))?new CKEDITOR.dom.element(b):null},getByAddress:function(b,d){for(var a=this.$.documentElement,e=0;a&&e<b.length;e++){var h=b[e];if(d)for(var g= --1,f=0;f<a.childNodes.length;f++){var i=a.childNodes[f];if(!(d===true&&i.nodeType==3&&i.previousSibling&&i.previousSibling.nodeType==3)){g++;if(g==h){a=i;break}}}else a=a.childNodes[h]}return a?new CKEDITOR.dom.node(a):null},getElementsByTag:function(b,d){if((!CKEDITOR.env.ie||document.documentMode>8)&&d)b=d+":"+b;return new CKEDITOR.dom.nodeList(this.$.getElementsByTagName(b))},getHead:function(){var b=this.$.getElementsByTagName("head")[0];return b=b?new CKEDITOR.dom.element(b):this.getDocumentElement().append(new CKEDITOR.dom.element("head"), -true)},getBody:function(){return new CKEDITOR.dom.element(this.$.body)},getDocumentElement:function(){return new CKEDITOR.dom.element(this.$.documentElement)},getWindow:function(){var b=new CKEDITOR.dom.window(this.$.parentWindow||this.$.defaultView);return(this.getWindow=function(){return b})()},write:function(b){this.$.open("text/html","replace");CKEDITOR.env.isCustomDomain()&&(this.$.domain=document.domain);this.$.write(b);this.$.close()}}),CKEDITOR.dom.nodeList=function(b){this.$=b},CKEDITOR.dom.nodeList.prototype= -{count:function(){return this.$.length},getItem:function(b){if(b<0||b>=this.$.length)return null;return(b=this.$[b])?new CKEDITOR.dom.node(b):null}},CKEDITOR.dom.element=function(b,d){typeof b=="string"&&(b=(d?d.$:document).createElement(b));CKEDITOR.dom.domObject.call(this,b)},CKEDITOR.dom.element.get=function(b){return(b=typeof b=="string"?document.getElementById(b)||document.getElementsByName(b)[0]:b)&&(b.$?b:new CKEDITOR.dom.element(b))},CKEDITOR.dom.element.prototype=new CKEDITOR.dom.node,CKEDITOR.dom.element.createFromHtml= -function(b,d){var a=new CKEDITOR.dom.element("div",d);a.setHtml(b);return a.getFirst().remove()},CKEDITOR.dom.element.setMarker=function(b,d,a,e){var h=d.getCustomData("list_marker_id")||d.setCustomData("list_marker_id",CKEDITOR.tools.getNextNumber()).getCustomData("list_marker_id"),g=d.getCustomData("list_marker_names")||d.setCustomData("list_marker_names",{}).getCustomData("list_marker_names");b[h]=d;g[a]=1;return d.setCustomData(a,e)},CKEDITOR.dom.element.clearAllMarkers=function(b){for(var d in b)CKEDITOR.dom.element.clearMarkers(b, -b[d],1)},CKEDITOR.dom.element.clearMarkers=function(b,d,a){var e=d.getCustomData("list_marker_names"),h=d.getCustomData("list_marker_id"),g;for(g in e)d.removeCustomData(g);d.removeCustomData("list_marker_names");if(a){d.removeCustomData("list_marker_id");delete b[h]}},function(){function b(a){for(var b=0,h=0,g=d[a].length;h<g;h++)b=b+(parseInt(this.getComputedStyle(d[a][h])||0,10)||0);return b}CKEDITOR.tools.extend(CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_ELEMENT,addClass:function(a){var b= -this.$.className;b&&(RegExp("(?:^|\\s)"+a+"(?:\\s|$)","").test(b)||(b=b+(" "+a)));this.$.className=b||a},removeClass:function(a){var b=this.getAttribute("class");if(b){a=RegExp("(?:^|\\s+)"+a+"(?=\\s|$)","i");if(a.test(b))(b=b.replace(a,"").replace(/^\s+/,""))?this.setAttribute("class",b):this.removeAttribute("class")}return this},hasClass:function(a){return RegExp("(?:^|\\s+)"+a+"(?=\\s|$)","").test(this.getAttribute("class"))},append:function(a,b){typeof a=="string"&&(a=this.getDocument().createElement(a)); -b?this.$.insertBefore(a.$,this.$.firstChild):this.$.appendChild(a.$);return a},appendHtml:function(a){if(this.$.childNodes.length){var b=new CKEDITOR.dom.element("div",this.getDocument());b.setHtml(a);b.moveChildren(this)}else this.setHtml(a)},appendText:function(a){this.$.text!=void 0?this.$.text=this.$.text+a:this.append(new CKEDITOR.dom.text(a))},appendBogus:function(){for(var a=this.getLast();a&&a.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.rtrim(a.getText());)a=a.getPrevious();if(!a||!a.is||!a.is("br")){a= -CKEDITOR.env.opera?this.getDocument().createText(""):this.getDocument().createElement("br");CKEDITOR.env.gecko&&a.setAttribute("type","_moz");this.append(a)}},breakParent:function(a){var b=new CKEDITOR.dom.range(this.getDocument());b.setStartAfter(this);b.setEndAfter(a);a=b.extractContents();b.insertNode(this.remove());a.insertAfterNode(this)},contains:CKEDITOR.env.ie||CKEDITOR.env.webkit?function(a){var b=this.$;return a.type!=CKEDITOR.NODE_ELEMENT?b.contains(a.getParent().$):b!=a.$&&b.contains(a.$)}: -function(a){return!!(this.$.compareDocumentPosition(a.$)&16)},focus:function(){function a(){try{this.$.focus()}catch(a){}}return function(b){b?CKEDITOR.tools.setTimeout(a,100,this):a.call(this)}}(),getHtml:function(){var a=this.$.innerHTML;return CKEDITOR.env.ie?a.replace(/<\?[^>]*>/g,""):a},getOuterHtml:function(){if(this.$.outerHTML)return this.$.outerHTML.replace(/<\?[^>]*>/,"");var a=this.$.ownerDocument.createElement("div");a.appendChild(this.$.cloneNode(true));return a.innerHTML},getClientRect:function(){var a= -CKEDITOR.tools.extend({},this.$.getBoundingClientRect());!a.width&&(a.width=a.right-a.left);!a.height&&(a.height=a.bottom-a.top);return a},setHtml:function(){var a=function(a){return this.$.innerHTML=a};return CKEDITOR.env.ie&&CKEDITOR.env.version<9?function(a){try{return this.$.innerHTML=a}catch(b){this.$.innerHTML="";var g=new CKEDITOR.dom.element("body",this.getDocument());g.$.innerHTML=a;for(g=g.getChildren();g.count();)this.append(g.getItem(0));return a}}:a}(),setText:function(a){CKEDITOR.dom.element.prototype.setText= -this.$.innerText!=void 0?function(a){return this.$.innerText=a}:function(a){return this.$.textContent=a};return this.setText(a)},getAttribute:function(){var a=function(a){return this.$.getAttribute(a,2)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)?function(a){switch(a){case "class":a="className";break;case "http-equiv":a="httpEquiv";break;case "name":return this.$.name;case "tabindex":a=this.$.getAttribute(a,2);a!==0&&this.$.tabIndex===0&&(a=null);return a;case "checked":a= -this.$.attributes.getNamedItem(a);return(a.specified?a.nodeValue:this.$.checked)?"checked":null;case "hspace":case "value":return this.$[a];case "style":return this.$.style.cssText;case "contenteditable":case "contentEditable":return this.$.attributes.getNamedItem("contentEditable").specified?this.$.getAttribute("contentEditable"):null}return this.$.getAttribute(a,2)}:a}(),getChildren:function(){return new CKEDITOR.dom.nodeList(this.$.childNodes)},getComputedStyle:CKEDITOR.env.ie?function(a){return this.$.currentStyle[CKEDITOR.tools.cssStyleToDomStyle(a)]}: -function(a){var b=this.getWindow().$.getComputedStyle(this.$,null);return b?b.getPropertyValue(a):""},getDtd:function(){var a=CKEDITOR.dtd[this.getName()];this.getDtd=function(){return a};return a},getElementsByTag:CKEDITOR.dom.document.prototype.getElementsByTag,getTabIndex:CKEDITOR.env.ie?function(){var a=this.$.tabIndex;a===0&&(!CKEDITOR.dtd.$tabIndex[this.getName()]&&parseInt(this.getAttribute("tabindex"),10)!==0)&&(a=-1);return a}:CKEDITOR.env.webkit?function(){var a=this.$.tabIndex;if(a==void 0){a= -parseInt(this.getAttribute("tabindex"),10);isNaN(a)&&(a=-1)}return a}:function(){return this.$.tabIndex},getText:function(){return this.$.textContent||this.$.innerText||""},getWindow:function(){return this.getDocument().getWindow()},getId:function(){return this.$.id||null},getNameAtt:function(){return this.$.name||null},getName:function(){var a=this.$.nodeName.toLowerCase();if(CKEDITOR.env.ie&&!(document.documentMode>8)){var b=this.$.scopeName;b!="HTML"&&(a=b.toLowerCase()+":"+a)}return(this.getName= -function(){return a})()},getValue:function(){return this.$.value},getFirst:function(a){var b=this.$.firstChild;(b=b&&new CKEDITOR.dom.node(b))&&(a&&!a(b))&&(b=b.getNext(a));return b},getLast:function(a){var b=this.$.lastChild;(b=b&&new CKEDITOR.dom.node(b))&&(a&&!a(b))&&(b=b.getPrevious(a));return b},getStyle:function(a){return this.$.style[CKEDITOR.tools.cssStyleToDomStyle(a)]},is:function(){var a=this.getName();if(typeof arguments[0]=="object")return!!arguments[0][a];for(var b=0;b<arguments.length;b++)if(arguments[b]== -a)return true;return false},isEditable:function(a){var b=this.getName();if(this.isReadOnly()||this.getComputedStyle("display")=="none"||this.getComputedStyle("visibility")=="hidden"||CKEDITOR.dtd.$nonEditable[b]||CKEDITOR.dtd.$empty[b]||this.is("a")&&(this.data("cke-saved-name")||this.hasAttribute("name"))&&!this.getChildCount())return false;if(a!==false){a=CKEDITOR.dtd[b]||CKEDITOR.dtd.span;return!(!a||!a["#"])}return true},isIdentical:function(a){var b=this.clone(0,1),a=a.clone(0,1);b.removeAttributes(["_moz_dirty", -"data-cke-expando","data-cke-saved-href","data-cke-saved-name"]);a.removeAttributes(["_moz_dirty","data-cke-expando","data-cke-saved-href","data-cke-saved-name"]);if(b.$.isEqualNode){b.$.style.cssText=CKEDITOR.tools.normalizeCssText(b.$.style.cssText);a.$.style.cssText=CKEDITOR.tools.normalizeCssText(a.$.style.cssText);return b.$.isEqualNode(a.$)}b=b.getOuterHtml();a=a.getOuterHtml();if(CKEDITOR.env.ie&&CKEDITOR.env.version<9&&this.is("a")){var h=this.getParent();if(h.type==CKEDITOR.NODE_ELEMENT){h= -h.clone();h.setHtml(b);b=h.getHtml();h.setHtml(a);a=h.getHtml()}}return b==a},isVisible:function(){var a=(this.$.offsetHeight||this.$.offsetWidth)&&this.getComputedStyle("visibility")!="hidden",b,h;if(a&&(CKEDITOR.env.webkit||CKEDITOR.env.opera)){b=this.getWindow();if(!b.equals(CKEDITOR.document.getWindow())&&(h=b.$.frameElement))a=(new CKEDITOR.dom.element(h)).isVisible()}return!!a},isEmptyInlineRemoveable:function(){if(!CKEDITOR.dtd.$removeEmpty[this.getName()])return false;for(var a=this.getChildren(), -b=0,h=a.count();b<h;b++){var g=a.getItem(b);if(!(g.type==CKEDITOR.NODE_ELEMENT&&g.data("cke-bookmark"))&&(g.type==CKEDITOR.NODE_ELEMENT&&!g.isEmptyInlineRemoveable()||g.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(g.getText())))return false}return true},hasAttributes:CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)?function(){for(var a=this.$.attributes,b=0;b<a.length;b++){var h=a[b];switch(h.nodeName){case "class":if(this.getAttribute("class"))return true;case "data-cke-expando":continue; -default:if(h.specified)return true}}return false}:function(){var a=this.$.attributes,b=a.length,h={"data-cke-expando":1,_moz_dirty:1};return b>0&&(b>2||!h[a[0].nodeName]||b==2&&!h[a[1].nodeName])},hasAttribute:function(){function a(a){a=this.$.attributes.getNamedItem(a);return!(!a||!a.specified)}return CKEDITOR.env.ie&&CKEDITOR.env.version<8?function(b){return b=="name"?!!this.$.name:a.call(this,b)}:a}(),hide:function(){this.setStyle("display","none")},moveChildren:function(a,b){var h=this.$,a=a.$; -if(h!=a){var g;if(b)for(;g=h.lastChild;)a.insertBefore(h.removeChild(g),a.firstChild);else for(;g=h.firstChild;)a.appendChild(h.removeChild(g))}},mergeSiblings:function(){function a(a,b,g){if(b&&b.type==CKEDITOR.NODE_ELEMENT){for(var f=[];b.data("cke-bookmark")||b.isEmptyInlineRemoveable();){f.push(b);b=g?b.getNext():b.getPrevious();if(!b||b.type!=CKEDITOR.NODE_ELEMENT)return}if(a.isIdentical(b)){for(var i=g?a.getLast():a.getFirst();f.length;)f.shift().move(a,!g);b.moveChildren(a,!g);b.remove();i&& -i.type==CKEDITOR.NODE_ELEMENT&&i.mergeSiblings()}}}return function(b){if(b===false||CKEDITOR.dtd.$removeEmpty[this.getName()]||this.is("a")){a(this,this.getNext(),true);a(this,this.getPrevious())}}}(),show:function(){this.setStyles({display:"",visibility:""})},setAttribute:function(){var a=function(a,b){this.$.setAttribute(a,b);return this};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)?function(b,h){b=="class"?this.$.className=h:b=="style"?this.$.style.cssText=h:b=="tabindex"? -this.$.tabIndex=h:b=="checked"?this.$.checked=h:b=="contenteditable"?a.call(this,"contentEditable",h):a.apply(this,arguments);return this}:CKEDITOR.env.ie8Compat&&CKEDITOR.env.secure?function(b,h){if(b=="src"&&h.match(/^http:\/\//))try{a.apply(this,arguments)}catch(g){}else a.apply(this,arguments);return this}:a}(),setAttributes:function(a){for(var b in a)this.setAttribute(b,a[b]);return this},setValue:function(a){this.$.value=a;return this},removeAttribute:function(){var a=function(a){this.$.removeAttribute(a)}; -return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)?function(a){a=="class"?a="className":a=="tabindex"?a="tabIndex":a=="contenteditable"&&(a="contentEditable");this.$.removeAttribute(a)}:a}(),removeAttributes:function(a){if(CKEDITOR.tools.isArray(a))for(var b=0;b<a.length;b++)this.removeAttribute(a[b]);else for(b in a)a.hasOwnProperty(b)&&this.removeAttribute(b)},removeStyle:function(a){var b=this.$.style;if(!b.removeProperty&&(a=="border"||a=="margin"||a=="padding")){var h=["top", -"left","right","bottom"],g;a=="border"&&(g=["color","style","width"]);for(var b=[],f=0;f<h.length;f++)if(g)for(var i=0;i<g.length;i++)b.push([a,h[f],g[i]].join("-"));else b.push([a,h[f]].join("-"));for(a=0;a<b.length;a++)this.removeStyle(b[a])}else{b.removeProperty?b.removeProperty(a):b.removeAttribute(CKEDITOR.tools.cssStyleToDomStyle(a));this.$.style.cssText||this.removeAttribute("style")}},setStyle:function(a,b){this.$.style[CKEDITOR.tools.cssStyleToDomStyle(a)]=b;return this},setStyles:function(a){for(var b in a)this.setStyle(b, -a[b]);return this},setOpacity:function(a){if(CKEDITOR.env.ie&&CKEDITOR.env.version<9){a=Math.round(a*100);this.setStyle("filter",a>=100?"":"progid:DXImageTransform.Microsoft.Alpha(opacity="+a+")")}else this.setStyle("opacity",a)},unselectable:function(){this.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select","none"));if(CKEDITOR.env.ie||CKEDITOR.env.opera){this.setAttribute("unselectable","on");for(var a,b=this.getElementsByTag("*"),h=0,g=b.count();h<g;h++){a=b.getItem(h);a.setAttribute("unselectable", -"on")}}},getPositionedAncestor:function(){for(var a=this;a.getName()!="html";){if(a.getComputedStyle("position")!="static")return a;a=a.getParent()}return null},getDocumentPosition:function(a){var b=0,h=0,g=this.getDocument(),f=g.getBody(),i=g.$.compatMode=="BackCompat";if(document.documentElement.getBoundingClientRect){var c=this.$.getBoundingClientRect(),j=g.$.documentElement,l=j.clientTop||f.$.clientTop||0,m=j.clientLeft||f.$.clientLeft||0,d=true;if(CKEDITOR.env.ie){d=g.getDocumentElement().contains(this); -g=g.getBody().contains(this);d=i&&g||!i&&d}if(d){b=c.left+(!i&&j.scrollLeft||f.$.scrollLeft);b=b-m;h=c.top+(!i&&j.scrollTop||f.$.scrollTop);h=h-l}}else{f=this;for(g=null;f&&!(f.getName()=="body"||f.getName()=="html");){b=b+(f.$.offsetLeft-f.$.scrollLeft);h=h+(f.$.offsetTop-f.$.scrollTop);if(!f.equals(this)){b=b+(f.$.clientLeft||0);h=h+(f.$.clientTop||0)}for(;g&&!g.equals(f);){b=b-g.$.scrollLeft;h=h-g.$.scrollTop;g=g.getParent()}g=f;f=(c=f.$.offsetParent)?new CKEDITOR.dom.element(c):null}}if(a){f= -this.getWindow();g=a.getWindow();if(!f.equals(g)&&f.$.frameElement){a=(new CKEDITOR.dom.element(f.$.frameElement)).getDocumentPosition(a);b=b+a.x;h=h+a.y}}if(!document.documentElement.getBoundingClientRect&&CKEDITOR.env.gecko&&!i){b=b+(this.$.clientLeft?1:0);h=h+(this.$.clientTop?1:0)}return{x:b,y:h}},scrollIntoView:function(a){var b=this.getParent();if(b){do{(b.$.clientWidth&&b.$.clientWidth<b.$.scrollWidth||b.$.clientHeight&&b.$.clientHeight<b.$.scrollHeight)&&!b.is("body")&&this.scrollIntoParent(b, -a,1);if(b.is("html")){var h=b.getWindow();try{var g=h.$.frameElement;g&&(b=new CKEDITOR.dom.element(g))}catch(f){}}}while(b=b.getParent())}},scrollIntoParent:function(a,b,h){var g,f,i,c;function j(b,f){if(/body|html/.test(a.getName()))a.getWindow().$.scrollBy(b,f);else{a.$.scrollLeft=a.$.scrollLeft+b;a.$.scrollTop=a.$.scrollTop+f}}function l(a,b){var f={x:0,y:0};if(!a.is(d?"body":"html")){var c=a.$.getBoundingClientRect();f.x=c.left;f.y=c.top}c=a.getWindow();if(!c.equals(b)){c=l(CKEDITOR.dom.element.get(c.$.frameElement), -b);f.x=f.x+c.x;f.y=f.y+c.y}return f}function m(a,b){return parseInt(a.getComputedStyle("margin-"+b)||0,10)||0}!a&&(a=this.getWindow());i=a.getDocument();var d=i.$.compatMode=="BackCompat";a instanceof CKEDITOR.dom.window&&(a=d?i.getBody():i.getDocumentElement());i=a.getWindow();f=l(this,i);var o=l(a,i),k=this.$.offsetHeight;g=this.$.offsetWidth;var p=a.$.clientHeight,r=a.$.clientWidth;i=f.x-m(this,"left")-o.x||0;c=f.y-m(this,"top")-o.y||0;g=f.x+g+m(this,"right")-(o.x+r)||0;f=f.y+k+m(this,"bottom")- -(o.y+p)||0;if(c<0||f>0)j(0,b===true?c:b===false?f:c<0?c:f);if(h&&(i<0||g>0))j(i<0?i:g,0)},setState:function(a,b,h){b=b||"cke";switch(a){case CKEDITOR.TRISTATE_ON:this.addClass(b+"_on");this.removeClass(b+"_off");this.removeClass(b+"_disabled");h&&this.setAttribute("aria-pressed",true);h&&this.removeAttribute("aria-disabled");break;case CKEDITOR.TRISTATE_DISABLED:this.addClass(b+"_disabled");this.removeClass(b+"_off");this.removeClass(b+"_on");h&&this.setAttribute("aria-disabled",true);h&&this.removeAttribute("aria-pressed"); -break;default:this.addClass(b+"_off");this.removeClass(b+"_on");this.removeClass(b+"_disabled");h&&this.removeAttribute("aria-pressed");h&&this.removeAttribute("aria-disabled")}},getFrameDocument:function(){var a=this.$;try{a.contentWindow.document}catch(b){a.src=a.src}return a&&new CKEDITOR.dom.document(a.contentWindow.document)},copyAttributes:function(a,b){for(var h=this.$.attributes,b=b||{},g=0;g<h.length;g++){var f=h[g],i=f.nodeName.toLowerCase(),c;if(!(i in b))if(i=="checked"&&(c=this.getAttribute(i)))a.setAttribute(i, -c);else if(f.specified||CKEDITOR.env.ie&&f.nodeValue&&i=="value"){c=this.getAttribute(i);if(c===null)c=f.nodeValue;a.setAttribute(i,c)}}if(this.$.style.cssText!=="")a.$.style.cssText=this.$.style.cssText},renameNode:function(a){if(this.getName()!=a){var b=this.getDocument(),a=new CKEDITOR.dom.element(a,b);this.copyAttributes(a);this.moveChildren(a);this.getParent()&&this.$.parentNode.replaceChild(a.$,this.$);a.$["data-cke-expando"]=this.$["data-cke-expando"];this.$=a.$}},getChild:function(){function a(a, -b){var g=a.childNodes;if(b>=0&&b<g.length)return g[b]}return function(b){var d=this.$;if(b.slice)for(;b.length>0&&d;)d=a(d,b.shift());else d=a(d,b);return d?new CKEDITOR.dom.node(d):null}}(),getChildCount:function(){return this.$.childNodes.length},disableContextMenu:function(){this.on("contextmenu",function(a){a.data.getTarget().hasClass("cke_enable_context_menu")||a.data.preventDefault()})},getDirection:function(a){return a?this.getComputedStyle("direction")||this.getDirection()||this.getParent()&& -this.getParent().getDirection(1)||this.getDocument().$.dir||"ltr":this.getStyle("direction")||this.getAttribute("dir")},data:function(a,b){a="data-"+a;if(b===void 0)return this.getAttribute(a);b===false?this.removeAttribute(a):this.setAttribute(a,b);return null},getEditor:function(){var a=CKEDITOR.instances,b,d;for(b in a){d=a[b];if(d.element.equals(this)&&d.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO)return d}return null}});var d={width:["border-left-width","border-right-width","padding-left","padding-right"], -height:["border-top-width","border-bottom-width","padding-top","padding-bottom"]};CKEDITOR.dom.element.prototype.setSize=function(a,e,d){if(typeof e=="number"){if(d&&(!CKEDITOR.env.ie||!CKEDITOR.env.quirks))e=e-b.call(this,a);this.setStyle(a,e+"px")}};CKEDITOR.dom.element.prototype.getSize=function(a,e){var d=Math.max(this.$["offset"+CKEDITOR.tools.capitalize(a)],this.$["client"+CKEDITOR.tools.capitalize(a)])||0;e&&(d=d-b.call(this,a));return d}}(),CKEDITOR.dom.documentFragment=function(b){b=b||CKEDITOR.document; -this.$=b.type==CKEDITOR.NODE_DOCUMENT?b.$.createDocumentFragment():b},CKEDITOR.tools.extend(CKEDITOR.dom.documentFragment.prototype,CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,insertAfterNode:function(b){b=b.$;b.parentNode.insertBefore(this.$,b.nextSibling)}},!0,{append:1,appendBogus:1,getFirst:1,getLast:1,getParent:1,getNext:1,getPrevious:1,appendTo:1,moveChildren:1,insertBefore:1,insertAfterNode:1,replace:1,trim:1,type:1,ltrim:1,rtrim:1,getDocument:1,getChildCount:1,getChild:1, -getChildren:1}),function(){function b(a,b){var c=this.range;if(this._.end)return null;if(!this._.start){this._.start=1;if(c.collapsed){this.end();return null}c.optimize()}var g,e=c.startContainer;g=c.endContainer;var m=c.startOffset,d=c.endOffset,h,k=this.guard,p=this.type,r=a?"getPreviousSourceNode":"getNextSourceNode";if(!a&&!this._.guardLTR){var q=g.type==CKEDITOR.NODE_ELEMENT?g:g.getParent(),t=g.type==CKEDITOR.NODE_ELEMENT?g.getChild(d):g.getNext();this._.guardLTR=function(a,b){return(!b||!q.equals(a))&& -(!t||!a.equals(t))&&(a.type!=CKEDITOR.NODE_ELEMENT||!b||!a.equals(c.root))}}if(a&&!this._.guardRTL){var z=e.type==CKEDITOR.NODE_ELEMENT?e:e.getParent(),x=e.type==CKEDITOR.NODE_ELEMENT?m?e.getChild(m-1):null:e.getPrevious();this._.guardRTL=function(a,b){return(!b||!z.equals(a))&&(!x||!a.equals(x))&&(a.type!=CKEDITOR.NODE_ELEMENT||!b||!a.equals(c.root))}}var u=a?this._.guardRTL:this._.guardLTR;h=k?function(a,b){return u(a,b)===false?false:k(a,b)}:u;if(this.current)g=this.current[r](false,p,h);else{if(a)g.type== -CKEDITOR.NODE_ELEMENT&&(g=d>0?g.getChild(d-1):h(g,true)===false?null:g.getPreviousSourceNode(true,p,h));else{g=e;if(g.type==CKEDITOR.NODE_ELEMENT&&!(g=g.getChild(m)))g=h(e,true)===false?null:e.getNextSourceNode(true,p,h)}g&&h(g)===false&&(g=null)}for(;g&&!this._.end;){this.current=g;if(!this.evaluator||this.evaluator(g)!==false){if(!b)return g}else if(b&&this.evaluator)return false;g=g[r](false,p,h)}this.end();return this.current=null}function d(a){for(var g,c=null;g=b.call(this,a);)c=g;return c} -CKEDITOR.dom.walker=CKEDITOR.tools.createClass({$:function(a){this.range=a;this._={}},proto:{end:function(){this._.end=1},next:function(){return b.call(this)},previous:function(){return b.call(this,1)},checkForward:function(){return b.call(this,0,1)!==false},checkBackward:function(){return b.call(this,1,1)!==false},lastForward:function(){return d.call(this)},lastBackward:function(){return d.call(this,1)},reset:function(){delete this.current;this._={}}}});var a={block:1,"list-item":1,table:1,"table-row-group":1, -"table-header-group":1,"table-footer-group":1,"table-row":1,"table-column-group":1,"table-column":1,"table-cell":1,"table-caption":1};CKEDITOR.dom.element.prototype.isBlockBoundary=function(b){b=b?CKEDITOR.tools.extend({},CKEDITOR.dtd.$block,b||{}):CKEDITOR.dtd.$block;return this.getComputedStyle("float")=="none"&&a[this.getComputedStyle("display")]||b[this.getName()]};CKEDITOR.dom.walker.blockBoundary=function(a){return function(b){return!(b.type==CKEDITOR.NODE_ELEMENT&&b.isBlockBoundary(a))}};CKEDITOR.dom.walker.listItemBoundary= -function(){return this.blockBoundary({br:1})};CKEDITOR.dom.walker.bookmark=function(a,b){function c(a){return a&&a.getName&&a.getName()=="span"&&a.data("cke-bookmark")}return function(g){var e,m;e=g&&g.type!=CKEDITOR.NODE_ELEMENT&&(m=g.getParent())&&c(m);e=a?e:e||c(g);return!!(b^e)}};CKEDITOR.dom.walker.whitespaces=function(a){return function(b){var c;b&&b.type==CKEDITOR.NODE_TEXT&&(c=!CKEDITOR.tools.trim(b.getText())||CKEDITOR.env.webkit&&b.getText()=="​");return!!(a^c)}};CKEDITOR.dom.walker.invisible= -function(a){var b=CKEDITOR.dom.walker.whitespaces();return function(c){if(b(c))c=1;else{c.type==CKEDITOR.NODE_TEXT&&(c=c.getParent());c=!c.$.offsetHeight}return!!(a^c)}};CKEDITOR.dom.walker.nodeType=function(a,b){return function(c){return!!(b^c.type==a)}};CKEDITOR.dom.walker.bogus=function(a){function b(a){return!h(a)&&!g(a)}return function(c){var g=!CKEDITOR.env.ie?c.is&&c.is("br"):c.getText&&e.test(c.getText());if(g){g=c.getParent();c=c.getNext(b);g=g.isBlockBoundary()&&(!c||c.type==CKEDITOR.NODE_ELEMENT&& -c.isBlockBoundary())}return!!(a^g)}};var e=/^[\t\r\n ]*(?: |\xa0)$/,h=CKEDITOR.dom.walker.whitespaces(),g=CKEDITOR.dom.walker.bookmark();CKEDITOR.dom.element.prototype.getBogus=function(){var a=this;do a=a.getPreviousSourceNode();while(g(a)||h(a)||a.type==CKEDITOR.NODE_ELEMENT&&a.getName()in CKEDITOR.dtd.$inline&&!(a.getName()in CKEDITOR.dtd.$empty));return a&&(!CKEDITOR.env.ie?a.is&&a.is("br"):a.getText&&e.test(a.getText()))?a:false}}(),CKEDITOR.dom.range=function(b){this.endOffset=this.endContainer= -this.startOffset=this.startContainer=null;this.collapsed=true;var d=b instanceof CKEDITOR.dom.document;this.document=d?b:b.getDocument();this.root=d?b.getBody():b},function(){function b(){var a=false,b=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(true),f=CKEDITOR.dom.walker.bogus();return function(k){if(c(k)||b(k))return true;if(f(k)&&!a)return a=true;return k.type==CKEDITOR.NODE_TEXT&&(k.hasAscendant("pre")||CKEDITOR.tools.trim(k.getText()).length)||k.type==CKEDITOR.NODE_ELEMENT&& -!k.is(g)?false:true}}function d(a){var b=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(1);return function(g){return c(g)||b(g)?true:!a&&f(g)||g.type==CKEDITOR.NODE_ELEMENT&&g.is(CKEDITOR.dtd.$removeEmpty)}}function a(a){return!i(a)&&!c(a)}var e=function(a){a.collapsed=a.startContainer&&a.endContainer&&a.startContainer.equals(a.endContainer)&&a.startOffset==a.endOffset},h=function(a,b,c,f){a.optimizeBookmark();var g=a.startContainer,e=a.endContainer,i=a.startOffset,d=a.endOffset, -h,j;if(e.type==CKEDITOR.NODE_TEXT)e=e.split(d);else if(e.getChildCount()>0)if(d>=e.getChildCount()){e=e.append(a.document.createText(""));j=true}else e=e.getChild(d);if(g.type==CKEDITOR.NODE_TEXT){g.split(i);g.equals(e)&&(e=g.getNext())}else if(i)if(i>=g.getChildCount()){g=g.append(a.document.createText(""));h=true}else g=g.getChild(i).getPrevious();else{g=g.append(a.document.createText(""),1);h=true}var i=g.getParents(),d=e.getParents(),x,u,w;for(x=0;x<i.length;x++){u=i[x];w=d[x];if(!u.equals(w))break}for(var s= -c,v,A,B,y=x;y<i.length;y++){v=i[y];s&&!v.equals(g)&&(A=s.append(v.clone()));for(v=v.getNext();v;){if(v.equals(d[y])||v.equals(e))break;B=v.getNext();if(b==2)s.append(v.clone(true));else{v.remove();b==1&&s.append(v)}v=B}s&&(s=A)}s=c;for(c=x;c<d.length;c++){v=d[c];b>0&&!v.equals(e)&&(A=s.append(v.clone()));if(!i[c]||v.$.parentNode!=i[c].$.parentNode)for(v=v.getPrevious();v;){if(v.equals(i[c])||v.equals(g))break;B=v.getPrevious();if(b==2)s.$.insertBefore(v.$.cloneNode(true),s.$.firstChild);else{v.remove(); -b==1&&s.$.insertBefore(v.$,s.$.firstChild)}v=B}s&&(s=A)}if(b==2){u=a.startContainer;if(u.type==CKEDITOR.NODE_TEXT){u.$.data=u.$.data+u.$.nextSibling.data;u.$.parentNode.removeChild(u.$.nextSibling)}a=a.endContainer;if(a.type==CKEDITOR.NODE_TEXT&&a.$.nextSibling){a.$.data=a.$.data+a.$.nextSibling.data;a.$.parentNode.removeChild(a.$.nextSibling)}}else{if(u&&w&&(g.$.parentNode!=u.$.parentNode||e.$.parentNode!=w.$.parentNode)){b=w.getIndex();h&&w.$.parentNode==g.$.parentNode&&b--;if(f&&u.type==CKEDITOR.NODE_ELEMENT){f= -CKEDITOR.dom.element.createFromHtml('<span data-cke-bookmark="1" style="display:none"> </span>',a.document);f.insertAfter(u);u.mergeSiblings(false);a.moveToBookmark({startNode:f})}else a.setStart(w.getParent(),b)}a.collapse(true)}h&&g.remove();j&&e.$.parentNode&&e.remove()},g={abbr:1,acronym:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,"var":1},f=CKEDITOR.dom.walker.bogus(),i=new CKEDITOR.dom.walker.whitespaces, -c=new CKEDITOR.dom.walker.bookmark,j=/^[\t\r\n ]*(?: |\xa0)$/;CKEDITOR.dom.range.prototype={clone:function(){var a=new CKEDITOR.dom.range(this.root);a.startContainer=this.startContainer;a.startOffset=this.startOffset;a.endContainer=this.endContainer;a.endOffset=this.endOffset;a.collapsed=this.collapsed;return a},collapse:function(a){if(a){this.endContainer=this.startContainer;this.endOffset=this.startOffset}else{this.startContainer=this.endContainer;this.startOffset=this.endOffset}this.collapsed= -true},cloneContents:function(){var a=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||h(this,2,a);return a},deleteContents:function(a){this.collapsed||h(this,0,null,a)},extractContents:function(a){var b=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||h(this,1,b,a);return b},createBookmark:function(a){var b,c,f,g,e=this.collapsed;b=this.document.createElement("span");b.data("cke-bookmark",1);b.setStyle("display","none");b.setHtml(" ");if(a){f="cke_bm_"+CKEDITOR.tools.getNextNumber(); -b.setAttribute("id",f+(e?"C":"S"))}if(!e){c=b.clone();c.setHtml(" ");a&&c.setAttribute("id",f+"E");g=this.clone();g.collapse();g.insertNode(c)}g=this.clone();g.collapse(true);g.insertNode(b);if(c){this.setStartAfter(b);this.setEndBefore(c)}else this.moveToPosition(b,CKEDITOR.POSITION_AFTER_END);return{startNode:a?f+(e?"C":"S"):b,endNode:a?f+"E":c,serializable:a,collapsed:e}},createBookmark2:function(a){var b=this.startContainer,c=this.endContainer,f=this.startOffset,g=this.endOffset,e=this.collapsed, -i,d;if(!b||!c)return{start:0,end:0};if(a){if(b.type==CKEDITOR.NODE_ELEMENT){if((i=b.getChild(f))&&i.type==CKEDITOR.NODE_TEXT&&f>0&&i.getPrevious().type==CKEDITOR.NODE_TEXT){b=i;f=0}i&&i.type==CKEDITOR.NODE_ELEMENT&&(f=i.getIndex(1))}for(;b.type==CKEDITOR.NODE_TEXT&&(d=b.getPrevious())&&d.type==CKEDITOR.NODE_TEXT;){b=d;f=f+d.getLength()}if(!e){if(c.type==CKEDITOR.NODE_ELEMENT){if((i=c.getChild(g))&&i.type==CKEDITOR.NODE_TEXT&&g>0&&i.getPrevious().type==CKEDITOR.NODE_TEXT){c=i;g=0}i&&i.type==CKEDITOR.NODE_ELEMENT&& -(g=i.getIndex(1))}for(;c.type==CKEDITOR.NODE_TEXT&&(d=c.getPrevious())&&d.type==CKEDITOR.NODE_TEXT;){c=d;g=g+d.getLength()}}}return{start:b.getAddress(a),end:e?null:c.getAddress(a),startOffset:f,endOffset:g,normalized:a,collapsed:e,is2:true}},moveToBookmark:function(a){if(a.is2){var b=this.document.getByAddress(a.start,a.normalized),c=a.startOffset,f=a.end&&this.document.getByAddress(a.end,a.normalized),a=a.endOffset;this.setStart(b,c);f?this.setEnd(f,a):this.collapse(true)}else{b=(c=a.serializable)? -this.document.getById(a.startNode):a.startNode;a=c?this.document.getById(a.endNode):a.endNode;this.setStartBefore(b);b.remove();if(a){this.setEndBefore(a);a.remove()}else this.collapse(true)}},getBoundaryNodes:function(){var a=this.startContainer,b=this.endContainer,c=this.startOffset,f=this.endOffset,g;if(a.type==CKEDITOR.NODE_ELEMENT){g=a.getChildCount();if(g>c)a=a.getChild(c);else if(g<1)a=a.getPreviousSourceNode();else{for(a=a.$;a.lastChild;)a=a.lastChild;a=new CKEDITOR.dom.node(a);a=a.getNextSourceNode()|| -a}}if(b.type==CKEDITOR.NODE_ELEMENT){g=b.getChildCount();if(g>f)b=b.getChild(f).getPreviousSourceNode(true);else if(g<1)b=b.getPreviousSourceNode();else{for(b=b.$;b.lastChild;)b=b.lastChild;b=new CKEDITOR.dom.node(b)}}a.getPosition(b)&CKEDITOR.POSITION_FOLLOWING&&(a=b);return{startNode:a,endNode:b}},getCommonAncestor:function(a,b){var c=this.startContainer,f=this.endContainer,c=c.equals(f)?a&&c.type==CKEDITOR.NODE_ELEMENT&&this.startOffset==this.endOffset-1?c.getChild(this.startOffset):c:c.getCommonAncestor(f); -return b&&!c.is?c.getParent():c},optimize:function(){var a=this.startContainer,b=this.startOffset;a.type!=CKEDITOR.NODE_ELEMENT&&(b?b>=a.getLength()&&this.setStartAfter(a):this.setStartBefore(a));a=this.endContainer;b=this.endOffset;a.type!=CKEDITOR.NODE_ELEMENT&&(b?b>=a.getLength()&&this.setEndAfter(a):this.setEndBefore(a))},optimizeBookmark:function(){var a=this.startContainer,b=this.endContainer;a.is&&(a.is("span")&&a.data("cke-bookmark"))&&this.setStartAt(a,CKEDITOR.POSITION_BEFORE_START);b&& -(b.is&&b.is("span")&&b.data("cke-bookmark"))&&this.setEndAt(b,CKEDITOR.POSITION_AFTER_END)},trim:function(a,b){var c=this.startContainer,f=this.startOffset,g=this.collapsed;if((!a||g)&&c&&c.type==CKEDITOR.NODE_TEXT){if(f)if(f>=c.getLength()){f=c.getIndex()+1;c=c.getParent()}else{var e=c.split(f),f=c.getIndex()+1,c=c.getParent();if(this.startContainer.equals(this.endContainer))this.setEnd(e,this.endOffset-this.startOffset);else if(c.equals(this.endContainer))this.endOffset=this.endOffset+1}else{f= -c.getIndex();c=c.getParent()}this.setStart(c,f);if(g){this.collapse(true);return}}c=this.endContainer;f=this.endOffset;if(!b&&!g&&c&&c.type==CKEDITOR.NODE_TEXT){if(f){f>=c.getLength()||c.split(f);f=c.getIndex()+1}else f=c.getIndex();c=c.getParent();this.setEnd(c,f)}},enlarge:function(a,b){switch(a){case CKEDITOR.ENLARGE_INLINE:var c=1;case CKEDITOR.ENLARGE_ELEMENT:if(this.collapsed)break;var f=this.getCommonAncestor(),g=this.root,e,i,d,h,j,x=false,u,w;u=this.startContainer;w=this.startOffset;if(u.type== -CKEDITOR.NODE_TEXT){if(w){u=!CKEDITOR.tools.trim(u.substring(0,w)).length&&u;x=!!u}if(u&&!(h=u.getPrevious()))d=u.getParent()}else{w&&(h=u.getChild(w-1)||u.getLast());h||(d=u)}for(;d||h;){if(d&&!h){!j&&d.equals(f)&&(j=true);if(c?d.isBlockBoundary():!g.contains(d))break;if(!x||d.getComputedStyle("display")!="inline"){x=false;j?e=d:this.setStartBefore(d)}h=d.getPrevious()}for(;h;){u=false;if(h.type==CKEDITOR.NODE_COMMENT)h=h.getPrevious();else{if(h.type==CKEDITOR.NODE_TEXT){w=h.getText();/[^\s\ufeff]/.test(w)&& -(h=null);u=/[\s\ufeff]$/.test(w)}else if((h.$.offsetWidth>0||b&&h.is("br"))&&!h.data("cke-bookmark"))if(x&&CKEDITOR.dtd.$removeEmpty[h.getName()]){w=h.getText();if(/[^\s\ufeff]/.test(w))h=null;else for(var s=h.$.getElementsByTagName("*"),v=0,A;A=s[v++];)if(!CKEDITOR.dtd.$removeEmpty[A.nodeName.toLowerCase()]){h=null;break}h&&(u=!!w.length)}else h=null;u&&(x?j?e=d:d&&this.setStartBefore(d):x=true);if(h){u=h.getPrevious();if(!d&&!u){d=h;h=null;break}h=u}else d=null}}d&&(d=d.getParent())}u=this.endContainer; -w=this.endOffset;d=h=null;j=x=false;if(u.type==CKEDITOR.NODE_TEXT){u=!CKEDITOR.tools.trim(u.substring(w)).length&&u;x=!(u&&u.getLength());if(u&&!(h=u.getNext()))d=u.getParent()}else(h=u.getChild(w))||(d=u);for(;d||h;){if(d&&!h){!j&&d.equals(f)&&(j=true);if(c?d.isBlockBoundary():!g.contains(d))break;if(!x||d.getComputedStyle("display")!="inline"){x=false;j?i=d:d&&this.setEndAfter(d)}h=d.getNext()}for(;h;){u=false;if(h.type==CKEDITOR.NODE_TEXT){w=h.getText();/[^\s\ufeff]/.test(w)&&(h=null);u=/^[\s\ufeff]/.test(w)}else if(h.type== -CKEDITOR.NODE_ELEMENT){if((h.$.offsetWidth>0||b&&h.is("br"))&&!h.data("cke-bookmark"))if(x&&CKEDITOR.dtd.$removeEmpty[h.getName()]){w=h.getText();if(/[^\s\ufeff]/.test(w))h=null;else{s=h.$.getElementsByTagName("*");for(v=0;A=s[v++];)if(!CKEDITOR.dtd.$removeEmpty[A.nodeName.toLowerCase()]){h=null;break}}h&&(u=!!w.length)}else h=null}else u=1;u&&x&&(j?i=d:this.setEndAfter(d));if(h){u=h.getNext();if(!d&&!u){d=h;h=null;break}h=u}else d=null}d&&(d=d.getParent())}if(e&&i){f=e.contains(i)?i:e;this.setStartBefore(f); -this.setEndAfter(f)}break;case CKEDITOR.ENLARGE_BLOCK_CONTENTS:case CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:d=new CKEDITOR.dom.range(this.root);g=this.root;d.setStartAt(g,CKEDITOR.POSITION_AFTER_START);d.setEnd(this.startContainer,this.startOffset);d=new CKEDITOR.dom.walker(d);var B,y,C=CKEDITOR.dom.walker.blockBoundary(a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?{br:1}:null),D=function(a){var b=C(a);b||(B=a);return b},c=function(a){var b=D(a);!b&&(a.is&&a.is("br"))&&(y=a);return b};d.guard=D;d=d.lastBackward(); -B=B||g;this.setStartAt(B,!B.is("br")&&(!d&&this.checkStartOfBlock()||d&&B.contains(d))?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_AFTER_END);if(a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS){d=this.clone();d=new CKEDITOR.dom.walker(d);var F=CKEDITOR.dom.walker.whitespaces(),E=CKEDITOR.dom.walker.bookmark();d.evaluator=function(a){return!F(a)&&!E(a)};if((d=d.previous())&&d.type==CKEDITOR.NODE_ELEMENT&&d.is("br"))break}d=this.clone();d.collapse();d.setEndAt(g,CKEDITOR.POSITION_BEFORE_END);d=new CKEDITOR.dom.walker(d); -d.guard=a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?c:D;B=null;d=d.lastForward();B=B||g;this.setEndAt(B,!d&&this.checkEndOfBlock()||d&&B.contains(d)?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_BEFORE_START);y&&this.setEndAfter(y)}},shrink:function(a,b,c){if(!this.collapsed){var a=a||CKEDITOR.SHRINK_TEXT,f=this.clone(),g=this.startContainer,e=this.endContainer,i=this.startOffset,d=this.endOffset,h=1,j=1;if(g&&g.type==CKEDITOR.NODE_TEXT)if(i)if(i>=g.getLength())f.setStartAfter(g);else{f.setStartBefore(g); -h=0}else f.setStartBefore(g);if(e&&e.type==CKEDITOR.NODE_TEXT)if(d)if(d>=e.getLength())f.setEndAfter(e);else{f.setEndAfter(e);j=0}else f.setEndBefore(e);var f=new CKEDITOR.dom.walker(f),x=CKEDITOR.dom.walker.bookmark();f.evaluator=function(b){return b.type==(a==CKEDITOR.SHRINK_ELEMENT?CKEDITOR.NODE_ELEMENT:CKEDITOR.NODE_TEXT)};var u;f.guard=function(b,f){if(x(b))return true;if(a==CKEDITOR.SHRINK_ELEMENT&&b.type==CKEDITOR.NODE_TEXT||f&&b.equals(u)||c===false&&b.type==CKEDITOR.NODE_ELEMENT&&b.isBlockBoundary())return false; -!f&&b.type==CKEDITOR.NODE_ELEMENT&&(u=b);return true};if(h)(g=f[a==CKEDITOR.SHRINK_ELEMENT?"lastForward":"next"]())&&this.setStartAt(g,b?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_START);if(j){f.reset();(f=f[a==CKEDITOR.SHRINK_ELEMENT?"lastBackward":"previous"]())&&this.setEndAt(f,b?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_END)}return!(!h&&!j)}},insertNode:function(a){this.optimizeBookmark();this.trim(false,true);var b=this.startContainer,c=b.getChild(this.startOffset);c?a.insertBefore(c): -b.append(a);a.getParent()&&a.getParent().equals(this.endContainer)&&this.endOffset++;this.setStartBefore(a)},moveToPosition:function(a,b){this.setStartAt(a,b);this.collapse(true)},moveToRange:function(a){this.setStart(a.startContainer,a.startOffset);this.setEnd(a.endContainer,a.endOffset)},selectNodeContents:function(a){this.setStart(a,0);this.setEnd(a,a.type==CKEDITOR.NODE_TEXT?a.getLength():a.getChildCount())},setStart:function(a,b){if(a.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[a.getName()]){b= -a.getIndex();a=a.getParent()}this.startContainer=a;this.startOffset=b;if(!this.endContainer){this.endContainer=a;this.endOffset=b}e(this)},setEnd:function(a,b){if(a.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[a.getName()]){b=a.getIndex()+1;a=a.getParent()}this.endContainer=a;this.endOffset=b;if(!this.startContainer){this.startContainer=a;this.startOffset=b}e(this)},setStartAfter:function(a){this.setStart(a.getParent(),a.getIndex()+1)},setStartBefore:function(a){this.setStart(a.getParent(),a.getIndex())}, -setEndAfter:function(a){this.setEnd(a.getParent(),a.getIndex()+1)},setEndBefore:function(a){this.setEnd(a.getParent(),a.getIndex())},setStartAt:function(a,b){switch(b){case CKEDITOR.POSITION_AFTER_START:this.setStart(a,0);break;case CKEDITOR.POSITION_BEFORE_END:a.type==CKEDITOR.NODE_TEXT?this.setStart(a,a.getLength()):this.setStart(a,a.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setStartBefore(a);break;case CKEDITOR.POSITION_AFTER_END:this.setStartAfter(a)}e(this)},setEndAt:function(a, -b){switch(b){case CKEDITOR.POSITION_AFTER_START:this.setEnd(a,0);break;case CKEDITOR.POSITION_BEFORE_END:a.type==CKEDITOR.NODE_TEXT?this.setEnd(a,a.getLength()):this.setEnd(a,a.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setEndBefore(a);break;case CKEDITOR.POSITION_AFTER_END:this.setEndAfter(a)}e(this)},fixBlock:function(a,b){var c=this.createBookmark(),f=this.document.createElement(b);this.collapse(a);this.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS);this.extractContents().appendTo(f); -f.trim();CKEDITOR.env.ie||f.appendBogus();this.insertNode(f);this.moveToBookmark(c);return f},splitBlock:function(a){var b=new CKEDITOR.dom.elementPath(this.startContainer,this.root),c=new CKEDITOR.dom.elementPath(this.endContainer,this.root),f=b.block,g=c.block,e=null;if(!b.blockLimit.equals(c.blockLimit))return null;if(a!="br"){if(!f){f=this.fixBlock(true,a);g=(new CKEDITOR.dom.elementPath(this.endContainer,this.root)).block}g||(g=this.fixBlock(false,a))}a=f&&this.checkStartOfBlock();b=g&&this.checkEndOfBlock(); -this.deleteContents();if(f&&f.equals(g))if(b){e=new CKEDITOR.dom.elementPath(this.startContainer,this.root);this.moveToPosition(g,CKEDITOR.POSITION_AFTER_END);g=null}else if(a){e=new CKEDITOR.dom.elementPath(this.startContainer,this.root);this.moveToPosition(f,CKEDITOR.POSITION_BEFORE_START);f=null}else{g=this.splitElement(f);!CKEDITOR.env.ie&&!f.is("ul","ol")&&f.appendBogus()}return{previousBlock:f,nextBlock:g,wasStartOfBlock:a,wasEndOfBlock:b,elementPath:e}},splitElement:function(a){if(!this.collapsed)return null; -this.setEndAt(a,CKEDITOR.POSITION_BEFORE_END);var b=this.extractContents(),c=a.clone(false);b.appendTo(c);c.insertAfter(a);this.moveToPosition(a,CKEDITOR.POSITION_AFTER_END);return c},removeEmptyBlocksAtEnd:function(){function a(f){return function(a){return b(a)||(c(a)||a.type==CKEDITOR.NODE_ELEMENT&&a.isEmptyInlineRemoveable())||f.is("table")&&a.is("caption")?false:true}}var b=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(false);return function(b){for(var c=this.createBookmark(), -f=this[b?"endPath":"startPath"](),g=f.block||f.blockLimit,e;g&&!g.equals(f.root)&&!g.getFirst(a(g));){e=g.getParent();this[b?"setEndAt":"setStartAt"](g,CKEDITOR.POSITION_AFTER_END);g.remove(1);g=e}this.moveToBookmark(c)}}(),startPath:function(){return new CKEDITOR.dom.elementPath(this.startContainer,this.root)},endPath:function(){return new CKEDITOR.dom.elementPath(this.endContainer,this.root)},checkBoundaryOfElement:function(a,b){var c=b==CKEDITOR.START,f=this.clone();f.collapse(c);f[c?"setStartAt": -"setEndAt"](a,c?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END);f=new CKEDITOR.dom.walker(f);f.evaluator=d(c);return f[c?"checkBackward":"checkForward"]()},checkStartOfBlock:function(){var a=this.startContainer,c=this.startOffset;if(CKEDITOR.env.ie&&c&&a.type==CKEDITOR.NODE_TEXT){a=CKEDITOR.tools.ltrim(a.substring(0,c));j.test(a)&&this.trim(0,1)}this.trim();a=new CKEDITOR.dom.elementPath(this.startContainer,this.root);c=this.clone();c.collapse(true);c.setStartAt(a.block||a.blockLimit, -CKEDITOR.POSITION_AFTER_START);a=new CKEDITOR.dom.walker(c);a.evaluator=b();return a.checkBackward()},checkEndOfBlock:function(){var a=this.endContainer,c=this.endOffset;if(CKEDITOR.env.ie&&a.type==CKEDITOR.NODE_TEXT){a=CKEDITOR.tools.rtrim(a.substring(c));j.test(a)&&this.trim(1,0)}this.trim();a=new CKEDITOR.dom.elementPath(this.endContainer,this.root);c=this.clone();c.collapse(false);c.setEndAt(a.block||a.blockLimit,CKEDITOR.POSITION_BEFORE_END);a=new CKEDITOR.dom.walker(c);a.evaluator=b();return a.checkForward()}, -getPreviousNode:function(a,b,c){var f=this.clone();f.collapse(1);f.setStartAt(c||this.root,CKEDITOR.POSITION_AFTER_START);c=new CKEDITOR.dom.walker(f);c.evaluator=a;c.guard=b;return c.previous()},getNextNode:function(a,b,c){var f=this.clone();f.collapse();f.setEndAt(c||this.root,CKEDITOR.POSITION_BEFORE_END);c=new CKEDITOR.dom.walker(f);c.evaluator=a;c.guard=b;return c.next()},checkReadOnly:function(){function a(b,c){for(;b;){if(b.type==CKEDITOR.NODE_ELEMENT){if(b.getAttribute("contentEditable")== -"false"&&!b.data("cke-editable"))return 0;if(b.is("html")||b.getAttribute("contentEditable")=="true"&&(b.contains(c)||b.equals(c)))break}b=b.getParent()}return 1}return function(){var b=this.startContainer,c=this.endContainer;return!(a(b,c)&&a(c,b))}}(),moveToElementEditablePosition:function(b,c){if(b.type==CKEDITOR.NODE_ELEMENT&&!b.isEditable(false)){this.moveToPosition(b,c?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START);return true}for(var f=0;b;){if(b.type==CKEDITOR.NODE_TEXT){c&&this.checkEndOfBlock()&& -j.test(b.getText())?this.moveToPosition(b,CKEDITOR.POSITION_BEFORE_START):this.moveToPosition(b,c?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START);f=1;break}if(b.type==CKEDITOR.NODE_ELEMENT)if(b.isEditable()){this.moveToPosition(b,c?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_START);f=1}else c&&(b.is("br")&&this.checkEndOfBlock())&&this.moveToPosition(b,CKEDITOR.POSITION_BEFORE_START);var g=b,e=f,i=void 0;g.type==CKEDITOR.NODE_ELEMENT&&g.isEditable(false)&&(i=g[c?"getLast":"getFirst"](a)); -!e&&!i&&(i=g[c?"getPrevious":"getNext"](a));b=i}return!!f},moveToElementEditStart:function(a){return this.moveToElementEditablePosition(a)},moveToElementEditEnd:function(a){return this.moveToElementEditablePosition(a,true)},getEnclosedNode:function(){var a=this.clone();a.optimize();if(a.startContainer.type!=CKEDITOR.NODE_ELEMENT||a.endContainer.type!=CKEDITOR.NODE_ELEMENT)return null;var a=new CKEDITOR.dom.walker(a),b=CKEDITOR.dom.walker.bookmark(false,true),c=CKEDITOR.dom.walker.whitespaces(true); -a.evaluator=function(a){return c(a)&&b(a)};var f=a.next();a.reset();return f&&f.equals(a.previous())?f:null},getTouchedStartNode:function(){var a=this.startContainer;return this.collapsed||a.type!=CKEDITOR.NODE_ELEMENT?a:a.getChild(this.startOffset)||a},getTouchedEndNode:function(){var a=this.endContainer;return this.collapsed||a.type!=CKEDITOR.NODE_ELEMENT?a:a.getChild(this.endOffset-1)||a},scrollIntoView:function(){var a=new CKEDITOR.dom.element.createFromHtml("<span> </span>",this.document), -b,c,f,g=this.clone();g.optimize();if(f=g.startContainer.type==CKEDITOR.NODE_TEXT){c=g.startContainer.getText();b=g.startContainer.split(g.startOffset);a.insertAfter(g.startContainer)}else g.insertNode(a);a.scrollIntoView();if(f){g.startContainer.setText(c);b.remove()}a.remove()}}}(),CKEDITOR.POSITION_AFTER_START=1,CKEDITOR.POSITION_BEFORE_END=2,CKEDITOR.POSITION_BEFORE_START=3,CKEDITOR.POSITION_AFTER_END=4,CKEDITOR.ENLARGE_ELEMENT=1,CKEDITOR.ENLARGE_BLOCK_CONTENTS=2,CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS= -3,CKEDITOR.ENLARGE_INLINE=4,CKEDITOR.START=1,CKEDITOR.END=2,CKEDITOR.SHRINK_ELEMENT=1,CKEDITOR.SHRINK_TEXT=2,function(){function b(a){if(!(arguments.length<1)){this.range=a;this.forceBrBreak=0;this.enlargeBr=1;this.enforceRealBlocks=0;this._||(this._={})}}function d(a,b,c){for(a=a.getNextSourceNode(b,null,c);!e(a);)a=a.getNextSourceNode(b,null,c);return a}var a=/^[\r\n\t ]+$/,e=CKEDITOR.dom.walker.bookmark(false,true),h=CKEDITOR.dom.walker.whitespaces(true),g=function(a){return e(a)&&h(a)};b.prototype= -{getNextParagraph:function(b){b=b||"p";if(!CKEDITOR.dtd[this.range.root.getName()][b])return null;var i,c,h,l,m,n;if(!this._.started){c=this.range.clone();c.shrink(CKEDITOR.NODE_ELEMENT,true);l=c.endContainer.hasAscendant("pre",true)||c.startContainer.hasAscendant("pre",true);c.enlarge(this.forceBrBreak&&!l||!this.enlargeBr?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS);if(!c.collapsed){l=new CKEDITOR.dom.walker(c.clone());var o=CKEDITOR.dom.walker.bookmark(true,true);l.evaluator= -o;this._.nextNode=l.next();l=new CKEDITOR.dom.walker(c.clone());l.evaluator=o;l=l.previous();this._.lastNode=l.getNextSourceNode(true);if(this._.lastNode&&this._.lastNode.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(this._.lastNode.getText())&&this._.lastNode.getParent().isBlockBoundary()){o=this.range.clone();o.moveToPosition(this._.lastNode,CKEDITOR.POSITION_AFTER_END);if(o.checkEndOfBlock()){o=new CKEDITOR.dom.elementPath(o.endContainer,o.root);this._.lastNode=(o.block||o.blockLimit).getNextSourceNode(true)}}if(!this._.lastNode){this._.lastNode= -this._.docEndMarker=c.document.createText("");this._.lastNode.insertAfter(l)}c=null}this._.started=1}o=this._.nextNode;l=this._.lastNode;for(this._.nextNode=null;o;){var k=0,p=o.hasAscendant("pre"),r=o.type!=CKEDITOR.NODE_ELEMENT,q=0;if(r)o.type==CKEDITOR.NODE_TEXT&&a.test(o.getText())&&(r=0);else{var t=o.getName();if(o.isBlockBoundary(this.forceBrBreak&&!p&&{br:1})){if(t=="br")r=1;else if(!c&&!o.getChildCount()&&t!="hr"){i=o;h=o.equals(l);break}if(c){c.setEndAt(o,CKEDITOR.POSITION_BEFORE_START); -if(t!="br")this._.nextNode=o}k=1}else{if(o.getFirst()){if(!c){c=this.range.clone();c.setStartAt(o,CKEDITOR.POSITION_BEFORE_START)}o=o.getFirst();continue}r=1}}if(r&&!c){c=this.range.clone();c.setStartAt(o,CKEDITOR.POSITION_BEFORE_START)}h=(!k||r)&&o.equals(l);if(c&&!k)for(;!o.getNext(g)&&!h;){t=o.getParent();if(t.isBlockBoundary(this.forceBrBreak&&!p&&{br:1})){k=1;r=0;h||t.equals(l);c.setEndAt(t,CKEDITOR.POSITION_BEFORE_END);break}o=t;r=1;h=o.equals(l);q=1}r&&c.setEndAt(o,CKEDITOR.POSITION_AFTER_END); -o=d(o,q,l);if((h=!o)||k&&c)break}if(!i){if(!c){this._.docEndMarker&&this._.docEndMarker.remove();return this._.nextNode=null}i=new CKEDITOR.dom.elementPath(c.startContainer,c.root);o=i.blockLimit;k={div:1,th:1,td:1};i=i.block;if(!i&&o&&!this.enforceRealBlocks&&k[o.getName()]&&c.checkStartOfBlock()&&c.checkEndOfBlock()&&!o.equals(c.root))i=o;else if(!i||this.enforceRealBlocks&&i.getName()=="li"){i=this.range.document.createElement(b);c.extractContents().appendTo(i);i.trim();c.insertNode(i);m=n=true}else if(i.getName()!= -"li"){if(!c.checkStartOfBlock()||!c.checkEndOfBlock()){i=i.clone(false);c.extractContents().appendTo(i);i.trim();n=c.splitBlock();m=!n.wasStartOfBlock;n=!n.wasEndOfBlock;c.insertNode(i)}}else if(!h)this._.nextNode=i.equals(l)?null:d(c.getBoundaryNodes().endNode,1,l)}if(m)(c=i.getPrevious())&&c.type==CKEDITOR.NODE_ELEMENT&&(c.getName()=="br"?c.remove():c.getLast()&&c.getLast().$.nodeName.toLowerCase()=="br"&&c.getLast().remove());if(n)(c=i.getLast())&&c.type==CKEDITOR.NODE_ELEMENT&&c.getName()=="br"&& -(CKEDITOR.env.ie||c.getPrevious(e)||c.getNext(e))&&c.remove();if(!this._.nextNode)this._.nextNode=h||i.equals(l)||!l?null:d(i,1,l);return i}};CKEDITOR.dom.range.prototype.createIterator=function(){return new b(this)}}(),CKEDITOR.command=function(b,d){this.uiItems=[];this.exec=function(a){if(this.state==CKEDITOR.TRISTATE_DISABLED||!this.checkAllowed())return false;this.editorFocus&&b.focus();return this.fire("exec")===false?true:d.exec.call(this,b,a)!==false};this.refresh=function(a,b){if(!this.readOnly&& -a.readOnly)return true;if(this.context&&!b.isContextFor(this.context)){this.disable();return true}this.enable();return this.fire("refresh",{editor:a,path:b})===false?true:d.refresh&&d.refresh.apply(this,arguments)!==false};var a;this.checkAllowed=function(){return typeof a=="boolean"?a:a=b.filter.checkFeature(this)};CKEDITOR.tools.extend(this,d,{modes:{wysiwyg:1},editorFocus:1,contextSensitive:!!d.context,state:CKEDITOR.TRISTATE_DISABLED});CKEDITOR.event.call(this)},CKEDITOR.command.prototype={enable:function(){this.state== -CKEDITOR.TRISTATE_DISABLED&&this.checkAllowed()&&this.setState(!this.preserveState||typeof this.previousState=="undefined"?CKEDITOR.TRISTATE_OFF:this.previousState)},disable:function(){this.setState(CKEDITOR.TRISTATE_DISABLED)},setState:function(b){if(this.state==b||!this.checkAllowed())return false;this.previousState=this.state;this.state=b;this.fire("state");return true},toggleState:function(){this.state==CKEDITOR.TRISTATE_OFF?this.setState(CKEDITOR.TRISTATE_ON):this.state==CKEDITOR.TRISTATE_ON&& -this.setState(CKEDITOR.TRISTATE_OFF)}},CKEDITOR.event.implementOn(CKEDITOR.command.prototype),CKEDITOR.ENTER_P=1,CKEDITOR.ENTER_BR=2,CKEDITOR.ENTER_DIV=3,CKEDITOR.config={customConfig:"config.js",autoUpdateElement:!0,language:"",defaultLanguage:"en",contentsLangDirection:"",enterMode:CKEDITOR.ENTER_P,forceEnterMode:!1,shiftEnterMode:CKEDITOR.ENTER_BR,docType:"<!DOCTYPE html>",bodyId:"",bodyClass:"",fullPage:!1,height:200,extraPlugins:"",removePlugins:"",protectedSource:[],tabIndex:0,width:"",baseFloatZIndex:1E4, -blockedKeystrokes:[CKEDITOR.CTRL+66,CKEDITOR.CTRL+73,CKEDITOR.CTRL+85]},function(){function b(a,b,c,f,g){var i=b.name;if((f||!a.elements||a.elements(i))&&(!a.match||a.match(b))){if(f=!g){a:if(f=a.required){var k;if(i=f.classes){k=b.classes;for(g=0;g<i.length;++g)if(CKEDITOR.tools.indexOf(k,i[g])==-1){f=false;break a}}f=e(b.styles,f.styles)&&e(b.attributes,f.attributes)}else f=true;f=!f}if(!f){if(!a.propertiesOnly)c.valid=true;if(!c.allAttributes)c.allAttributes=d(a.attributes,b.attributes,c.validAttributes); -if(!c.allStyles)c.allStyles=d(a.styles,b.styles,c.validStyles);if(!c.allClasses){a=a.classes;b=b.classes;f=c.validClasses;if(a)if(a===true)b=true;else{g=0;for(i=b.length;g<i;++g){k=b[g];f[k]||(f[k]=a(k))}b=false}else b=false;c.allClasses=b}}}}function d(a,b,c){if(!a)return false;if(a===true)return true;for(var f in b)c[f]||(c[f]=a(f,b[f]));return false}function a(a){if(a._.filterFunction)return a._.filterFunction;var f=/^cke:(object|embed|param)$/,g=/^(object|embed|param)$/;return a._.filterFunction= -function(e,i,d,k,h,m,q){var r=e.name,n,o=false;if(h)e.name=r=r.replace(f,"$1");if(d=d&&d[r]){c(e);for(r=0;r<d.length;++r)p(a,e,d[r]);i||j(e)}if(i){var r=e.name,d=i.elements[r],u=i.generic,i={valid:false,validAttributes:{},validClasses:{},validStyles:{},allAttributes:false,allClasses:false,allStyles:false};if(!d&&!u){k.push(e);return true}c(e);if(d){r=0;for(n=d.length;r<n;++r)b(d[r],e,i,true,m)}if(u){r=0;for(n=u.length;r<n;++r)b(u[r],e,i,false,m)}if(!i.valid){k.push(e);return true}m=i.validAttributes; -r=i.validStyles;d=i.validClasses;n=e.attributes;var u=e.styles,w=n["class"],t=n.style,x,y=[],z=[],s=/^data-cke-/,A=false;delete n.style;delete n["class"];if(!i.allAttributes)for(x in n)if(!m[x]&&!s.test(x)){delete n[x];A=true}if(i.allStyles){if(t)n.style=t}else{for(x in u)r[x]?y.push(x+":"+u[x]):A=true;if(y.length)n.style=y.sort().join("; ")}if(i.allClasses)w&&(n["class"]=w);else{for(x in d)d[x]&&z.push(x);z.length&&(n["class"]=z.sort().join(" "));w&&z.length<w.split(/\s+/).length&&(A=true)}A&&(o= -true);if(!q&&!l(e)){k.push(e);return true}}if(h)e.name=e.name.replace(g,"cke:$1");return o}}function e(a,b){if(!b)return true;for(var c=0;c<b.length;++c)if(!(b[c]in a))return false;return true}function h(a){if(!a)return{};for(var a=a.split(/\s*,\s*/).sort(),b={};a.length;)b[a.shift()]=s;return b}function g(a){var b,c,f=false,g={},e,i;for(i in v){c=[];if(b=a[i]){var d=c,k=void 0,h=void 0;typeof b=="string"&&(b=b.split(/\s*,\s*/));if(typeof b=="object"&&b.length)for(h=0;h<b.length;++h){k=b[h];k.indexOf("!")=== -0&&d.push(b[h]=k.slice(1))}if((a[i]=m(b))===true)f=true}if(b=a[A[i]]){typeof b=="string"&&(b=b.split(/\s*,\s*/));c=c.concat(b)}if(c.length){g[i]=c;e=1}}return{priority:f,required:e?g:null}}function f(a){for(var b,c,f,g,e={},d=1,a=w(a);b=a.match(B);){if(c=b[2]){f=i(c,"styles");g=i(c,"attrs");c=i(c,"classes")}else f=g=c=null;e["$"+d++]={elements:b[1],classes:c,styles:f,attributes:g};a=a.slice(b[0].length)}return e}function i(a,b){var c=a.match(y[b]);return c?w(c[1]):null}function c(a){if(!a.styles)a.styles= -CKEDITOR.tools.parseCssText(a.attributes.style||"",1);if(!a.classes)a.classes=a.attributes["class"]?a.attributes["class"].split(/\s+/):[]}function j(a){var b=a.attributes,c;delete b.style;delete b["class"];if(c=CKEDITOR.tools.writeCssText(a.styles,true))b.style=c;a.classes.length&&(b["class"]=a.classes.sort().join(" "))}function l(a){var b;switch(a.name){case "a":b=a.attributes;if(!b.href&&!b.name||!b.name&&!a.children.length)return false;break;case "img":if(!a.attributes.src)return false}return true} -function m(a){if(a=="*")return true;var b=typeof a;b=="object"&&(b=a.test?"regexp":a.push?"array":b);switch(b){case "function":return a;case "string":var c=w(a).split(/\s*,\s*/);return function(a){return CKEDITOR.tools.indexOf(c,a)>-1};case "regexp":return function(b){return a.test(b)};case "array":return function(b){return CKEDITOR.tools.indexOf(a,b)>-1};case "object":return function(b){return b in a}}return false}function n(){return new CKEDITOR.htmlParser.element("br")}function o(a){return a.type== -CKEDITOR.NODE_ELEMENT&&(a.name=="br"||x.$block[a.name])}function k(a,b,c){var f=a.name;if(x.$empty[f]||!a.children.length)if(f=="hr"&&b=="br")a.replaceWith(n());else{a.parent&&c.push({check:"it",el:a.parent});a.remove()}else if(x.$block[f]||f=="tr")if(b=="br"){if(a.previous&&!o(a.previous)){b=n();b.insertBefore(a)}if(a.next&&!o(a.next)){b=n();b.insertAfter(a)}a.replaceWithChildren()}else{var f=a.children,g;b:{g=x[b];for(var e=0,i=f.length,d;e<i;++e){d=f[e];if(d.type==CKEDITOR.NODE_ELEMENT&&!g[d.name]){g= -false;break b}}g=true}if(g){a.name=b;a.attributes={};c.push({check:"parent-down",el:a})}else{g=a.parent;for(var e=g.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||g.name=="body",k,i=f.length;i>0;){d=f[--i];if(e&&(d.type==CKEDITOR.NODE_TEXT||d.type==CKEDITOR.NODE_ELEMENT&&x.$inline[d.name])){if(!k){k=new CKEDITOR.htmlParser.element(b);k.insertAfter(a);c.push({check:"parent-down",el:k})}k.add(d,0)}else{k=null;d.insertAfter(a);g.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(d.type==CKEDITOR.NODE_ELEMENT&&!x[g.name][d.name])&& -c.push({check:"el-up",el:d})}}a.remove()}}else if(f=="style")a.remove();else{a.parent&&c.push({check:"it",el:a.parent});a.replaceWithChildren()}}function p(a,b,c){var f,g;for(f=0;f<c.length;++f){g=c[f];if((!g.check||a.check(g.check,false))&&(!g.left||g.left(b))){g.right(b,C);break}}}function r(a,b){var c=b.getDefinition(),f=c.attributes,g=c.styles,e,i,d,k;if(a.name!=c.element)return false;for(e in f)if(e=="class"){c=f[e].split(/\s+/);for(d=a.classes.join("|");k=c.pop();)if(d.indexOf(k)==-1)return false}else if(a.attributes[e]!= -f[e])return false;for(i in g)if(a.styles[i]!=g[i])return false;return true}function q(a,b){var c,f;if(typeof a=="string")c=a;else if(a instanceof CKEDITOR.style)f=a;else{c=a[0];f=a[1]}return[{element:c,left:f,right:function(a,c){c.transform(a,b)}}]}function t(a){return function(b){return r(b,a)}}function z(a){return function(b,c){c[a](b)}}var x=CKEDITOR.dtd,u=CKEDITOR.tools.copy,w=CKEDITOR.tools.trim,s="cke-test";CKEDITOR.filter=function(a){this.allowedContent=[];this.disabled=false;this.editor=null; -this.enterMode=CKEDITOR.ENTER_P;this._={rules:{},transformations:{},cachedTests:{}};if(a instanceof CKEDITOR.editor){var b=this.editor=a;this.customConfig=true;var a=b.config.allowedContent,c;if(a===true)this.disabled=true;else{if(!a)this.customConfig=false;this.enterMode=c=b.blockless?CKEDITOR.ENTER_BR:b.config.enterMode;this.allow("br "+(c==CKEDITOR.ENTER_P?"p":c==CKEDITOR.ENTER_DIV?"div":""),"default",1);this.allow(a,"config",1);this.allow(b.config.extraAllowedContent,"extra",1);this._.toHtmlListener= -b.on("toHtml",function(a){this.applyTo(a.data.dataValue,true,a.data.dontFilter)&&b.fire("dataFiltered")},this,null,6);this._.toDataFormatListener=b.on("toDataFormat",function(a){this.applyTo(a.data.dataValue,false,true)},this,null,11)}}else{this.customConfig=false;this.allow(a,"default",1)}};CKEDITOR.filter.prototype={allow:function(a,b,c){if(this.disabled||this.customConfig&&!c||!a)return false;this._.cachedChecks={};var e,i;if(typeof a=="string")a=f(a);else if(a instanceof CKEDITOR.style){i=a.getDefinition(); -c={};a=i.attributes;c[i.element]=i={styles:i.styles,requiredStyles:i.styles&&CKEDITOR.tools.objectKeys(i.styles)};if(a){a=u(a);i.classes=a["class"]?a["class"].split(/\s+/):null;i.requiredClasses=i.classes;delete a["class"];i.attributes=a;i.requiredAttributes=a&&CKEDITOR.tools.objectKeys(a)}a=c}else if(CKEDITOR.tools.isArray(a)){for(e=0;e<a.length;++e)i=this.allow(a[e],b,c);return i}var d,c=[];for(e in a){d=typeof d=="boolean"?{}:typeof d=="function"?{match:d}:u(a[e]);if(e.charAt(0)!="$")d.elements= -e;if(b)d.featureName=b.toLowerCase();this.allowedContent.push(d);c.push(d)}b=this._.rules;e=b.elements||{};d=b.generic||[];var k,h,j,m,a=0;for(i=c.length;a<i;++a){k=u(c[a]);if(typeof k.elements=="string"){h=w(k.elements);delete k.elements;m=g(k);if(h=="*"){k.propertiesOnly=true;d[m.priority?"unshift":"push"](k)}else for(h=h.split(/\s+/);j=h.pop();)if(e[j])e[j][m.priority?"unshift":"push"](k);else e[j]=[k]}else{m=g(k);d[m.priority?"unshift":"push"](k)}k.required=m.required}b.elements=e;b.generic=d.length? -d:null;return true},applyTo:function(b,c,f){var g=[],e=!f&&this._.rules,i=this._.transformations,d=a(this),h=this.editor&&this.editor.config.protectedSource,j=false;b.forEach(function(a){if(a.type==CKEDITOR.NODE_ELEMENT)d(a,e,i,g,c)&&(j=true);else if(a.type==CKEDITOR.NODE_COMMENT&&a.value.match(/^\{cke_protected\}(?!\{C\})/)){var b;a:{var f=decodeURIComponent(a.value.replace(/^\{cke_protected\}/,""));b=[];var k,m,p;if(h)for(m=0;m<h.length;++m)if((p=f.match(h[m]))&&p[0].length==f.length){b=true;break a}f= -CKEDITOR.htmlParser.fragment.fromHtml(f);f.children.length==1&&(k=f.children[0]).type==CKEDITOR.NODE_ELEMENT&&d(k,e,i,b,c);b=!b.length}b||g.push(a)}},null,true);g.length&&(j=true);for(var m,p,b=[],f=["p","br","div"][this.enterMode-1];m=g.pop();)m.type==CKEDITOR.NODE_ELEMENT?k(m,f,b):m.remove();for(;p=b.pop();){m=p.el;if(m.parent)switch(p.check){case "it":x.$removeEmpty[m.name]&&!m.children.length?k(m,f,b):l(m)||k(m,f,b);break;case "el-up":m.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&!x[m.parent.name][m.name]&& -k(m,f,b);break;case "parent-down":m.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&!x[m.parent.name][m.name]&&k(m.parent,f,b)}}return j},checkFeature:function(a){if(this.disabled||!a)return true;a.toFeature&&(a=a.toFeature(this.editor));return!a.requiredContent||this.check(a.requiredContent)},disable:function(){this.disabled=true;this._.toHtmlListener&&this._.toHtmlListener.removeListener();this._.toDataFormatListener&&this._.toDataFormatListener.removeListener()},addContentForms:function(a){if(!this.disabled&& -a){var b,c,f=[],g;for(b=0;b<a.length&&!g;++b){c=a[b];if((typeof c=="string"||c instanceof CKEDITOR.style)&&this.check(c))g=c}if(g){for(b=0;b<a.length;++b)f.push(q(a[b],g));this.addTransformations(f)}}},addFeature:function(a){if(this.disabled||!a)return true;a.toFeature&&(a=a.toFeature(this.editor));this.allow(a.allowedContent,a.name);this.addTransformations(a.contentTransformations);this.addContentForms(a.contentForms);return this.customConfig&&a.requiredContent?this.check(a.requiredContent):true}, -addTransformations:function(a){var b,c;if(!this.disabled&&a){var f=this._.transformations,g;for(g=0;g<a.length;++g){b=a[g];var e=void 0,i=void 0,d=void 0,k=void 0,h=void 0,j=void 0;c=[];for(i=0;i<b.length;++i){d=b[i];if(typeof d=="string"){d=d.split(/\s*:\s*/);k=d[0];h=null;j=d[1]}else{k=d.check;h=d.left;j=d.right}if(!e){e=d;e=e.element?e.element:k?k.match(/^([a-z0-9]+)/i)[0]:e.left.getDefinition().element}h instanceof CKEDITOR.style&&(h=t(h));c.push({check:k==e?null:k,left:h,right:typeof j=="string"? -z(j):j})}b=e;f[b]||(f[b]=[]);f[b].push(c)}}},check:function(b,c,g){if(this.disabled)return true;var e,i;if(typeof b=="string"){i=b+"<"+(c===false?"0":"1")+(g?"1":"0")+">";if(i in this._.cachedChecks)return this._.cachedChecks[i];e=f(b).$1;var d=e.styles,k=e.classes;e.name=e.elements;e.classes=k=k?k.split(/\s*,\s*/):[];e.styles=h(d);e.attributes=h(e.attributes);e.children=[];k.length&&(e.attributes["class"]=k.join(" "));if(d)e.attributes.style=CKEDITOR.tools.writeCssText(e.styles)}else{e=b.getDefinition(); -d=e.styles;k=e.attributes||{};if(d){d=u(d);k.style=CKEDITOR.tools.writeCssText(d,true)}else d={};e={name:e.element,attributes:k,classes:k["class"]?k["class"].split(/\s+/):[],styles:d,children:[]}}var d=CKEDITOR.tools.clone(e),k=[],m,r;if(c!==false&&(m=this._.transformations[e.name])){for(r=0;r<m.length;++r)p(this,e,m[r]);j(e)}a(this)(d,this._.rules,c===false?false:this._.transformations,k,false,!g,!g);c=k.length>0?false:CKEDITOR.tools.objectCompare(e.attributes,d.attributes,true)?true:false;typeof b== -"string"&&(this._.cachedChecks[i]=c);return c}};var v={elements:1,styles:1,attributes:1,classes:1},A={styles:"requiredStyles",attributes:"requiredAttributes",classes:"requiredClasses"},B=/^([a-z0-9*\s]+)((?:\s*\{[!\w\-,\s\*]+\}\s*|\s*\[[!\w\-,\s\*]+\]\s*|\s*\([!\w\-,\s\*]+\)\s*){0,3})(?:;\s*|$)/i,y={styles:/{([^}]+)}/,attrs:/\[([^\]]+)\]/,classes:/\(([^\)]+)\)/},C=CKEDITOR.filter.transformationsTools={sizeToStyle:function(a){this.lengthToStyle(a,"width");this.lengthToStyle(a,"height")},sizeToAttribute:function(a){this.lengthToAttribute(a, -"width");this.lengthToAttribute(a,"height")},lengthToStyle:function(a,b,c){c=c||b;if(!(c in a.styles)){var f=a.attributes[b];if(f){/^\d+$/.test(f)&&(f=f+"px");a.styles[c]=f}}delete a.attributes[b]},lengthToAttribute:function(a,b,c){c=c||b;if(!(c in a.attributes)){var f=a.styles[b],g=f&&f.match(/^(\d+)(?:\.\d*)?px$/);g?a.attributes[c]=g[1]:f==s&&(a.attributes[c]=s)}delete a.styles[b]},matchesStyle:r,transform:function(a,b){if(typeof b=="string")a.name=b;else{var c=b.getDefinition(),f=c.styles,g=c.attributes, -e,i,d,k;a.name=c.element;for(e in g)if(e=="class"){c=a.classes.join("|");for(d=g[e].split(/\s+/);k=d.pop();)c.indexOf(k)==-1&&a.classes.push(k)}else a.attributes[e]=g[e];for(i in f)a.styles[i]=f[i]}}}}(),function(){CKEDITOR.focusManager=function(b){if(b.focusManager)return b.focusManager;this.hasFocus=false;this.currentActive=null;this._={editor:b};return this};CKEDITOR.focusManager._={blurDelay:200};CKEDITOR.focusManager.prototype={focus:function(){this._.timer&&clearTimeout(this._.timer);if(!this.hasFocus&& -!this._.locked){var b=CKEDITOR.currentInstance;b&&b.focusManager.blur(1);this.hasFocus=true;(b=this._.editor.container)&&b.addClass("cke_focus");this._.editor.fire("focus")}},lock:function(){this._.locked=1},unlock:function(){delete this._.locked},blur:function(b){function d(){if(this.hasFocus){this.hasFocus=false;var a=this._.editor.container;a&&a.removeClass("cke_focus");this._.editor.fire("blur")}}if(!this._.locked){this._.timer&&clearTimeout(this._.timer);var a=CKEDITOR.focusManager._.blurDelay; -b||!a?d.call(this):this._.timer=CKEDITOR.tools.setTimeout(function(){delete this._.timer;d.call(this)},a,this)}},add:function(b,d){var a=b.getCustomData("focusmanager");if(!a||a!=this){a&&a.remove(b);var a="focus",e="blur";if(d)if(CKEDITOR.env.ie){a="focusin";e="focusout"}else CKEDITOR.event.useCapture=1;var h={blur:function(){b.equals(this.currentActive)&&this.blur()},focus:function(){this.currentActive=b;this.focus()}};b.on(a,h.focus,this);b.on(e,h.blur,this);if(d)CKEDITOR.event.useCapture=0;b.setCustomData("focusmanager", -this);b.setCustomData("focusmanager_handlers",h)}},remove:function(b){b.removeCustomData("focusmanager");var d=b.removeCustomData("focusmanager_handlers");b.removeListener("blur",d.blur);b.removeListener("focus",d.focus)}}}(),CKEDITOR.keystrokeHandler=function(b){if(b.keystrokeHandler)return b.keystrokeHandler;this.keystrokes={};this.blockedKeystrokes={};this._={editor:b};return this},function(){var b,d=function(a){var a=a.data,d=a.getKeystroke(),g=this.keystrokes[d],f=this._.editor;b=f.fire("key", -{keyCode:d})===false;if(!b){g&&(b=f.execCommand(g,{from:"keystrokeHandler"})!==false);b||(b=!!this.blockedKeystrokes[d])}b&&a.preventDefault(true);return!b},a=function(a){if(b){b=false;a.data.preventDefault(true)}};CKEDITOR.keystrokeHandler.prototype={attach:function(b){b.on("keydown",d,this);if(CKEDITOR.env.opera||CKEDITOR.env.gecko&&CKEDITOR.env.mac)b.on("keypress",a,this)}}}(),function(){CKEDITOR.lang={languages:{af:1,ar:1,bg:1,bn:1,bs:1,ca:1,cs:1,cy:1,da:1,de:1,el:1,"en-au":1,"en-ca":1,"en-gb":1, -en:1,eo:1,es:1,et:1,eu:1,fa:1,fi:1,fo:1,"fr-ca":1,fr:1,gl:1,gu:1,he:1,hi:1,hr:1,hu:1,is:1,it:1,ja:1,ka:1,km:1,ko:1,ku:1,lt:1,lv:1,mn:1,ms:1,nb:1,nl:1,no:1,pl:1,"pt-br":1,pt:1,ro:1,ru:1,sk:1,sl:1,"sr-latn":1,sr:1,sv:1,th:1,tr:1,uk:1,vi:1,"zh-cn":1,zh:1},load:function(b,d,a){if(!b||!CKEDITOR.lang.languages[b])b=this.detect(d,b);this[b]?a(b,this[b]):CKEDITOR.scriptLoader.load(CKEDITOR.getUrl("lang/"+b+".js"),function(){a(b,this[b])},this)},detect:function(b,d){var a=this.languages,d=d||navigator.userLanguage|| -navigator.language||b,e=d.toLowerCase().match(/([a-z]+)(?:-([a-z]+))?/),h=e[1],e=e[2];a[h+"-"+e]?h=h+"-"+e:a[h]||(h=null);CKEDITOR.lang.detect=h?function(){return h}:function(a){return a};return h||b}}}(),CKEDITOR.scriptLoader=function(){var b={},d={};return{load:function(a,e,h,g){var f=typeof a=="string";f&&(a=[a]);h||(h=CKEDITOR);var i=a.length,c=[],j=[],l=function(a){e&&(f?e.call(h,a):e.call(h,c,j))};if(i===0)l(true);else{var m=function(a,b){(b?c:j).push(a);if(--i<=0){g&&CKEDITOR.document.getDocumentElement().removeStyle("cursor"); -l(b)}},n=function(a,c){b[a]=1;var f=d[a];delete d[a];for(var g=0;g<f.length;g++)f[g](a,c)},o=function(a){if(b[a])m(a,true);else{var c=d[a]||(d[a]=[]);c.push(m);if(!(c.length>1)){var f=new CKEDITOR.dom.element("script");f.setAttributes({type:"text/javascript",src:a});if(e)if(CKEDITOR.env.ie)f.$.onreadystatechange=function(){if(f.$.readyState=="loaded"||f.$.readyState=="complete"){f.$.onreadystatechange=null;n(a,true)}};else{f.$.onload=function(){setTimeout(function(){n(a,true)},0)};f.$.onerror=function(){n(a, -false)}}f.appendTo(CKEDITOR.document.getHead())}}};g&&CKEDITOR.document.getDocumentElement().setStyle("cursor","wait");for(var k=0;k<i;k++)o(a[k])}}}}(),CKEDITOR.resourceManager=function(b,d){this.basePath=b;this.fileName=d;this.registered={};this.loaded={};this.externals={};this._={waitingList:{}}},CKEDITOR.resourceManager.prototype={add:function(b,d){if(this.registered[b])throw'[CKEDITOR.resourceManager.add] The resource name "'+b+'" is already registered.';var a=this.registered[b]=d||{};a.name= -b;a.path=this.getPath(b);CKEDITOR.fire(b+CKEDITOR.tools.capitalize(this.fileName)+"Ready",a);return this.get(b)},get:function(b){return this.registered[b]||null},getPath:function(b){var d=this.externals[b];return CKEDITOR.getUrl(d&&d.dir||this.basePath+b+"/")},getFilePath:function(b){var d=this.externals[b];return CKEDITOR.getUrl(this.getPath(b)+(d&&typeof d.file=="string"?d.file:this.fileName+".js"))},addExternal:function(b,d,a){for(var b=b.split(","),e=0;e<b.length;e++)this.externals[b[e]]={dir:d, -file:a}},load:function(b,d,a){CKEDITOR.tools.isArray(b)||(b=b?[b]:[]);for(var e=this.loaded,h=this.registered,g=[],f={},i={},c=0;c<b.length;c++){var j=b[c];if(j)if(!e[j]&&!h[j]){var l=this.getFilePath(j);g.push(l);l in f||(f[l]=[]);f[l].push(j)}else i[j]=this.get(j)}CKEDITOR.scriptLoader.load(g,function(b,c){if(c.length)throw'[CKEDITOR.resourceManager.load] Resource name "'+f[c[0]].join(",")+'" was not found at "'+c[0]+'".';for(var g=0;g<b.length;g++)for(var k=f[b[g]],h=0;h<k.length;h++){var j=k[h]; -i[j]=this.get(j);e[j]=1}d.call(a,i)},this)}},CKEDITOR.plugins=new CKEDITOR.resourceManager("plugins/","plugin"),CKEDITOR.plugins.load=CKEDITOR.tools.override(CKEDITOR.plugins.load,function(b){var d={};return function(a,e,h){var g={},f=function(a){b.call(this,a,function(a){CKEDITOR.tools.extend(g,a);var b=[],i;for(i in a){var m=a[i],n=m&&m.requires;if(!d[i]){if(m.icons)for(var o=m.icons.split(","),k=0;k<o.length;k++)CKEDITOR.skin.addIcon(o[k],m.path+"icons/"+o[k]+".png");d[i]=1}if(n){n.split&&(n=n.split(",")); -for(m=0;m<n.length;m++)g[n[m]]||b.push(n[m])}}if(b.length)f.call(this,b);else{for(i in g){m=g[i];if(m.onLoad&&!m.onLoad._called){m.onLoad()===false&&delete g[i];m.onLoad._called=1}}e&&e.call(h||window,g)}},this)};f.call(this,a)}}),CKEDITOR.plugins.setLang=function(b,d,a){var e=this.get(b),b=e.langEntries||(e.langEntries={}),e=e.lang||(e.lang=[]);e.split&&(e=e.split(","));CKEDITOR.tools.indexOf(e,d)==-1&&e.push(d);b[d]=a},CKEDITOR.ui=function(b){if(b.ui)return b.ui;this.items={};this.instances={}; -this.editor=b;this._={handlers:{}};return this},CKEDITOR.ui.prototype={add:function(b,d,a){a.name=b.toLowerCase();var e=this.items[b]={type:d,command:a.command||null,args:Array.prototype.slice.call(arguments,2)};CKEDITOR.tools.extend(e,a)},get:function(b){return this.instances[b]},create:function(b){var d=this.items[b],a=d&&this._.handlers[d.type],e=d&&d.command&&this.editor.getCommand(d.command),a=a&&a.create.apply(this,d.args);this.instances[b]=a;e&&e.uiItems.push(a);if(a&&!a.type)a.type=d.type; -return a},addHandler:function(b,d){this._.handlers[b]=d},space:function(b){return CKEDITOR.document.getById(this.spaceId(b))},spaceId:function(b){return this.editor.id+"_"+b}},CKEDITOR.event.implementOn(CKEDITOR.ui),function(){function b(b,c,g){CKEDITOR.event.call(this);b=b&&CKEDITOR.tools.clone(b);if(c!==void 0){if(c instanceof CKEDITOR.dom.element){if(!g)throw Error("One of the element mode must be specified.");}else throw Error("Expect element of type CKEDITOR.dom.element.");if(CKEDITOR.env.ie&& -CKEDITOR.env.quirks&&g==CKEDITOR.ELEMENT_MODE_INLINE)throw Error("Inline element mode is not supported on IE quirks.");if(g==CKEDITOR.ELEMENT_MODE_INLINE&&!c.is(CKEDITOR.dtd.$editable)||g==CKEDITOR.ELEMENT_MODE_REPLACE&&c.is(CKEDITOR.dtd.$nonBodyContent))throw Error('The specified element mode is not supported on element: "'+c.getName()+'".');this.element=c;this.elementMode=g;this.name=this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO&&(c.getId()||c.getNameAtt())}else this.elementMode=CKEDITOR.ELEMENT_MODE_NONE; -this._={};this.commands={};this.templates={};this.name=this.name||d();this.id=CKEDITOR.tools.getNextId();this.status="unloaded";this.config=CKEDITOR.tools.prototypedCopy(CKEDITOR.config);this.ui=new CKEDITOR.ui(this);this.focusManager=new CKEDITOR.focusManager(this);this.keystrokeHandler=new CKEDITOR.keystrokeHandler(this);this.on("readOnly",a);this.on("selectionChange",h);this.on("instanceReady",function(){a.call(this);this.on("mode",a);this.config.startupFocus&&this.focus()});CKEDITOR.fire("instanceCreated", -null,this);CKEDITOR.add(this);CKEDITOR.tools.setTimeout(function(){f(this,b)},0,this)}function d(){do var a="editor"+ ++n;while(CKEDITOR.instances[a]);return a}function a(){var a=this.commands;if(this.mode)for(var b in a)e(this,a[b])}function e(a,b){b[b.startDisabled?"disable":a.readOnly&&!b.readOnly?"disable":b.modes[a.mode]?"enable":"disable"]()}function h(a){var b=this.commands,c=a.editor,f=a.data.path,g;for(g in b){a=b[g];a.contextSensitive&&a.refresh(c,f)}}function g(a){var b=a.config.customConfig; -if(!b)return false;var b=CKEDITOR.getUrl(b),c=o[b]||(o[b]={});if(c.fn){c.fn.call(a,a.config);(CKEDITOR.getUrl(a.config.customConfig)==b||!g(a))&&a.fireOnce("customConfigLoaded")}else CKEDITOR.scriptLoader.load(b,function(){c.fn=CKEDITOR.editorConfig?CKEDITOR.editorConfig:function(){};g(a)});return true}function f(a,b){a.on("customConfigLoaded",function(){if(b){if(b.on)for(var c in b.on)a.on(c,b.on[c]);CKEDITOR.tools.extend(a.config,b,true);delete a.config.on}a.readOnly=!(!a.config.readOnly&&!(a.elementMode== -CKEDITOR.ELEMENT_MODE_INLINE?a.element.isReadOnly():a.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE&&a.element.getAttribute("disabled")));a.blockless=a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&!CKEDITOR.dtd[a.element.getName()].p;a.tabIndex=a.config.tabIndex||a.element&&a.element.getAttribute("tabindex")||0;if(a.config.skin)CKEDITOR.skinName=a.config.skin;a.fireOnce("configLoaded");a.dataProcessor=new CKEDITOR.htmlDataProcessor(a);a.filter=new CKEDITOR.filter(a);i(a)});if(b&&b.customConfig!=void 0)a.config.customConfig= -b.customConfig;g(a)||a.fireOnce("customConfigLoaded")}function i(a){CKEDITOR.skin.loadPart("editor",function(){c(a)})}function c(a){CKEDITOR.lang.load(a.config.language,a.config.defaultLanguage,function(b,c){a.langCode=b;a.lang=CKEDITOR.tools.prototypedCopy(c);if(CKEDITOR.env.gecko&&CKEDITOR.env.version<10900&&a.lang.dir=="rtl")a.lang.dir="ltr";if(!a.config.contentsLangDirection)a.config.contentsLangDirection=a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?a.element.getDirection(1):a.lang.dir;a.fire("langLoaded"); -j(a)})}function j(a){a.getStylesSet(function(b){a.once("loaded",function(){a.fire("stylesSet",{styles:b})},null,null,1);l(a)})}function l(a){var b=a.config,c=b.plugins,f=b.extraPlugins,g=b.removePlugins;if(f)var e=RegExp("(?:^|,)(?:"+f.replace(/\s*,\s*/g,"|")+")(?=,|$)","g"),c=c.replace(e,""),c=c+(","+f);if(g)var i=RegExp("(?:^|,)(?:"+g.replace(/\s*,\s*/g,"|")+")(?=,|$)","g"),c=c.replace(i,"");CKEDITOR.env.air&&(c=c+",adobeair");CKEDITOR.plugins.load(c.split(","),function(c){var f=[],g=[],e=[];a.plugins= -c;for(var d in c){var h=c[d],j=h.lang,m=null,n=h.requires,q;CKEDITOR.tools.isArray(n)&&(n=n.join(","));if(n&&(q=n.match(i)))for(;n=q.pop();)CKEDITOR.tools.setTimeout(function(a,b){throw Error('Plugin "'+a.replace(",","")+'" cannot be removed from the plugins list, because it\'s required by "'+b+'" plugin.');},0,null,[n,d]);if(j&&!a.lang[d]){j.split&&(j=j.split(","));if(CKEDITOR.tools.indexOf(j,a.langCode)>=0)m=a.langCode;else{m=a.langCode.replace(/-.*/,"");m=m!=a.langCode&&CKEDITOR.tools.indexOf(j, -m)>=0?m:CKEDITOR.tools.indexOf(j,"en")>=0?"en":j[0]}if(!h.langEntries||!h.langEntries[m])e.push(CKEDITOR.getUrl(h.path+"lang/"+m+".js"));else{a.lang[d]=h.langEntries[m];m=null}}g.push(m);f.push(h)}CKEDITOR.scriptLoader.load(e,function(){for(var c=["beforeInit","init","afterInit"],e=0;e<c.length;e++)for(var i=0;i<f.length;i++){var d=f[i];e===0&&(g[i]&&d.lang&&d.langEntries)&&(a.lang[d.name]=d.langEntries[g[i]]);if(d[c[e]])d[c[e]](a)}a.fireOnce("pluginsLoaded");b.keystrokes&&a.setKeystroke(a.config.keystrokes); -for(i=0;i<a.config.blockedKeystrokes.length;i++)a.keystrokeHandler.blockedKeystrokes[a.config.blockedKeystrokes[i]]=1;a.status="loaded";a.fireOnce("loaded");CKEDITOR.fire("instanceLoaded",null,a)})})}function m(){var a=this.element;if(a&&this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO){var b=this.getData();this.config.htmlEncodeOutput&&(b=CKEDITOR.tools.htmlEncode(b));a.is("textarea")?a.setValue(b):a.setHtml(b);return true}return false}b.prototype=CKEDITOR.editor.prototype;CKEDITOR.editor=b;var n= -0,o={};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{addCommand:function(a,b){b.name=a.toLowerCase();var c=new CKEDITOR.command(this,b);this.status=="ready"&&this.mode&&e(this,c);return this.commands[a]=c},destroy:function(a){this.fire("beforeDestroy");!a&&m.call(this);this.editable(null);this.status="destroyed";this.fire("destroy");this.removeAllListeners();CKEDITOR.remove(this);CKEDITOR.fire("instanceDestroyed",null,this)},elementPath:function(a){return(a=a||this.getSelection().getStartElement())? -new CKEDITOR.dom.elementPath(a,this.editable()):null},createRange:function(){var a=this.editable();return a?new CKEDITOR.dom.range(a):null},execCommand:function(a,b){var c=this.getCommand(a),f={name:a,commandData:b,command:c};if(c&&c.state!=CKEDITOR.TRISTATE_DISABLED&&this.fire("beforeCommandExec",f)!==true){f.returnValue=c.exec(f.commandData);if(!c.async&&this.fire("afterCommandExec",f)!==true)return f.returnValue}return false},getCommand:function(a){return this.commands[a]},getData:function(a){!a&& -this.fire("beforeGetData");var b=this._.data;if(typeof b!="string")b=(b=this.element)&&this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE?b.is("textarea")?b.getValue():b.getHtml():"";b={dataValue:b};!a&&this.fire("getData",b);return b.dataValue},getSnapshot:function(){var a=this.fire("getSnapshot");if(typeof a!="string"){var b=this.element;b&&this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE&&(a=b.is("textarea")?b.getValue():b.getHtml())}return a},loadSnapshot:function(a){this.fire("loadSnapshot",a)}, -setData:function(a,b,c){if(b)this.on("dataReady",function(a){a.removeListener();b.call(a.editor)});a={dataValue:a};!c&&this.fire("setData",a);this._.data=a.dataValue;!c&&this.fire("afterSetData",a)},setReadOnly:function(a){a=a==void 0||a;if(this.readOnly!=a){this.readOnly=a;this.editable().setReadOnly(a);this.fire("readOnly")}},insertHtml:function(a,b){this.fire("insertHtml",{dataValue:a,mode:b})},insertText:function(a){this.fire("insertText",a)},insertElement:function(a){this.fire("insertElement", -a)},focus:function(){this.fire("beforeFocus")},checkDirty:function(){return this.status=="ready"&&this._.previousValue!==this.getSnapshot()},resetDirty:function(){this._.previousValue=this.getSnapshot()},updateElement:function(){return m.call(this)},setKeystroke:function(){for(var a=this.keystrokeHandler.keystrokes,b=CKEDITOR.tools.isArray(arguments[0])?arguments[0]:[[].slice.call(arguments,0)],c,f,g=b.length;g--;){c=b[g];f=0;if(CKEDITOR.tools.isArray(c)){f=c[1];c=c[0]}f?a[c]=f:delete a[c]}},addFeature:function(a){return this.filter.addFeature(a)}})}(), -CKEDITOR.ELEMENT_MODE_NONE=0,CKEDITOR.ELEMENT_MODE_REPLACE=1,CKEDITOR.ELEMENT_MODE_APPENDTO=2,CKEDITOR.ELEMENT_MODE_INLINE=3,CKEDITOR.htmlParser=function(){this._={htmlPartsRegex:RegExp("<(?:(?:\\/([^>]+)>)|(?:!--([\\S|\\s]*?)--\>)|(?:([^\\s>]+)\\s*((?:(?:\"[^\"]*\")|(?:'[^']*')|[^\"'>])*)\\/?>))","g")}},function(){var b=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,d={checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1, -nowrap:1,readonly:1,selected:1};CKEDITOR.htmlParser.prototype={onTagOpen:function(){},onTagClose:function(){},onText:function(){},onCDATA:function(){},onComment:function(){},parse:function(a){for(var e,h,g=0,f;e=this._.htmlPartsRegex.exec(a);){h=e.index;if(h>g){g=a.substring(g,h);if(f)f.push(g);else this.onText(g)}g=this._.htmlPartsRegex.lastIndex;if(h=e[1]){h=h.toLowerCase();if(f&&CKEDITOR.dtd.$cdata[h]){this.onCDATA(f.join(""));f=null}if(!f){this.onTagClose(h);continue}}if(f)f.push(e[0]);else if(h= -e[3]){h=h.toLowerCase();if(!/="/.test(h)){var i={},c;e=e[4];var j=!!(e&&e.charAt(e.length-1)=="/");if(e)for(;c=b.exec(e);){var l=c[1].toLowerCase();c=c[2]||c[3]||c[4]||"";i[l]=!c&&d[l]?l:c}this.onTagOpen(h,i,j);!f&&CKEDITOR.dtd.$cdata[h]&&(f=[])}}else if(h=e[2])this.onComment(h)}if(a.length>g)this.onText(a.substring(g,a.length))}}}(),CKEDITOR.htmlParser.basicWriter=CKEDITOR.tools.createClass({$:function(){this._={output:[]}},proto:{openTag:function(b){this._.output.push("<",b)},openTagClose:function(b, -d){d?this._.output.push(" />"):this._.output.push(">")},attribute:function(b,d){typeof d=="string"&&(d=CKEDITOR.tools.htmlEncodeAttr(d));this._.output.push(" ",b,'="',d,'"')},closeTag:function(b){this._.output.push("</",b,">")},text:function(b){this._.output.push(b)},comment:function(b){this._.output.push("<\!--",b,"--\>")},write:function(b){this._.output.push(b)},reset:function(){this._.output=[];this._.indent=false},getHtml:function(b){var d=this._.output.join("");b&&this.reset();return d}}}),"use strict", -function(){CKEDITOR.htmlParser.node=function(){};CKEDITOR.htmlParser.node.prototype={remove:function(){var b=this.parent.children,d=CKEDITOR.tools.indexOf(b,this),a=this.previous,e=this.next;a&&(a.next=e);e&&(e.previous=a);b.splice(d,1);this.parent=null},replaceWith:function(b){var d=this.parent.children,a=CKEDITOR.tools.indexOf(d,this),e=b.previous=this.previous,h=b.next=this.next;e&&(e.next=b);h&&(h.previous=b);d[a]=b;b.parent=this.parent;this.parent=null},insertAfter:function(b){var d=b.parent.children, -a=CKEDITOR.tools.indexOf(d,b),e=b.next;d.splice(a+1,0,this);this.next=b.next;this.previous=b;b.next=this;e&&(e.previous=this);this.parent=b.parent},insertBefore:function(b){var d=b.parent.children,a=CKEDITOR.tools.indexOf(d,b);d.splice(a,0,this);this.next=b;(this.previous=b.previous)&&(b.previous.next=this);b.previous=this;this.parent=b.parent}}}(),"use strict",CKEDITOR.htmlParser.comment=function(b){this.value=b;this._={isBlockLike:false}},CKEDITOR.htmlParser.comment.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node, -{type:CKEDITOR.NODE_COMMENT,filter:function(b){var d=this.value;if(!(d=b.onComment(d,this))){this.remove();return false}if(typeof d!="string"){this.replaceWith(d);return false}this.value=d;return true},writeHtml:function(b,d){d&&this.filter(d);b.comment(this.value)}}),"use strict",function(){CKEDITOR.htmlParser.text=function(b){this.value=b;this._={isBlockLike:false}};CKEDITOR.htmlParser.text.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(b){if(!(this.value= -b.onText(this.value,this))){this.remove();return false}},writeHtml:function(b,d){d&&this.filter(d);b.text(this.value)}})}(),"use strict",function(){CKEDITOR.htmlParser.cdata=function(b){this.value=b};CKEDITOR.htmlParser.cdata.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(){},writeHtml:function(b){b.write(this.value)}})}(),"use strict",CKEDITOR.htmlParser.fragment=function(){this.children=[];this.parent=null;this._={isBlockLike:true,hasInlineStarted:false}}, -function(){function b(a){return a.name=="a"&&a.attributes.href||CKEDITOR.dtd.$removeEmpty[a.name]}var d=CKEDITOR.tools.extend({table:1,ul:1,ol:1,dl:1},CKEDITOR.dtd.table,CKEDITOR.dtd.ul,CKEDITOR.dtd.ol,CKEDITOR.dtd.dl),a={ol:1,ul:1},e=CKEDITOR.tools.extend({},{html:1},CKEDITOR.dtd.html,CKEDITOR.dtd.body,CKEDITOR.dtd.head,{style:1,script:1});CKEDITOR.htmlParser.fragment.fromHtml=function(h,g,f){function i(a){var b;if(p.length>0)for(var f=0;f<p.length;f++){var g=p[f],e=g.name,i=CKEDITOR.dtd[e],d=q.name&& -CKEDITOR.dtd[q.name];if((!d||d[e])&&(!a||!i||i[a]||!CKEDITOR.dtd[a])){if(!b){c();b=1}g=g.clone();g.parent=q;q=g;p.splice(f,1);f--}else if(e==q.name){l(q,q.parent,1);f--}}}function c(){for(;r.length;)l(r.shift(),q)}function j(a){if(a._.isBlockLike&&a.name!="pre"&&a.name!="textarea"){var b=a.children.length,c=a.children[b-1],f;if(c&&c.type==CKEDITOR.NODE_TEXT)(f=CKEDITOR.tools.rtrim(c.value))?c.value=f:a.children.length=b-1}}function l(a,c,g){var c=c||q||k,e=q;if(a.previous===void 0){if(m(c,a)){q=c; -o.onTagOpen(f,{});a.returnPoint=c=q}j(a);(!b(a)||a.children.length)&&c.add(a);a.name=="pre"&&(z=false);a.name=="textarea"&&(t=false)}if(a.returnPoint){q=a.returnPoint;delete a.returnPoint}else q=g?c:e}function m(a,b){if((a==k||a.name=="body")&&f&&(!a.name||CKEDITOR.dtd[a.name][f])){var c,g;return(c=b.attributes&&(g=b.attributes["data-cke-real-element-type"])?g:b.name)&&c in CKEDITOR.dtd.$inline&&!(c in CKEDITOR.dtd.head)&&!b.isOrphan||b.type==CKEDITOR.NODE_TEXT}}function n(a,b){return a in CKEDITOR.dtd.$listItem|| -a in CKEDITOR.dtd.$tableContent?a==b||a=="dt"&&b=="dd"||a=="dd"&&b=="dt":false}var o=new CKEDITOR.htmlParser,k=g instanceof CKEDITOR.htmlParser.element?g:typeof g=="string"?new CKEDITOR.htmlParser.element(g):new CKEDITOR.htmlParser.fragment,p=[],r=[],q=k,t=k.name=="textarea",z=k.name=="pre";o.onTagOpen=function(f,g,h,j){g=new CKEDITOR.htmlParser.element(f,g);if(g.isUnknown&&h)g.isEmpty=true;g.isOptionalClose=j;if(b(g))p.push(g);else{if(f=="pre")z=true;else{if(f=="br"&&z){q.add(new CKEDITOR.htmlParser.text("\n")); -return}f=="textarea"&&(t=true)}if(f=="br")r.push(g);else{for(;;){j=(h=q.name)?CKEDITOR.dtd[h]||(q._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):e;if(!g.isUnknown&&!q.isUnknown&&!j[f])if(q.isOptionalClose)o.onTagClose(h);else if(f in a&&h in a){h=q.children;(h=h[h.length-1])&&h.name=="li"||l(h=new CKEDITOR.htmlParser.element("li"),q);!g.returnPoint&&(g.returnPoint=q);q=h}else if(f in CKEDITOR.dtd.$listItem&&!n(f,h))o.onTagOpen(f=="li"?"ul":"dl",{},0,1);else if(h in d&&!n(f,h)){!g.returnPoint&& -(g.returnPoint=q);q=q.parent}else{h in CKEDITOR.dtd.$inline&&p.unshift(q);if(q.parent)l(q,q.parent,1);else{g.isOrphan=1;break}}else break}i(f);c();g.parent=q;g.isEmpty?l(g):q=g}}};o.onTagClose=function(a){for(var b=p.length-1;b>=0;b--)if(a==p[b].name){p.splice(b,1);return}for(var g=[],e=[],i=q;i!=k&&i.name!=a;){i._.isBlockLike||e.unshift(i);g.push(i);i=i.returnPoint||i.parent}if(i!=k){for(b=0;b<g.length;b++){var d=g[b];l(d,d.parent)}q=i;i._.isBlockLike&&c();l(i,i.parent);if(i==q)q=q.parent;p=p.concat(e)}a== -"body"&&(f=false)};o.onText=function(b){if((!q._.hasInlineStarted||r.length)&&!z&&!t){b=CKEDITOR.tools.ltrim(b);if(b.length===0)return}var g=q.name,h=g?CKEDITOR.dtd[g]||(q._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):e;if(!t&&!h["#"]&&g in d){o.onTagOpen(g in a?"li":g=="dl"?"dd":g=="table"?"tr":g=="tr"?"td":"");o.onText(b)}else{c();i();!z&&!t&&(b=b.replace(/[\t\r\n ]{2,}|[\t\r\n]/g," "));b=new CKEDITOR.htmlParser.text(b);if(m(q,b))this.onTagOpen(f,{},0,1);q.add(b)}};o.onCDATA=function(a){q.add(new CKEDITOR.htmlParser.cdata(a))}; -o.onComment=function(a){c();i();q.add(new CKEDITOR.htmlParser.comment(a))};o.parse(h);for(c(!CKEDITOR.env.ie&&1);q!=k;)l(q,q.parent,1);j(k);return k};CKEDITOR.htmlParser.fragment.prototype={type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,add:function(a,b){isNaN(b)&&(b=this.children.length);var f=b>0?this.children[b-1]:null;if(f){if(a._.isBlockLike&&f.type==CKEDITOR.NODE_TEXT){f.value=CKEDITOR.tools.rtrim(f.value);if(f.value.length===0){this.children.pop();this.add(a);return}}f.next=a}a.previous=f;a.parent=this; -this.children.splice(b,0,a);if(!this._.hasInlineStarted)this._.hasInlineStarted=a.type==CKEDITOR.NODE_TEXT||a.type==CKEDITOR.NODE_ELEMENT&&!a._.isBlockLike},filter:function(a){a.onRoot(this);this.filterChildren(a)},filterChildren:function(a,b){if(this.childrenFilteredBy!=a.id){if(b&&!this.parent)a.onRoot(this);this.childrenFilteredBy=a.id;for(var f=0;f<this.children.length;f++)this.children[f].filter(a)===false&&f--}},writeHtml:function(a,b){b&&this.filter(b);this.writeChildrenHtml(a)},writeChildrenHtml:function(a, -b,f){if(f&&!this.parent&&b)b.onRoot(this);b&&this.filterChildren(b);for(var b=0,f=this.children,e=f.length;b<e;b++)f[b].writeHtml(a)},forEach:function(a,b,f){!f&&(!b||this.type==b)&&a(this);for(var f=this.children,e,c=0,d=f.length;c<d;c++){e=f[c];e.type==CKEDITOR.NODE_ELEMENT?e.forEach(a,b):(!b||e.type==b)&&a(e)}}}}(),function(){function b(a,b){for(var e=0;a&&e<b.length;e++)var c=b[e],a=a.replace(c[0],c[1]);return a}function d(a,b,e){typeof b=="function"&&(b=[b]);var c,d;d=a.length;var h=b&&b.length; -if(h){for(c=0;c<d&&a[c].pri<=e;c++);for(d=h-1;d>=0;d--)if(h=b[d]){h.pri=e;a.splice(c,0,h)}}}function a(a,b,i){if(b)for(var c in b){var d=a[c];a[c]=e(d,b[c],i);d||a.$length++}}function e(a,b,e){if(b){b.pri=e;if(a){if(a.splice)d(a,b,e);else{a=a.pri>e?[b,a]:[a,b];a.filter=h}return a}return b.filter=b}}function h(a){for(var b=a.type||a instanceof CKEDITOR.htmlParser.fragment,e=0;e<this.length;e++){if(b)var c=a.type,d=a.name;var h=this[e].apply(window,arguments);if(h===false)return h;if(b){if(h&&(h.name!= -d||h.type!=c))return h}else if(typeof h!="string")return h;h!=void 0&&(a=h)}return a}CKEDITOR.htmlParser.filter=CKEDITOR.tools.createClass({$:function(a){this.id=CKEDITOR.tools.getNextNumber();this._={elementNames:[],attributeNames:[],elements:{$length:0},attributes:{$length:0}};a&&this.addRules(a,10)},proto:{addRules:function(b,f){typeof f!="number"&&(f=10);d(this._.elementNames,b.elementNames,f);d(this._.attributeNames,b.attributeNames,f);a(this._.elements,b.elements,f);a(this._.attributes,b.attributes, -f);this._.text=e(this._.text,b.text,f)||this._.text;this._.comment=e(this._.comment,b.comment,f)||this._.comment;this._.root=e(this._.root,b.root,f)||this._.root},applyTo:function(a){a.filter(this)},onElementName:function(a){return b(a,this._.elementNames)},onAttributeName:function(a){return b(a,this._.attributeNames)},onText:function(a){var b=this._.text;return b?b.filter(a):a},onComment:function(a,b){var e=this._.comment;return e?e.filter(a,b):a},onRoot:function(a){var b=this._.root;return b?b.filter(a): -a},onElement:function(a){for(var b=[this._.elements["^"],this._.elements[a.name],this._.elements.$],e,c=0;c<3;c++)if(e=b[c]){e=e.filter(a,this);if(e===false)return null;if(e&&e!=a)return this.onNode(e);if(a.parent&&!a.name)break}return a},onNode:function(a){var b=a.type;return b==CKEDITOR.NODE_ELEMENT?this.onElement(a):b==CKEDITOR.NODE_TEXT?new CKEDITOR.htmlParser.text(this.onText(a.value)):b==CKEDITOR.NODE_COMMENT?new CKEDITOR.htmlParser.comment(this.onComment(a.value)):null},onAttribute:function(a, -b,e){if(b=this._.attributes[b]){a=b.filter(e,a,this);if(a===false)return false;if(typeof a!="undefined")return a}return e}}})}(),function(){function b(b,d){function j(a){return a||CKEDITOR.env.ie?new CKEDITOR.htmlParser.text(" "):new CKEDITOR.htmlParser.element("br",{"data-cke-bogus":1})}function k(b,f){return function(d){if(d.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var i=[],h=a(d),k,n;if(h)for(m(h,1)&&i.push(h);h;){if(g(h)&&(k=e(h))&&m(k))if((n=e(k))&&!g(n))i.push(k);else{var o=k,q=j(p),r=o.parent.children, -l=CKEDITOR.tools.indexOf(r,o);r.splice(l+1,0,q);r=o.next;o.next=q;q.previous=o;q.parent=o.parent;q.next=r;c(k)}h=h.previous}for(h=0;h<i.length;h++)c(i[h]);if(i=CKEDITOR.env.opera&&!b||(typeof f=="function"?f(d)!==false:f))if(!p&&CKEDITOR.env.ie&&d.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)i=false;else if(!p&&CKEDITOR.env.ie&&(document.documentMode>7||d.name in CKEDITOR.dtd.tr||d.name in CKEDITOR.dtd.$listItem))i=false;else{i=a(d);i=!i||d.name=="form"&&i.name=="input"}i&&d.add(j(b))}}}function m(a,b){if((!p|| -!CKEDITOR.env.ie)&&a.type==CKEDITOR.NODE_ELEMENT&&a.name=="br"&&!a.attributes["data-cke-eol"])return true;var c;if(a.type==CKEDITOR.NODE_TEXT&&(c=a.value.match(z))){if(c.index){f(a,new CKEDITOR.htmlParser.text(a.value.substring(0,c.index)));a.value=c[0]}if(CKEDITOR.env.ie&&p&&(!b||a.parent.name in o))return true;if(!p)if((c=a.previous)&&c.name=="br"||!c||g(c))return true}return false}var n={elements:{}},p=d=="html",o=CKEDITOR.tools.extend({},s),q;for(q in o)"#"in u[q]||delete o[q];for(q in o)n.elements[q]= -k(p,b.config.fillEmptyBlocks!==false);n.root=k(p);n.elements.br=function(a){return function(b){if(b.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var c=b.attributes;if("data-cke-bogus"in c||"data-cke-eol"in c)delete c["data-cke-bogus"];else{for(c=b.next;c&&h(c);)c=c.next;var d=e(b);!c&&g(b.parent)?i(b.parent,j(a)):g(c)&&(d&&!g(d))&&f(c,j(a))}}}}(p);return n}function d(a){return a.enterMode!=CKEDITOR.ENTER_BR&&a.autoParagraph!==false?a.enterMode==CKEDITOR.ENTER_DIV?"div":"p":false}function a(a){for(a= -a.children[a.children.length-1];a&&h(a);)a=a.previous;return a}function e(a){for(a=a.previous;a&&h(a);)a=a.previous;return a}function h(a){return a.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(a.value)||a.type==CKEDITOR.NODE_ELEMENT&&a.attributes["data-cke-bookmark"]}function g(a){return a&&(a.type==CKEDITOR.NODE_ELEMENT&&a.name in s||a.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)}function f(a,b){var c=a.parent.children,f=CKEDITOR.tools.indexOf(c,a);c.splice(f,0,b);c=a.previous;a.previous=b;b.next=a; -b.parent=a.parent;if(c){b.previous=c;c.next=b}}function i(a,b){var c=a.children[a.children.length-1];a.children.push(b);b.parent=a;if(c){c.next=b;b.previous=c}}function c(a){var b=a.parent.children,c=CKEDITOR.tools.indexOf(b,a),f=a.previous,a=a.next;f&&(f.next=a);a&&(a.previous=f);b.splice(c,1)}function j(a){var b=a.parent;return b?CKEDITOR.tools.indexOf(b.children,a):-1}function l(a){a=a.attributes;a.contenteditable!="false"&&(a["data-cke-editable"]=a.contenteditable?"true":1);a.contenteditable= -"false"}function m(a){a=a.attributes;switch(a["data-cke-editable"]){case "true":a.contenteditable="true";break;case "1":delete a.contenteditable}}function n(a){return a.replace(y,function(a,b,c){return"<"+b+c.replace(C,function(a,b){return!/^on/.test(b)&&c.indexOf("data-cke-saved-"+b)==-1?" data-cke-saved-"+a+" data-cke-"+CKEDITOR.rnd+"-"+a:a})+">"})}function o(a){return a.replace(D,function(a){return"<cke:encoded>"+encodeURIComponent(a)+"</cke:encoded>"})}function k(a){return a.replace(F,function(a, -b){return decodeURIComponent(b)})}function p(a){return a.replace(/<\!--(?!{cke_protected})[\s\S]+?--\>/g,function(a){return"<\!--"+x+"{C}"+encodeURIComponent(a).replace(/--/g,"%2D%2D")+"--\>"})}function r(a){return a.replace(/<\!--\{cke_protected\}\{C\}([\s\S]+?)--\>/g,function(a,b){return decodeURIComponent(b)})}function q(a,b){var c=b._.dataStore;return a.replace(/<\!--\{cke_protected\}([\s\S]+?)--\>/g,function(a,b){return decodeURIComponent(b)}).replace(/\{cke_protected_(\d+)\}/g,function(a,b){return c&& -c[b]||""})}function t(a,b){for(var c=[],f=b.config.protectedSource,e=b._.dataStore||(b._.dataStore={id:1}),g=/<\!--\{cke_temp(comment)?\}(\d*?)--\>/g,f=[/<script[\s\S]*?<\/script>/gi,/<noscript[\s\S]*?<\/noscript>/gi].concat(f),a=a.replace(/<\!--[\s\S]*?--\>/g,function(a){return"<\!--{cke_tempcomment}"+(c.push(a)-1)+"--\>"}),d=0;d<f.length;d++)a=a.replace(f[d],function(a){a=a.replace(g,function(a,b,f){return c[f]});return/cke_temp(comment)?/.test(a)?a:"<\!--{cke_temp}"+(c.push(a)-1)+"--\>"});a=a.replace(g, -function(a,b,f){return"<\!--"+x+(b?"{C}":"")+encodeURIComponent(c[f]).replace(/--/g,"%2D%2D")+"--\>"});return a.replace(/(['"]).*?\1/g,function(a){return a.replace(/<\!--\{cke_protected\}([\s\S]+?)--\>/g,function(a,b){e[e.id]=decodeURIComponent(b);return"{cke_protected_"+e.id++ +"}"})})}CKEDITOR.htmlDataProcessor=function(a){var c,f,e=this;this.editor=a;this.dataFilter=c=new CKEDITOR.htmlParser.filter;this.htmlFilter=f=new CKEDITOR.htmlParser.filter;this.writer=new CKEDITOR.htmlParser.basicWriter; -c.addRules(v);c.addRules(b(a,"data"));f.addRules(A);f.addRules(b(a,"html"));a.on("toHtml",function(b){var b=b.data,c=b.dataValue,c=t(c,a),c=n(c),c=o(c),c=c.replace(E,"$1cke:$2"),c=c.replace(I,"<cke:$1$2></cke:$1>"),c=CKEDITOR.env.opera?c:c.replace(/(<pre\b[^>]*>)(\r\n|\n)/g,"$1$2$2"),f=b.context||a.editable().getName(),e;if(CKEDITOR.env.ie&&CKEDITOR.env.version<9&&f=="pre"){f="div";c="<pre>"+c+"</pre>";e=1}f=a.document.createElement(f);f.setHtml("a"+c);c=f.getHtml().substr(1);c=c.replace(RegExp(" data-cke-"+ -CKEDITOR.rnd+"-","ig")," ");e&&(c=c.replace(/^<pre>|<\/pre>$/gi,""));c=c.replace(K,"$1$2");c=k(c);c=r(c);b.dataValue=CKEDITOR.htmlParser.fragment.fromHtml(c,b.context,b.fixForBody===false?false:d(a.config))},null,null,5);a.on("toHtml",function(a){a.data.dataValue.filterChildren(e.dataFilter,true)},null,null,10);a.on("toHtml",function(a){var a=a.data,b=a.dataValue,c=new CKEDITOR.htmlParser.basicWriter;b.writeChildrenHtml(c);b=c.getHtml(true);a.dataValue=p(b)},null,null,15);a.on("toDataFormat",function(b){b.data.dataValue= -CKEDITOR.htmlParser.fragment.fromHtml(b.data.dataValue,a.editable().getName(),d(a.config))},null,null,5);a.on("toDataFormat",function(a){a.data.dataValue.filterChildren(e.htmlFilter,true)},null,null,10);a.on("toDataFormat",function(b){var c=b.data.dataValue,f=e.writer;f.reset();c.writeChildrenHtml(f);c=f.getHtml(true);c=r(c);c=q(c,a);b.data.dataValue=c},null,null,15)};CKEDITOR.htmlDataProcessor.prototype={toHtml:function(a,b,c,f){var e=this.editor;!b&&b!==null&&(b=e.editable().getName());return e.fire("toHtml", +c=CKEDITOR.tools.trim(c)}g[i]=c});return g},writeCssText:function(a,b){var h,g=[];for(h in a)g.push(h+":"+a[h]);b&&g.sort();return g.join("; ")},objectCompare:function(a,b,h){var g;if(!a&&!b)return true;if(!a||!b)return false;for(g in a)if(a[g]!=b[g])return false;if(!h)for(g in b)if(a[g]!=b[g])return false;return true},objectKeys:function(a){var b=[],h;for(h in a)b.push(h);return b},convertArrayToObject:function(a,b){var h={};arguments.length==1&&(b=true);for(var g=0,f=a.length;g<f;++g)h[a[g]]=b; +return h}}}(),CKEDITOR.dtd=function(){var b=CKEDITOR.tools.extend,d=function(a,b){for(var e=CKEDITOR.tools.clone(a),f=1;f<arguments.length;f++){var b=arguments[f],c;for(c in b)delete e[c]}return e},a={},e={},h={address:1,article:1,aside:1,blockquote:1,details:1,div:1,dl:1,fieldset:1,figure:1,footer:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,header:1,hgroup:1,hr:1,menu:1,nav:1,ol:1,p:1,pre:1,section:1,table:1,ul:1},g={command:1,link:1,meta:1,noscript:1,script:1,style:1},f={},i={"#":1},c={center:1,dir:1, +noframes:1};b(a,{a:1,abbr:1,area:1,audio:1,b:1,bdi:1,bdo:1,br:1,button:1,canvas:1,cite:1,code:1,command:1,datalist:1,del:1,dfn:1,em:1,embed:1,i:1,iframe:1,img:1,input:1,ins:1,kbd:1,keygen:1,label:1,map:1,mark:1,meter:1,noscript:1,object:1,output:1,progress:1,q:1,ruby:1,s:1,samp:1,script:1,select:1,small:1,span:1,strong:1,sub:1,sup:1,textarea:1,time:1,u:1,"var":1,video:1,wbr:1},i,{acronym:1,applet:1,basefont:1,big:1,font:1,isindex:1,strike:1,style:1,tt:1});b(e,h,a,c);d={a:d(a,{a:1,button:1}),abbr:a, +address:e,area:f,article:b({style:1},e),aside:b({style:1},e),audio:b({source:1,track:1},e),b:a,base:f,bdi:a,bdo:a,blockquote:e,body:e,br:f,button:d(a,{a:1,button:1}),canvas:a,caption:e,cite:a,code:a,col:f,colgroup:{col:1},command:f,datalist:b({option:1},a),dd:e,del:a,details:b({summary:1},e),dfn:a,div:b({style:1},e),dl:{dt:1,dd:1},dt:e,em:a,embed:f,fieldset:b({legend:1},e),figcaption:e,figure:b({figcaption:1},e),footer:e,form:e,h1:a,h2:a,h3:a,h4:a,h5:a,h6:a,head:b({title:1,base:1},g),header:e,hgroup:{h1:1, +h2:1,h3:1,h4:1,h5:1,h6:1},hr:f,html:b({head:1,body:1},e,g),i:a,iframe:i,img:f,input:f,ins:a,kbd:a,keygen:f,label:a,legend:a,li:e,link:f,map:e,mark:a,menu:b({li:1},e),meta:f,meter:d(a,{meter:1}),nav:e,noscript:b({link:1,meta:1,style:1},a),object:b({param:1},a),ol:{li:1},optgroup:{option:1},option:i,output:a,p:a,param:f,pre:a,progress:d(a,{progress:1}),q:a,rp:a,rt:a,ruby:b({rp:1,rt:1},a),s:a,samp:a,script:i,section:b({style:1},e),select:{optgroup:1,option:1},small:a,source:f,span:a,strong:a,style:i, +sub:a,summary:a,sup:a,table:{caption:1,colgroup:1,thead:1,tfoot:1,tbody:1,tr:1},tbody:{tr:1},td:e,textarea:i,tfoot:{tr:1},th:e,thead:{tr:1},time:d(a,{time:1}),title:i,tr:{th:1,td:1},track:f,u:a,ul:{li:1},"var":a,video:b({source:1,track:1},e),wbr:f,acronym:a,applet:b({param:1},e),basefont:f,big:a,center:e,dialog:f,dir:{li:1},font:a,isindex:f,noframes:e,strike:a,tt:a};b(d,{$block:b({audio:1,dd:1,dt:1,li:1,video:1},h,c),$blockLimit:{article:1,aside:1,audio:1,body:1,caption:1,details:1,dir:1,div:1,dl:1, +fieldset:1,figure:1,footer:1,form:1,header:1,hgroup:1,menu:1,nav:1,ol:1,section:1,table:1,td:1,th:1,tr:1,ul:1,video:1},$cdata:{script:1,style:1},$editable:{address:1,article:1,aside:1,blockquote:1,body:1,details:1,div:1,fieldset:1,footer:1,form:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,header:1,hgroup:1,nav:1,p:1,pre:1,section:1},$empty:{area:1,base:1,basefont:1,br:1,col:1,command:1,dialog:1,embed:1,hr:1,img:1,input:1,isindex:1,keygen:1,link:1,meta:1,param:1,source:1,track:1,wbr:1},$inline:a,$list:{dl:1,ol:1, +ul:1},$listItem:{dd:1,dt:1,li:1},$nonBodyContent:b({body:1,head:1,html:1},d.head),$nonEditable:{applet:1,audio:1,button:1,embed:1,iframe:1,map:1,object:1,option:1,param:1,script:1,textarea:1,video:1},$object:{applet:1,audio:1,button:1,hr:1,iframe:1,img:1,input:1,object:1,select:1,table:1,textarea:1,video:1},$removeEmpty:{abbr:1,acronym:1,b:1,bdi:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,mark:1,meter:1,output:1,q:1,ruby:1,s:1,samp:1,small:1,span:1,strike:1,strong:1, +sub:1,sup:1,time:1,tt:1,u:1,"var":1},$tabIndex:{a:1,area:1,button:1,input:1,object:1,select:1,textarea:1},$tableContent:{caption:1,col:1,colgroup:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1},$transparent:{a:1,audio:1,canvas:1,del:1,ins:1,map:1,noscript:1,object:1,video:1},$intermediate:{caption:1,colgroup:1,dd:1,dt:1,figcaption:1,legend:1,li:1,optgroup:1,option:1,rp:1,rt:1,summary:1,tbody:1,td:1,tfoot:1,th:1,thead:1,tr:1}});return d}(),CKEDITOR.dom.event=function(b){this.$=b},CKEDITOR.dom.event.prototype= +{getKey:function(){return this.$.keyCode||this.$.which},getKeystroke:function(){var b=this.getKey();if(this.$.ctrlKey||this.$.metaKey)b=b+CKEDITOR.CTRL;this.$.shiftKey&&(b=b+CKEDITOR.SHIFT);this.$.altKey&&(b=b+CKEDITOR.ALT);return b},preventDefault:function(b){var d=this.$;d.preventDefault?d.preventDefault():d.returnValue=false;b&&this.stopPropagation()},stopPropagation:function(){var b=this.$;b.stopPropagation?b.stopPropagation():b.cancelBubble=true},getTarget:function(){var b=this.$.target||this.$.srcElement; +return b?new CKEDITOR.dom.node(b):null},getPhase:function(){return this.$.eventPhase||2},getPageOffset:function(){var b=this.getTarget().getDocument().$;return{x:this.$.pageX||this.$.clientX+(b.documentElement.scrollLeft||b.body.scrollLeft),y:this.$.pageY||this.$.clientY+(b.documentElement.scrollTop||b.body.scrollTop)}}},CKEDITOR.CTRL=1114112,CKEDITOR.SHIFT=2228224,CKEDITOR.ALT=4456448,CKEDITOR.EVENT_PHASE_CAPTURING=1,CKEDITOR.EVENT_PHASE_AT_TARGET=2,CKEDITOR.EVENT_PHASE_BUBBLING=3,CKEDITOR.dom.domObject= +function(b){if(b)this.$=b},CKEDITOR.dom.domObject.prototype=function(){var b=function(b,a){return function(e){typeof CKEDITOR!="undefined"&&b.fire(a,new CKEDITOR.dom.event(e))}};return{getPrivate:function(){var b;if(!(b=this.getCustomData("_")))this.setCustomData("_",b={});return b},on:function(d){var a=this.getCustomData("_cke_nativeListeners");if(!a){a={};this.setCustomData("_cke_nativeListeners",a)}if(!a[d]){a=a[d]=b(this,d);this.$.addEventListener?this.$.addEventListener(d,a,!!CKEDITOR.event.useCapture): +this.$.attachEvent&&this.$.attachEvent("on"+d,a)}return CKEDITOR.event.prototype.on.apply(this,arguments)},removeListener:function(b){CKEDITOR.event.prototype.removeListener.apply(this,arguments);if(!this.hasListeners(b)){var a=this.getCustomData("_cke_nativeListeners"),e=a&&a[b];if(e){this.$.removeEventListener?this.$.removeEventListener(b,e,false):this.$.detachEvent&&this.$.detachEvent("on"+b,e);delete a[b]}}},removeAllListeners:function(){var b=this.getCustomData("_cke_nativeListeners"),a;for(a in b){var e= +b[a];this.$.detachEvent?this.$.detachEvent("on"+a,e):this.$.removeEventListener&&this.$.removeEventListener(a,e,false);delete b[a]}}}}(),function(b){var d={};CKEDITOR.on("reset",function(){d={}});b.equals=function(a){try{return a&&a.$===this.$}catch(b){return false}};b.setCustomData=function(a,b){var h=this.getUniqueId();(d[h]||(d[h]={}))[a]=b;return this};b.getCustomData=function(a){var b=this.$["data-cke-expando"];return(b=b&&d[b])&&a in b?b[a]:null};b.removeCustomData=function(a){var b=this.$["data-cke-expando"], +b=b&&d[b],h,g;if(b){h=b[a];g=a in b;delete b[a]}return g?h:null};b.clearCustomData=function(){this.removeAllListeners();var a=this.$["data-cke-expando"];a&&delete d[a]};b.getUniqueId=function(){return this.$["data-cke-expando"]||(this.$["data-cke-expando"]=CKEDITOR.tools.getNextNumber())};CKEDITOR.event.implementOn(b)}(CKEDITOR.dom.domObject.prototype),CKEDITOR.dom.node=function(b){return b?new CKEDITOR.dom[b.nodeType==CKEDITOR.NODE_DOCUMENT?"document":b.nodeType==CKEDITOR.NODE_ELEMENT?"element": +b.nodeType==CKEDITOR.NODE_TEXT?"text":b.nodeType==CKEDITOR.NODE_COMMENT?"comment":b.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT?"documentFragment":"domObject"](b):this},CKEDITOR.dom.node.prototype=new CKEDITOR.dom.domObject,CKEDITOR.NODE_ELEMENT=1,CKEDITOR.NODE_DOCUMENT=9,CKEDITOR.NODE_TEXT=3,CKEDITOR.NODE_COMMENT=8,CKEDITOR.NODE_DOCUMENT_FRAGMENT=11,CKEDITOR.POSITION_IDENTICAL=0,CKEDITOR.POSITION_DISCONNECTED=1,CKEDITOR.POSITION_FOLLOWING=2,CKEDITOR.POSITION_PRECEDING=4,CKEDITOR.POSITION_IS_CONTAINED= +8,CKEDITOR.POSITION_CONTAINS=16,CKEDITOR.tools.extend(CKEDITOR.dom.node.prototype,{appendTo:function(b,d){b.append(this,d);return b},clone:function(b,d){var a=this.$.cloneNode(b),e=function(a){a["data-cke-expando"]&&(a["data-cke-expando"]=false);if(a.nodeType==CKEDITOR.NODE_ELEMENT){d||a.removeAttribute("id",false);if(b)for(var a=a.childNodes,g=0;g<a.length;g++)e(a[g])}};e(a);return new CKEDITOR.dom.node(a)},hasPrevious:function(){return!!this.$.previousSibling},hasNext:function(){return!!this.$.nextSibling}, +insertAfter:function(b){b.$.parentNode.insertBefore(this.$,b.$.nextSibling);return b},insertBefore:function(b){b.$.parentNode.insertBefore(this.$,b.$);return b},insertBeforeMe:function(b){this.$.parentNode.insertBefore(b.$,this.$);return b},getAddress:function(b){for(var d=[],a=this.getDocument().$.documentElement,e=this.$;e&&e!=a;){var h=e.parentNode;h&&d.unshift(this.getIndex.call({$:e},b));e=h}return d},getDocument:function(){return new CKEDITOR.dom.document(this.$.ownerDocument||this.$.parentNode.ownerDocument)}, +getIndex:function(b){var d=this.$,a=-1,e;if(!this.$.parentNode)return a;do if(!b||!(d!=this.$&&d.nodeType==CKEDITOR.NODE_TEXT&&(e||!d.nodeValue))){a++;e=d.nodeType==CKEDITOR.NODE_TEXT}while(d=d.previousSibling);return a},getNextSourceNode:function(b,d,a){if(a&&!a.call)var e=a,a=function(a){return!a.equals(e)};var b=!b&&this.getFirst&&this.getFirst(),h;if(!b){if(this.type==CKEDITOR.NODE_ELEMENT&&a&&a(this,true)===false)return null;b=this.getNext()}for(;!b&&(h=(h||this).getParent());){if(a&&a(h,true)=== +false)return null;b=h.getNext()}return!b||a&&a(b)===false?null:d&&d!=b.type?b.getNextSourceNode(false,d,a):b},getPreviousSourceNode:function(b,d,a){if(a&&!a.call)var e=a,a=function(a){return!a.equals(e)};var b=!b&&this.getLast&&this.getLast(),h;if(!b){if(this.type==CKEDITOR.NODE_ELEMENT&&a&&a(this,true)===false)return null;b=this.getPrevious()}for(;!b&&(h=(h||this).getParent());){if(a&&a(h,true)===false)return null;b=h.getPrevious()}return!b||a&&a(b)===false?null:d&&b.type!=d?b.getPreviousSourceNode(false, +d,a):b},getPrevious:function(b){var d=this.$,a;do a=(d=d.previousSibling)&&d.nodeType!=10&&new CKEDITOR.dom.node(d);while(a&&b&&!b(a));return a},getNext:function(b){var d=this.$,a;do a=(d=d.nextSibling)&&new CKEDITOR.dom.node(d);while(a&&b&&!b(a));return a},getParent:function(b){var d=this.$.parentNode;return d&&(d.nodeType==CKEDITOR.NODE_ELEMENT||b&&d.nodeType==CKEDITOR.NODE_DOCUMENT_FRAGMENT)?new CKEDITOR.dom.node(d):null},getParents:function(b){var d=this,a=[];do a[b?"push":"unshift"](d);while(d= +d.getParent());return a},getCommonAncestor:function(b){if(b.equals(this))return this;if(b.contains&&b.contains(this))return b;var d=this.contains?this:this.getParent();do if(d.contains(b))return d;while(d=d.getParent());return null},getPosition:function(b){var d=this.$,a=b.$;if(d.compareDocumentPosition)return d.compareDocumentPosition(a);if(d==a)return CKEDITOR.POSITION_IDENTICAL;if(this.type==CKEDITOR.NODE_ELEMENT&&b.type==CKEDITOR.NODE_ELEMENT){if(d.contains){if(d.contains(a))return CKEDITOR.POSITION_CONTAINS+ +CKEDITOR.POSITION_PRECEDING;if(a.contains(d))return CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING}if("sourceIndex"in d)return d.sourceIndex<0||a.sourceIndex<0?CKEDITOR.POSITION_DISCONNECTED:d.sourceIndex<a.sourceIndex?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING}for(var d=this.getAddress(),b=b.getAddress(),a=Math.min(d.length,b.length),e=0;e<=a-1;e++)if(d[e]!=b[e]){if(e<a)return d[e]<b[e]?CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_FOLLOWING;break}return d.length<b.length? +CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_PRECEDING:CKEDITOR.POSITION_IS_CONTAINED+CKEDITOR.POSITION_FOLLOWING},getAscendant:function(b,d){var a=this.$,e;if(!d)a=a.parentNode;for(;a;){if(a.nodeName&&(e=a.nodeName.toLowerCase(),typeof b=="string"?e==b:e in b))return new CKEDITOR.dom.node(a);try{a=a.parentNode}catch(h){a=null}}return null},hasAscendant:function(b,d){var a=this.$;if(!d)a=a.parentNode;for(;a;){if(a.nodeName&&a.nodeName.toLowerCase()==b)return true;a=a.parentNode}return false},move:function(b, +d){b.append(this.remove(),d)},remove:function(b){var d=this.$,a=d.parentNode;if(a){if(b)for(;b=d.firstChild;)a.insertBefore(d.removeChild(b),d);a.removeChild(d)}return this},replace:function(b){this.insertBefore(b);b.remove()},trim:function(){this.ltrim();this.rtrim()},ltrim:function(){for(var b;this.getFirst&&(b=this.getFirst());){if(b.type==CKEDITOR.NODE_TEXT){var d=CKEDITOR.tools.ltrim(b.getText()),a=b.getLength();if(d){if(d.length<a){b.split(a-d.length);this.$.removeChild(this.$.firstChild)}}else{b.remove(); +continue}}break}},rtrim:function(){for(var b;this.getLast&&(b=this.getLast());){if(b.type==CKEDITOR.NODE_TEXT){var d=CKEDITOR.tools.rtrim(b.getText()),a=b.getLength();if(d){if(d.length<a){b.split(d.length);this.$.lastChild.parentNode.removeChild(this.$.lastChild)}}else{b.remove();continue}}break}if(!CKEDITOR.env.ie&&!CKEDITOR.env.opera)(b=this.$.lastChild)&&(b.type==1&&b.nodeName.toLowerCase()=="br")&&b.parentNode.removeChild(b)},isReadOnly:function(){var b=this;this.type!=CKEDITOR.NODE_ELEMENT&& +(b=this.getParent());if(b&&typeof b.$.isContentEditable!="undefined")return!(b.$.isContentEditable||b.data("cke-editable"));for(;b;){if(b.data("cke-editable"))break;if(b.getAttribute("contentEditable")=="false")return true;if(b.getAttribute("contentEditable")=="true")break;b=b.getParent()}return!b}}),CKEDITOR.dom.window=function(b){CKEDITOR.dom.domObject.call(this,b)},CKEDITOR.dom.window.prototype=new CKEDITOR.dom.domObject,CKEDITOR.tools.extend(CKEDITOR.dom.window.prototype,{focus:function(){this.$.focus()}, +getViewPaneSize:function(){var b=this.$.document,d=b.compatMode=="CSS1Compat";return{width:(d?b.documentElement.clientWidth:b.body.clientWidth)||0,height:(d?b.documentElement.clientHeight:b.body.clientHeight)||0}},getScrollPosition:function(){var b=this.$;if("pageXOffset"in b)return{x:b.pageXOffset||0,y:b.pageYOffset||0};b=b.document;return{x:b.documentElement.scrollLeft||b.body.scrollLeft||0,y:b.documentElement.scrollTop||b.body.scrollTop||0}},getFrame:function(){var b=this.$.frameElement;return b? +new CKEDITOR.dom.element.get(b):null}}),CKEDITOR.dom.document=function(b){CKEDITOR.dom.domObject.call(this,b)},CKEDITOR.dom.document.prototype=new CKEDITOR.dom.domObject,CKEDITOR.tools.extend(CKEDITOR.dom.document.prototype,{type:CKEDITOR.NODE_DOCUMENT,appendStyleSheet:function(b){if(this.$.createStyleSheet)this.$.createStyleSheet(b);else{var d=new CKEDITOR.dom.element("link");d.setAttributes({rel:"stylesheet",type:"text/css",href:b});this.getHead().append(d)}},appendStyleText:function(b){if(this.$.createStyleSheet){var d= +this.$.createStyleSheet("");d.cssText=b}else{var a=new CKEDITOR.dom.element("style",this);a.append(new CKEDITOR.dom.text(b,this));this.getHead().append(a)}return d||a.$.sheet},createElement:function(b,d){var a=new CKEDITOR.dom.element(b,this);if(d){d.attributes&&a.setAttributes(d.attributes);d.styles&&a.setStyles(d.styles)}return a},createText:function(b){return new CKEDITOR.dom.text(b,this)},focus:function(){this.getWindow().focus()},getActive:function(){return new CKEDITOR.dom.element(this.$.activeElement)}, +getById:function(b){return(b=this.$.getElementById(b))?new CKEDITOR.dom.element(b):null},getByAddress:function(b,d){for(var a=this.$.documentElement,e=0;a&&e<b.length;e++){var h=b[e];if(d)for(var g=-1,f=0;f<a.childNodes.length;f++){var i=a.childNodes[f];if(!(d===true&&i.nodeType==3&&i.previousSibling&&i.previousSibling.nodeType==3)){g++;if(g==h){a=i;break}}}else a=a.childNodes[h]}return a?new CKEDITOR.dom.node(a):null},getElementsByTag:function(b,d){if((!CKEDITOR.env.ie||document.documentMode>8)&& +d)b=d+":"+b;return new CKEDITOR.dom.nodeList(this.$.getElementsByTagName(b))},getHead:function(){var b=this.$.getElementsByTagName("head")[0];return b=b?new CKEDITOR.dom.element(b):this.getDocumentElement().append(new CKEDITOR.dom.element("head"),true)},getBody:function(){return new CKEDITOR.dom.element(this.$.body)},getDocumentElement:function(){return new CKEDITOR.dom.element(this.$.documentElement)},getWindow:function(){var b=new CKEDITOR.dom.window(this.$.parentWindow||this.$.defaultView);return(this.getWindow= +function(){return b})()},write:function(b){this.$.open("text/html","replace");CKEDITOR.env.isCustomDomain()&&(this.$.domain=document.domain);this.$.write(b);this.$.close()}}),CKEDITOR.dom.nodeList=function(b){this.$=b},CKEDITOR.dom.nodeList.prototype={count:function(){return this.$.length},getItem:function(b){if(b<0||b>=this.$.length)return null;return(b=this.$[b])?new CKEDITOR.dom.node(b):null}},CKEDITOR.dom.element=function(b,d){typeof b=="string"&&(b=(d?d.$:document).createElement(b));CKEDITOR.dom.domObject.call(this, +b)},CKEDITOR.dom.element.get=function(b){return(b=typeof b=="string"?document.getElementById(b)||document.getElementsByName(b)[0]:b)&&(b.$?b:new CKEDITOR.dom.element(b))},CKEDITOR.dom.element.prototype=new CKEDITOR.dom.node,CKEDITOR.dom.element.createFromHtml=function(b,d){var a=new CKEDITOR.dom.element("div",d);a.setHtml(b);return a.getFirst().remove()},CKEDITOR.dom.element.setMarker=function(b,d,a,e){var h=d.getCustomData("list_marker_id")||d.setCustomData("list_marker_id",CKEDITOR.tools.getNextNumber()).getCustomData("list_marker_id"), +g=d.getCustomData("list_marker_names")||d.setCustomData("list_marker_names",{}).getCustomData("list_marker_names");b[h]=d;g[a]=1;return d.setCustomData(a,e)},CKEDITOR.dom.element.clearAllMarkers=function(b){for(var d in b)CKEDITOR.dom.element.clearMarkers(b,b[d],1)},CKEDITOR.dom.element.clearMarkers=function(b,d,a){var e=d.getCustomData("list_marker_names"),h=d.getCustomData("list_marker_id"),g;for(g in e)d.removeCustomData(g);d.removeCustomData("list_marker_names");if(a){d.removeCustomData("list_marker_id"); +delete b[h]}},function(){function b(a){for(var b=0,h=0,g=d[a].length;h<g;h++)b=b+(parseInt(this.getComputedStyle(d[a][h])||0,10)||0);return b}CKEDITOR.tools.extend(CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_ELEMENT,addClass:function(a){var b=this.$.className;b&&(RegExp("(?:^|\\s)"+a+"(?:\\s|$)","").test(b)||(b=b+(" "+a)));this.$.className=b||a},removeClass:function(a){var b=this.getAttribute("class");if(b){a=RegExp("(?:^|\\s+)"+a+"(?=\\s|$)","i");if(a.test(b))(b=b.replace(a,"").replace(/^\s+/, +""))?this.setAttribute("class",b):this.removeAttribute("class")}return this},hasClass:function(a){return RegExp("(?:^|\\s+)"+a+"(?=\\s|$)","").test(this.getAttribute("class"))},append:function(a,b){typeof a=="string"&&(a=this.getDocument().createElement(a));b?this.$.insertBefore(a.$,this.$.firstChild):this.$.appendChild(a.$);return a},appendHtml:function(a){if(this.$.childNodes.length){var b=new CKEDITOR.dom.element("div",this.getDocument());b.setHtml(a);b.moveChildren(this)}else this.setHtml(a)}, +appendText:function(a){this.$.text!=void 0?this.$.text=this.$.text+a:this.append(new CKEDITOR.dom.text(a))},appendBogus:function(){for(var a=this.getLast();a&&a.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.rtrim(a.getText());)a=a.getPrevious();if(!a||!a.is||!a.is("br")){a=CKEDITOR.env.opera?this.getDocument().createText(""):this.getDocument().createElement("br");CKEDITOR.env.gecko&&a.setAttribute("type","_moz");this.append(a)}},breakParent:function(a){var b=new CKEDITOR.dom.range(this.getDocument()); +b.setStartAfter(this);b.setEndAfter(a);a=b.extractContents();b.insertNode(this.remove());a.insertAfterNode(this)},contains:CKEDITOR.env.ie||CKEDITOR.env.webkit?function(a){var b=this.$;return a.type!=CKEDITOR.NODE_ELEMENT?b.contains(a.getParent().$):b!=a.$&&b.contains(a.$)}:function(a){return!!(this.$.compareDocumentPosition(a.$)&16)},focus:function(){function a(){try{this.$.focus()}catch(a){}}return function(b){b?CKEDITOR.tools.setTimeout(a,100,this):a.call(this)}}(),getHtml:function(){var a=this.$.innerHTML; +return CKEDITOR.env.ie?a.replace(/<\?[^>]*>/g,""):a},getOuterHtml:function(){if(this.$.outerHTML)return this.$.outerHTML.replace(/<\?[^>]*>/,"");var a=this.$.ownerDocument.createElement("div");a.appendChild(this.$.cloneNode(true));return a.innerHTML},getClientRect:function(){var a=CKEDITOR.tools.extend({},this.$.getBoundingClientRect());!a.width&&(a.width=a.right-a.left);!a.height&&(a.height=a.bottom-a.top);return a},setHtml:function(){var a=function(a){return this.$.innerHTML=a};return CKEDITOR.env.ie&& +CKEDITOR.env.version<9?function(a){try{return this.$.innerHTML=a}catch(b){this.$.innerHTML="";var g=new CKEDITOR.dom.element("body",this.getDocument());g.$.innerHTML=a;for(g=g.getChildren();g.count();)this.append(g.getItem(0));return a}}:a}(),setText:function(a){CKEDITOR.dom.element.prototype.setText=this.$.innerText!=void 0?function(a){return this.$.innerText=a}:function(a){return this.$.textContent=a};return this.setText(a)},getAttribute:function(){var a=function(a){return this.$.getAttribute(a, +2)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)?function(a){switch(a){case "class":a="className";break;case "http-equiv":a="httpEquiv";break;case "name":return this.$.name;case "tabindex":a=this.$.getAttribute(a,2);a!==0&&this.$.tabIndex===0&&(a=null);return a;case "checked":a=this.$.attributes.getNamedItem(a);return(a.specified?a.nodeValue:this.$.checked)?"checked":null;case "hspace":case "value":return this.$[a];case "style":return this.$.style.cssText;case "contenteditable":case "contentEditable":return this.$.attributes.getNamedItem("contentEditable").specified? +this.$.getAttribute("contentEditable"):null}return this.$.getAttribute(a,2)}:a}(),getChildren:function(){return new CKEDITOR.dom.nodeList(this.$.childNodes)},getComputedStyle:CKEDITOR.env.ie?function(a){return this.$.currentStyle[CKEDITOR.tools.cssStyleToDomStyle(a)]}:function(a){var b=this.getWindow().$.getComputedStyle(this.$,null);return b?b.getPropertyValue(a):""},getDtd:function(){var a=CKEDITOR.dtd[this.getName()];this.getDtd=function(){return a};return a},getElementsByTag:CKEDITOR.dom.document.prototype.getElementsByTag, +getTabIndex:CKEDITOR.env.ie?function(){var a=this.$.tabIndex;a===0&&(!CKEDITOR.dtd.$tabIndex[this.getName()]&&parseInt(this.getAttribute("tabindex"),10)!==0)&&(a=-1);return a}:CKEDITOR.env.webkit?function(){var a=this.$.tabIndex;if(a==void 0){a=parseInt(this.getAttribute("tabindex"),10);isNaN(a)&&(a=-1)}return a}:function(){return this.$.tabIndex},getText:function(){return this.$.textContent||this.$.innerText||""},getWindow:function(){return this.getDocument().getWindow()},getId:function(){return this.$.id|| +null},getNameAtt:function(){return this.$.name||null},getName:function(){var a=this.$.nodeName.toLowerCase();if(CKEDITOR.env.ie&&!(document.documentMode>8)){var b=this.$.scopeName;b!="HTML"&&(a=b.toLowerCase()+":"+a)}return(this.getName=function(){return a})()},getValue:function(){return this.$.value},getFirst:function(a){var b=this.$.firstChild;(b=b&&new CKEDITOR.dom.node(b))&&(a&&!a(b))&&(b=b.getNext(a));return b},getLast:function(a){var b=this.$.lastChild;(b=b&&new CKEDITOR.dom.node(b))&&(a&&!a(b))&& +(b=b.getPrevious(a));return b},getStyle:function(a){return this.$.style[CKEDITOR.tools.cssStyleToDomStyle(a)]},is:function(){var a=this.getName();if(typeof arguments[0]=="object")return!!arguments[0][a];for(var b=0;b<arguments.length;b++)if(arguments[b]==a)return true;return false},isEditable:function(a){var b=this.getName();if(this.isReadOnly()||this.getComputedStyle("display")=="none"||this.getComputedStyle("visibility")=="hidden"||CKEDITOR.dtd.$nonEditable[b]||CKEDITOR.dtd.$empty[b]||this.is("a")&& +(this.data("cke-saved-name")||this.hasAttribute("name"))&&!this.getChildCount())return false;if(a!==false){a=CKEDITOR.dtd[b]||CKEDITOR.dtd.span;return!(!a||!a["#"])}return true},isIdentical:function(a){var b=this.clone(0,1),a=a.clone(0,1);b.removeAttributes(["_moz_dirty","data-cke-expando","data-cke-saved-href","data-cke-saved-name"]);a.removeAttributes(["_moz_dirty","data-cke-expando","data-cke-saved-href","data-cke-saved-name"]);if(b.$.isEqualNode){b.$.style.cssText=CKEDITOR.tools.normalizeCssText(b.$.style.cssText); +a.$.style.cssText=CKEDITOR.tools.normalizeCssText(a.$.style.cssText);return b.$.isEqualNode(a.$)}b=b.getOuterHtml();a=a.getOuterHtml();if(CKEDITOR.env.ie&&CKEDITOR.env.version<9&&this.is("a")){var h=this.getParent();if(h.type==CKEDITOR.NODE_ELEMENT){h=h.clone();h.setHtml(b);b=h.getHtml();h.setHtml(a);a=h.getHtml()}}return b==a},isVisible:function(){var a=(this.$.offsetHeight||this.$.offsetWidth)&&this.getComputedStyle("visibility")!="hidden",b,h;if(a&&(CKEDITOR.env.webkit||CKEDITOR.env.opera)){b= +this.getWindow();if(!b.equals(CKEDITOR.document.getWindow())&&(h=b.$.frameElement))a=(new CKEDITOR.dom.element(h)).isVisible()}return!!a},isEmptyInlineRemoveable:function(){if(!CKEDITOR.dtd.$removeEmpty[this.getName()])return false;for(var a=this.getChildren(),b=0,h=a.count();b<h;b++){var g=a.getItem(b);if(!(g.type==CKEDITOR.NODE_ELEMENT&&g.data("cke-bookmark"))&&(g.type==CKEDITOR.NODE_ELEMENT&&!g.isEmptyInlineRemoveable()||g.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(g.getText())))return false}return true}, +hasAttributes:CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)?function(){for(var a=this.$.attributes,b=0;b<a.length;b++){var h=a[b];switch(h.nodeName){case "class":if(this.getAttribute("class"))return true;case "data-cke-expando":continue;default:if(h.specified)return true}}return false}:function(){var a=this.$.attributes,b=a.length,h={"data-cke-expando":1,_moz_dirty:1};return b>0&&(b>2||!h[a[0].nodeName]||b==2&&!h[a[1].nodeName])},hasAttribute:function(){function a(a){a=this.$.attributes.getNamedItem(a); +return!(!a||!a.specified)}return CKEDITOR.env.ie&&CKEDITOR.env.version<8?function(b){return b=="name"?!!this.$.name:a.call(this,b)}:a}(),hide:function(){this.setStyle("display","none")},moveChildren:function(a,b){var h=this.$,a=a.$;if(h!=a){var g;if(b)for(;g=h.lastChild;)a.insertBefore(h.removeChild(g),a.firstChild);else for(;g=h.firstChild;)a.appendChild(h.removeChild(g))}},mergeSiblings:function(){function a(a,b,g){if(b&&b.type==CKEDITOR.NODE_ELEMENT){for(var f=[];b.data("cke-bookmark")||b.isEmptyInlineRemoveable();){f.push(b); +b=g?b.getNext():b.getPrevious();if(!b||b.type!=CKEDITOR.NODE_ELEMENT)return}if(a.isIdentical(b)){for(var i=g?a.getLast():a.getFirst();f.length;)f.shift().move(a,!g);b.moveChildren(a,!g);b.remove();i&&i.type==CKEDITOR.NODE_ELEMENT&&i.mergeSiblings()}}}return function(b){if(b===false||CKEDITOR.dtd.$removeEmpty[this.getName()]||this.is("a")){a(this,this.getNext(),true);a(this,this.getPrevious())}}}(),show:function(){this.setStyles({display:"",visibility:""})},setAttribute:function(){var a=function(a, +b){this.$.setAttribute(a,b);return this};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)?function(b,h){b=="class"?this.$.className=h:b=="style"?this.$.style.cssText=h:b=="tabindex"?this.$.tabIndex=h:b=="checked"?this.$.checked=h:b=="contenteditable"?a.call(this,"contentEditable",h):a.apply(this,arguments);return this}:CKEDITOR.env.ie8Compat&&CKEDITOR.env.secure?function(b,h){if(b=="src"&&h.match(/^http:\/\//))try{a.apply(this,arguments)}catch(g){}else a.apply(this,arguments); +return this}:a}(),setAttributes:function(a){for(var b in a)this.setAttribute(b,a[b]);return this},setValue:function(a){this.$.value=a;return this},removeAttribute:function(){var a=function(a){this.$.removeAttribute(a)};return CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)?function(a){a=="class"?a="className":a=="tabindex"?a="tabIndex":a=="contenteditable"&&(a="contentEditable");this.$.removeAttribute(a)}:a}(),removeAttributes:function(a){if(CKEDITOR.tools.isArray(a))for(var b=0;b< +a.length;b++)this.removeAttribute(a[b]);else for(b in a)a.hasOwnProperty(b)&&this.removeAttribute(b)},removeStyle:function(a){var b=this.$.style;if(!b.removeProperty&&(a=="border"||a=="margin"||a=="padding")){var h=["top","left","right","bottom"],g;a=="border"&&(g=["color","style","width"]);for(var b=[],f=0;f<h.length;f++)if(g)for(var i=0;i<g.length;i++)b.push([a,h[f],g[i]].join("-"));else b.push([a,h[f]].join("-"));for(a=0;a<b.length;a++)this.removeStyle(b[a])}else{b.removeProperty?b.removeProperty(a): +b.removeAttribute(CKEDITOR.tools.cssStyleToDomStyle(a));this.$.style.cssText||this.removeAttribute("style")}},setStyle:function(a,b){this.$.style[CKEDITOR.tools.cssStyleToDomStyle(a)]=b;return this},setStyles:function(a){for(var b in a)this.setStyle(b,a[b]);return this},setOpacity:function(a){if(CKEDITOR.env.ie&&CKEDITOR.env.version<9){a=Math.round(a*100);this.setStyle("filter",a>=100?"":"progid:DXImageTransform.Microsoft.Alpha(opacity="+a+")")}else this.setStyle("opacity",a)},unselectable:function(){this.setStyles(CKEDITOR.tools.cssVendorPrefix("user-select", +"none"));if(CKEDITOR.env.ie||CKEDITOR.env.opera){this.setAttribute("unselectable","on");for(var a,b=this.getElementsByTag("*"),h=0,g=b.count();h<g;h++){a=b.getItem(h);a.setAttribute("unselectable","on")}}},getPositionedAncestor:function(){for(var a=this;a.getName()!="html";){if(a.getComputedStyle("position")!="static")return a;a=a.getParent()}return null},getDocumentPosition:function(a){var b=0,h=0,g=this.getDocument(),f=g.getBody(),i=g.$.compatMode=="BackCompat";if(document.documentElement.getBoundingClientRect){var c= +this.$.getBoundingClientRect(),j=g.$.documentElement,k=j.clientTop||f.$.clientTop||0,l=j.clientLeft||f.$.clientLeft||0,d=true;if(CKEDITOR.env.ie){d=g.getDocumentElement().contains(this);g=g.getBody().contains(this);d=i&&g||!i&&d}if(d){b=c.left+(!i&&j.scrollLeft||f.$.scrollLeft);b=b-l;h=c.top+(!i&&j.scrollTop||f.$.scrollTop);h=h-k}}else{f=this;for(g=null;f&&!(f.getName()=="body"||f.getName()=="html");){b=b+(f.$.offsetLeft-f.$.scrollLeft);h=h+(f.$.offsetTop-f.$.scrollTop);if(!f.equals(this)){b=b+(f.$.clientLeft|| +0);h=h+(f.$.clientTop||0)}for(;g&&!g.equals(f);){b=b-g.$.scrollLeft;h=h-g.$.scrollTop;g=g.getParent()}g=f;f=(c=f.$.offsetParent)?new CKEDITOR.dom.element(c):null}}if(a){f=this.getWindow();g=a.getWindow();if(!f.equals(g)&&f.$.frameElement){a=(new CKEDITOR.dom.element(f.$.frameElement)).getDocumentPosition(a);b=b+a.x;h=h+a.y}}if(!document.documentElement.getBoundingClientRect&&CKEDITOR.env.gecko&&!i){b=b+(this.$.clientLeft?1:0);h=h+(this.$.clientTop?1:0)}return{x:b,y:h}},scrollIntoView:function(a){var b= +this.getParent();if(b){do{(b.$.clientWidth&&b.$.clientWidth<b.$.scrollWidth||b.$.clientHeight&&b.$.clientHeight<b.$.scrollHeight)&&!b.is("body")&&this.scrollIntoParent(b,a,1);if(b.is("html")){var h=b.getWindow();try{var g=h.$.frameElement;g&&(b=new CKEDITOR.dom.element(g))}catch(f){}}}while(b=b.getParent())}},scrollIntoParent:function(a,b,h){var g,f,i,c;function j(b,f){if(/body|html/.test(a.getName()))a.getWindow().$.scrollBy(b,f);else{a.$.scrollLeft=a.$.scrollLeft+b;a.$.scrollTop=a.$.scrollTop+f}} +function k(a,b){var f={x:0,y:0};if(!a.is(d?"body":"html")){var c=a.$.getBoundingClientRect();f.x=c.left;f.y=c.top}c=a.getWindow();if(!c.equals(b)){c=k(CKEDITOR.dom.element.get(c.$.frameElement),b);f.x=f.x+c.x;f.y=f.y+c.y}return f}function l(a,b){return parseInt(a.getComputedStyle("margin-"+b)||0,10)||0}!a&&(a=this.getWindow());i=a.getDocument();var d=i.$.compatMode=="BackCompat";a instanceof CKEDITOR.dom.window&&(a=d?i.getBody():i.getDocumentElement());i=a.getWindow();f=k(this,i);var o=k(a,i),m=this.$.offsetHeight; +g=this.$.offsetWidth;var p=a.$.clientHeight,q=a.$.clientWidth;i=f.x-l(this,"left")-o.x||0;c=f.y-l(this,"top")-o.y||0;g=f.x+g+l(this,"right")-(o.x+q)||0;f=f.y+m+l(this,"bottom")-(o.y+p)||0;if(c<0||f>0)j(0,b===true?c:b===false?f:c<0?c:f);if(h&&(i<0||g>0))j(i<0?i:g,0)},setState:function(a,b,h){b=b||"cke";switch(a){case CKEDITOR.TRISTATE_ON:this.addClass(b+"_on");this.removeClass(b+"_off");this.removeClass(b+"_disabled");h&&this.setAttribute("aria-pressed",true);h&&this.removeAttribute("aria-disabled"); +break;case CKEDITOR.TRISTATE_DISABLED:this.addClass(b+"_disabled");this.removeClass(b+"_off");this.removeClass(b+"_on");h&&this.setAttribute("aria-disabled",true);h&&this.removeAttribute("aria-pressed");break;default:this.addClass(b+"_off");this.removeClass(b+"_on");this.removeClass(b+"_disabled");h&&this.removeAttribute("aria-pressed");h&&this.removeAttribute("aria-disabled")}},getFrameDocument:function(){var a=this.$;try{a.contentWindow.document}catch(b){a.src=a.src}return a&&new CKEDITOR.dom.document(a.contentWindow.document)}, +copyAttributes:function(a,b){for(var h=this.$.attributes,b=b||{},g=0;g<h.length;g++){var f=h[g],i=f.nodeName.toLowerCase(),c;if(!(i in b))if(i=="checked"&&(c=this.getAttribute(i)))a.setAttribute(i,c);else if(f.specified||CKEDITOR.env.ie&&f.nodeValue&&i=="value"){c=this.getAttribute(i);if(c===null)c=f.nodeValue;a.setAttribute(i,c)}}if(this.$.style.cssText!=="")a.$.style.cssText=this.$.style.cssText},renameNode:function(a){if(this.getName()!=a){var b=this.getDocument(),a=new CKEDITOR.dom.element(a, +b);this.copyAttributes(a);this.moveChildren(a);this.getParent()&&this.$.parentNode.replaceChild(a.$,this.$);a.$["data-cke-expando"]=this.$["data-cke-expando"];this.$=a.$}},getChild:function(){function a(a,b){var g=a.childNodes;if(b>=0&&b<g.length)return g[b]}return function(b){var h=this.$;if(b.slice)for(;b.length>0&&h;)h=a(h,b.shift());else h=a(h,b);return h?new CKEDITOR.dom.node(h):null}}(),getChildCount:function(){return this.$.childNodes.length},disableContextMenu:function(){this.on("contextmenu", +function(a){a.data.getTarget().hasClass("cke_enable_context_menu")||a.data.preventDefault()})},getDirection:function(a){return a?this.getComputedStyle("direction")||this.getDirection()||this.getParent()&&this.getParent().getDirection(1)||this.getDocument().$.dir||"ltr":this.getStyle("direction")||this.getAttribute("dir")},data:function(a,b){a="data-"+a;if(b===void 0)return this.getAttribute(a);b===false?this.removeAttribute(a):this.setAttribute(a,b);return null},getEditor:function(){var a=CKEDITOR.instances, +b,h;for(b in a){h=a[b];if(h.element.equals(this)&&h.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO)return h}return null}});var d={width:["border-left-width","border-right-width","padding-left","padding-right"],height:["border-top-width","border-bottom-width","padding-top","padding-bottom"]};CKEDITOR.dom.element.prototype.setSize=function(a,e,h){if(typeof e=="number"){if(h&&(!CKEDITOR.env.ie||!CKEDITOR.env.quirks))e=e-b.call(this,a);this.setStyle(a,e+"px")}};CKEDITOR.dom.element.prototype.getSize=function(a, +e){var h=Math.max(this.$["offset"+CKEDITOR.tools.capitalize(a)],this.$["client"+CKEDITOR.tools.capitalize(a)])||0;e&&(h=h-b.call(this,a));return h}}(),CKEDITOR.dom.documentFragment=function(b){b=b||CKEDITOR.document;this.$=b.type==CKEDITOR.NODE_DOCUMENT?b.$.createDocumentFragment():b},CKEDITOR.tools.extend(CKEDITOR.dom.documentFragment.prototype,CKEDITOR.dom.element.prototype,{type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,insertAfterNode:function(b){b=b.$;b.parentNode.insertBefore(this.$,b.nextSibling)}}, +!0,{append:1,appendBogus:1,getFirst:1,getLast:1,getParent:1,getNext:1,getPrevious:1,appendTo:1,moveChildren:1,insertBefore:1,insertAfterNode:1,replace:1,trim:1,type:1,ltrim:1,rtrim:1,getDocument:1,getChildCount:1,getChild:1,getChildren:1}),function(){function b(a,b){var c=this.range;if(this._.end)return null;if(!this._.start){this._.start=1;if(c.collapsed){this.end();return null}c.optimize()}var g,e=c.startContainer;g=c.endContainer;var l=c.startOffset,h=c.endOffset,d,m=this.guard,p=this.type,q=a? +"getPreviousSourceNode":"getNextSourceNode";if(!a&&!this._.guardLTR){var r=g.type==CKEDITOR.NODE_ELEMENT?g:g.getParent(),t=g.type==CKEDITOR.NODE_ELEMENT?g.getChild(h):g.getNext();this._.guardLTR=function(a,b){return(!b||!r.equals(a))&&(!t||!a.equals(t))&&(a.type!=CKEDITOR.NODE_ELEMENT||!b||!a.equals(c.root))}}if(a&&!this._.guardRTL){var z=e.type==CKEDITOR.NODE_ELEMENT?e:e.getParent(),x=e.type==CKEDITOR.NODE_ELEMENT?l?e.getChild(l-1):null:e.getPrevious();this._.guardRTL=function(a,b){return(!b||!z.equals(a))&& +(!x||!a.equals(x))&&(a.type!=CKEDITOR.NODE_ELEMENT||!b||!a.equals(c.root))}}var u=a?this._.guardRTL:this._.guardLTR;d=m?function(a,b){return u(a,b)===false?false:m(a,b)}:u;if(this.current)g=this.current[q](false,p,d);else{if(a)g.type==CKEDITOR.NODE_ELEMENT&&(g=h>0?g.getChild(h-1):d(g,true)===false?null:g.getPreviousSourceNode(true,p,d));else{g=e;if(g.type==CKEDITOR.NODE_ELEMENT&&!(g=g.getChild(l)))g=d(e,true)===false?null:e.getNextSourceNode(true,p,d)}g&&d(g)===false&&(g=null)}for(;g&&!this._.end;){this.current= +g;if(!this.evaluator||this.evaluator(g)!==false){if(!b)return g}else if(b&&this.evaluator)return false;g=g[q](false,p,d)}this.end();return this.current=null}function d(a){for(var g,c=null;g=b.call(this,a);)c=g;return c}CKEDITOR.dom.walker=CKEDITOR.tools.createClass({$:function(a){this.range=a;this._={}},proto:{end:function(){this._.end=1},next:function(){return b.call(this)},previous:function(){return b.call(this,1)},checkForward:function(){return b.call(this,0,1)!==false},checkBackward:function(){return b.call(this, +1,1)!==false},lastForward:function(){return d.call(this)},lastBackward:function(){return d.call(this,1)},reset:function(){delete this.current;this._={}}}});var a={block:1,"list-item":1,table:1,"table-row-group":1,"table-header-group":1,"table-footer-group":1,"table-row":1,"table-column-group":1,"table-column":1,"table-cell":1,"table-caption":1};CKEDITOR.dom.element.prototype.isBlockBoundary=function(b){b=b?CKEDITOR.tools.extend({},CKEDITOR.dtd.$block,b||{}):CKEDITOR.dtd.$block;return this.getComputedStyle("float")== +"none"&&a[this.getComputedStyle("display")]||b[this.getName()]};CKEDITOR.dom.walker.blockBoundary=function(a){return function(b){return!(b.type==CKEDITOR.NODE_ELEMENT&&b.isBlockBoundary(a))}};CKEDITOR.dom.walker.listItemBoundary=function(){return this.blockBoundary({br:1})};CKEDITOR.dom.walker.bookmark=function(a,b){function c(a){return a&&a.getName&&a.getName()=="span"&&a.data("cke-bookmark")}return function(g){var e,l;e=g&&g.type!=CKEDITOR.NODE_ELEMENT&&(l=g.getParent())&&c(l);e=a?e:e||c(g);return!!(b^ +e)}};CKEDITOR.dom.walker.whitespaces=function(a){return function(b){var c;b&&b.type==CKEDITOR.NODE_TEXT&&(c=!CKEDITOR.tools.trim(b.getText())||CKEDITOR.env.webkit&&b.getText()=="​");return!!(a^c)}};CKEDITOR.dom.walker.invisible=function(a){var b=CKEDITOR.dom.walker.whitespaces();return function(c){if(b(c))c=1;else{c.type==CKEDITOR.NODE_TEXT&&(c=c.getParent());c=!c.$.offsetHeight}return!!(a^c)}};CKEDITOR.dom.walker.nodeType=function(a,b){return function(c){return!!(b^c.type==a)}};CKEDITOR.dom.walker.bogus= +function(a){function b(a){return!h(a)&&!g(a)}return function(c){var g=!CKEDITOR.env.ie?c.is&&c.is("br"):c.getText&&e.test(c.getText());if(g){g=c.getParent();c=c.getNext(b);g=g.isBlockBoundary()&&(!c||c.type==CKEDITOR.NODE_ELEMENT&&c.isBlockBoundary())}return!!(a^g)}};var e=/^[\t\r\n ]*(?: |\xa0)$/,h=CKEDITOR.dom.walker.whitespaces(),g=CKEDITOR.dom.walker.bookmark();CKEDITOR.dom.element.prototype.getBogus=function(){var a=this;do a=a.getPreviousSourceNode();while(g(a)||h(a)||a.type==CKEDITOR.NODE_ELEMENT&& +a.getName()in CKEDITOR.dtd.$inline&&!(a.getName()in CKEDITOR.dtd.$empty));return a&&(!CKEDITOR.env.ie?a.is&&a.is("br"):a.getText&&e.test(a.getText()))?a:false}}(),CKEDITOR.dom.range=function(b){this.endOffset=this.endContainer=this.startOffset=this.startContainer=null;this.collapsed=true;var d=b instanceof CKEDITOR.dom.document;this.document=d?b:b.getDocument();this.root=d?b.getBody():b},function(){function b(){var a=false,b=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(true),f= +CKEDITOR.dom.walker.bogus();return function(m){if(c(m)||b(m))return true;if(f(m)&&!a)return a=true;return m.type==CKEDITOR.NODE_TEXT&&(m.hasAscendant("pre")||CKEDITOR.tools.trim(m.getText()).length)||m.type==CKEDITOR.NODE_ELEMENT&&!m.is(g)?false:true}}function d(a){var b=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(1);return function(g){return c(g)||b(g)?true:!a&&f(g)||g.type==CKEDITOR.NODE_ELEMENT&&g.is(CKEDITOR.dtd.$removeEmpty)}}function a(a){return!i(a)&&!c(a)}var e=function(a){a.collapsed= +a.startContainer&&a.endContainer&&a.startContainer.equals(a.endContainer)&&a.startOffset==a.endOffset},h=function(a,b,c,f){a.optimizeBookmark();var g=a.startContainer,e=a.endContainer,i=a.startOffset,d=a.endOffset,h,j;if(e.type==CKEDITOR.NODE_TEXT)e=e.split(d);else if(e.getChildCount()>0)if(d>=e.getChildCount()){e=e.append(a.document.createText(""));j=true}else e=e.getChild(d);if(g.type==CKEDITOR.NODE_TEXT){g.split(i);g.equals(e)&&(e=g.getNext())}else if(i)if(i>=g.getChildCount()){g=g.append(a.document.createText("")); +h=true}else g=g.getChild(i).getPrevious();else{g=g.append(a.document.createText(""),1);h=true}var i=g.getParents(),d=e.getParents(),x,u,w;for(x=0;x<i.length;x++){u=i[x];w=d[x];if(!u.equals(w))break}for(var s=c,v,A,B,y=x;y<i.length;y++){v=i[y];s&&!v.equals(g)&&(A=s.append(v.clone()));for(v=v.getNext();v;){if(v.equals(d[y])||v.equals(e))break;B=v.getNext();if(b==2)s.append(v.clone(true));else{v.remove();b==1&&s.append(v)}v=B}s&&(s=A)}s=c;for(c=x;c<d.length;c++){v=d[c];b>0&&!v.equals(e)&&(A=s.append(v.clone())); +if(!i[c]||v.$.parentNode!=i[c].$.parentNode)for(v=v.getPrevious();v;){if(v.equals(i[c])||v.equals(g))break;B=v.getPrevious();if(b==2)s.$.insertBefore(v.$.cloneNode(true),s.$.firstChild);else{v.remove();b==1&&s.$.insertBefore(v.$,s.$.firstChild)}v=B}s&&(s=A)}if(b==2){u=a.startContainer;if(u.type==CKEDITOR.NODE_TEXT){u.$.data=u.$.data+u.$.nextSibling.data;u.$.parentNode.removeChild(u.$.nextSibling)}a=a.endContainer;if(a.type==CKEDITOR.NODE_TEXT&&a.$.nextSibling){a.$.data=a.$.data+a.$.nextSibling.data; +a.$.parentNode.removeChild(a.$.nextSibling)}}else{if(u&&w&&(g.$.parentNode!=u.$.parentNode||e.$.parentNode!=w.$.parentNode)){b=w.getIndex();h&&w.$.parentNode==g.$.parentNode&&b--;if(f&&u.type==CKEDITOR.NODE_ELEMENT){f=CKEDITOR.dom.element.createFromHtml('<span data-cke-bookmark="1" style="display:none"> </span>',a.document);f.insertAfter(u);u.mergeSiblings(false);a.moveToBookmark({startNode:f})}else a.setStart(w.getParent(),b)}a.collapse(true)}h&&g.remove();j&&e.$.parentNode&&e.remove()},g={abbr:1, +acronym:1,b:1,bdo:1,big:1,cite:1,code:1,del:1,dfn:1,em:1,font:1,i:1,ins:1,label:1,kbd:1,q:1,samp:1,small:1,span:1,strike:1,strong:1,sub:1,sup:1,tt:1,u:1,"var":1},f=CKEDITOR.dom.walker.bogus(),i=new CKEDITOR.dom.walker.whitespaces,c=new CKEDITOR.dom.walker.bookmark,j=/^[\t\r\n ]*(?: |\xa0)$/;CKEDITOR.dom.range.prototype={clone:function(){var a=new CKEDITOR.dom.range(this.root);a.startContainer=this.startContainer;a.startOffset=this.startOffset;a.endContainer=this.endContainer;a.endOffset=this.endOffset; +a.collapsed=this.collapsed;return a},collapse:function(a){if(a){this.endContainer=this.startContainer;this.endOffset=this.startOffset}else{this.startContainer=this.endContainer;this.startOffset=this.endOffset}this.collapsed=true},cloneContents:function(){var a=new CKEDITOR.dom.documentFragment(this.document);this.collapsed||h(this,2,a);return a},deleteContents:function(a){this.collapsed||h(this,0,null,a)},extractContents:function(a){var b=new CKEDITOR.dom.documentFragment(this.document);this.collapsed|| +h(this,1,b,a);return b},createBookmark:function(a){var b,c,f,g,e=this.collapsed;b=this.document.createElement("span");b.data("cke-bookmark",1);b.setStyle("display","none");b.setHtml(" ");if(a){f="cke_bm_"+CKEDITOR.tools.getNextNumber();b.setAttribute("id",f+(e?"C":"S"))}if(!e){c=b.clone();c.setHtml(" ");a&&c.setAttribute("id",f+"E");g=this.clone();g.collapse();g.insertNode(c)}g=this.clone();g.collapse(true);g.insertNode(b);if(c){this.setStartAfter(b);this.setEndBefore(c)}else this.moveToPosition(b, +CKEDITOR.POSITION_AFTER_END);return{startNode:a?f+(e?"C":"S"):b,endNode:a?f+"E":c,serializable:a,collapsed:e}},createBookmark2:function(a){var b=this.startContainer,c=this.endContainer,f=this.startOffset,g=this.endOffset,e=this.collapsed,i,d;if(!b||!c)return{start:0,end:0};if(a){if(b.type==CKEDITOR.NODE_ELEMENT){if((i=b.getChild(f))&&i.type==CKEDITOR.NODE_TEXT&&f>0&&i.getPrevious().type==CKEDITOR.NODE_TEXT){b=i;f=0}i&&i.type==CKEDITOR.NODE_ELEMENT&&(f=i.getIndex(1))}for(;b.type==CKEDITOR.NODE_TEXT&& +(d=b.getPrevious())&&d.type==CKEDITOR.NODE_TEXT;){b=d;f=f+d.getLength()}if(!e){if(c.type==CKEDITOR.NODE_ELEMENT){if((i=c.getChild(g))&&i.type==CKEDITOR.NODE_TEXT&&g>0&&i.getPrevious().type==CKEDITOR.NODE_TEXT){c=i;g=0}i&&i.type==CKEDITOR.NODE_ELEMENT&&(g=i.getIndex(1))}for(;c.type==CKEDITOR.NODE_TEXT&&(d=c.getPrevious())&&d.type==CKEDITOR.NODE_TEXT;){c=d;g=g+d.getLength()}}}return{start:b.getAddress(a),end:e?null:c.getAddress(a),startOffset:f,endOffset:g,normalized:a,collapsed:e,is2:true}},moveToBookmark:function(a){if(a.is2){var b= +this.document.getByAddress(a.start,a.normalized),c=a.startOffset,f=a.end&&this.document.getByAddress(a.end,a.normalized),a=a.endOffset;this.setStart(b,c);f?this.setEnd(f,a):this.collapse(true)}else{b=(c=a.serializable)?this.document.getById(a.startNode):a.startNode;a=c?this.document.getById(a.endNode):a.endNode;this.setStartBefore(b);b.remove();if(a){this.setEndBefore(a);a.remove()}else this.collapse(true)}},getBoundaryNodes:function(){var a=this.startContainer,b=this.endContainer,c=this.startOffset, +f=this.endOffset,g;if(a.type==CKEDITOR.NODE_ELEMENT){g=a.getChildCount();if(g>c)a=a.getChild(c);else if(g<1)a=a.getPreviousSourceNode();else{for(a=a.$;a.lastChild;)a=a.lastChild;a=new CKEDITOR.dom.node(a);a=a.getNextSourceNode()||a}}if(b.type==CKEDITOR.NODE_ELEMENT){g=b.getChildCount();if(g>f)b=b.getChild(f).getPreviousSourceNode(true);else if(g<1)b=b.getPreviousSourceNode();else{for(b=b.$;b.lastChild;)b=b.lastChild;b=new CKEDITOR.dom.node(b)}}a.getPosition(b)&CKEDITOR.POSITION_FOLLOWING&&(a=b);return{startNode:a, +endNode:b}},getCommonAncestor:function(a,b){var c=this.startContainer,f=this.endContainer,c=c.equals(f)?a&&c.type==CKEDITOR.NODE_ELEMENT&&this.startOffset==this.endOffset-1?c.getChild(this.startOffset):c:c.getCommonAncestor(f);return b&&!c.is?c.getParent():c},optimize:function(){var a=this.startContainer,b=this.startOffset;a.type!=CKEDITOR.NODE_ELEMENT&&(b?b>=a.getLength()&&this.setStartAfter(a):this.setStartBefore(a));a=this.endContainer;b=this.endOffset;a.type!=CKEDITOR.NODE_ELEMENT&&(b?b>=a.getLength()&& +this.setEndAfter(a):this.setEndBefore(a))},optimizeBookmark:function(){var a=this.startContainer,b=this.endContainer;a.is&&(a.is("span")&&a.data("cke-bookmark"))&&this.setStartAt(a,CKEDITOR.POSITION_BEFORE_START);b&&(b.is&&b.is("span")&&b.data("cke-bookmark"))&&this.setEndAt(b,CKEDITOR.POSITION_AFTER_END)},trim:function(a,b){var c=this.startContainer,f=this.startOffset,g=this.collapsed;if((!a||g)&&c&&c.type==CKEDITOR.NODE_TEXT){if(f)if(f>=c.getLength()){f=c.getIndex()+1;c=c.getParent()}else{var e= +c.split(f),f=c.getIndex()+1,c=c.getParent();if(this.startContainer.equals(this.endContainer))this.setEnd(e,this.endOffset-this.startOffset);else if(c.equals(this.endContainer))this.endOffset=this.endOffset+1}else{f=c.getIndex();c=c.getParent()}this.setStart(c,f);if(g){this.collapse(true);return}}c=this.endContainer;f=this.endOffset;if(!b&&!g&&c&&c.type==CKEDITOR.NODE_TEXT){if(f){f>=c.getLength()||c.split(f);f=c.getIndex()+1}else f=c.getIndex();c=c.getParent();this.setEnd(c,f)}},enlarge:function(a, +b){switch(a){case CKEDITOR.ENLARGE_INLINE:var c=1;case CKEDITOR.ENLARGE_ELEMENT:if(this.collapsed)break;var f=this.getCommonAncestor(),g=this.root,e,i,d,h,j,x=false,u,w;u=this.startContainer;w=this.startOffset;if(u.type==CKEDITOR.NODE_TEXT){if(w){u=!CKEDITOR.tools.trim(u.substring(0,w)).length&&u;x=!!u}if(u&&!(h=u.getPrevious()))d=u.getParent()}else{w&&(h=u.getChild(w-1)||u.getLast());h||(d=u)}for(;d||h;){if(d&&!h){!j&&d.equals(f)&&(j=true);if(c?d.isBlockBoundary():!g.contains(d))break;if(!x||d.getComputedStyle("display")!= +"inline"){x=false;j?e=d:this.setStartBefore(d)}h=d.getPrevious()}for(;h;){u=false;if(h.type==CKEDITOR.NODE_COMMENT)h=h.getPrevious();else{if(h.type==CKEDITOR.NODE_TEXT){w=h.getText();/[^\s\ufeff]/.test(w)&&(h=null);u=/[\s\ufeff]$/.test(w)}else if((h.$.offsetWidth>0||b&&h.is("br"))&&!h.data("cke-bookmark"))if(x&&CKEDITOR.dtd.$removeEmpty[h.getName()]){w=h.getText();if(/[^\s\ufeff]/.test(w))h=null;else for(var s=h.$.getElementsByTagName("*"),v=0,A;A=s[v++];)if(!CKEDITOR.dtd.$removeEmpty[A.nodeName.toLowerCase()]){h= +null;break}h&&(u=!!w.length)}else h=null;u&&(x?j?e=d:d&&this.setStartBefore(d):x=true);if(h){u=h.getPrevious();if(!d&&!u){d=h;h=null;break}h=u}else d=null}}d&&(d=d.getParent())}u=this.endContainer;w=this.endOffset;d=h=null;j=x=false;if(u.type==CKEDITOR.NODE_TEXT){u=!CKEDITOR.tools.trim(u.substring(w)).length&&u;x=!(u&&u.getLength());if(u&&!(h=u.getNext()))d=u.getParent()}else(h=u.getChild(w))||(d=u);for(;d||h;){if(d&&!h){!j&&d.equals(f)&&(j=true);if(c?d.isBlockBoundary():!g.contains(d))break;if(!x|| +d.getComputedStyle("display")!="inline"){x=false;j?i=d:d&&this.setEndAfter(d)}h=d.getNext()}for(;h;){u=false;if(h.type==CKEDITOR.NODE_TEXT){w=h.getText();/[^\s\ufeff]/.test(w)&&(h=null);u=/^[\s\ufeff]/.test(w)}else if(h.type==CKEDITOR.NODE_ELEMENT){if((h.$.offsetWidth>0||b&&h.is("br"))&&!h.data("cke-bookmark"))if(x&&CKEDITOR.dtd.$removeEmpty[h.getName()]){w=h.getText();if(/[^\s\ufeff]/.test(w))h=null;else{s=h.$.getElementsByTagName("*");for(v=0;A=s[v++];)if(!CKEDITOR.dtd.$removeEmpty[A.nodeName.toLowerCase()]){h= +null;break}}h&&(u=!!w.length)}else h=null}else u=1;u&&x&&(j?i=d:this.setEndAfter(d));if(h){u=h.getNext();if(!d&&!u){d=h;h=null;break}h=u}else d=null}d&&(d=d.getParent())}if(e&&i){f=e.contains(i)?i:e;this.setStartBefore(f);this.setEndAfter(f)}break;case CKEDITOR.ENLARGE_BLOCK_CONTENTS:case CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:d=new CKEDITOR.dom.range(this.root);g=this.root;d.setStartAt(g,CKEDITOR.POSITION_AFTER_START);d.setEnd(this.startContainer,this.startOffset);d=new CKEDITOR.dom.walker(d);var B, +y,C=CKEDITOR.dom.walker.blockBoundary(a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?{br:1}:null),D=function(a){var b=C(a);b||(B=a);return b},c=function(a){var b=D(a);!b&&(a.is&&a.is("br"))&&(y=a);return b};d.guard=D;d=d.lastBackward();B=B||g;this.setStartAt(B,!B.is("br")&&(!d&&this.checkStartOfBlock()||d&&B.contains(d))?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_AFTER_END);if(a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS){d=this.clone();d=new CKEDITOR.dom.walker(d);var F=CKEDITOR.dom.walker.whitespaces(), +E=CKEDITOR.dom.walker.bookmark();d.evaluator=function(a){return!F(a)&&!E(a)};if((d=d.previous())&&d.type==CKEDITOR.NODE_ELEMENT&&d.is("br"))break}d=this.clone();d.collapse();d.setEndAt(g,CKEDITOR.POSITION_BEFORE_END);d=new CKEDITOR.dom.walker(d);d.guard=a==CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS?c:D;B=null;d=d.lastForward();B=B||g;this.setEndAt(B,!d&&this.checkEndOfBlock()||d&&B.contains(d)?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_BEFORE_START);y&&this.setEndAfter(y)}},shrink:function(a,b,c){if(!this.collapsed){var a= +a||CKEDITOR.SHRINK_TEXT,f=this.clone(),g=this.startContainer,e=this.endContainer,i=this.startOffset,d=this.endOffset,h=1,j=1;if(g&&g.type==CKEDITOR.NODE_TEXT)if(i)if(i>=g.getLength())f.setStartAfter(g);else{f.setStartBefore(g);h=0}else f.setStartBefore(g);if(e&&e.type==CKEDITOR.NODE_TEXT)if(d)if(d>=e.getLength())f.setEndAfter(e);else{f.setEndAfter(e);j=0}else f.setEndBefore(e);var f=new CKEDITOR.dom.walker(f),x=CKEDITOR.dom.walker.bookmark();f.evaluator=function(b){return b.type==(a==CKEDITOR.SHRINK_ELEMENT? +CKEDITOR.NODE_ELEMENT:CKEDITOR.NODE_TEXT)};var u;f.guard=function(b,f){if(x(b))return true;if(a==CKEDITOR.SHRINK_ELEMENT&&b.type==CKEDITOR.NODE_TEXT||f&&b.equals(u)||c===false&&b.type==CKEDITOR.NODE_ELEMENT&&b.isBlockBoundary())return false;!f&&b.type==CKEDITOR.NODE_ELEMENT&&(u=b);return true};if(h)(g=f[a==CKEDITOR.SHRINK_ELEMENT?"lastForward":"next"]())&&this.setStartAt(g,b?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_START);if(j){f.reset();(f=f[a==CKEDITOR.SHRINK_ELEMENT?"lastBackward": +"previous"]())&&this.setEndAt(f,b?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_END)}return!(!h&&!j)}},insertNode:function(a){this.optimizeBookmark();this.trim(false,true);var b=this.startContainer,c=b.getChild(this.startOffset);c?a.insertBefore(c):b.append(a);a.getParent()&&a.getParent().equals(this.endContainer)&&this.endOffset++;this.setStartBefore(a)},moveToPosition:function(a,b){this.setStartAt(a,b);this.collapse(true)},moveToRange:function(a){this.setStart(a.startContainer,a.startOffset); +this.setEnd(a.endContainer,a.endOffset)},selectNodeContents:function(a){this.setStart(a,0);this.setEnd(a,a.type==CKEDITOR.NODE_TEXT?a.getLength():a.getChildCount())},setStart:function(a,b){if(a.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[a.getName()]){b=a.getIndex();a=a.getParent()}this.startContainer=a;this.startOffset=b;if(!this.endContainer){this.endContainer=a;this.endOffset=b}e(this)},setEnd:function(a,b){if(a.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$empty[a.getName()]){b=a.getIndex()+ +1;a=a.getParent()}this.endContainer=a;this.endOffset=b;if(!this.startContainer){this.startContainer=a;this.startOffset=b}e(this)},setStartAfter:function(a){this.setStart(a.getParent(),a.getIndex()+1)},setStartBefore:function(a){this.setStart(a.getParent(),a.getIndex())},setEndAfter:function(a){this.setEnd(a.getParent(),a.getIndex()+1)},setEndBefore:function(a){this.setEnd(a.getParent(),a.getIndex())},setStartAt:function(a,b){switch(b){case CKEDITOR.POSITION_AFTER_START:this.setStart(a,0);break;case CKEDITOR.POSITION_BEFORE_END:a.type== +CKEDITOR.NODE_TEXT?this.setStart(a,a.getLength()):this.setStart(a,a.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setStartBefore(a);break;case CKEDITOR.POSITION_AFTER_END:this.setStartAfter(a)}e(this)},setEndAt:function(a,b){switch(b){case CKEDITOR.POSITION_AFTER_START:this.setEnd(a,0);break;case CKEDITOR.POSITION_BEFORE_END:a.type==CKEDITOR.NODE_TEXT?this.setEnd(a,a.getLength()):this.setEnd(a,a.getChildCount());break;case CKEDITOR.POSITION_BEFORE_START:this.setEndBefore(a);break; +case CKEDITOR.POSITION_AFTER_END:this.setEndAfter(a)}e(this)},fixBlock:function(a,b){var c=this.createBookmark(),f=this.document.createElement(b);this.collapse(a);this.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS);this.extractContents().appendTo(f);f.trim();CKEDITOR.env.ie||f.appendBogus();this.insertNode(f);this.moveToBookmark(c);return f},splitBlock:function(a){var b=new CKEDITOR.dom.elementPath(this.startContainer,this.root),c=new CKEDITOR.dom.elementPath(this.endContainer,this.root),f=b.block,g=c.block, +e=null;if(!b.blockLimit.equals(c.blockLimit))return null;if(a!="br"){if(!f){f=this.fixBlock(true,a);g=(new CKEDITOR.dom.elementPath(this.endContainer,this.root)).block}g||(g=this.fixBlock(false,a))}a=f&&this.checkStartOfBlock();b=g&&this.checkEndOfBlock();this.deleteContents();if(f&&f.equals(g))if(b){e=new CKEDITOR.dom.elementPath(this.startContainer,this.root);this.moveToPosition(g,CKEDITOR.POSITION_AFTER_END);g=null}else if(a){e=new CKEDITOR.dom.elementPath(this.startContainer,this.root);this.moveToPosition(f, +CKEDITOR.POSITION_BEFORE_START);f=null}else{g=this.splitElement(f);!CKEDITOR.env.ie&&!f.is("ul","ol")&&f.appendBogus()}return{previousBlock:f,nextBlock:g,wasStartOfBlock:a,wasEndOfBlock:b,elementPath:e}},splitElement:function(a){if(!this.collapsed)return null;this.setEndAt(a,CKEDITOR.POSITION_BEFORE_END);var b=this.extractContents(),c=a.clone(false);b.appendTo(c);c.insertAfter(a);this.moveToPosition(a,CKEDITOR.POSITION_AFTER_END);return c},removeEmptyBlocksAtEnd:function(){function a(f){return function(a){return b(a)|| +(c(a)||a.type==CKEDITOR.NODE_ELEMENT&&a.isEmptyInlineRemoveable())||f.is("table")&&a.is("caption")?false:true}}var b=CKEDITOR.dom.walker.whitespaces(),c=CKEDITOR.dom.walker.bookmark(false);return function(b){for(var c=this.createBookmark(),f=this[b?"endPath":"startPath"](),g=f.block||f.blockLimit,e;g&&!g.equals(f.root)&&!g.getFirst(a(g));){e=g.getParent();this[b?"setEndAt":"setStartAt"](g,CKEDITOR.POSITION_AFTER_END);g.remove(1);g=e}this.moveToBookmark(c)}}(),startPath:function(){return new CKEDITOR.dom.elementPath(this.startContainer, +this.root)},endPath:function(){return new CKEDITOR.dom.elementPath(this.endContainer,this.root)},checkBoundaryOfElement:function(a,b){var c=b==CKEDITOR.START,f=this.clone();f.collapse(c);f[c?"setStartAt":"setEndAt"](a,c?CKEDITOR.POSITION_AFTER_START:CKEDITOR.POSITION_BEFORE_END);f=new CKEDITOR.dom.walker(f);f.evaluator=d(c);return f[c?"checkBackward":"checkForward"]()},checkStartOfBlock:function(){var a=this.startContainer,c=this.startOffset;if(CKEDITOR.env.ie&&c&&a.type==CKEDITOR.NODE_TEXT){a=CKEDITOR.tools.ltrim(a.substring(0, +c));j.test(a)&&this.trim(0,1)}this.trim();a=new CKEDITOR.dom.elementPath(this.startContainer,this.root);c=this.clone();c.collapse(true);c.setStartAt(a.block||a.blockLimit,CKEDITOR.POSITION_AFTER_START);a=new CKEDITOR.dom.walker(c);a.evaluator=b();return a.checkBackward()},checkEndOfBlock:function(){var a=this.endContainer,c=this.endOffset;if(CKEDITOR.env.ie&&a.type==CKEDITOR.NODE_TEXT){a=CKEDITOR.tools.rtrim(a.substring(c));j.test(a)&&this.trim(1,0)}this.trim();a=new CKEDITOR.dom.elementPath(this.endContainer, +this.root);c=this.clone();c.collapse(false);c.setEndAt(a.block||a.blockLimit,CKEDITOR.POSITION_BEFORE_END);a=new CKEDITOR.dom.walker(c);a.evaluator=b();return a.checkForward()},getPreviousNode:function(a,b,c){var f=this.clone();f.collapse(1);f.setStartAt(c||this.root,CKEDITOR.POSITION_AFTER_START);c=new CKEDITOR.dom.walker(f);c.evaluator=a;c.guard=b;return c.previous()},getNextNode:function(a,b,c){var f=this.clone();f.collapse();f.setEndAt(c||this.root,CKEDITOR.POSITION_BEFORE_END);c=new CKEDITOR.dom.walker(f); +c.evaluator=a;c.guard=b;return c.next()},checkReadOnly:function(){function a(b,c){for(;b;){if(b.type==CKEDITOR.NODE_ELEMENT){if(b.getAttribute("contentEditable")=="false"&&!b.data("cke-editable"))return 0;if(b.is("html")||b.getAttribute("contentEditable")=="true"&&(b.contains(c)||b.equals(c)))break}b=b.getParent()}return 1}return function(){var b=this.startContainer,c=this.endContainer;return!(a(b,c)&&a(c,b))}}(),moveToElementEditablePosition:function(b,c){if(b.type==CKEDITOR.NODE_ELEMENT&&!b.isEditable(false)){this.moveToPosition(b, +c?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START);return true}for(var f=0;b;){if(b.type==CKEDITOR.NODE_TEXT){c&&this.checkEndOfBlock()&&j.test(b.getText())?this.moveToPosition(b,CKEDITOR.POSITION_BEFORE_START):this.moveToPosition(b,c?CKEDITOR.POSITION_AFTER_END:CKEDITOR.POSITION_BEFORE_START);f=1;break}if(b.type==CKEDITOR.NODE_ELEMENT)if(b.isEditable()){this.moveToPosition(b,c?CKEDITOR.POSITION_BEFORE_END:CKEDITOR.POSITION_AFTER_START);f=1}else c&&(b.is("br")&&this.checkEndOfBlock())&& +this.moveToPosition(b,CKEDITOR.POSITION_BEFORE_START);var g=b,e=f,i=void 0;g.type==CKEDITOR.NODE_ELEMENT&&g.isEditable(false)&&(i=g[c?"getLast":"getFirst"](a));!e&&!i&&(i=g[c?"getPrevious":"getNext"](a));b=i}return!!f},moveToElementEditStart:function(a){return this.moveToElementEditablePosition(a)},moveToElementEditEnd:function(a){return this.moveToElementEditablePosition(a,true)},getEnclosedNode:function(){var a=this.clone();a.optimize();if(a.startContainer.type!=CKEDITOR.NODE_ELEMENT||a.endContainer.type!= +CKEDITOR.NODE_ELEMENT)return null;var a=new CKEDITOR.dom.walker(a),b=CKEDITOR.dom.walker.bookmark(false,true),c=CKEDITOR.dom.walker.whitespaces(true);a.evaluator=function(a){return c(a)&&b(a)};var f=a.next();a.reset();return f&&f.equals(a.previous())?f:null},getTouchedStartNode:function(){var a=this.startContainer;return this.collapsed||a.type!=CKEDITOR.NODE_ELEMENT?a:a.getChild(this.startOffset)||a},getTouchedEndNode:function(){var a=this.endContainer;return this.collapsed||a.type!=CKEDITOR.NODE_ELEMENT? +a:a.getChild(this.endOffset-1)||a},scrollIntoView:function(){var a=new CKEDITOR.dom.element.createFromHtml("<span> </span>",this.document),b,c,f,g=this.clone();g.optimize();if(f=g.startContainer.type==CKEDITOR.NODE_TEXT){c=g.startContainer.getText();b=g.startContainer.split(g.startOffset);a.insertAfter(g.startContainer)}else g.insertNode(a);a.scrollIntoView();if(f){g.startContainer.setText(c);b.remove()}a.remove()}}}(),CKEDITOR.POSITION_AFTER_START=1,CKEDITOR.POSITION_BEFORE_END=2,CKEDITOR.POSITION_BEFORE_START= +3,CKEDITOR.POSITION_AFTER_END=4,CKEDITOR.ENLARGE_ELEMENT=1,CKEDITOR.ENLARGE_BLOCK_CONTENTS=2,CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS=3,CKEDITOR.ENLARGE_INLINE=4,CKEDITOR.START=1,CKEDITOR.END=2,CKEDITOR.SHRINK_ELEMENT=1,CKEDITOR.SHRINK_TEXT=2,function(){function b(a){if(!(arguments.length<1)){this.range=a;this.forceBrBreak=0;this.enlargeBr=1;this.enforceRealBlocks=0;this._||(this._={})}}function d(a,b,c){for(a=a.getNextSourceNode(b,null,c);!e(a);)a=a.getNextSourceNode(b,null,c);return a}var a=/^[\r\n\t ]+$/, +e=CKEDITOR.dom.walker.bookmark(false,true),h=CKEDITOR.dom.walker.whitespaces(true),g=function(a){return e(a)&&h(a)};b.prototype={getNextParagraph:function(b){b=b||"p";if(!CKEDITOR.dtd[this.range.root.getName()][b])return null;var i,c,h,k,l,n;if(!this._.started){c=this.range.clone();c.shrink(CKEDITOR.NODE_ELEMENT,true);k=c.endContainer.hasAscendant("pre",true)||c.startContainer.hasAscendant("pre",true);c.enlarge(this.forceBrBreak&&!k||!this.enlargeBr?CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS:CKEDITOR.ENLARGE_BLOCK_CONTENTS); +if(!c.collapsed){k=new CKEDITOR.dom.walker(c.clone());var o=CKEDITOR.dom.walker.bookmark(true,true);k.evaluator=o;this._.nextNode=k.next();k=new CKEDITOR.dom.walker(c.clone());k.evaluator=o;k=k.previous();this._.lastNode=k.getNextSourceNode(true);if(this._.lastNode&&this._.lastNode.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(this._.lastNode.getText())&&this._.lastNode.getParent().isBlockBoundary()){o=this.range.clone();o.moveToPosition(this._.lastNode,CKEDITOR.POSITION_AFTER_END);if(o.checkEndOfBlock()){o= +new CKEDITOR.dom.elementPath(o.endContainer,o.root);this._.lastNode=(o.block||o.blockLimit).getNextSourceNode(true)}}if(!this._.lastNode){this._.lastNode=this._.docEndMarker=c.document.createText("");this._.lastNode.insertAfter(k)}c=null}this._.started=1}o=this._.nextNode;k=this._.lastNode;for(this._.nextNode=null;o;){var m=0,p=o.hasAscendant("pre"),q=o.type!=CKEDITOR.NODE_ELEMENT,r=0;if(q)o.type==CKEDITOR.NODE_TEXT&&a.test(o.getText())&&(q=0);else{var t=o.getName();if(o.isBlockBoundary(this.forceBrBreak&& +!p&&{br:1})){if(t=="br")q=1;else if(!c&&!o.getChildCount()&&t!="hr"){i=o;h=o.equals(k);break}if(c){c.setEndAt(o,CKEDITOR.POSITION_BEFORE_START);if(t!="br")this._.nextNode=o}m=1}else{if(o.getFirst()){if(!c){c=this.range.clone();c.setStartAt(o,CKEDITOR.POSITION_BEFORE_START)}o=o.getFirst();continue}q=1}}if(q&&!c){c=this.range.clone();c.setStartAt(o,CKEDITOR.POSITION_BEFORE_START)}h=(!m||q)&&o.equals(k);if(c&&!m)for(;!o.getNext(g)&&!h;){t=o.getParent();if(t.isBlockBoundary(this.forceBrBreak&&!p&&{br:1})){m= +1;q=0;h||t.equals(k);c.setEndAt(t,CKEDITOR.POSITION_BEFORE_END);break}o=t;q=1;h=o.equals(k);r=1}q&&c.setEndAt(o,CKEDITOR.POSITION_AFTER_END);o=d(o,r,k);if((h=!o)||m&&c)break}if(!i){if(!c){this._.docEndMarker&&this._.docEndMarker.remove();return this._.nextNode=null}i=new CKEDITOR.dom.elementPath(c.startContainer,c.root);o=i.blockLimit;m={div:1,th:1,td:1};i=i.block;if(!i&&o&&!this.enforceRealBlocks&&m[o.getName()]&&c.checkStartOfBlock()&&c.checkEndOfBlock()&&!o.equals(c.root))i=o;else if(!i||this.enforceRealBlocks&& +i.getName()=="li"){i=this.range.document.createElement(b);c.extractContents().appendTo(i);i.trim();c.insertNode(i);l=n=true}else if(i.getName()!="li"){if(!c.checkStartOfBlock()||!c.checkEndOfBlock()){i=i.clone(false);c.extractContents().appendTo(i);i.trim();n=c.splitBlock();l=!n.wasStartOfBlock;n=!n.wasEndOfBlock;c.insertNode(i)}}else if(!h)this._.nextNode=i.equals(k)?null:d(c.getBoundaryNodes().endNode,1,k)}if(l)(c=i.getPrevious())&&c.type==CKEDITOR.NODE_ELEMENT&&(c.getName()=="br"?c.remove():c.getLast()&& +c.getLast().$.nodeName.toLowerCase()=="br"&&c.getLast().remove());if(n)(c=i.getLast())&&c.type==CKEDITOR.NODE_ELEMENT&&c.getName()=="br"&&(CKEDITOR.env.ie||c.getPrevious(e)||c.getNext(e))&&c.remove();if(!this._.nextNode)this._.nextNode=h||i.equals(k)||!k?null:d(i,1,k);return i}};CKEDITOR.dom.range.prototype.createIterator=function(){return new b(this)}}(),CKEDITOR.command=function(b,d){this.uiItems=[];this.exec=function(a){if(this.state==CKEDITOR.TRISTATE_DISABLED||!this.checkAllowed())return false; +this.editorFocus&&b.focus();return this.fire("exec")===false?true:d.exec.call(this,b,a)!==false};this.refresh=function(a,b){if(!this.readOnly&&a.readOnly)return true;if(this.context&&!b.isContextFor(this.context)){this.disable();return true}this.enable();return this.fire("refresh",{editor:a,path:b})===false?true:d.refresh&&d.refresh.apply(this,arguments)!==false};var a;this.checkAllowed=function(){return typeof a=="boolean"?a:a=b.filter.checkFeature(this)};CKEDITOR.tools.extend(this,d,{modes:{wysiwyg:1}, +editorFocus:1,contextSensitive:!!d.context,state:CKEDITOR.TRISTATE_DISABLED});CKEDITOR.event.call(this)},CKEDITOR.command.prototype={enable:function(){this.state==CKEDITOR.TRISTATE_DISABLED&&this.checkAllowed()&&this.setState(!this.preserveState||typeof this.previousState=="undefined"?CKEDITOR.TRISTATE_OFF:this.previousState)},disable:function(){this.setState(CKEDITOR.TRISTATE_DISABLED)},setState:function(b){if(this.state==b||!this.checkAllowed())return false;this.previousState=this.state;this.state= +b;this.fire("state");return true},toggleState:function(){this.state==CKEDITOR.TRISTATE_OFF?this.setState(CKEDITOR.TRISTATE_ON):this.state==CKEDITOR.TRISTATE_ON&&this.setState(CKEDITOR.TRISTATE_OFF)}},CKEDITOR.event.implementOn(CKEDITOR.command.prototype),CKEDITOR.ENTER_P=1,CKEDITOR.ENTER_BR=2,CKEDITOR.ENTER_DIV=3,CKEDITOR.config={customConfig:"config.js",autoUpdateElement:!0,language:"",defaultLanguage:"en",contentsLangDirection:"",enterMode:CKEDITOR.ENTER_P,forceEnterMode:!1,shiftEnterMode:CKEDITOR.ENTER_BR, +docType:"<!DOCTYPE html>",bodyId:"",bodyClass:"",fullPage:!1,height:200,extraPlugins:"",removePlugins:"",protectedSource:[],tabIndex:0,width:"",baseFloatZIndex:1E4,blockedKeystrokes:[CKEDITOR.CTRL+66,CKEDITOR.CTRL+73,CKEDITOR.CTRL+85]},function(){function b(a,b,c,f,g){var e=b.name;if((f||typeof a.elements!="function"||a.elements(e))&&(!a.match||a.match(b))){if(f=!g){a:if(a.nothingRequired)f=true;else{if(g=a.requiredClasses){e=b.classes;for(f=0;f<g.length;++f)if(CKEDITOR.tools.indexOf(e,g[f])==-1){f= +false;break a}}f=h(b.styles,a.requiredStyles)&&h(b.attributes,a.requiredAttributes)}f=!f}if(!f){if(!a.propertiesOnly)c.valid=true;if(!c.allAttributes)c.allAttributes=d(a.attributes,b.attributes,c.validAttributes);if(!c.allStyles)c.allStyles=d(a.styles,b.styles,c.validStyles);if(!c.allClasses){a=a.classes;b=b.classes;f=c.validClasses;if(a)if(a===true)b=true;else{for(var g=0,e=b.length,i;g<e;++g){i=b[g];f[i]||(f[i]=a(i))}b=false}else b=false;c.allClasses=b}}}}function d(a,b,c){if(!a)return false;if(a=== +true)return true;for(var f in b)c[f]||(c[f]=a(f,b[f]));return false}function a(a,b){if(!a)return false;if(a===true)return a;if(typeof a=="string"){a=w(a);return a=="*"?true:CKEDITOR.tools.convertArrayToObject(a.split(b))}if(CKEDITOR.tools.isArray(a))return a.length?CKEDITOR.tools.convertArrayToObject(a):false;var c={},f=0,g;for(g in a){c[g]=a[g];f++}return f?c:false}function e(a){if(a._.filterFunction)return a._.filterFunction;var f=/^cke:(object|embed|param)$/,g=/^(object|embed|param)$/;return a._.filterFunction= +function(e,i,d,h,m,l,r){var q=e.name,n,o=false;if(m)e.name=q=q.replace(f,"$1");if(d=d&&d[q]){c(e);for(q=0;q<d.length;++q)p(a,e,d[q]);j(e)}if(i){var q=e.name,d=i.elements[q],u=i.generic,i={valid:false,validAttributes:{},validClasses:{},validStyles:{},allAttributes:false,allClasses:false,allStyles:false};if(!d&&!u){h.push(e);return true}c(e);if(d){q=0;for(n=d.length;q<n;++q)b(d[q],e,i,true,l)}if(u){q=0;for(n=u.length;q<n;++q)b(u[q],e,i,false,l)}if(!i.valid){h.push(e);return true}l=i.validAttributes; +q=i.validStyles;d=i.validClasses;n=e.attributes;var u=e.styles,w=n["class"],t=n.style,x,y,z=[],M=[],s=/^data-cke-/,A=false;delete n.style;delete n["class"];if(!i.allAttributes)for(x in n)if(!l[x])if(s.test(x)){if(x!=(y=x.replace(/^data-cke-saved-/,""))&&!l[y]){delete n[x];A=true}}else{delete n[x];A=true}if(i.allStyles){if(t)n.style=t}else{for(x in u)q[x]?z.push(x+":"+u[x]):A=true;if(z.length)n.style=z.sort().join("; ")}if(i.allClasses)w&&(n["class"]=w);else{for(x in d)d[x]&&M.push(x);M.length&&(n["class"]= +M.sort().join(" "));w&&M.length<w.split(/\s+/).length&&(A=true)}A&&(o=true);if(!r&&!k(e)){h.push(e);return true}}if(m)e.name=e.name.replace(g,"cke:$1");return o}}function h(a,b){if(!b)return true;for(var c=0;c<b.length;++c)if(!(b[c]in a))return false;return true}function g(a){if(!a)return{};for(var a=a.split(/\s*,\s*/).sort(),b={};a.length;)b[a.shift()]=s;return b}function f(a){for(var b,c,f,g,e={},d=1,a=w(a);b=a.match(B);){if(c=b[2]){f=i(c,"styles");g=i(c,"attrs");c=i(c,"classes")}else f=g=c=null; +e["$"+d++]={elements:b[1],classes:c,styles:f,attributes:g};a=a.slice(b[0].length)}return e}function i(a,b){var c=a.match(y[b]);return c?w(c[1]):null}function c(a){if(!a.styles)a.styles=CKEDITOR.tools.parseCssText(a.attributes.style||"",1);if(!a.classes)a.classes=a.attributes["class"]?a.attributes["class"].split(/\s+/):[]}function j(a){var b=a.attributes,c;delete b.style;delete b["class"];if(c=CKEDITOR.tools.writeCssText(a.styles,true))b.style=c;a.classes.length&&(b["class"]=a.classes.sort().join(" "))} +function k(a){switch(a.name){case "a":if(!a.children.length&&!a.attributes.name)return false;break;case "img":if(!a.attributes.src)return false}return true}function l(a){return!a?false:a===true?true:function(b){return b in a}}function n(){return new CKEDITOR.htmlParser.element("br")}function o(a){return a.type==CKEDITOR.NODE_ELEMENT&&(a.name=="br"||x.$block[a.name])}function m(a,b,c){var f=a.name;if(x.$empty[f]||!a.children.length)if(f=="hr"&&b=="br")a.replaceWith(n());else{a.parent&&c.push({check:"it", +el:a.parent});a.remove()}else if(x.$block[f]||f=="tr")if(b=="br"){if(a.previous&&!o(a.previous)){b=n();b.insertBefore(a)}if(a.next&&!o(a.next)){b=n();b.insertAfter(a)}a.replaceWithChildren()}else{var f=a.children,g;b:{g=x[b];for(var e=0,i=f.length,d;e<i;++e){d=f[e];if(d.type==CKEDITOR.NODE_ELEMENT&&!g[d.name]){g=false;break b}}g=true}if(g){a.name=b;a.attributes={};c.push({check:"parent-down",el:a})}else{g=a.parent;for(var e=g.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT||g.name=="body",h,i=f.length;i>0;){d= +f[--i];if(e&&(d.type==CKEDITOR.NODE_TEXT||d.type==CKEDITOR.NODE_ELEMENT&&x.$inline[d.name])){if(!h){h=new CKEDITOR.htmlParser.element(b);h.insertAfter(a);c.push({check:"parent-down",el:h})}h.add(d,0)}else{h=null;d.insertAfter(a);g.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(d.type==CKEDITOR.NODE_ELEMENT&&!x[g.name][d.name])&&c.push({check:"el-up",el:d})}}a.remove()}}else if(f=="style")a.remove();else{a.parent&&c.push({check:"it",el:a.parent});a.replaceWithChildren()}}function p(a,b,c){var f,g;for(f=0;f< +c.length;++f){g=c[f];if((!g.check||a.check(g.check,false))&&(!g.left||g.left(b))){g.right(b,C);break}}}function q(a,b){var c=b.getDefinition(),f=c.attributes,g=c.styles,e,i,d,h;if(a.name!=c.element)return false;for(e in f)if(e=="class"){c=f[e].split(/\s+/);for(d=a.classes.join("|");h=c.pop();)if(d.indexOf(h)==-1)return false}else if(a.attributes[e]!=f[e])return false;for(i in g)if(a.styles[i]!=g[i])return false;return true}function r(a,b){var c,f;if(typeof a=="string")c=a;else if(a instanceof CKEDITOR.style)f= +a;else{c=a[0];f=a[1]}return[{element:c,left:f,right:function(a,c){c.transform(a,b)}}]}function t(a){return function(b){return q(b,a)}}function z(a){return function(b,c){c[a](b)}}var x=CKEDITOR.dtd,u=CKEDITOR.tools.copy,w=CKEDITOR.tools.trim,s="cke-test";CKEDITOR.filter=function(a){this.allowedContent=[];this.disabled=false;this.editor=null;this.enterMode=CKEDITOR.ENTER_P;this._={rules:{},transformations:{},cachedTests:{}};if(a instanceof CKEDITOR.editor){var b=this.editor=a;this.customConfig=true; +var a=b.config.allowedContent,c;if(a===true)this.disabled=true;else{if(!a)this.customConfig=false;this.enterMode=c=b.blockless?CKEDITOR.ENTER_BR:b.config.enterMode;this.allow("br "+(c==CKEDITOR.ENTER_P?"p":c==CKEDITOR.ENTER_DIV?"div":""),"default",1);this.allow(a,"config",1);this.allow(b.config.extraAllowedContent,"extra",1);this._.toHtmlListener=b.on("toHtml",function(a){this.applyTo(a.data.dataValue,true,a.data.dontFilter)&&b.fire("dataFiltered")},this,null,6);this._.toDataFormatListener=b.on("toDataFormat", +function(a){this.applyTo(a.data.dataValue,false,true)},this,null,11)}}else{this.customConfig=false;this.allow(a,"default",1)}};CKEDITOR.filter.prototype={allow:function(b,c,g){if(this.disabled||this.customConfig&&!g||!b)return false;this._.cachedChecks={};var e,i;if(typeof b=="string")b=f(b);else if(b instanceof CKEDITOR.style){i=b.getDefinition();g={};b=i.attributes;g[i.element]=i={styles:i.styles,requiredStyles:i.styles&&CKEDITOR.tools.objectKeys(i.styles)};if(b){b=u(b);i.classes=b["class"]?b["class"].split(/\s+/): +null;i.requiredClasses=i.classes;delete b["class"];i.attributes=b;i.requiredAttributes=b&&CKEDITOR.tools.objectKeys(b)}b=g}else if(CKEDITOR.tools.isArray(b)){for(e=0;e<b.length;++e)i=this.allow(b[e],c,g);return i}var d,g=[];for(d in b){i=b[d];i=typeof i=="boolean"?{}:typeof i=="function"?{match:i}:u(i);if(d.charAt(0)!="$")i.elements=d;if(c)i.featureName=c.toLowerCase();var h=i;h.elements=a(h.elements,/\s+/)||null;h.propertiesOnly=h.propertiesOnly||h.elements===true;var m=/\s*,\s*/,j=void 0;for(j in v){h[j]= +a(h[j],m)||null;var p=h,q=A[j],r=a(h[A[j]],m),n=h[j],o=[],k=true,w=void 0;r?k=false:r={};for(w in n)if(w.charAt(0)=="!"){w=w.slice(1);o.push(w);r[w]=true;k=false}for(;w=o.pop();){n[w]=n["!"+w];delete n["!"+w]}p[q]=(k?false:r)||null}h.match=h.match||null;this.allowedContent.push(i);g.push(i)}c=this._.rules;d=c.elements||{};b=c.generic||[];i=0;for(h=g.length;i<h;++i){m=u(g[i]);j=m.classes===true||m.styles===true||m.attributes===true;p=m;q=void 0;for(q in v)p[q]=l(p[q]);r=true;for(q in A){q=A[q];p[q]= +CKEDITOR.tools.objectKeys(p[q]);p[q]&&(r=false)}p.nothingRequired=r;if(m.elements===true||m.elements===null){m.elements=l(m.elements);b[j?"unshift":"push"](m)}else{p=m.elements;delete m.elements;for(e in p)if(d[e])d[e][j?"unshift":"push"](m);else d[e]=[m]}}c.elements=d;c.generic=b.length?b:null;return true},applyTo:function(a,b,c){var f=[],g=!c&&this._.rules,i=this._.transformations,d=e(this),h=this.editor&&this.editor.config.protectedSource,j=false;a.forEach(function(a){if(a.type==CKEDITOR.NODE_ELEMENT)d(a, +g,i,f,b)&&(j=true);else if(a.type==CKEDITOR.NODE_COMMENT&&a.value.match(/^\{cke_protected\}(?!\{C\})/)){var c;a:{var e=decodeURIComponent(a.value.replace(/^\{cke_protected\}/,""));c=[];var m,l,p;if(h)for(l=0;l<h.length;++l)if((p=e.match(h[l]))&&p[0].length==e.length){c=true;break a}e=CKEDITOR.htmlParser.fragment.fromHtml(e);e.children.length==1&&(m=e.children[0]).type==CKEDITOR.NODE_ELEMENT&&d(m,g,i,c,b);c=!c.length}c||f.push(a)}},null,true);f.length&&(j=true);for(var l,p,a=[],c=["p","br","div"][this.enterMode- +1];l=f.pop();)l.type==CKEDITOR.NODE_ELEMENT?m(l,c,a):l.remove();for(;p=a.pop();){l=p.el;if(l.parent)switch(p.check){case "it":x.$removeEmpty[l.name]&&!l.children.length?m(l,c,a):k(l)||m(l,c,a);break;case "el-up":l.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&!x[l.parent.name][l.name]&&m(l,c,a);break;case "parent-down":l.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT&&!x[l.parent.name][l.name]&&m(l.parent,c,a)}}return j},checkFeature:function(a){if(this.disabled||!a)return true;a.toFeature&&(a=a.toFeature(this.editor)); +return!a.requiredContent||this.check(a.requiredContent)},disable:function(){this.disabled=true;this._.toHtmlListener&&this._.toHtmlListener.removeListener();this._.toDataFormatListener&&this._.toDataFormatListener.removeListener()},addContentForms:function(a){if(!this.disabled&&a){var b,c,f=[],g;for(b=0;b<a.length&&!g;++b){c=a[b];if((typeof c=="string"||c instanceof CKEDITOR.style)&&this.check(c))g=c}if(g){for(b=0;b<a.length;++b)f.push(r(a[b],g));this.addTransformations(f)}}},addFeature:function(a){if(this.disabled|| +!a)return true;a.toFeature&&(a=a.toFeature(this.editor));this.allow(a.allowedContent,a.name);this.addTransformations(a.contentTransformations);this.addContentForms(a.contentForms);return this.customConfig&&a.requiredContent?this.check(a.requiredContent):true},addTransformations:function(a){var b,c;if(!this.disabled&&a){var f=this._.transformations,g;for(g=0;g<a.length;++g){b=a[g];var e=void 0,i=void 0,d=void 0,h=void 0,m=void 0,j=void 0;c=[];for(i=0;i<b.length;++i){d=b[i];if(typeof d=="string"){d= +d.split(/\s*:\s*/);h=d[0];m=null;j=d[1]}else{h=d.check;m=d.left;j=d.right}if(!e){e=d;e=e.element?e.element:h?h.match(/^([a-z0-9]+)/i)[0]:e.left.getDefinition().element}m instanceof CKEDITOR.style&&(m=t(m));c.push({check:h==e?null:h,left:m,right:typeof j=="string"?z(j):j})}b=e;f[b]||(f[b]=[]);f[b].push(c)}}},check:function(a,b,c){if(this.disabled)return true;if(CKEDITOR.tools.isArray(a)){for(var i=a.length;i--;)if(this.check(a[i],b,c))return true;return false}var d,h;if(typeof a=="string"){h=a+"<"+ +(b===false?"0":"1")+(c?"1":"0")+">";if(h in this._.cachedChecks)return this._.cachedChecks[h];i=f(a).$1;d=i.styles;var m=i.classes;i.name=i.elements;i.classes=m=m?m.split(/\s*,\s*/):[];i.styles=g(d);i.attributes=g(i.attributes);i.children=[];m.length&&(i.attributes["class"]=m.join(" "));if(d)i.attributes.style=CKEDITOR.tools.writeCssText(i.styles);d=i}else{i=a.getDefinition();d=i.styles;m=i.attributes||{};if(d){d=u(d);m.style=CKEDITOR.tools.writeCssText(d,true)}else d={};d={name:i.element,attributes:m, +classes:m["class"]?m["class"].split(/\s+/):[],styles:d,children:[]}}var m=CKEDITOR.tools.clone(d),l=[],q;if(b!==false&&(q=this._.transformations[d.name])){for(i=0;i<q.length;++i)p(this,d,q[i]);j(d)}e(this)(m,this._.rules,b===false?false:this._.transformations,l,false,!c,!c);b=l.length>0?false:CKEDITOR.tools.objectCompare(d.attributes,m.attributes,true)?true:false;typeof a=="string"&&(this._.cachedChecks[h]=b);return b}};var v={styles:1,attributes:1,classes:1},A={styles:"requiredStyles",attributes:"requiredAttributes", +classes:"requiredClasses"},B=/^([a-z0-9*\s]+)((?:\s*\{[!\w\-,\s\*]+\}\s*|\s*\[[!\w\-,\s\*]+\]\s*|\s*\([!\w\-,\s\*]+\)\s*){0,3})(?:;\s*|$)/i,y={styles:/{([^}]+)}/,attrs:/\[([^\]]+)\]/,classes:/\(([^\)]+)\)/},C=CKEDITOR.filter.transformationsTools={sizeToStyle:function(a){this.lengthToStyle(a,"width");this.lengthToStyle(a,"height")},sizeToAttribute:function(a){this.lengthToAttribute(a,"width");this.lengthToAttribute(a,"height")},lengthToStyle:function(a,b,c){c=c||b;if(!(c in a.styles)){var f=a.attributes[b]; +if(f){/^\d+$/.test(f)&&(f=f+"px");a.styles[c]=f}}delete a.attributes[b]},lengthToAttribute:function(a,b,c){c=c||b;if(!(c in a.attributes)){var f=a.styles[b],g=f&&f.match(/^(\d+)(?:\.\d*)?px$/);g?a.attributes[c]=g[1]:f==s&&(a.attributes[c]=s)}delete a.styles[b]},alignmentToStyle:function(a){if(!("float"in a.styles)){var b=a.attributes.align;if(b=="left"||b=="right")a.styles["float"]=b}delete a.attributes.align},alignmentToAttribute:function(a){if(!("align"in a.attributes)){var b=a.styles["float"]; +if(b=="left"||b=="right")a.attributes.align=b}delete a.styles["float"]},matchesStyle:q,transform:function(a,b){if(typeof b=="string")a.name=b;else{var c=b.getDefinition(),f=c.styles,g=c.attributes,e,i,d,h;a.name=c.element;for(e in g)if(e=="class"){c=a.classes.join("|");for(d=g[e].split(/\s+/);h=d.pop();)c.indexOf(h)==-1&&a.classes.push(h)}else a.attributes[e]=g[e];for(i in f)a.styles[i]=f[i]}}}}(),function(){CKEDITOR.focusManager=function(b){if(b.focusManager)return b.focusManager;this.hasFocus=false; +this.currentActive=null;this._={editor:b};return this};CKEDITOR.focusManager._={blurDelay:200};CKEDITOR.focusManager.prototype={focus:function(){this._.timer&&clearTimeout(this._.timer);if(!this.hasFocus&&!this._.locked){var b=CKEDITOR.currentInstance;b&&b.focusManager.blur(1);this.hasFocus=true;(b=this._.editor.container)&&b.addClass("cke_focus");this._.editor.fire("focus")}},lock:function(){this._.locked=1},unlock:function(){delete this._.locked},blur:function(b){function d(){if(this.hasFocus){this.hasFocus= +false;var a=this._.editor.container;a&&a.removeClass("cke_focus");this._.editor.fire("blur")}}if(!this._.locked){this._.timer&&clearTimeout(this._.timer);var a=CKEDITOR.focusManager._.blurDelay;b||!a?d.call(this):this._.timer=CKEDITOR.tools.setTimeout(function(){delete this._.timer;d.call(this)},a,this)}},add:function(b,d){var a=b.getCustomData("focusmanager");if(!a||a!=this){a&&a.remove(b);var a="focus",e="blur";if(d)if(CKEDITOR.env.ie){a="focusin";e="focusout"}else CKEDITOR.event.useCapture=1;var h= +{blur:function(){b.equals(this.currentActive)&&this.blur()},focus:function(){this.currentActive=b;this.focus()}};b.on(a,h.focus,this);b.on(e,h.blur,this);if(d)CKEDITOR.event.useCapture=0;b.setCustomData("focusmanager",this);b.setCustomData("focusmanager_handlers",h)}},remove:function(b){b.removeCustomData("focusmanager");var d=b.removeCustomData("focusmanager_handlers");b.removeListener("blur",d.blur);b.removeListener("focus",d.focus)}}}(),CKEDITOR.keystrokeHandler=function(b){if(b.keystrokeHandler)return b.keystrokeHandler; +this.keystrokes={};this.blockedKeystrokes={};this._={editor:b};return this},function(){var b,d=function(a){var a=a.data,d=a.getKeystroke(),g=this.keystrokes[d],f=this._.editor;b=f.fire("key",{keyCode:d})===false;if(!b){g&&(b=f.execCommand(g,{from:"keystrokeHandler"})!==false);b||(b=!!this.blockedKeystrokes[d])}b&&a.preventDefault(true);return!b},a=function(a){if(b){b=false;a.data.preventDefault(true)}};CKEDITOR.keystrokeHandler.prototype={attach:function(b){b.on("keydown",d,this);if(CKEDITOR.env.opera|| +CKEDITOR.env.gecko&&CKEDITOR.env.mac)b.on("keypress",a,this)}}}(),function(){CKEDITOR.lang={languages:{af:1,ar:1,bg:1,bn:1,bs:1,ca:1,cs:1,cy:1,da:1,de:1,el:1,"en-au":1,"en-ca":1,"en-gb":1,en:1,eo:1,es:1,et:1,eu:1,fa:1,fi:1,fo:1,"fr-ca":1,fr:1,gl:1,gu:1,he:1,hi:1,hr:1,hu:1,is:1,it:1,ja:1,ka:1,km:1,ko:1,ku:1,lt:1,lv:1,mn:1,ms:1,nb:1,nl:1,no:1,pl:1,"pt-br":1,pt:1,ro:1,ru:1,sk:1,sl:1,"sr-latn":1,sr:1,sv:1,th:1,tr:1,uk:1,vi:1,"zh-cn":1,zh:1},load:function(b,d,a){if(!b||!CKEDITOR.lang.languages[b])b=this.detect(d, +b);this[b]?a(b,this[b]):CKEDITOR.scriptLoader.load(CKEDITOR.getUrl("lang/"+b+".js"),function(){a(b,this[b])},this)},detect:function(b,d){var a=this.languages,d=d||navigator.userLanguage||navigator.language||b,e=d.toLowerCase().match(/([a-z]+)(?:-([a-z]+))?/),h=e[1],e=e[2];a[h+"-"+e]?h=h+"-"+e:a[h]||(h=null);CKEDITOR.lang.detect=h?function(){return h}:function(a){return a};return h||b}}}(),CKEDITOR.scriptLoader=function(){var b={},d={};return{load:function(a,e,h,g){var f=typeof a=="string";f&&(a=[a]); +h||(h=CKEDITOR);var i=a.length,c=[],j=[],k=function(a){e&&(f?e.call(h,a):e.call(h,c,j))};if(i===0)k(true);else{var l=function(a,b){(b?c:j).push(a);if(--i<=0){g&&CKEDITOR.document.getDocumentElement().removeStyle("cursor");k(b)}},n=function(a,c){b[a]=1;var f=d[a];delete d[a];for(var g=0;g<f.length;g++)f[g](a,c)},o=function(a){if(b[a])l(a,true);else{var c=d[a]||(d[a]=[]);c.push(l);if(!(c.length>1)){var f=new CKEDITOR.dom.element("script");f.setAttributes({type:"text/javascript",src:a});if(e)if(CKEDITOR.env.ie)f.$.onreadystatechange= +function(){if(f.$.readyState=="loaded"||f.$.readyState=="complete"){f.$.onreadystatechange=null;n(a,true)}};else{f.$.onload=function(){setTimeout(function(){n(a,true)},0)};f.$.onerror=function(){n(a,false)}}f.appendTo(CKEDITOR.document.getHead())}}};g&&CKEDITOR.document.getDocumentElement().setStyle("cursor","wait");for(var m=0;m<i;m++)o(a[m])}}}}(),CKEDITOR.resourceManager=function(b,d){this.basePath=b;this.fileName=d;this.registered={};this.loaded={};this.externals={};this._={waitingList:{}}},CKEDITOR.resourceManager.prototype= +{add:function(b,d){if(this.registered[b])throw'[CKEDITOR.resourceManager.add] The resource name "'+b+'" is already registered.';var a=this.registered[b]=d||{};a.name=b;a.path=this.getPath(b);CKEDITOR.fire(b+CKEDITOR.tools.capitalize(this.fileName)+"Ready",a);return this.get(b)},get:function(b){return this.registered[b]||null},getPath:function(b){var d=this.externals[b];return CKEDITOR.getUrl(d&&d.dir||this.basePath+b+"/")},getFilePath:function(b){var d=this.externals[b];return CKEDITOR.getUrl(this.getPath(b)+ +(d&&typeof d.file=="string"?d.file:this.fileName+".js"))},addExternal:function(b,d,a){for(var b=b.split(","),e=0;e<b.length;e++)this.externals[b[e]]={dir:d,file:a}},load:function(b,d,a){CKEDITOR.tools.isArray(b)||(b=b?[b]:[]);for(var e=this.loaded,h=this.registered,g=[],f={},i={},c=0;c<b.length;c++){var j=b[c];if(j)if(!e[j]&&!h[j]){var k=this.getFilePath(j);g.push(k);k in f||(f[k]=[]);f[k].push(j)}else i[j]=this.get(j)}CKEDITOR.scriptLoader.load(g,function(b,c){if(c.length)throw'[CKEDITOR.resourceManager.load] Resource name "'+ +f[c[0]].join(",")+'" was not found at "'+c[0]+'".';for(var g=0;g<b.length;g++)for(var h=f[b[g]],j=0;j<h.length;j++){var q=h[j];i[q]=this.get(q);e[q]=1}d.call(a,i)},this)}},CKEDITOR.plugins=new CKEDITOR.resourceManager("plugins/","plugin"),CKEDITOR.plugins.load=CKEDITOR.tools.override(CKEDITOR.plugins.load,function(b){var d={};return function(a,e,h){var g={},f=function(a){b.call(this,a,function(a){CKEDITOR.tools.extend(g,a);var b=[],i;for(i in a){var l=a[i],n=l&&l.requires;if(!d[i]){if(l.icons)for(var o= +l.icons.split(","),m=0;m<o.length;m++)CKEDITOR.skin.addIcon(o[m],l.path+"icons/"+o[m]+".png");d[i]=1}if(n){n.split&&(n=n.split(","));for(l=0;l<n.length;l++)g[n[l]]||b.push(n[l])}}if(b.length)f.call(this,b);else{for(i in g){l=g[i];if(l.onLoad&&!l.onLoad._called){l.onLoad()===false&&delete g[i];l.onLoad._called=1}}e&&e.call(h||window,g)}},this)};f.call(this,a)}}),CKEDITOR.plugins.setLang=function(b,d,a){var e=this.get(b),b=e.langEntries||(e.langEntries={}),e=e.lang||(e.lang=[]);e.split&&(e=e.split(",")); +CKEDITOR.tools.indexOf(e,d)==-1&&e.push(d);b[d]=a},CKEDITOR.ui=function(b){if(b.ui)return b.ui;this.items={};this.instances={};this.editor=b;this._={handlers:{}};return this},CKEDITOR.ui.prototype={add:function(b,d,a){a.name=b.toLowerCase();var e=this.items[b]={type:d,command:a.command||null,args:Array.prototype.slice.call(arguments,2)};CKEDITOR.tools.extend(e,a)},get:function(b){return this.instances[b]},create:function(b){var d=this.items[b],a=d&&this._.handlers[d.type],e=d&&d.command&&this.editor.getCommand(d.command), +a=a&&a.create.apply(this,d.args);this.instances[b]=a;e&&e.uiItems.push(a);if(a&&!a.type)a.type=d.type;return a},addHandler:function(b,d){this._.handlers[b]=d},space:function(b){return CKEDITOR.document.getById(this.spaceId(b))},spaceId:function(b){return this.editor.id+"_"+b}},CKEDITOR.event.implementOn(CKEDITOR.ui),function(){function b(b,c,g){CKEDITOR.event.call(this);b=b&&CKEDITOR.tools.clone(b);if(c!==void 0){if(c instanceof CKEDITOR.dom.element){if(!g)throw Error("One of the element mode must be specified."); +}else throw Error("Expect element of type CKEDITOR.dom.element.");if(CKEDITOR.env.ie&&CKEDITOR.env.quirks&&g==CKEDITOR.ELEMENT_MODE_INLINE)throw Error("Inline element mode is not supported on IE quirks.");if(g==CKEDITOR.ELEMENT_MODE_INLINE&&!c.is(CKEDITOR.dtd.$editable)||g==CKEDITOR.ELEMENT_MODE_REPLACE&&c.is(CKEDITOR.dtd.$nonBodyContent))throw Error('The specified element mode is not supported on element: "'+c.getName()+'".');this.element=c;this.elementMode=g;this.name=this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO&& +(c.getId()||c.getNameAtt())}else this.elementMode=CKEDITOR.ELEMENT_MODE_NONE;this._={};this.commands={};this.templates={};this.name=this.name||d();this.id=CKEDITOR.tools.getNextId();this.status="unloaded";this.config=CKEDITOR.tools.prototypedCopy(CKEDITOR.config);this.ui=new CKEDITOR.ui(this);this.focusManager=new CKEDITOR.focusManager(this);this.keystrokeHandler=new CKEDITOR.keystrokeHandler(this);this.on("readOnly",a);this.on("selectionChange",h);this.on("instanceReady",function(){a.call(this); +this.on("mode",a);this.config.startupFocus&&this.focus()});CKEDITOR.fire("instanceCreated",null,this);CKEDITOR.add(this);CKEDITOR.tools.setTimeout(function(){f(this,b)},0,this)}function d(){do var a="editor"+ ++n;while(CKEDITOR.instances[a]);return a}function a(){var a=this.commands;if(this.mode)for(var b in a)e(this,a[b])}function e(a,b){b[b.startDisabled?"disable":a.readOnly&&!b.readOnly?"disable":b.modes[a.mode]?"enable":"disable"]()}function h(a){var b=this.commands,c=a.editor,f=a.data.path,g; +for(g in b){a=b[g];a.contextSensitive&&a.refresh(c,f)}}function g(a){var b=a.config.customConfig;if(!b)return false;var b=CKEDITOR.getUrl(b),c=o[b]||(o[b]={});if(c.fn){c.fn.call(a,a.config);(CKEDITOR.getUrl(a.config.customConfig)==b||!g(a))&&a.fireOnce("customConfigLoaded")}else CKEDITOR.scriptLoader.load(b,function(){c.fn=CKEDITOR.editorConfig?CKEDITOR.editorConfig:function(){};g(a)});return true}function f(a,b){a.on("customConfigLoaded",function(){if(b){if(b.on)for(var c in b.on)a.on(c,b.on[c]); +CKEDITOR.tools.extend(a.config,b,true);delete a.config.on}a.readOnly=!(!a.config.readOnly&&!(a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?a.element.isReadOnly():a.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE&&a.element.getAttribute("disabled")));a.blockless=a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&!CKEDITOR.dtd[a.element.getName()].p;a.tabIndex=a.config.tabIndex||a.element&&a.element.getAttribute("tabindex")||0;if(a.config.skin)CKEDITOR.skinName=a.config.skin;a.fireOnce("configLoaded");a.dataProcessor= +new CKEDITOR.htmlDataProcessor(a);a.filter=new CKEDITOR.filter(a);i(a)});if(b&&b.customConfig!=void 0)a.config.customConfig=b.customConfig;g(a)||a.fireOnce("customConfigLoaded")}function i(a){CKEDITOR.skin.loadPart("editor",function(){c(a)})}function c(a){CKEDITOR.lang.load(a.config.language,a.config.defaultLanguage,function(b,c){a.langCode=b;a.lang=CKEDITOR.tools.prototypedCopy(c);if(CKEDITOR.env.gecko&&CKEDITOR.env.version<10900&&a.lang.dir=="rtl")a.lang.dir="ltr";if(!a.config.contentsLangDirection)a.config.contentsLangDirection= +a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?a.element.getDirection(1):a.lang.dir;a.fire("langLoaded");j(a)})}function j(a){a.getStylesSet(function(b){a.once("loaded",function(){a.fire("stylesSet",{styles:b})},null,null,1);k(a)})}function k(a){var b=a.config,c=b.plugins,f=b.extraPlugins,g=b.removePlugins;if(f)var i=RegExp("(?:^|,)(?:"+f.replace(/\s*,\s*/g,"|")+")(?=,|$)","g"),c=c.replace(i,""),c=c+(","+f);if(g)var e=RegExp("(?:^|,)(?:"+g.replace(/\s*,\s*/g,"|")+")(?=,|$)","g"),c=c.replace(e,"");CKEDITOR.env.air&& +(c=c+",adobeair");CKEDITOR.plugins.load(c.split(","),function(c){var f=[],g=[],i=[];a.plugins=c;for(var d in c){var h=c[d],j=h.lang,l=null,n=h.requires,r;CKEDITOR.tools.isArray(n)&&(n=n.join(","));if(n&&(r=n.match(e)))for(;n=r.pop();)CKEDITOR.tools.setTimeout(function(a,b){throw Error('Plugin "'+a.replace(",","")+'" cannot be removed from the plugins list, because it\'s required by "'+b+'" plugin.');},0,null,[n,d]);if(j&&!a.lang[d]){j.split&&(j=j.split(","));if(CKEDITOR.tools.indexOf(j,a.langCode)>= +0)l=a.langCode;else{l=a.langCode.replace(/-.*/,"");l=l!=a.langCode&&CKEDITOR.tools.indexOf(j,l)>=0?l:CKEDITOR.tools.indexOf(j,"en")>=0?"en":j[0]}if(!h.langEntries||!h.langEntries[l])i.push(CKEDITOR.getUrl(h.path+"lang/"+l+".js"));else{a.lang[d]=h.langEntries[l];l=null}}g.push(l);f.push(h)}CKEDITOR.scriptLoader.load(i,function(){for(var c=["beforeInit","init","afterInit"],i=0;i<c.length;i++)for(var e=0;e<f.length;e++){var d=f[e];i===0&&(g[e]&&d.lang&&d.langEntries)&&(a.lang[d.name]=d.langEntries[g[e]]); +if(d[c[i]])d[c[i]](a)}a.fireOnce("pluginsLoaded");b.keystrokes&&a.setKeystroke(a.config.keystrokes);for(e=0;e<a.config.blockedKeystrokes.length;e++)a.keystrokeHandler.blockedKeystrokes[a.config.blockedKeystrokes[e]]=1;a.status="loaded";a.fireOnce("loaded");CKEDITOR.fire("instanceLoaded",null,a)})})}function l(){var a=this.element;if(a&&this.elementMode!=CKEDITOR.ELEMENT_MODE_APPENDTO){var b=this.getData();this.config.htmlEncodeOutput&&(b=CKEDITOR.tools.htmlEncode(b));a.is("textarea")?a.setValue(b): +a.setHtml(b);return true}return false}b.prototype=CKEDITOR.editor.prototype;CKEDITOR.editor=b;var n=0,o={};CKEDITOR.tools.extend(CKEDITOR.editor.prototype,{addCommand:function(a,b){b.name=a.toLowerCase();var c=new CKEDITOR.command(this,b);this.status=="ready"&&this.mode&&e(this,c);return this.commands[a]=c},destroy:function(a){this.fire("beforeDestroy");!a&&l.call(this);this.editable(null);this.status="destroyed";this.fire("destroy");this.removeAllListeners();CKEDITOR.remove(this);CKEDITOR.fire("instanceDestroyed", +null,this)},elementPath:function(a){return(a=a||this.getSelection().getStartElement())?new CKEDITOR.dom.elementPath(a,this.editable()):null},createRange:function(){var a=this.editable();return a?new CKEDITOR.dom.range(a):null},execCommand:function(a,b){var c=this.getCommand(a),f={name:a,commandData:b,command:c};if(c&&c.state!=CKEDITOR.TRISTATE_DISABLED&&this.fire("beforeCommandExec",f)!==true){f.returnValue=c.exec(f.commandData);if(!c.async&&this.fire("afterCommandExec",f)!==true)return f.returnValue}return false}, +getCommand:function(a){return this.commands[a]},getData:function(a){!a&&this.fire("beforeGetData");var b=this._.data;if(typeof b!="string")b=(b=this.element)&&this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE?b.is("textarea")?b.getValue():b.getHtml():"";b={dataValue:b};!a&&this.fire("getData",b);return b.dataValue},getSnapshot:function(){var a=this.fire("getSnapshot");if(typeof a!="string"){var b=this.element;b&&this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE&&(a=b.is("textarea")?b.getValue():b.getHtml())}return a}, +loadSnapshot:function(a){this.fire("loadSnapshot",a)},setData:function(a,b,c){if(b)this.on("dataReady",function(a){a.removeListener();b.call(a.editor)});a={dataValue:a};!c&&this.fire("setData",a);this._.data=a.dataValue;!c&&this.fire("afterSetData",a)},setReadOnly:function(a){a=a==void 0||a;if(this.readOnly!=a){this.readOnly=a;this.editable().setReadOnly(a);this.fire("readOnly")}},insertHtml:function(a,b){this.fire("insertHtml",{dataValue:a,mode:b})},insertText:function(a){this.fire("insertText", +a)},insertElement:function(a){this.fire("insertElement",a)},focus:function(){this.fire("beforeFocus")},checkDirty:function(){return this.status=="ready"&&this._.previousValue!==this.getSnapshot()},resetDirty:function(){this._.previousValue=this.getSnapshot()},updateElement:function(){return l.call(this)},setKeystroke:function(){for(var a=this.keystrokeHandler.keystrokes,b=CKEDITOR.tools.isArray(arguments[0])?arguments[0]:[[].slice.call(arguments,0)],c,f,g=b.length;g--;){c=b[g];f=0;if(CKEDITOR.tools.isArray(c)){f= +c[1];c=c[0]}f?a[c]=f:delete a[c]}},addFeature:function(a){return this.filter.addFeature(a)}})}(),CKEDITOR.ELEMENT_MODE_NONE=0,CKEDITOR.ELEMENT_MODE_REPLACE=1,CKEDITOR.ELEMENT_MODE_APPENDTO=2,CKEDITOR.ELEMENT_MODE_INLINE=3,CKEDITOR.htmlParser=function(){this._={htmlPartsRegex:RegExp("<(?:(?:\\/([^>]+)>)|(?:!--([\\S|\\s]*?)--\>)|(?:([^\\s>]+)\\s*((?:(?:\"[^\"]*\")|(?:'[^']*')|[^\"'>])*)\\/?>))","g")}},function(){var b=/([\w\-:.]+)(?:(?:\s*=\s*(?:(?:"([^"]*)")|(?:'([^']*)')|([^\s>]+)))|(?=\s|$))/g,d= +{checked:1,compact:1,declare:1,defer:1,disabled:1,ismap:1,multiple:1,nohref:1,noresize:1,noshade:1,nowrap:1,readonly:1,selected:1};CKEDITOR.htmlParser.prototype={onTagOpen:function(){},onTagClose:function(){},onText:function(){},onCDATA:function(){},onComment:function(){},parse:function(a){for(var e,h,g=0,f;e=this._.htmlPartsRegex.exec(a);){h=e.index;if(h>g){g=a.substring(g,h);if(f)f.push(g);else this.onText(g)}g=this._.htmlPartsRegex.lastIndex;if(h=e[1]){h=h.toLowerCase();if(f&&CKEDITOR.dtd.$cdata[h]){this.onCDATA(f.join("")); +f=null}if(!f){this.onTagClose(h);continue}}if(f)f.push(e[0]);else if(h=e[3]){h=h.toLowerCase();if(!/="/.test(h)){var i={},c;e=e[4];var j=!!(e&&e.charAt(e.length-1)=="/");if(e)for(;c=b.exec(e);){var k=c[1].toLowerCase();c=c[2]||c[3]||c[4]||"";i[k]=!c&&d[k]?k:c}this.onTagOpen(h,i,j);!f&&CKEDITOR.dtd.$cdata[h]&&(f=[])}}else if(h=e[2])this.onComment(h)}if(a.length>g)this.onText(a.substring(g,a.length))}}}(),CKEDITOR.htmlParser.basicWriter=CKEDITOR.tools.createClass({$:function(){this._={output:[]}},proto:{openTag:function(b){this._.output.push("<", +b)},openTagClose:function(b,d){d?this._.output.push(" />"):this._.output.push(">")},attribute:function(b,d){typeof d=="string"&&(d=CKEDITOR.tools.htmlEncodeAttr(d));this._.output.push(" ",b,'="',d,'"')},closeTag:function(b){this._.output.push("</",b,">")},text:function(b){this._.output.push(b)},comment:function(b){this._.output.push("<\!--",b,"--\>")},write:function(b){this._.output.push(b)},reset:function(){this._.output=[];this._.indent=false},getHtml:function(b){var d=this._.output.join("");b&& +this.reset();return d}}}),"use strict",function(){CKEDITOR.htmlParser.node=function(){};CKEDITOR.htmlParser.node.prototype={remove:function(){var b=this.parent.children,d=CKEDITOR.tools.indexOf(b,this),a=this.previous,e=this.next;a&&(a.next=e);e&&(e.previous=a);b.splice(d,1);this.parent=null},replaceWith:function(b){var d=this.parent.children,a=CKEDITOR.tools.indexOf(d,this),e=b.previous=this.previous,h=b.next=this.next;e&&(e.next=b);h&&(h.previous=b);d[a]=b;b.parent=this.parent;this.parent=null}, +insertAfter:function(b){var d=b.parent.children,a=CKEDITOR.tools.indexOf(d,b),e=b.next;d.splice(a+1,0,this);this.next=b.next;this.previous=b;b.next=this;e&&(e.previous=this);this.parent=b.parent},insertBefore:function(b){var d=b.parent.children,a=CKEDITOR.tools.indexOf(d,b);d.splice(a,0,this);this.next=b;(this.previous=b.previous)&&(b.previous.next=this);b.previous=this;this.parent=b.parent}}}(),"use strict",CKEDITOR.htmlParser.comment=function(b){this.value=b;this._={isBlockLike:false}},CKEDITOR.htmlParser.comment.prototype= +CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_COMMENT,filter:function(b){var d=this.value;if(!(d=b.onComment(d,this))){this.remove();return false}if(typeof d!="string"){this.replaceWith(d);return false}this.value=d;return true},writeHtml:function(b,d){d&&this.filter(d);b.comment(this.value)}}),"use strict",function(){CKEDITOR.htmlParser.text=function(b){this.value=b;this._={isBlockLike:false}};CKEDITOR.htmlParser.text.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node, +{type:CKEDITOR.NODE_TEXT,filter:function(b){if(!(this.value=b.onText(this.value,this))){this.remove();return false}},writeHtml:function(b,d){d&&this.filter(d);b.text(this.value)}})}(),"use strict",function(){CKEDITOR.htmlParser.cdata=function(b){this.value=b};CKEDITOR.htmlParser.cdata.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_TEXT,filter:function(){},writeHtml:function(b){b.write(this.value)}})}(),"use strict",CKEDITOR.htmlParser.fragment=function(){this.children= +[];this.parent=null;this._={isBlockLike:true,hasInlineStarted:false}},function(){function b(a){return a.name=="a"&&a.attributes.href||CKEDITOR.dtd.$removeEmpty[a.name]}var d=CKEDITOR.tools.extend({table:1,ul:1,ol:1,dl:1},CKEDITOR.dtd.table,CKEDITOR.dtd.ul,CKEDITOR.dtd.ol,CKEDITOR.dtd.dl),a={ol:1,ul:1},e=CKEDITOR.tools.extend({},{html:1},CKEDITOR.dtd.html,CKEDITOR.dtd.body,CKEDITOR.dtd.head,{style:1,script:1});CKEDITOR.htmlParser.fragment.fromHtml=function(h,g,f){function i(a){var b;if(p.length>0)for(var f= +0;f<p.length;f++){var g=p[f],i=g.name,e=CKEDITOR.dtd[i],d=r.name&&CKEDITOR.dtd[r.name];if((!d||d[i])&&(!a||!e||e[a]||!CKEDITOR.dtd[a])){if(!b){c();b=1}g=g.clone();g.parent=r;r=g;p.splice(f,1);f--}else if(i==r.name){k(r,r.parent,1);f--}}}function c(){for(;q.length;)k(q.shift(),r)}function j(a){if(a._.isBlockLike&&a.name!="pre"&&a.name!="textarea"){var b=a.children.length,c=a.children[b-1],f;if(c&&c.type==CKEDITOR.NODE_TEXT)(f=CKEDITOR.tools.rtrim(c.value))?c.value=f:a.children.length=b-1}}function k(a, +c,g){var c=c||r||m,i=r;if(a.previous===void 0){if(l(c,a)){r=c;o.onTagOpen(f,{});a.returnPoint=c=r}j(a);(!b(a)||a.children.length)&&c.add(a);a.name=="pre"&&(z=false);a.name=="textarea"&&(t=false)}if(a.returnPoint){r=a.returnPoint;delete a.returnPoint}else r=g?c:i}function l(a,b){if((a==m||a.name=="body")&&f&&(!a.name||CKEDITOR.dtd[a.name][f])){var c,g;return(c=b.attributes&&(g=b.attributes["data-cke-real-element-type"])?g:b.name)&&c in CKEDITOR.dtd.$inline&&!(c in CKEDITOR.dtd.head)&&!b.isOrphan|| +b.type==CKEDITOR.NODE_TEXT}}function n(a,b){return a in CKEDITOR.dtd.$listItem||a in CKEDITOR.dtd.$tableContent?a==b||a=="dt"&&b=="dd"||a=="dd"&&b=="dt":false}var o=new CKEDITOR.htmlParser,m=g instanceof CKEDITOR.htmlParser.element?g:typeof g=="string"?new CKEDITOR.htmlParser.element(g):new CKEDITOR.htmlParser.fragment,p=[],q=[],r=m,t=m.name=="textarea",z=m.name=="pre";o.onTagOpen=function(f,g,h,j){g=new CKEDITOR.htmlParser.element(f,g);if(g.isUnknown&&h)g.isEmpty=true;g.isOptionalClose=j;if(b(g))p.push(g); +else{if(f=="pre")z=true;else{if(f=="br"&&z){r.add(new CKEDITOR.htmlParser.text("\n"));return}f=="textarea"&&(t=true)}if(f=="br")q.push(g);else{for(;;){j=(h=r.name)?CKEDITOR.dtd[h]||(r._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):e;if(!g.isUnknown&&!r.isUnknown&&!j[f])if(r.isOptionalClose)o.onTagClose(h);else if(f in a&&h in a){h=r.children;(h=h[h.length-1])&&h.name=="li"||k(h=new CKEDITOR.htmlParser.element("li"),r);!g.returnPoint&&(g.returnPoint=r);r=h}else if(f in CKEDITOR.dtd.$listItem&&!n(f, +h))o.onTagOpen(f=="li"?"ul":"dl",{},0,1);else if(h in d&&!n(f,h)){!g.returnPoint&&(g.returnPoint=r);r=r.parent}else{h in CKEDITOR.dtd.$inline&&p.unshift(r);if(r.parent)k(r,r.parent,1);else{g.isOrphan=1;break}}else break}i(f);c();g.parent=r;g.isEmpty?k(g):r=g}}};o.onTagClose=function(a){for(var b=p.length-1;b>=0;b--)if(a==p[b].name){p.splice(b,1);return}for(var g=[],i=[],e=r;e!=m&&e.name!=a;){e._.isBlockLike||i.unshift(e);g.push(e);e=e.returnPoint||e.parent}if(e!=m){for(b=0;b<g.length;b++){var d=g[b]; +k(d,d.parent)}r=e;e._.isBlockLike&&c();k(e,e.parent);if(e==r)r=r.parent;p=p.concat(i)}a=="body"&&(f=false)};o.onText=function(b){if((!r._.hasInlineStarted||q.length)&&!z&&!t){b=CKEDITOR.tools.ltrim(b);if(b.length===0)return}var g=r.name,h=g?CKEDITOR.dtd[g]||(r._.isBlockLike?CKEDITOR.dtd.div:CKEDITOR.dtd.span):e;if(!t&&!h["#"]&&g in d){o.onTagOpen(g in a?"li":g=="dl"?"dd":g=="table"?"tr":g=="tr"?"td":"");o.onText(b)}else{c();i();!z&&!t&&(b=b.replace(/[\t\r\n ]{2,}|[\t\r\n]/g," "));b=new CKEDITOR.htmlParser.text(b); +if(l(r,b))this.onTagOpen(f,{},0,1);r.add(b)}};o.onCDATA=function(a){r.add(new CKEDITOR.htmlParser.cdata(a))};o.onComment=function(a){c();i();r.add(new CKEDITOR.htmlParser.comment(a))};o.parse(h);for(c(!CKEDITOR.env.ie&&1);r!=m;)k(r,r.parent,1);j(m);return m};CKEDITOR.htmlParser.fragment.prototype={type:CKEDITOR.NODE_DOCUMENT_FRAGMENT,add:function(a,b){isNaN(b)&&(b=this.children.length);var f=b>0?this.children[b-1]:null;if(f){if(a._.isBlockLike&&f.type==CKEDITOR.NODE_TEXT){f.value=CKEDITOR.tools.rtrim(f.value); +if(f.value.length===0){this.children.pop();this.add(a);return}}f.next=a}a.previous=f;a.parent=this;this.children.splice(b,0,a);if(!this._.hasInlineStarted)this._.hasInlineStarted=a.type==CKEDITOR.NODE_TEXT||a.type==CKEDITOR.NODE_ELEMENT&&!a._.isBlockLike},filter:function(a){a.onRoot(this);this.filterChildren(a)},filterChildren:function(a,b){if(this.childrenFilteredBy!=a.id){if(b&&!this.parent)a.onRoot(this);this.childrenFilteredBy=a.id;for(var f=0;f<this.children.length;f++)this.children[f].filter(a)=== +false&&f--}},writeHtml:function(a,b){b&&this.filter(b);this.writeChildrenHtml(a)},writeChildrenHtml:function(a,b,f){if(f&&!this.parent&&b)b.onRoot(this);b&&this.filterChildren(b);for(var b=0,f=this.children,e=f.length;b<e;b++)f[b].writeHtml(a)},forEach:function(a,b,f){!f&&(!b||this.type==b)&&a(this);for(var f=this.children,e,c=0,d=f.length;c<d;c++){e=f[c];e.type==CKEDITOR.NODE_ELEMENT?e.forEach(a,b):(!b||e.type==b)&&a(e)}}}}(),function(){function b(a,b){for(var e=0;a&&e<b.length;e++)var c=b[e],a= +a.replace(c[0],c[1]);return a}function d(a,b,e){typeof b=="function"&&(b=[b]);var c,d;d=a.length;var h=b&&b.length;if(h){for(c=0;c<d&&a[c].pri<=e;c++);for(d=h-1;d>=0;d--)if(h=b[d]){h.pri=e;a.splice(c,0,h)}}}function a(a,b,i){if(b)for(var c in b){var d=a[c];a[c]=e(d,b[c],i);d||a.$length++}}function e(a,b,e){if(b){b.pri=e;if(a){if(a.splice)d(a,b,e);else{a=a.pri>e?[b,a]:[a,b];a.filter=h}return a}return b.filter=b}}function h(a){for(var b=a.type||a instanceof CKEDITOR.htmlParser.fragment,e=0;e<this.length;e++){if(b)var c= +a.type,d=a.name;var h=this[e].apply(window,arguments);if(h===false)return h;if(b){if(h&&(h.name!=d||h.type!=c))return h}else if(typeof h!="string")return h;h!=void 0&&(a=h)}return a}CKEDITOR.htmlParser.filter=CKEDITOR.tools.createClass({$:function(a){this.id=CKEDITOR.tools.getNextNumber();this._={elementNames:[],attributeNames:[],elements:{$length:0},attributes:{$length:0}};a&&this.addRules(a,10)},proto:{addRules:function(b,f){typeof f!="number"&&(f=10);d(this._.elementNames,b.elementNames,f);d(this._.attributeNames, +b.attributeNames,f);a(this._.elements,b.elements,f);a(this._.attributes,b.attributes,f);this._.text=e(this._.text,b.text,f)||this._.text;this._.comment=e(this._.comment,b.comment,f)||this._.comment;this._.root=e(this._.root,b.root,f)||this._.root},applyTo:function(a){a.filter(this)},onElementName:function(a){return b(a,this._.elementNames)},onAttributeName:function(a){return b(a,this._.attributeNames)},onText:function(a){var b=this._.text;return b?b.filter(a):a},onComment:function(a,b){var e=this._.comment; +return e?e.filter(a,b):a},onRoot:function(a){var b=this._.root;return b?b.filter(a):a},onElement:function(a){for(var b=[this._.elements["^"],this._.elements[a.name],this._.elements.$],e,c=0;c<3;c++)if(e=b[c]){e=e.filter(a,this);if(e===false)return null;if(e&&e!=a)return this.onNode(e);if(a.parent&&!a.name)break}return a},onNode:function(a){var b=a.type;return b==CKEDITOR.NODE_ELEMENT?this.onElement(a):b==CKEDITOR.NODE_TEXT?new CKEDITOR.htmlParser.text(this.onText(a.value)):b==CKEDITOR.NODE_COMMENT? +new CKEDITOR.htmlParser.comment(this.onComment(a.value)):null},onAttribute:function(a,b,e){if(b=this._.attributes[b]){a=b.filter(e,a,this);if(a===false)return false;if(typeof a!="undefined")return a}return e}}})}(),function(){function b(b,d){function j(a){return a||CKEDITOR.env.ie?new CKEDITOR.htmlParser.text(" "):new CKEDITOR.htmlParser.element("br",{"data-cke-bogus":1})}function l(b,f){return function(i){if(i.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var d=[],h=a(i),l,n;if(h)for(m(h,1)&&d.push(h);h;){if(g(h)&& +(l=e(h))&&m(l))if((n=e(l))&&!g(n))d.push(l);else{var r=l,o=j(p),q=r.parent.children,k=CKEDITOR.tools.indexOf(q,r);q.splice(k+1,0,o);q=r.next;r.next=o;o.previous=r;o.parent=r.parent;o.next=q;c(l)}h=h.previous}for(h=0;h<d.length;h++)c(d[h]);if(d=CKEDITOR.env.opera&&!b||(typeof f=="function"?f(i)!==false:f))if(!p&&CKEDITOR.env.ie&&i.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)d=false;else if(!p&&CKEDITOR.env.ie&&(document.documentMode>7||i.name in CKEDITOR.dtd.tr||i.name in CKEDITOR.dtd.$listItem))d=false; +else{d=a(i);d=!d||i.name=="form"&&d.name=="input"}d&&i.add(j(b))}}}function m(a,b){if((!p||!CKEDITOR.env.ie)&&a.type==CKEDITOR.NODE_ELEMENT&&a.name=="br"&&!a.attributes["data-cke-eol"])return true;var c;if(a.type==CKEDITOR.NODE_TEXT&&(c=a.value.match(z))){if(c.index){f(a,new CKEDITOR.htmlParser.text(a.value.substring(0,c.index)));a.value=c[0]}if(CKEDITOR.env.ie&&p&&(!b||a.parent.name in r))return true;if(!p)if((c=a.previous)&&c.name=="br"||!c||g(c))return true}return false}var n={elements:{}},p=d== +"html",r=CKEDITOR.tools.extend({},s),o;for(o in r)"#"in u[o]||delete r[o];for(o in r)n.elements[o]=l(p,b.config.fillEmptyBlocks!==false);n.root=l(p);n.elements.br=function(a){return function(b){if(b.parent.type!=CKEDITOR.NODE_DOCUMENT_FRAGMENT){var c=b.attributes;if("data-cke-bogus"in c||"data-cke-eol"in c)delete c["data-cke-bogus"];else{for(c=b.next;c&&h(c);)c=c.next;var d=e(b);!c&&g(b.parent)?i(b.parent,j(a)):g(c)&&(d&&!g(d))&&f(c,j(a))}}}}(p);return n}function d(a){return a.enterMode!=CKEDITOR.ENTER_BR&& +a.autoParagraph!==false?a.enterMode==CKEDITOR.ENTER_DIV?"div":"p":false}function a(a){for(a=a.children[a.children.length-1];a&&h(a);)a=a.previous;return a}function e(a){for(a=a.previous;a&&h(a);)a=a.previous;return a}function h(a){return a.type==CKEDITOR.NODE_TEXT&&!CKEDITOR.tools.trim(a.value)||a.type==CKEDITOR.NODE_ELEMENT&&a.attributes["data-cke-bookmark"]}function g(a){return a&&(a.type==CKEDITOR.NODE_ELEMENT&&a.name in s||a.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT)}function f(a,b){var c=a.parent.children, +f=CKEDITOR.tools.indexOf(c,a);c.splice(f,0,b);c=a.previous;a.previous=b;b.next=a;b.parent=a.parent;if(c){b.previous=c;c.next=b}}function i(a,b){var c=a.children[a.children.length-1];a.children.push(b);b.parent=a;if(c){c.next=b;b.previous=c}}function c(a){var b=a.parent.children,c=CKEDITOR.tools.indexOf(b,a),f=a.previous,a=a.next;f&&(f.next=a);a&&(a.previous=f);b.splice(c,1)}function j(a){var b=a.parent;return b?CKEDITOR.tools.indexOf(b.children,a):-1}function k(a){a=a.attributes;a.contenteditable!= +"false"&&(a["data-cke-editable"]=a.contenteditable?"true":1);a.contenteditable="false"}function l(a){a=a.attributes;switch(a["data-cke-editable"]){case "true":a.contenteditable="true";break;case "1":delete a.contenteditable}}function n(a){return a.replace(y,function(a,b,c){return"<"+b+c.replace(C,function(a,b){return!/^on/.test(b)&&c.indexOf("data-cke-saved-"+b)==-1?" data-cke-saved-"+a+" data-cke-"+CKEDITOR.rnd+"-"+a:a})+">"})}function o(a){return a.replace(D,function(a){return"<cke:encoded>"+encodeURIComponent(a)+ +"</cke:encoded>"})}function m(a){return a.replace(F,function(a,b){return decodeURIComponent(b)})}function p(a){return a.replace(/<\!--(?!{cke_protected})[\s\S]+?--\>/g,function(a){return"<\!--"+x+"{C}"+encodeURIComponent(a).replace(/--/g,"%2D%2D")+"--\>"})}function q(a){return a.replace(/<\!--\{cke_protected\}\{C\}([\s\S]+?)--\>/g,function(a,b){return decodeURIComponent(b)})}function r(a,b){var c=b._.dataStore;return a.replace(/<\!--\{cke_protected\}([\s\S]+?)--\>/g,function(a,b){return decodeURIComponent(b)}).replace(/\{cke_protected_(\d+)\}/g, +function(a,b){return c&&c[b]||""})}function t(a,b){for(var c=[],f=b.config.protectedSource,g=b._.dataStore||(b._.dataStore={id:1}),e=/<\!--\{cke_temp(comment)?\}(\d*?)--\>/g,f=[/<script[\s\S]*?<\/script>/gi,/<noscript[\s\S]*?<\/noscript>/gi].concat(f),a=a.replace(/<\!--[\s\S]*?--\>/g,function(a){return"<\!--{cke_tempcomment}"+(c.push(a)-1)+"--\>"}),i=0;i<f.length;i++)a=a.replace(f[i],function(a){a=a.replace(e,function(a,b,f){return c[f]});return/cke_temp(comment)?/.test(a)?a:"<\!--{cke_temp}"+(c.push(a)- +1)+"--\>"});a=a.replace(e,function(a,b,f){return"<\!--"+x+(b?"{C}":"")+encodeURIComponent(c[f]).replace(/--/g,"%2D%2D")+"--\>"});return a.replace(/(['"]).*?\1/g,function(a){return a.replace(/<\!--\{cke_protected\}([\s\S]+?)--\>/g,function(a,b){g[g.id]=decodeURIComponent(b);return"{cke_protected_"+g.id++ +"}"})})}CKEDITOR.htmlDataProcessor=function(a){var c,f,g=this;this.editor=a;this.dataFilter=c=new CKEDITOR.htmlParser.filter;this.htmlFilter=f=new CKEDITOR.htmlParser.filter;this.writer=new CKEDITOR.htmlParser.basicWriter; +c.addRules(v);c.addRules(b(a,"data"));f.addRules(A);f.addRules(b(a,"html"));a.on("toHtml",function(b){var b=b.data,c=b.dataValue,c=t(c,a),c=n(c),c=o(c),c=c.replace(E,"$1cke:$2"),c=c.replace(I,"<cke:$1$2></cke:$1>"),c=CKEDITOR.env.opera?c:c.replace(/(<pre\b[^>]*>)(\r\n|\n)/g,"$1$2$2"),f=b.context||a.editable().getName(),g;if(CKEDITOR.env.ie&&CKEDITOR.env.version<9&&f=="pre"){f="div";c="<pre>"+c+"</pre>";g=1}f=a.document.createElement(f);f.setHtml("a"+c);c=f.getHtml().substr(1);c=c.replace(RegExp(" data-cke-"+ +CKEDITOR.rnd+"-","ig")," ");g&&(c=c.replace(/^<pre>|<\/pre>$/gi,""));c=c.replace(K,"$1$2");c=m(c);c=q(c);b.dataValue=CKEDITOR.htmlParser.fragment.fromHtml(c,b.context,b.fixForBody===false?false:d(a.config))},null,null,5);a.on("toHtml",function(a){a.data.dataValue.filterChildren(g.dataFilter,true)},null,null,10);a.on("toHtml",function(a){var a=a.data,b=a.dataValue,c=new CKEDITOR.htmlParser.basicWriter;b.writeChildrenHtml(c);b=c.getHtml(true);a.dataValue=p(b)},null,null,15);a.on("toDataFormat",function(b){b.data.dataValue= +CKEDITOR.htmlParser.fragment.fromHtml(b.data.dataValue,a.editable().getName(),d(a.config))},null,null,5);a.on("toDataFormat",function(a){a.data.dataValue.filterChildren(g.htmlFilter,true)},null,null,10);a.on("toDataFormat",function(b){var c=b.data.dataValue,f=g.writer;f.reset();c.writeChildrenHtml(f);c=f.getHtml(true);c=q(c);c=r(c,a);b.data.dataValue=c},null,null,15)};CKEDITOR.htmlDataProcessor.prototype={toHtml:function(a,b,c,f){var g=this.editor;!b&&b!==null&&(b=g.editable().getName());return g.fire("toHtml", {dataValue:a,context:b,fixForBody:c,dontFilter:!!f}).dataValue},toDataFormat:function(a){return this.editor.fire("toDataFormat",{dataValue:a}).dataValue}};var z=/(?: |\xa0)$/,x="{cke_protected}",u=CKEDITOR.dtd,w=["caption","colgroup","col","thead","tfoot","tbody"],s=CKEDITOR.tools.extend({},u.$blockLimit,u.$block),v={elements:{},attributeNames:[[/^on/,"data-cke-pa-on"]]},A={elementNames:[[/^cke:/,""],[/^\?xml:namespace$/,""]],attributeNames:[[/^data-cke-(saved|pa)-/,""],[/^data-cke-.*/,""],["hidefocus", -""]],elements:{$:function(a){var b=a.attributes;if(b){if(b["data-cke-temp"])return false;for(var c=["name","href","src"],f,e=0;e<c.length;e++){f="data-cke-saved-"+c[e];f in b&&delete b[c[e]]}}return a},table:function(a){a.children.slice(0).sort(function(a,b){var c,f;if(a.type==CKEDITOR.NODE_ELEMENT&&b.type==a.type){c=CKEDITOR.tools.indexOf(w,a.name);f=CKEDITOR.tools.indexOf(w,b.name)}if(!(c>-1&&f>-1&&c!=f)){c=j(a);f=j(b)}return c>f?1:-1})},embed:function(a){var b=a.parent;if(b&&b.name=="object"){var c= +""]],elements:{$:function(a){var b=a.attributes;if(b){if(b["data-cke-temp"])return false;for(var c=["name","href","src"],f,g=0;g<c.length;g++){f="data-cke-saved-"+c[g];f in b&&delete b[c[g]]}}return a},table:function(a){a.children.slice(0).sort(function(a,b){var c,f;if(a.type==CKEDITOR.NODE_ELEMENT&&b.type==a.type){c=CKEDITOR.tools.indexOf(w,a.name);f=CKEDITOR.tools.indexOf(w,b.name)}if(!(c>-1&&f>-1&&c!=f)){c=j(a);f=j(b)}return c>f?1:-1})},embed:function(a){var b=a.parent;if(b&&b.name=="object"){var c= b.attributes.width,b=b.attributes.height;c&&(a.attributes.width=c);b&&(a.attributes.height=b)}},param:function(a){a.children=[];a.isEmpty=true;return a},a:function(a){if(!a.children.length&&!a.attributes.name&&!a.attributes["data-cke-saved-name"])return false},span:function(a){a.attributes["class"]=="Apple-style-span"&&delete a.name},html:function(a){delete a.attributes.contenteditable;delete a.attributes["class"]},body:function(a){delete a.attributes.spellcheck;delete a.attributes.contenteditable}, style:function(a){var b=a.children[0];b&&b.value&&(b.value=CKEDITOR.tools.trim(b.value));if(!a.attributes.type)a.attributes.type="text/css"},title:function(a){var b=a.children[0];!b&&i(a,b=new CKEDITOR.htmlParser.text);b.value=a.attributes["data-cke-title"]||""}},attributes:{"class":function(a){return CKEDITOR.tools.ltrim(a.replace(/(?:^|\s+)cke_[^\s]*/g,""))||false}}};if(CKEDITOR.env.ie)A.attributes.style=function(a){return a.replace(/(^|;)([^\:]+)/g,function(a){return a.toLowerCase()})};for(var B in{input:1, -textarea:1}){v.elements[B]=l;A.elements[B]=m}var y=/<(a|area|img|input|source)\b([^>]*)>/gi,C=/\b(on\w+|href|src|name)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi,D=/(?:<style(?=[ >])[^>]*>[\s\S]*<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi,F=/<cke:encoded>([^<]*)<\/cke:encoded>/gi,E=/(<\/?)((?:object|embed|param|html|body|head|title)[^>]*>)/gi,K=/(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi,I=/<cke:(param|embed)([^>]*?)\/?>(?!\s*<\/cke:\1)/gi}(),"use strict",CKEDITOR.htmlParser.element=function(b, +textarea:1}){v.elements[B]=k;A.elements[B]=l}var y=/<(a|area|img|input|source)\b([^>]*)>/gi,C=/\b(on\w+|href|src|name)\s*=\s*(?:(?:"[^"]*")|(?:'[^']*')|(?:[^ "'>]+))/gi,D=/(?:<style(?=[ >])[^>]*>[\s\S]*<\/style>)|(?:<(:?link|meta|base)[^>]*>)/gi,F=/<cke:encoded>([^<]*)<\/cke:encoded>/gi,E=/(<\/?)((?:object|embed|param|html|body|head|title)[^>]*>)/gi,K=/(<\/?)cke:((?:html|body|head|title)[^>]*>)/gi,I=/<cke:(param|embed)([^>]*?)\/?>(?!\s*<\/cke:\1)/gi}(),"use strict",CKEDITOR.htmlParser.element=function(b, d){this.name=b;this.attributes=d||{};this.children=[];var a=b||"",e=a.match(/^cke:(.*)/);e&&(a=e[1]);a=!(!CKEDITOR.dtd.$nonBodyContent[a]&&!CKEDITOR.dtd.$block[a]&&!CKEDITOR.dtd.$listItem[a]&&!CKEDITOR.dtd.$tableContent[a]&&!(CKEDITOR.dtd.$nonEditable[a]||a=="br"));this.isEmpty=!!CKEDITOR.dtd.$empty[b];this.isUnknown=!CKEDITOR.dtd[b];this._={isBlockLike:a,hasInlineStarted:this.isEmpty||!a}},CKEDITOR.htmlParser.cssStyle=function(b){var d={};((b instanceof CKEDITOR.htmlParser.element?b.attributes.style: b)||"").replace(/"/g,'"').replace(/\s*([^ :;]+)\s*:\s*([^;]+)\s*(?=;|$)/g,function(a,b,h){b=="font-family"&&(h=h.replace(/["']/g,""));d[b.toLowerCase()]=h});return{rules:d,populate:function(a){var b=this.toString();if(b)a instanceof CKEDITOR.dom.element?a.setAttribute("style",b):a instanceof CKEDITOR.htmlParser.element?a.attributes.style=b:a.style=b},toString:function(){var a=[],b;for(b in d)d[b]&&a.push(b,":",d[b],";");return a.join("")}}},function(){var b=function(a,b){a=a[0];b=b[0];return a< b?-1:a>b?1:0},d=CKEDITOR.htmlParser.fragment.prototype;CKEDITOR.htmlParser.element.prototype=CKEDITOR.tools.extend(new CKEDITOR.htmlParser.node,{type:CKEDITOR.NODE_ELEMENT,add:d.add,clone:function(){return new CKEDITOR.htmlParser.element(this.name,this.attributes)},filter:function(a){var b=this,d,g;if(!b.parent)a.onRoot(b);for(;;){d=b.name;if(!(g=a.onElementName(d))){this.remove();return false}b.name=g;if(!(b=a.onElement(b))){this.remove();return false}if(b!==this){this.replaceWith(b);return false}if(b.name== @@ -260,78 +261,78 @@ function(){CKEDITOR.tools.isEmpty(this.instances)&&CKEDITOR.fire("reset")}),CKED a.editable(b);a.container=b;a.setData(a.getData(1));a.resetDirty();a.fire("contentDom");a.mode="wysiwyg";a.fire("mode");a.status="ready";a.fireOnce("instanceReady");CKEDITOR.fire("instanceReady",null,a)},null,null,1E4);a.on("destroy",function(){a.element.clearCustomData();delete a.element});return a};CKEDITOR.inlineAll=function(){var b,d,a;for(a in CKEDITOR.dtd.$editable)for(var e=CKEDITOR.document.getElementsByTag(a),h=0,g=e.count();h<g;h++){b=e.getItem(h);if(b.getAttribute("contenteditable")=="true"){d= {element:b,config:{}};CKEDITOR.fire("inline",d)!==false&&CKEDITOR.inline(b,d.config)}}};CKEDITOR.domReady(function(){!CKEDITOR.disableAutoInline&&CKEDITOR.inlineAll()})}(),CKEDITOR.replaceClass="ckeditor",function(){function b(b,f,i,c){if(!CKEDITOR.env.isCompatible)return null;b=CKEDITOR.dom.element.get(b);if(b.getEditor())throw'The editor instance "'+b.getEditor().name+'" is already attached to the provided element.';var h=new CKEDITOR.editor(f,b,c);c==CKEDITOR.ELEMENT_MODE_REPLACE&&b.setStyle("visibility", "hidden");i&&h.setData(i,null,true);h.on("loaded",function(){a(h);c==CKEDITOR.ELEMENT_MODE_REPLACE&&h.config.autoUpdateElement&&e(h);h.setMode(h.config.startupMode,function(){h.resetDirty();h.status="ready";h.fireOnce("instanceReady");CKEDITOR.fire("instanceReady",null,h)})});h.on("destroy",d);return h}function d(){var a=this.container,b=this.element;if(a){a.clearCustomData();a.remove()}if(b){b.clearCustomData();this.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE&&b.show();delete this.element}}function a(a){var b= -a.name,e=a.element,c=a.elementMode,d=a.fire("uiSpace",{space:"top",html:""}).html,l=a.fire("uiSpace",{space:"bottom",html:""}).html;h||(h=CKEDITOR.addTemplate("maincontainer",'<{outerEl} id="cke_{name}" class="{id} cke cke_reset cke_chrome cke_editor_{name} cke_{langDir} '+CKEDITOR.env.cssClass+'" dir="{langDir}" lang="{langCode}" role="application" aria-labelledby="cke_{name}_arialbl"><span id="cke_{name}_arialbl" class="cke_voice_label">{voiceLabel}</span><{outerEl} class="cke_inner cke_reset" role="presentation">{topHtml}<{outerEl} id="{contentId}" class="cke_contents cke_reset" role="presentation"></{outerEl}>{bottomHtml}</{outerEl}></{outerEl}>')); -b=CKEDITOR.dom.element.createFromHtml(h.output({id:a.id,name:b,langDir:a.lang.dir,langCode:a.langCode,voiceLabel:a.lang.editor,topHtml:d?'<span id="'+a.ui.spaceId("top")+'" class="cke_top cke_reset_all" role="presentation" style="height:auto">'+d+"</span>":"",contentId:a.ui.spaceId("contents"),bottomHtml:l?'<span id="'+a.ui.spaceId("bottom")+'" class="cke_bottom cke_reset_all" role="presentation">'+l+"</span>":"",outerEl:CKEDITOR.env.ie?"span":"div"}));if(c==CKEDITOR.ELEMENT_MODE_REPLACE){e.hide(); -b.insertAfter(e)}else e.append(b);a.container=b;d&&a.ui.space("top").unselectable();l&&a.ui.space("bottom").unselectable();e=a.config.width;c=a.config.height;e&&b.setStyle("width",CKEDITOR.tools.cssLength(e));c&&a.ui.space("contents").setStyle("height",CKEDITOR.tools.cssLength(c));b.disableContextMenu();CKEDITOR.env.webkit&&b.on("focus",function(){a.focus()});a.fireOnce("uiReady")}function e(a){var b=a.element;if(a.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE&&b.is("textarea")){var e=b.$.form&&new CKEDITOR.dom.element(b.$.form); +a.name,e=a.element,c=a.elementMode,d=a.fire("uiSpace",{space:"top",html:""}).html,k=a.fire("uiSpace",{space:"bottom",html:""}).html;h||(h=CKEDITOR.addTemplate("maincontainer",'<{outerEl} id="cke_{name}" class="{id} cke cke_reset cke_chrome cke_editor_{name} cke_{langDir} '+CKEDITOR.env.cssClass+'" dir="{langDir}" lang="{langCode}" role="application" aria-labelledby="cke_{name}_arialbl"><span id="cke_{name}_arialbl" class="cke_voice_label">{voiceLabel}</span><{outerEl} class="cke_inner cke_reset" role="presentation">{topHtml}<{outerEl} id="{contentId}" class="cke_contents cke_reset" role="presentation"></{outerEl}>{bottomHtml}</{outerEl}></{outerEl}>')); +b=CKEDITOR.dom.element.createFromHtml(h.output({id:a.id,name:b,langDir:a.lang.dir,langCode:a.langCode,voiceLabel:a.lang.editor,topHtml:d?'<span id="'+a.ui.spaceId("top")+'" class="cke_top cke_reset_all" role="presentation" style="height:auto">'+d+"</span>":"",contentId:a.ui.spaceId("contents"),bottomHtml:k?'<span id="'+a.ui.spaceId("bottom")+'" class="cke_bottom cke_reset_all" role="presentation">'+k+"</span>":"",outerEl:CKEDITOR.env.ie?"span":"div"}));if(c==CKEDITOR.ELEMENT_MODE_REPLACE){e.hide(); +b.insertAfter(e)}else e.append(b);a.container=b;d&&a.ui.space("top").unselectable();k&&a.ui.space("bottom").unselectable();e=a.config.width;c=a.config.height;e&&b.setStyle("width",CKEDITOR.tools.cssLength(e));c&&a.ui.space("contents").setStyle("height",CKEDITOR.tools.cssLength(c));b.disableContextMenu();CKEDITOR.env.webkit&&b.on("focus",function(){a.focus()});a.fireOnce("uiReady")}function e(a){var b=a.element;if(a.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE&&b.is("textarea")){var e=b.$.form&&new CKEDITOR.dom.element(b.$.form); if(e){var c=function(){a.updateElement()};e.on("submit",c);if(!e.$.submit.nodeName&&!e.$.submit.length)e.$.submit=CKEDITOR.tools.override(e.$.submit,function(b){return function(){a.updateElement();b.apply?b.apply(this,arguments):b()}});a.on("destroy",function(){e.removeListener("submit",c)})}}}CKEDITOR.replace=function(a,f){return b(a,f,null,CKEDITOR.ELEMENT_MODE_REPLACE)};CKEDITOR.appendTo=function(a,f,e){return b(a,f,e,CKEDITOR.ELEMENT_MODE_APPENDTO)};CKEDITOR.replaceAll=function(){for(var a=document.getElementsByTagName("textarea"), b=0;b<a.length;b++){var e=null,c=a[b];if(c.name||c.id){if(typeof arguments[0]=="string"){if(!RegExp("(?:^|\\s)"+arguments[0]+"(?:$|\\s)").test(c.className))continue}else if(typeof arguments[0]=="function"){e={};if(arguments[0](c,e)===false)continue}this.replace(c,e)}}};CKEDITOR.editor.prototype.addMode=function(a,b){(this._.modes||(this._.modes={}))[a]=b};CKEDITOR.editor.prototype.setMode=function(a,b){var e=this,c=this._.modes;if(!(a==e.mode||!c||!c[a])){e.fire("beforeSetMode",a);if(e.mode){var d= -e.checkDirty();e._.previousMode=e.mode;e.fire("beforeModeUnload");e.editable(0);e.ui.space("contents").setHtml("");e.mode=""}this._.modes[a](function(){e.mode=a;d!==void 0&&!d&&e.resetDirty();setTimeout(function(){e.fire("mode");b&&b.call(e)},0)})}};CKEDITOR.editor.prototype.resize=function(a,b,e,c){var d=this.container,h=this.ui.space("contents"),m=CKEDITOR.env.webkit&&this.document&&this.document.getWindow().$.frameElement,c=c?d.getChild(1):d;c.setSize("width",a,true);m&&(m.style.width="1%");h.setStyle("height", -Math.max(b-(e?0:(c.$.offsetHeight||0)-(h.$.clientHeight||0)),0)+"px");m&&(m.style.width="100%");this.fire("resize")};CKEDITOR.editor.prototype.getResizable=function(a){return a?this.ui.space("contents"):this.container};var h;CKEDITOR.domReady(function(){CKEDITOR.replaceClass&&CKEDITOR.replaceAll(CKEDITOR.replaceClass)})}(),CKEDITOR.config.startupMode="wysiwyg",function(){function b(b){var c=b.editor,f=c.editable(),e=b.data.path,d=e.blockLimit,g=b.data.selection.getRanges()[0],i=c.config.enterMode; -if(CKEDITOR.env.gecko){var h=e.block||e.blockLimit||e.root,j=h&&h.getLast(a);h&&(h.isBlockBoundary()&&(!j||!(j.type==CKEDITOR.NODE_ELEMENT&&j.isBlockBoundary()))&&!h.is("pre")&&!h.getBogus())&&h.appendBogus()}if(c.config.autoParagraph!==false&&i!=CKEDITOR.ENTER_BR&&g.collapsed&&f.equals(d)&&!e.block){f=g.clone();f.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS);e=new CKEDITOR.dom.walker(f);e.guard=function(b){return!a(b)||b.type==CKEDITOR.NODE_COMMENT||b.isReadOnly()};if(!e.checkForward()||f.checkStartOfBlock()&& -f.checkEndOfBlock()){c=g.fixBlock(true,c.config.enterMode==CKEDITOR.ENTER_DIV?"div":"p");if(CKEDITOR.env.ie)(c=c.getFirst(a))&&(c.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(c.getText()).match(/^(?: |\xa0)$/))&&c.remove();g.select();b.cancel()}}}function d(a){var b=a.data.getTarget();if(b.is("input")){b=b.getAttribute("type");(b=="submit"||b=="reset")&&a.data.preventDefault()}}function a(a){return c(a)&&j(a)}function e(a,b){return function(c){var f=CKEDITOR.dom.element.get(c.data.$.toElement|| -c.data.$.fromElement||c.data.$.relatedTarget);(!f||!b.equals(f)&&!b.contains(f))&&a.call(this,c)}}function h(b){var c,f=b.getRanges()[0],b=b.root,e=f.startPath(),d={table:1,ul:1,ol:1,dl:1},g=CKEDITOR.dom.walker.bogus();if(e.contains(d)){var i=f.clone();i.collapse(1);i.setStartAt(b,CKEDITOR.POSITION_AFTER_START);i=new CKEDITOR.dom.walker(i);e=function(b,f){return function(b,e){e&&(b.type==CKEDITOR.NODE_ELEMENT&&b.is(d))&&(c=b);if(a(b)&&!e&&(!f||!g(b)))return false}};i.guard=e(i);i.checkBackward(); +e.checkDirty();e._.previousMode=e.mode;e.fire("beforeModeUnload");e.editable(0);e.ui.space("contents").setHtml("");e.mode=""}this._.modes[a](function(){e.mode=a;d!==void 0&&!d&&e.resetDirty();setTimeout(function(){e.fire("mode");b&&b.call(e)},0)})}};CKEDITOR.editor.prototype.resize=function(a,b,e,c){var d=this.container,h=this.ui.space("contents"),l=CKEDITOR.env.webkit&&this.document&&this.document.getWindow().$.frameElement,c=c?d.getChild(1):d;c.setSize("width",a,true);l&&(l.style.width="1%");h.setStyle("height", +Math.max(b-(e?0:(c.$.offsetHeight||0)-(h.$.clientHeight||0)),0)+"px");l&&(l.style.width="100%");this.fire("resize")};CKEDITOR.editor.prototype.getResizable=function(a){return a?this.ui.space("contents"):this.container};var h;CKEDITOR.domReady(function(){CKEDITOR.replaceClass&&CKEDITOR.replaceAll(CKEDITOR.replaceClass)})}(),CKEDITOR.config.startupMode="wysiwyg",function(){function b(b){var c=b.editor,f=c.editable(),e=b.data.path,g=e.blockLimit,d=b.data.selection.getRanges()[0],i=c.config.enterMode; +if(CKEDITOR.env.gecko){var h=e.block||e.blockLimit||e.root,j=h&&h.getLast(a);h&&(h.isBlockBoundary()&&(!j||!(j.type==CKEDITOR.NODE_ELEMENT&&j.isBlockBoundary()))&&!h.is("pre")&&!h.getBogus())&&h.appendBogus()}if(c.config.autoParagraph!==false&&i!=CKEDITOR.ENTER_BR&&d.collapsed&&f.equals(g)&&!e.block){f=d.clone();f.enlarge(CKEDITOR.ENLARGE_BLOCK_CONTENTS);e=new CKEDITOR.dom.walker(f);e.guard=function(b){return!a(b)||b.type==CKEDITOR.NODE_COMMENT||b.isReadOnly()};if(!e.checkForward()||f.checkStartOfBlock()&& +f.checkEndOfBlock()){c=d.fixBlock(true,c.config.enterMode==CKEDITOR.ENTER_DIV?"div":"p");if(CKEDITOR.env.ie)(c=c.getFirst(a))&&(c.type==CKEDITOR.NODE_TEXT&&CKEDITOR.tools.trim(c.getText()).match(/^(?: |\xa0)$/))&&c.remove();d.select();b.cancel()}}}function d(a){var b=a.data.getTarget();if(b.is("input")){b=b.getAttribute("type");(b=="submit"||b=="reset")&&a.data.preventDefault()}}function a(a){return c(a)&&j(a)}function e(a,b){return function(c){var f=CKEDITOR.dom.element.get(c.data.$.toElement|| +c.data.$.fromElement||c.data.$.relatedTarget);(!f||!b.equals(f)&&!b.contains(f))&&a.call(this,c)}}function h(b){var c,f=b.getRanges()[0],b=b.root,e=f.startPath(),g={table:1,ul:1,ol:1,dl:1},d=CKEDITOR.dom.walker.bogus();if(e.contains(g)){var i=f.clone();i.collapse(1);i.setStartAt(b,CKEDITOR.POSITION_AFTER_START);i=new CKEDITOR.dom.walker(i);e=function(b,f){return function(b,e){e&&(b.type==CKEDITOR.NODE_ELEMENT&&b.is(g))&&(c=b);if(a(b)&&!e&&(!f||!d(b)))return false}};i.guard=e(i);i.checkBackward(); if(c){i=f.clone();i.collapse();i.setEndAt(b,CKEDITOR.POSITION_BEFORE_END);i=new CKEDITOR.dom.walker(i);i.guard=e(i,1);c=0;i.checkForward();return c}}return null}function g(a){a.editor.focus();a.editor.fire("saveSnapshot")}function f(a,b){var c=a.editor;!b&&c.getSelection().scrollIntoView();setTimeout(function(){c.fire("saveSnapshot")},0)}CKEDITOR.editable=CKEDITOR.tools.createClass({base:CKEDITOR.dom.element,$:function(a,b){this.base(b.$||b);this.editor=a;this.hasFocus=false;this.setup()},proto:{focus:function(){this.$[CKEDITOR.env.ie&& -this.getDocument().equals(CKEDITOR.document)?"setActive":"focus"]();CKEDITOR.env.safari&&!this.isInline()&&(CKEDITOR.document.getActive().equals(this.getWindow().getFrame())||this.getWindow().focus())},on:function(a,b){var c=Array.prototype.slice.call(arguments,0);if(CKEDITOR.env.ie&&/^focus|blur$/.exec(a)){a=a=="focus"?"focusin":"focusout";b=e(b,this);c[0]=a;c[1]=b}return CKEDITOR.dom.element.prototype.on.apply(this,c)},attachListener:function(a,b,c,f,e,d){!this._.listeners&&(this._.listeners=[]); -var g=Array.prototype.slice.call(arguments,1);this._.listeners.push(a.on.apply(a,g))},clearListeners:function(){var a=this._.listeners;try{for(;a.length;)a.pop().removeListener()}catch(b){}},restoreAttrs:function(){var a=this._.attrChanges,b,c;for(c in a)if(a.hasOwnProperty(c)){b=a[c];b!==null?this.setAttribute(c,b):this.removeAttribute(c)}},attachClass:function(a){var b=this.getCustomData("classes");if(!this.hasClass(a)){!b&&(b=[]);b.push(a);this.setCustomData("classes",b);this.addClass(a)}},changeAttr:function(a, -b){var c=this.getAttribute(a);if(b!==c){!this._.attrChanges&&(this._.attrChanges={});a in this._.attrChanges||(this._.attrChanges[a]=c);this.setAttribute(a,b)}},insertHtml:function(a,b){g(this);l(this,b||"html",a)},insertText:function(a){g(this);var b=this.editor,c=b.getSelection().getStartElement().hasAscendant("pre",true)?CKEDITOR.ENTER_BR:b.config.enterMode,b=c==CKEDITOR.ENTER_BR,f=CKEDITOR.tools,a=f.htmlEncode(a.replace(/\r\n/g,"\n")),a=a.replace(/\t/g," "),c=c==CKEDITOR.ENTER_P? -"p":"div";if(!b){var e=/\n{2}/g;if(e.test(a))var d="<"+c+">",i="</"+c+">",a=d+a.replace(e,function(){return i+d})+i}a=a.replace(/\n/g,"<br>");b||(a=a.replace(RegExp("<br>(?=</"+c+">)"),function(a){return f.repeat(a,2)}));a=a.replace(/^ | $/g," ");a=a.replace(/(>|\s) /g,function(a,b){return b+" "}).replace(/ (?=<)/g," ");l(this,"text",a)},insertElement:function(b){g(this);for(var c=this.editor,e=c.config.enterMode,d=c.getSelection(),i=d.getRanges(),h=b.getName(),j=CKEDITOR.dtd.$block[h], -l,z,x,u=i.length-1;u>=0;u--){l=i[u];if(!l.checkReadOnly()){l.deleteContents(1);z=!u&&b||b.clone(1);var w,s;if(j)for(;(w=l.getCommonAncestor(0,1))&&(s=CKEDITOR.dtd[w.getName()])&&(!s||!s[h]);)if(w.getName()in CKEDITOR.dtd.span)l.splitElement(w);else if(l.checkStartOfBlock()&&l.checkEndOfBlock()){l.setStartBefore(w);l.collapse(true);w.remove()}else l.splitBlock(e==CKEDITOR.ENTER_DIV?"div":"p",c.editable());l.insertNode(z);x||(x=z)}}if(x){l.moveToPosition(x,CKEDITOR.POSITION_AFTER_END);if(j)if((b=x.getNext(a))&& -b.type==CKEDITOR.NODE_ELEMENT&&b.is(CKEDITOR.dtd.$block))b.getDtd()["#"]?l.moveToElementEditStart(b):l.moveToElementEditEnd(x);else if(!b&&e!=CKEDITOR.ENTER_BR){b=l.fixBlock(true,e==CKEDITOR.ENTER_DIV?"div":"p");l.moveToElementEditStart(b)}}d.selectRanges([l]);f(this,CKEDITOR.env.opera)},setData:function(a,b){!b&&this.editor.dataProcessor&&(a=this.editor.dataProcessor.toHtml(a));this.setHtml(a);this.editor.fire("dataReady")},getData:function(a){var b=this.getHtml();!a&&this.editor.dataProcessor&& +this.getDocument().equals(CKEDITOR.document)?"setActive":"focus"]();CKEDITOR.env.safari&&!this.isInline()&&(CKEDITOR.document.getActive().equals(this.getWindow().getFrame())||this.getWindow().focus())},on:function(a,b){var c=Array.prototype.slice.call(arguments,0);if(CKEDITOR.env.ie&&/^focus|blur$/.exec(a)){a=a=="focus"?"focusin":"focusout";b=e(b,this);c[0]=a;c[1]=b}return CKEDITOR.dom.element.prototype.on.apply(this,c)},attachListener:function(a,b,c,f,e,g){!this._.listeners&&(this._.listeners=[]); +var d=Array.prototype.slice.call(arguments,1);this._.listeners.push(a.on.apply(a,d))},clearListeners:function(){var a=this._.listeners;try{for(;a.length;)a.pop().removeListener()}catch(b){}},restoreAttrs:function(){var a=this._.attrChanges,b,c;for(c in a)if(a.hasOwnProperty(c)){b=a[c];b!==null?this.setAttribute(c,b):this.removeAttribute(c)}},attachClass:function(a){var b=this.getCustomData("classes");if(!this.hasClass(a)){!b&&(b=[]);b.push(a);this.setCustomData("classes",b);this.addClass(a)}},changeAttr:function(a, +b){var c=this.getAttribute(a);if(b!==c){!this._.attrChanges&&(this._.attrChanges={});a in this._.attrChanges||(this._.attrChanges[a]=c);this.setAttribute(a,b)}},insertHtml:function(a,b){g(this);k(this,b||"html",a)},insertText:function(a){g(this);var b=this.editor,c=b.getSelection().getStartElement().hasAscendant("pre",true)?CKEDITOR.ENTER_BR:b.config.enterMode,b=c==CKEDITOR.ENTER_BR,f=CKEDITOR.tools,a=f.htmlEncode(a.replace(/\r\n/g,"\n")),a=a.replace(/\t/g," "),c=c==CKEDITOR.ENTER_P? +"p":"div";if(!b){var e=/\n{2}/g;if(e.test(a))var d="<"+c+">",i="</"+c+">",a=d+a.replace(e,function(){return i+d})+i}a=a.replace(/\n/g,"<br>");b||(a=a.replace(RegExp("<br>(?=</"+c+">)"),function(a){return f.repeat(a,2)}));a=a.replace(/^ | $/g," ");a=a.replace(/(>|\s) /g,function(a,b){return b+" "}).replace(/ (?=<)/g," ");k(this,"text",a)},insertElement:function(b){g(this);for(var c=this.editor,e=c.config.enterMode,d=c.getSelection(),i=d.getRanges(),h=b.getName(),j=CKEDITOR.dtd.$block[h], +k,z,x,u=i.length-1;u>=0;u--){k=i[u];if(!k.checkReadOnly()){k.deleteContents(1);z=!u&&b||b.clone(1);var w,s;if(j)for(;(w=k.getCommonAncestor(0,1))&&(s=CKEDITOR.dtd[w.getName()])&&(!s||!s[h]);)if(w.getName()in CKEDITOR.dtd.span)k.splitElement(w);else if(k.checkStartOfBlock()&&k.checkEndOfBlock()){k.setStartBefore(w);k.collapse(true);w.remove()}else k.splitBlock(e==CKEDITOR.ENTER_DIV?"div":"p",c.editable());k.insertNode(z);x||(x=z)}}if(x){k.moveToPosition(x,CKEDITOR.POSITION_AFTER_END);if(j)if((b=x.getNext(a))&& +b.type==CKEDITOR.NODE_ELEMENT&&b.is(CKEDITOR.dtd.$block))b.getDtd()["#"]?k.moveToElementEditStart(b):k.moveToElementEditEnd(x);else if(!b&&e!=CKEDITOR.ENTER_BR){b=k.fixBlock(true,e==CKEDITOR.ENTER_DIV?"div":"p");k.moveToElementEditStart(b)}}d.selectRanges([k]);f(this,CKEDITOR.env.opera)},setData:function(a,b){!b&&this.editor.dataProcessor&&(a=this.editor.dataProcessor.toHtml(a));this.setHtml(a);this.editor.fire("dataReady")},getData:function(a){var b=this.getHtml();!a&&this.editor.dataProcessor&& (b=this.editor.dataProcessor.toDataFormat(b));return b},setReadOnly:function(a){this.setAttribute("contenteditable",!a)},detach:function(){this.removeClass("cke_editable");var a=this.editor;this._.detach();delete a.document;delete a.window},isInline:function(){return this.getDocument().equals(CKEDITOR.document)},setup:function(){var a=this.editor;this.attachListener(a,"beforeGetData",function(){var b=this.getData();this.is("textarea")||a.config.ignoreEmptyParagraph!==false&&(b=b.replace(i,function(a, b){return b}));a.setData(b,null,1)},this);this.attachListener(a,"getSnapshot",function(a){a.data=this.getData(1)},this);this.attachListener(a,"afterSetData",function(){this.setData(a.getData(1))},this);this.attachListener(a,"loadSnapshot",function(a){this.setData(a.data,1)},this);this.attachListener(a,"beforeFocus",function(){var b=a.getSelection();(b=b&&b.getNative())&&b.type=="Control"||this.focus()},this);this.attachListener(a,"insertHtml",function(a){this.insertHtml(a.data.dataValue,a.data.mode)}, this);this.attachListener(a,"insertElement",function(a){this.insertElement(a.data)},this);this.attachListener(a,"insertText",function(a){this.insertText(a.data)},this);this.setReadOnly(a.readOnly);this.attachClass("cke_editable");this.attachClass(a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?"cke_editable_inline":a.elementMode==CKEDITOR.ELEMENT_MODE_REPLACE||a.elementMode==CKEDITOR.ELEMENT_MODE_APPENDTO?"cke_editable_themed":"");this.attachClass("cke_contents_"+a.config.contentsLangDirection);a.keystrokeHandler.blockedKeystrokes[8]= a.readOnly;a.keystrokeHandler.attach(this);this.on("blur",function(a){CKEDITOR.env.opera&&CKEDITOR.document.getActive().equals(this.isInline()?this:this.getWindow().getFrame())?a.cancel():this.hasFocus=false},null,null,-1);this.on("focus",function(){this.hasFocus=true},null,null,-1);a.focusManager.add(this);if(this.equals(CKEDITOR.document.getActive())){this.hasFocus=true;a.once("contentDom",function(){a.focusManager.focus()})}this.isInline()&&this.changeAttr("tabindex",a.tabIndex);if(!this.is("textarea")){a.document= this.getDocument();a.window=this.getWindow();var b=a.document;this.changeAttr("spellcheck",!a.config.disableNativeSpellChecker);var f=a.config.contentsLangDirection;this.getDirection(1)!=f&&this.changeAttr("dir",f);var e=CKEDITOR.getCss();if(e){f=b.getHead();if(!f.getCustomData("stylesheet")){e=b.appendStyleText(e);e=new CKEDITOR.dom.element(e.ownerNode||e.owningElement);f.setCustomData("stylesheet",e);e.data("cke-temp",1)}}f=b.getCustomData("stylesheet_ref")||0;b.setCustomData("stylesheet_ref",f+ -1);this.setCustomData("cke_includeReadonly",!a.config.disableReadonlyStyling);this.attachListener(this,"click",function(a){var a=a.data,b=a.getTarget();b.is("a")&&(a.$.button!=2&&b.isReadOnly())&&a.preventDefault()});this.attachListener(a,"key",function(b){if(a.readOnly)return true;var f=b.data.keyCode,e;if(f in{8:1,46:1}){var d=a.getSelection(),b=d.getRanges()[0],g=b.startPath(),i,j,k,f=f==8;if(d=h(d)){a.fire("saveSnapshot");b.moveToPosition(d,CKEDITOR.POSITION_BEFORE_START);d.remove();b.select(); -a.fire("saveSnapshot");e=1}else if(b.collapsed)if((i=g.block)&&b[f?"checkStartOfBlock":"checkEndOfBlock"]()&&(k=i[f?"getPrevious":"getNext"](c))&&k.is("table")){a.fire("saveSnapshot");b[f?"checkEndOfBlock":"checkStartOfBlock"]()&&i.remove();b["moveToElementEdit"+(f?"End":"Start")](k);b.select();a.fire("saveSnapshot");e=1}else if(g.blockLimit&&g.blockLimit.is("td")&&(j=g.blockLimit.getAscendant("table"))&&b.checkBoundaryOfElement(j,f?CKEDITOR.START:CKEDITOR.END)&&(k=j[f?"getPrevious":"getNext"](c))){a.fire("saveSnapshot"); -b["moveToElementEdit"+(f?"End":"Start")](k);b.checkStartOfBlock()&&b.checkEndOfBlock()?k.remove():b.select();a.fire("saveSnapshot");e=1}else if((j=g.contains(["td","th","caption"]))&&b.checkBoundaryOfElement(j,f?CKEDITOR.START:CKEDITOR.END))if((k=j[f?"getPreviousSourceNode":"getNextSourceNode"](1,CKEDITOR.NODE_ELEMENT))&&!k.isReadOnly()&&b.root.contains(k)){b[f?"moveToElementEditEnd":"moveToElementEditStart"](k);b.select();e=1}}return!e});CKEDITOR.env.ie&&this.attachListener(this,"click",d);!CKEDITOR.env.ie&& +1);this.setCustomData("cke_includeReadonly",!a.config.disableReadonlyStyling);this.attachListener(this,"click",function(a){var a=a.data,b=a.getTarget();b.is("a")&&(a.$.button!=2&&b.isReadOnly())&&a.preventDefault()});this.attachListener(a,"key",function(b){if(a.readOnly)return true;var f=b.data.keyCode,e;if(f in{8:1,46:1}){var g=a.getSelection(),b=g.getRanges()[0],d=b.startPath(),i,j,m,f=f==8;if(g=h(g)){a.fire("saveSnapshot");b.moveToPosition(g,CKEDITOR.POSITION_BEFORE_START);g.remove();b.select(); +a.fire("saveSnapshot");e=1}else if(b.collapsed)if((i=d.block)&&b[f?"checkStartOfBlock":"checkEndOfBlock"]()&&(m=i[f?"getPrevious":"getNext"](c))&&m.is("table")){a.fire("saveSnapshot");b[f?"checkEndOfBlock":"checkStartOfBlock"]()&&i.remove();b["moveToElementEdit"+(f?"End":"Start")](m);b.select();a.fire("saveSnapshot");e=1}else if(d.blockLimit&&d.blockLimit.is("td")&&(j=d.blockLimit.getAscendant("table"))&&b.checkBoundaryOfElement(j,f?CKEDITOR.START:CKEDITOR.END)&&(m=j[f?"getPrevious":"getNext"](c))){a.fire("saveSnapshot"); +b["moveToElementEdit"+(f?"End":"Start")](m);b.checkStartOfBlock()&&b.checkEndOfBlock()?m.remove():b.select();a.fire("saveSnapshot");e=1}else if((j=d.contains(["td","th","caption"]))&&b.checkBoundaryOfElement(j,f?CKEDITOR.START:CKEDITOR.END))if((m=j[f?"getPreviousSourceNode":"getNextSourceNode"](1,CKEDITOR.NODE_ELEMENT))&&!m.isReadOnly()&&b.root.contains(m)){b[f?"moveToElementEditEnd":"moveToElementEditStart"](m);b.select();e=1}}return!e});CKEDITOR.env.ie&&this.attachListener(this,"click",d);!CKEDITOR.env.ie&& !CKEDITOR.env.opera&&this.attachListener(this,"mousedown",function(b){var c=b.data.getTarget();if(c.is("img","hr","input","textarea","select")){a.getSelection().selectElement(c);c.is("input","textarea","select")&&b.data.preventDefault()}});CKEDITOR.env.gecko&&this.attachListener(this,"mouseup",function(b){if(b.data.$.button==2){b=b.data.getTarget();if(!b.getOuterHtml().replace(i,"")){var c=a.createRange();c.moveToElementEditStart(b);c.select(true)}}});if(CKEDITOR.env.webkit){this.attachListener(this, "click",function(a){a.data.getTarget().is("input","select")&&a.data.preventDefault()});this.attachListener(this,"mouseup",function(a){a.data.getTarget().is("input","textarea")&&a.data.preventDefault()})}}}},_:{detach:function(){this.editor.setData(this.editor.getData(),0,1);this.clearListeners();this.restoreAttrs();var a;if(a=this.removeCustomData("classes"))for(;a.length;)this.removeClass(a.pop());a=this.getDocument();var b=a.getHead();if(b.getCustomData("stylesheet")){var c=a.getCustomData("stylesheet_ref"); if(--c)a.setCustomData("stylesheet_ref",c);else{a.removeCustomData("stylesheet_ref");b.removeCustomData("stylesheet").remove()}}delete this.editor}}});CKEDITOR.editor.prototype.editable=function(a){var b=this._.editable;if(b&&a)return 0;if(arguments.length)b=this._.editable=a?a instanceof CKEDITOR.editable?a:new CKEDITOR.editable(this,a):(b&&b.detach(),null);return b};var i=/(^|<body\b[^>]*>)\s*<(p|div|address|h\d|center|pre)[^>]*>\s*(?:<br[^>]*>| |\u00A0| )?\s*(:?<\/\2>)?\s*(?=$|<\/body>)/gi, c=CKEDITOR.dom.walker.whitespaces(true),j=CKEDITOR.dom.walker.bookmark(false,true);CKEDITOR.on("instanceLoaded",function(a){var c=a.editor;c.on("insertElement",function(a){a=a.data;if(a.type==CKEDITOR.NODE_ELEMENT&&(a.is("input")||a.is("textarea"))){a.getAttribute("contentEditable")!="false"&&a.data("cke-editable",a.hasAttribute("contenteditable")?"true":"1");a.setAttribute("contentEditable",false)}});c.on("selectionChange",function(a){if(!c.readOnly){var f=c.getSelection();if(f&&!f.isLocked){f=c.checkDirty(); c.fire("lockSnapshot");b(a);c.fire("unlockSnapshot");!f&&c.resetDirty()}}})});CKEDITOR.on("instanceCreated",function(a){var b=a.editor;b.on("mode",function(){var a=b.editable();if(a&&a.isInline()){var c=this.lang.editor+", "+this.name;a.changeAttr("role","textbox");a.changeAttr("aria-label",c);a.changeAttr("title",c);if(c=this.ui.space(this.elementMode==CKEDITOR.ELEMENT_MODE_INLINE?"top":"contents")){var f=CKEDITOR.tools.getNextId(),e=CKEDITOR.dom.element.createFromHtml('<span id="'+f+'" class="cke_voice_label">'+ -this.lang.common.editorHelp+"</span>");c.append(e);a.changeAttr("aria-describedby",f)}}})});CKEDITOR.addCss(".cke_editable{cursor:text}.cke_editable img,.cke_editable input,.cke_editable textarea{cursor:default}");var l=function(){function b(a){return a.type==CKEDITOR.NODE_ELEMENT}function c(a,f){var e,d,g,i,j=[],k=f.range.startContainer;e=f.range.startPath();for(var k=h[k.getName()],l=0,r=a.getChildren(),o=r.count(),p=-1,t=-1,x=0,z=e.contains(h.$list);l<o;++l){e=r.getItem(l);if(b(e)){g=e.getName(); -if(z&&g in CKEDITOR.dtd.$list)j=j.concat(c(e,f));else{i=!!k[g];if(g=="br"&&e.data("cke-eol")&&(!l||l==o-1)){x=(d=l?j[l-1].node:r.getItem(l+1))&&(!b(d)||!d.is("br"));d=d&&b(d)&&h.$block[d.getName()]}p==-1&&!i&&(p=l);i||(t=l);j.push({isElement:1,isLineBreak:x,isBlock:e.isBlockBoundary(),hasBlockSibling:d,node:e,name:g,allowed:i});d=x=0}}else j.push({isElement:0,node:e,allowed:1})}if(p>-1)j[p].firstNotAllowed=1;if(t>-1)j[t].lastNotAllowed=1;return j}function e(a,c){var f=[],d=a.getChildren(),g=d.count(), -i,j=0,k=h[c],l=!a.is(h.$inline)||a.is("br");for(l&&f.push(" ");j<g;j++){i=d.getItem(j);b(i)&&!i.is(k)?f=f.concat(e(i,c)):f.push(i)}l&&f.push(" ");return f}function d(a){return a&&b(a)&&(a.is(h.$removeEmpty)||a.is("a")&&!a.isBlockBoundary())}function g(a,c,f,e){var d=a.clone(),i,h;d.setEndAt(c,CKEDITOR.POSITION_BEFORE_END);if((i=(new CKEDITOR.dom.walker(d)).next())&&b(i)&&j[i.getName()]&&(h=i.getPrevious())&&b(h)&&!h.getParent().equals(a.startContainer)&&f.contains(h)&&e.contains(i)&&i.isIdentical(h)){i.moveChildren(h); -i.remove();g(a,c,f,e)}}function i(a,c){function f(a,c){if(c.isBlock&&c.isElement&&!c.node.is("br")&&b(a)&&a.is("br")){a.remove();return 1}}var e=c.endContainer.getChild(c.endOffset),d=c.endContainer.getChild(c.endOffset-1);e&&f(e,a[a.length-1]);if(d&&f(d,a[0])){c.setEnd(c.endContainer,c.endOffset-1);c.collapse()}}var h=CKEDITOR.dtd,j={p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,ul:1,ol:1,li:1,pre:1,dl:1,blockquote:1},l={p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},x=CKEDITOR.tools.extend({},h.$inline);delete x.br; +this.lang.common.editorHelp+"</span>");c.append(e);a.changeAttr("aria-describedby",f)}}})});CKEDITOR.addCss(".cke_editable{cursor:text}.cke_editable img,.cke_editable input,.cke_editable textarea{cursor:default}");var k=function(){function b(a){return a.type==CKEDITOR.NODE_ELEMENT}function c(a,f){var e,g,d,i,j=[],m=f.range.startContainer;e=f.range.startPath();for(var m=h[m.getName()],k=0,q=a.getChildren(),p=q.count(),o=-1,t=-1,x=0,z=e.contains(h.$list);k<p;++k){e=q.getItem(k);if(b(e)){d=e.getName(); +if(z&&d in CKEDITOR.dtd.$list)j=j.concat(c(e,f));else{i=!!m[d];if(d=="br"&&e.data("cke-eol")&&(!k||k==p-1)){x=(g=k?j[k-1].node:q.getItem(k+1))&&(!b(g)||!g.is("br"));g=g&&b(g)&&h.$block[g.getName()]}o==-1&&!i&&(o=k);i||(t=k);j.push({isElement:1,isLineBreak:x,isBlock:e.isBlockBoundary(),hasBlockSibling:g,node:e,name:d,allowed:i});g=x=0}}else j.push({isElement:0,node:e,allowed:1})}if(o>-1)j[o].firstNotAllowed=1;if(t>-1)j[t].lastNotAllowed=1;return j}function e(a,c){var f=[],g=a.getChildren(),d=g.count(), +i,j=0,m=h[c],k=!a.is(h.$inline)||a.is("br");for(k&&f.push(" ");j<d;j++){i=g.getItem(j);b(i)&&!i.is(m)?f=f.concat(e(i,c)):f.push(i)}k&&f.push(" ");return f}function g(a){return a&&b(a)&&(a.is(h.$removeEmpty)||a.is("a")&&!a.isBlockBoundary())}function d(a,c,f,e){var g=a.clone(),i,h;g.setEndAt(c,CKEDITOR.POSITION_BEFORE_END);if((i=(new CKEDITOR.dom.walker(g)).next())&&b(i)&&j[i.getName()]&&(h=i.getPrevious())&&b(h)&&!h.getParent().equals(a.startContainer)&&f.contains(h)&&e.contains(i)&&i.isIdentical(h)){i.moveChildren(h); +i.remove();d(a,c,f,e)}}function i(a,c){function f(a,c){if(c.isBlock&&c.isElement&&!c.node.is("br")&&b(a)&&a.is("br")){a.remove();return 1}}var e=c.endContainer.getChild(c.endOffset),g=c.endContainer.getChild(c.endOffset-1);e&&f(e,a[a.length-1]);if(g&&f(g,a[0])){c.setEnd(c.endContainer,c.endOffset-1);c.collapse()}}var h=CKEDITOR.dtd,j={p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,ul:1,ol:1,li:1,pre:1,dl:1,blockquote:1},k={p:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1},x=CKEDITOR.tools.extend({},h.$inline);delete x.br; return function(j,t,s){var v=j.editor;j.getDocument();var A=v.getSelection().getRanges()[0],B=false;if(t=="unfiltered_html"){t="html";B=true}if(!A.checkReadOnly()){var y=(new CKEDITOR.dom.elementPath(A.startContainer,A.root)).blockLimit||A.root,t={type:t,dontFilter:B,editable:j,editor:v,range:A,blockLimit:y,mergeCandidates:[],zombies:[]},v=t.range,B=t.mergeCandidates,C,D,F,E;if(t.type=="text"&&v.shrink(CKEDITOR.SHRINK_ELEMENT,true,false)){C=CKEDITOR.dom.element.createFromHtml("<span> </span>", -v.document);v.insertNode(C);v.setStartAfter(C)}D=new CKEDITOR.dom.elementPath(v.startContainer);t.endPath=F=new CKEDITOR.dom.elementPath(v.endContainer);if(!v.collapsed){var y=F.block||F.blockLimit,K=v.getCommonAncestor();y&&(!y.equals(K)&&!y.contains(K)&&v.checkEndOfBlock())&&t.zombies.push(y);v.deleteContents()}for(;(E=b(v.startContainer)&&v.startContainer.getChild(v.startOffset-1))&&b(E)&&E.isBlockBoundary()&&D.contains(E);)v.moveToPosition(E,CKEDITOR.POSITION_BEFORE_END);g(v,t.blockLimit,D,F); -if(C){v.setEndBefore(C);v.collapse();C.remove()}C=v.startPath();if(y=C.contains(d,false,1)){v.splitElement(y);t.inlineStylesRoot=y;t.inlineStylesPeak=C.lastElement}C=v.createBookmark();(y=C.startNode.getPrevious(a))&&b(y)&&d(y)&&B.push(y);(y=C.startNode.getNext(a))&&b(y)&&d(y)&&B.push(y);for(y=C.startNode;(y=y.getParent())&&d(y);)B.push(y);v.moveToBookmark(C);if(s){E=s;s=t.range;if(t.type=="text"&&t.inlineStylesRoot){C=E;E=t.inlineStylesPeak;v=E.getDocument().createText("{cke-peak}");for(B=t.inlineStylesRoot.getParent();!E.equals(B);){v= -v.appendTo(E.clone());E=E.getParent()}E=v.getOuterHtml().replace("{cke-peak}",C)}C=t.blockLimit.getName();if(/^\s+|\s+$/.test(E)&&"span"in CKEDITOR.dtd[C]){var I='<span data-cke-marker="1"> </span>';E=I+E+I}E=t.editor.dataProcessor.toHtml(E,null,false,t.dontFilter);C=s.document.createElement("body");C.setHtml(E);if(I){C.getFirst().remove();C.getLast().remove()}if((I=s.startPath().block)&&!(I.getChildCount()==1&&I.getBogus()))a:{var G;if(C.getChildCount()==1&&b(G=C.getFirst())&&G.is(l)){I=G.getElementsByTag("*"); -s=0;for(v=I.count();s<v;s++){E=I.getItem(s);if(!E.is(x))break a}G.moveChildren(G.getParent(1));G.remove()}}t.dataWrapper=C;G=t.range;var I=G.document,H,s=t.blockLimit;C=0;var L;E=[];var J,P,B=v=0,M,Q;D=G.startContainer;var y=t.endPath.elements[0],R;F=y.getPosition(D);K=!!y.getCommonAncestor(D)&&F!=CKEDITOR.POSITION_IDENTICAL&&!(F&CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED);D=c(t.dataWrapper,t);for(i(D,G);C<D.length;C++){F=D[C];if(H=F.isLineBreak){H=G;M=s;var N=void 0,U=void 0;if(F.hasBlockSibling)H= -1;else{N=H.startContainer.getAscendant(h.$block,1);if(!N||!N.is({div:1,p:1}))H=0;else{U=N.getPosition(M);if(U==CKEDITOR.POSITION_IDENTICAL||U==CKEDITOR.POSITION_CONTAINS)H=0;else{M=H.splitElement(N);H.moveToPosition(M,CKEDITOR.POSITION_AFTER_START);H=1}}}}if(H)B=C>0;else{H=G.startPath();if(!F.isBlock&&(P=t.editor.config.enterMode!=CKEDITOR.ENTER_BR&&t.editor.config.autoParagraph!==false?t.editor.config.enterMode==CKEDITOR.ENTER_DIV?"div":"p":false)&&!H.block&&H.blockLimit&&H.blockLimit.equals(G.root)){P= -I.createElement(P);!CKEDITOR.env.ie&&P.appendBogus();G.insertNode(P);!CKEDITOR.env.ie&&(L=P.getBogus())&&L.remove();G.moveToPosition(P,CKEDITOR.POSITION_BEFORE_END)}if((H=G.startPath().block)&&!H.equals(J)){if(L=H.getBogus()){L.remove();E.push(H)}J=H}F.firstNotAllowed&&(v=1);if(v&&F.isElement){H=G.startContainer;for(M=null;H&&!h[H.getName()][F.name];){if(H.equals(s)){H=null;break}M=H;H=H.getParent()}if(H){if(M){Q=G.splitElement(M);t.zombies.push(Q);t.zombies.push(M)}}else{M=s.getName();R=!C;H=C== -D.length-1;M=e(F.node,M);for(var N=[],U=M.length,T=0,V=void 0,W=0,S=-1;T<U;T++){V=M[T];if(V==" "){if(!W&&(!R||T)){N.push(new CKEDITOR.dom.text(" "));S=N.length}W=1}else{N.push(V);W=0}}H&&S==N.length&&N.pop();R=N}}if(R){for(;H=R.pop();)G.insertNode(H);R=0}else G.insertNode(F.node);if(F.lastNotAllowed&&C<D.length-1){(Q=K?y:Q)&&G.setEndAt(Q,CKEDITOR.POSITION_AFTER_START);v=0}G.collapse()}}t.dontMoveCaret=B;t.bogusNeededBlocks=E}L=t.range;var O;Q=t.bogusNeededBlocks;for(R=L.createBookmark();J=t.zombies.pop();)if(J.getParent()){P= -L.clone();P.moveToElementEditStart(J);P.removeEmptyBlocksAtEnd()}if(Q)for(;J=Q.pop();)J.append(CKEDITOR.env.ie?L.document.createText(" "):L.document.createElement("br"));for(;J=t.mergeCandidates.pop();)J.mergeSiblings();L.moveToBookmark(R);if(!t.dontMoveCaret){for(J=b(L.startContainer)&&L.startContainer.getChild(L.startOffset-1);J&&b(J)&&!J.is(h.$empty);){if(J.isBlockBoundary())L.moveToPosition(J,CKEDITOR.POSITION_BEFORE_END);else{if(d(J)&&J.getHtml().match(/(\s| )$/g)){O=null;break}O=L.clone(); -O.moveToPosition(J,CKEDITOR.POSITION_BEFORE_END)}J=J.getLast(a)}O&&L.moveToRange(O)}A.select();f(j)}}}()}(),function(){function b(){var a=this.getSelection(1);if(a.getType()!=CKEDITOR.SELECTION_NONE){this.fire("selectionCheck",a);var b=this.elementPath();if(!b.compare(this._.selectionPreviousPath)){this._.selectionPreviousPath=b;this.fire("selectionChange",{selection:a,path:b})}}}function d(){i=true;if(!f){a.call(this);f=CKEDITOR.tools.setTimeout(a,200,this)}}function a(){f=null;if(i){CKEDITOR.tools.setTimeout(b, -0,this);i=false}}function e(a){function b(c,f){return!c||c.type==CKEDITOR.NODE_TEXT?false:a.clone()["moveToElementEdit"+(f?"End":"Start")](c)}if(!(a.root instanceof CKEDITOR.editable))return false;var f=a.startContainer,e=a.getPreviousNode(c,null,f),d=a.getNextNode(c,null,f);return b(e)||b(d,1)||!e&&!d&&!(f.type==CKEDITOR.NODE_ELEMENT&&f.isBlockBoundary()&&f.getBogus())?true:false}function h(a){return a.getCustomData("cke-fillingChar")}function g(a,b){var c=a&&a.removeCustomData("cke-fillingChar"); -if(c){if(b!==false){var f,e=a.getDocument().getSelection().getNative(),d=e&&e.type!="None"&&e.getRangeAt(0);if(c.getLength()>1&&d&&d.intersectsNode(c.$)){f=[e.anchorOffset,e.focusOffset];d=e.focusNode==c.$&&e.focusOffset>0;e.anchorNode==c.$&&e.anchorOffset>0&&f[0]--;d&&f[1]--;var g;d=e;if(!d.isCollapsed){g=d.getRangeAt(0);g.setStart(d.anchorNode,d.anchorOffset);g.setEnd(d.focusNode,d.focusOffset);g=g.collapsed}g&&f.unshift(f.pop())}}c.setText(c.getText().replace(/\u200B/g,""));if(f){c=e.getRangeAt(0); -c.setStart(c.startContainer,f[0]);c.setEnd(c.startContainer,f[1]);e.removeAllRanges();e.addRange(c)}}}var f,i,c=CKEDITOR.dom.walker.invisible(1);CKEDITOR.on("instanceCreated",function(a){function c(){var a=f.getSelection();a&&a.removeAllRanges()}var f=a.editor;f.define("selectionChange",{errorProof:1});f.on("contentDom",function(){var a=f.document,c=CKEDITOR.document,e=f.editable(),i=a.getBody(),h=a.getDocumentElement(),l=e.isInline(),m;CKEDITOR.env.gecko&&e.attachListener(e,"focus",function(a){a.removeListener(); -if(m!==0){a=f.getSelection().getNative();if(a.isCollapsed&&a.anchorNode==e.$){a=f.createRange();a.moveToElementEditStart(e);a.select()}}},null,null,-2);e.attachListener(e,"focus",function(){f.unlockSelection(m);m=0},null,null,-1);e.attachListener(e,"mousedown",function(){m=0});if(CKEDITOR.env.ie||CKEDITOR.env.opera||l){var n,w=function(){n=f.getSelection(1);n.lock()};j?e.attachListener(e,"beforedeactivate",w,null,null,-1):e.attachListener(f,"selectionCheck",w,null,null,-1);e.attachListener(e,"blur", -function(){f.lockSelection(n);m=1},null,null,-1)}if(CKEDITOR.env.ie&&!l){var s;e.attachListener(e,"mousedown",function(a){a.data.$.button==2&&f.document.$.selection.type=="None"&&(s=f.window.getScrollPosition())});e.attachListener(e,"mouseup",function(a){if(a.data.$.button==2&&s){f.document.$.documentElement.scrollLeft=s.x;f.document.$.documentElement.scrollTop=s.y}s=null});if(a.$.compatMode!="BackCompat"){if(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)h.on("mousedown",function(a){function b(a){a= -a.data.$;if(e){var c=i.$.createTextRange();try{c.moveToPoint(a.x,a.y)}catch(f){}e.setEndPoint(g.compareEndPoints("StartToStart",c)<0?"EndToEnd":"StartToStart",c);e.select()}}function f(){h.removeListener("mousemove",b);c.removeListener("mouseup",f);h.removeListener("mouseup",f);e.select()}a=a.data;if(a.getTarget().is("html")&&a.$.y<h.$.clientHeight&&a.$.x<h.$.clientWidth){var e=i.$.createTextRange();try{e.moveToPoint(a.$.x,a.$.y)}catch(d){}var g=e.duplicate();h.on("mousemove",b);c.on("mouseup",f); +v.document);v.insertNode(C);v.setStartAfter(C)}D=new CKEDITOR.dom.elementPath(v.startContainer);t.endPath=F=new CKEDITOR.dom.elementPath(v.endContainer);if(!v.collapsed){var y=F.block||F.blockLimit,K=v.getCommonAncestor();y&&(!y.equals(K)&&!y.contains(K)&&v.checkEndOfBlock())&&t.zombies.push(y);v.deleteContents()}for(;(E=b(v.startContainer)&&v.startContainer.getChild(v.startOffset-1))&&b(E)&&E.isBlockBoundary()&&D.contains(E);)v.moveToPosition(E,CKEDITOR.POSITION_BEFORE_END);d(v,t.blockLimit,D,F); +if(C){v.setEndBefore(C);v.collapse();C.remove()}C=v.startPath();if(y=C.contains(g,false,1)){v.splitElement(y);t.inlineStylesRoot=y;t.inlineStylesPeak=C.lastElement}C=v.createBookmark();(y=C.startNode.getPrevious(a))&&b(y)&&g(y)&&B.push(y);(y=C.startNode.getNext(a))&&b(y)&&g(y)&&B.push(y);for(y=C.startNode;(y=y.getParent())&&g(y);)B.push(y);v.moveToBookmark(C);if(s){E=s;s=t.range;if(t.type=="text"&&t.inlineStylesRoot){C=E;E=t.inlineStylesPeak;v=E.getDocument().createText("{cke-peak}");for(B=t.inlineStylesRoot.getParent();!E.equals(B);){v= +v.appendTo(E.clone());E=E.getParent()}E=v.getOuterHtml().replace("{cke-peak}",C)}C=t.blockLimit.getName();if(/^\s+|\s+$/.test(E)&&"span"in CKEDITOR.dtd[C]){var I='<span data-cke-marker="1"> </span>';E=I+E+I}E=t.editor.dataProcessor.toHtml(E,null,false,t.dontFilter);C=s.document.createElement("body");C.setHtml(E);if(I){C.getFirst().remove();C.getLast().remove()}if((I=s.startPath().block)&&!(I.getChildCount()==1&&I.getBogus()))a:{var G;if(C.getChildCount()==1&&b(G=C.getFirst())&&G.is(k)){I=G.getElementsByTag("*"); +s=0;for(v=I.count();s<v;s++){E=I.getItem(s);if(!E.is(x))break a}G.moveChildren(G.getParent(1));G.remove()}}t.dataWrapper=C;G=t.range;var I=G.document,H,s=t.blockLimit;C=0;var L;E=[];var J,P,B=v=0,N,Q;D=G.startContainer;var y=t.endPath.elements[0],R;F=y.getPosition(D);K=!!y.getCommonAncestor(D)&&F!=CKEDITOR.POSITION_IDENTICAL&&!(F&CKEDITOR.POSITION_CONTAINS+CKEDITOR.POSITION_IS_CONTAINED);D=c(t.dataWrapper,t);for(i(D,G);C<D.length;C++){F=D[C];if(H=F.isLineBreak){H=G;N=s;var O=void 0,U=void 0;if(F.hasBlockSibling)H= +1;else{O=H.startContainer.getAscendant(h.$block,1);if(!O||!O.is({div:1,p:1}))H=0;else{U=O.getPosition(N);if(U==CKEDITOR.POSITION_IDENTICAL||U==CKEDITOR.POSITION_CONTAINS)H=0;else{N=H.splitElement(O);H.moveToPosition(N,CKEDITOR.POSITION_AFTER_START);H=1}}}}if(H)B=C>0;else{H=G.startPath();if(!F.isBlock&&(P=t.editor.config.enterMode!=CKEDITOR.ENTER_BR&&t.editor.config.autoParagraph!==false?t.editor.config.enterMode==CKEDITOR.ENTER_DIV?"div":"p":false)&&!H.block&&H.blockLimit&&H.blockLimit.equals(G.root)){P= +I.createElement(P);!CKEDITOR.env.ie&&P.appendBogus();G.insertNode(P);!CKEDITOR.env.ie&&(L=P.getBogus())&&L.remove();G.moveToPosition(P,CKEDITOR.POSITION_BEFORE_END)}if((H=G.startPath().block)&&!H.equals(J)){if(L=H.getBogus()){L.remove();E.push(H)}J=H}F.firstNotAllowed&&(v=1);if(v&&F.isElement){H=G.startContainer;for(N=null;H&&!h[H.getName()][F.name];){if(H.equals(s)){H=null;break}N=H;H=H.getParent()}if(H){if(N){Q=G.splitElement(N);t.zombies.push(Q);t.zombies.push(N)}}else{N=s.getName();R=!C;H=C== +D.length-1;N=e(F.node,N);for(var O=[],U=N.length,T=0,V=void 0,W=0,S=-1;T<U;T++){V=N[T];if(V==" "){if(!W&&(!R||T)){O.push(new CKEDITOR.dom.text(" "));S=O.length}W=1}else{O.push(V);W=0}}H&&S==O.length&&O.pop();R=O}}if(R){for(;H=R.pop();)G.insertNode(H);R=0}else G.insertNode(F.node);if(F.lastNotAllowed&&C<D.length-1){(Q=K?y:Q)&&G.setEndAt(Q,CKEDITOR.POSITION_AFTER_START);v=0}G.collapse()}}t.dontMoveCaret=B;t.bogusNeededBlocks=E}L=t.range;var M;Q=t.bogusNeededBlocks;for(R=L.createBookmark();J=t.zombies.pop();)if(J.getParent()){P= +L.clone();P.moveToElementEditStart(J);P.removeEmptyBlocksAtEnd()}if(Q)for(;J=Q.pop();)J.append(CKEDITOR.env.ie?L.document.createText(" "):L.document.createElement("br"));for(;J=t.mergeCandidates.pop();)J.mergeSiblings();L.moveToBookmark(R);if(!t.dontMoveCaret){for(J=b(L.startContainer)&&L.startContainer.getChild(L.startOffset-1);J&&b(J)&&!J.is(h.$empty);){if(J.isBlockBoundary())L.moveToPosition(J,CKEDITOR.POSITION_BEFORE_END);else{if(g(J)&&J.getHtml().match(/(\s| )$/g)){M=null;break}M=L.clone(); +M.moveToPosition(J,CKEDITOR.POSITION_BEFORE_END)}J=J.getLast(a)}M&&L.moveToRange(M)}A.select();f(j)}}}()}(),function(){function b(){var a=this.getSelection(1);if(a.getType()!=CKEDITOR.SELECTION_NONE){this.fire("selectionCheck",a);var b=this.elementPath();if(!b.compare(this._.selectionPreviousPath)){this._.selectionPreviousPath=b;this.fire("selectionChange",{selection:a,path:b})}}}function d(){i=true;if(!f){a.call(this);f=CKEDITOR.tools.setTimeout(a,200,this)}}function a(){f=null;if(i){CKEDITOR.tools.setTimeout(b, +0,this);i=false}}function e(a){function b(c,f){return!c||c.type==CKEDITOR.NODE_TEXT?false:a.clone()["moveToElementEdit"+(f?"End":"Start")](c)}if(!(a.root instanceof CKEDITOR.editable))return false;var f=a.startContainer,e=a.getPreviousNode(c,null,f),g=a.getNextNode(c,null,f);return b(e)||b(g,1)||!e&&!g&&!(f.type==CKEDITOR.NODE_ELEMENT&&f.isBlockBoundary()&&f.getBogus())?true:false}function h(a){return a.getCustomData("cke-fillingChar")}function g(a,b){var c=a&&a.removeCustomData("cke-fillingChar"); +if(c){if(b!==false){var f,e=a.getDocument().getSelection().getNative(),g=e&&e.type!="None"&&e.getRangeAt(0);if(c.getLength()>1&&g&&g.intersectsNode(c.$)){f=[e.anchorOffset,e.focusOffset];g=e.focusNode==c.$&&e.focusOffset>0;e.anchorNode==c.$&&e.anchorOffset>0&&f[0]--;g&&f[1]--;var d;g=e;if(!g.isCollapsed){d=g.getRangeAt(0);d.setStart(g.anchorNode,g.anchorOffset);d.setEnd(g.focusNode,g.focusOffset);d=d.collapsed}d&&f.unshift(f.pop())}}c.setText(c.getText().replace(/\u200B/g,""));if(f){c=e.getRangeAt(0); +c.setStart(c.startContainer,f[0]);c.setEnd(c.startContainer,f[1]);e.removeAllRanges();e.addRange(c)}}}var f,i,c=CKEDITOR.dom.walker.invisible(1);CKEDITOR.on("instanceCreated",function(a){function c(){var a=f.getSelection();a&&a.removeAllRanges()}var f=a.editor;f.define("selectionChange",{errorProof:1});f.on("contentDom",function(){var a=f.document,c=CKEDITOR.document,e=f.editable(),i=a.getBody(),h=a.getDocumentElement(),k=e.isInline(),l;CKEDITOR.env.gecko&&e.attachListener(e,"focus",function(a){a.removeListener(); +if(l!==0){a=f.getSelection().getNative();if(a.isCollapsed&&a.anchorNode==e.$){a=f.createRange();a.moveToElementEditStart(e);a.select()}}},null,null,-2);e.attachListener(e,"focus",function(){f.unlockSelection(l);l=0},null,null,-1);e.attachListener(e,"mousedown",function(){l=0});if(CKEDITOR.env.ie||CKEDITOR.env.opera||k){var n,w=function(){n=f.getSelection(1);n.lock()};j?e.attachListener(e,"beforedeactivate",w,null,null,-1):e.attachListener(f,"selectionCheck",w,null,null,-1);e.attachListener(e,"blur", +function(){f.lockSelection(n);l=1},null,null,-1)}if(CKEDITOR.env.ie&&!k){var s;e.attachListener(e,"mousedown",function(a){a.data.$.button==2&&f.document.$.selection.type=="None"&&(s=f.window.getScrollPosition())});e.attachListener(e,"mouseup",function(a){if(a.data.$.button==2&&s){f.document.$.documentElement.scrollLeft=s.x;f.document.$.documentElement.scrollTop=s.y}s=null});if(a.$.compatMode!="BackCompat"){if(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)h.on("mousedown",function(a){function b(a){a= +a.data.$;if(e){var c=i.$.createTextRange();try{c.moveToPoint(a.x,a.y)}catch(f){}e.setEndPoint(d.compareEndPoints("StartToStart",c)<0?"EndToEnd":"StartToStart",c);e.select()}}function f(){h.removeListener("mousemove",b);c.removeListener("mouseup",f);h.removeListener("mouseup",f);e.select()}a=a.data;if(a.getTarget().is("html")&&a.$.y<h.$.clientHeight&&a.$.x<h.$.clientWidth){var e=i.$.createTextRange();try{e.moveToPoint(a.$.x,a.$.y)}catch(g){}var d=e.duplicate();h.on("mousemove",b);c.on("mouseup",f); h.on("mouseup",f)}});if(CKEDITOR.env.version>7){h.on("mousedown",function(a){if(a.data.getTarget().is("html")){c.on("mouseup",v);h.on("mouseup",v)}});var v=function(){c.removeListener("mouseup",v);h.removeListener("mouseup",v);var b=CKEDITOR.document.$.selection,f=b.createRange();b.type!="None"&&f.parentElement().ownerDocument==a.$&&f.select()}}}}e.attachListener(e,"selectionchange",b,f);e.attachListener(e,"keyup",d,f);e.attachListener(e,"focus",function(){f.forceNextSelectionCheck();f.selectionChange(1)}); -if(l?CKEDITOR.env.webkit||CKEDITOR.env.gecko:CKEDITOR.env.opera){var A;e.attachListener(e,"mousedown",function(){A=1});e.attachListener(a.getDocumentElement(),"mouseup",function(){A&&d.call(f);A=0})}else e.attachListener(CKEDITOR.env.ie?e:a.getDocumentElement(),"mouseup",d,f);if(CKEDITOR.env.webkit)a.on("keydown",function(a){switch(a.data.getKey()){case 13:case 33:case 34:case 35:case 36:case 37:case 39:case 8:case 45:case 46:g(f.editable())}},null,null,-1)});f.on("contentDomUnload",f.forceNextSelectionCheck, +if(k?CKEDITOR.env.webkit||CKEDITOR.env.gecko:CKEDITOR.env.opera){var A;e.attachListener(e,"mousedown",function(){A=1});e.attachListener(a.getDocumentElement(),"mouseup",function(){A&&d.call(f);A=0})}else e.attachListener(CKEDITOR.env.ie?e:a.getDocumentElement(),"mouseup",d,f);if(CKEDITOR.env.webkit)a.on("keydown",function(a){switch(a.data.getKey()){case 13:case 33:case 34:case 35:case 36:case 37:case 39:case 8:case 45:case 46:g(f.editable())}},null,null,-1)});f.on("contentDomUnload",f.forceNextSelectionCheck, f);f.on("dataReady",function(){f.selectionChange(1)});CKEDITOR.env.ie9Compat&&f.on("beforeDestroy",c,null,null,9);CKEDITOR.env.webkit&&f.on("setData",c);f.on("contentDomUnload",function(){f.unlockSelection()})});CKEDITOR.on("instanceReady",function(a){var b=a.editor,c=b.editable();if(CKEDITOR.env.webkit){b.on("selectionChange",function(){var a=h(c);a&&(a.getCustomData("ready")?g(c):a.setCustomData("ready",1))},null,null,-1);b.on("beforeSetMode",function(){g(c)},null,null,-1);var f,e,a=function(){var a= -b.document,d=h(c);if(d){a=a.$.defaultView.getSelection();a.type=="Caret"&&a.anchorNode==d.$&&(e=1);f=d.getText();d.setText(f.replace(/\u200B/g,""))}},d=function(){var a=b.document,d=h(c);if(d){d.setText(f);if(e){a.$.defaultView.getSelection().setPosition(d.$,d.getLength());e=0}}};b.on("beforeUndoImage",a);b.on("afterUndoImage",d);b.on("beforeGetData",a,null,null,0);b.on("getData",d)}});CKEDITOR.editor.prototype.selectionChange=function(a){(a?b:d).call(this)};CKEDITOR.editor.prototype.getSelection= +b.document,g=h(c);if(g){a=a.$.defaultView.getSelection();a.type=="Caret"&&a.anchorNode==g.$&&(e=1);f=g.getText();g.setText(f.replace(/\u200B/g,""))}},d=function(){var a=b.document,g=h(c);if(g){g.setText(f);if(e){a.$.defaultView.getSelection().setPosition(g.$,g.getLength());e=0}}};b.on("beforeUndoImage",a);b.on("afterUndoImage",d);b.on("beforeGetData",a,null,null,0);b.on("getData",d)}});CKEDITOR.editor.prototype.selectionChange=function(a){(a?b:d).call(this)};CKEDITOR.editor.prototype.getSelection= function(a){if(this._.savedSelection&&!a)return this._.savedSelection;return(a=this.editable())?new CKEDITOR.dom.selection(a):null};CKEDITOR.editor.prototype.lockSelection=function(a){a=a||this.getSelection(1);if(a.getType()!=CKEDITOR.SELECTION_NONE){!a.isLocked&&a.lock();this._.savedSelection=a;return true}return false};CKEDITOR.editor.prototype.unlockSelection=function(a){var b=this._.savedSelection;if(b){b.unlock(a);delete this._.savedSelection;return true}return false};CKEDITOR.editor.prototype.forceNextSelectionCheck= function(){delete this._.selectionPreviousPath};CKEDITOR.dom.document.prototype.getSelection=function(){return new CKEDITOR.dom.selection(this)};CKEDITOR.dom.range.prototype.select=function(){var a=this.root instanceof CKEDITOR.editable?this.root.editor.getSelection():new CKEDITOR.dom.selection(this.root);a.selectRanges([this]);return a};CKEDITOR.SELECTION_NONE=1;CKEDITOR.SELECTION_TEXT=2;CKEDITOR.SELECTION_ELEMENT=3;var j=typeof window.getSelection!="function";CKEDITOR.dom.selection=function(a){var b= a instanceof CKEDITOR.dom.element;this.document=a instanceof CKEDITOR.dom.document?a:a.getDocument();this.root=b?a:this.document.getBody();this.isLocked=0;this._={cache:{}};if(CKEDITOR.env.webkit){a=this.document.getWindow().$.getSelection();if(a.type=="None"&&this.document.getActive().equals(this.root)||a.type=="Caret"&&a.anchorNode.nodeType==CKEDITOR.NODE_DOCUMENT){var c=new CKEDITOR.dom.range(this.root);c.moveToPosition(this.root,CKEDITOR.POSITION_AFTER_START);b=this.document.$.createRange();b.setStart(c.startContainer.$, -c.startOffset);b.collapse(1);var f=this.root.on("focus",function(a){a.cancel()},null,null,-100);a.addRange(b);f.removeListener()}}var a=this.getNative(),e;if(a)if(a.getRangeAt)e=(c=a.rangeCount&&a.getRangeAt(0))&&new CKEDITOR.dom.node(c.commonAncestorContainer);else{try{c=a.createRange()}catch(d){}e=c&&CKEDITOR.dom.element.get(c.item&&c.item(0)||c.parentElement())}if(!e||!this.root.equals(e)&&!this.root.contains(e)){this._.cache.type=CKEDITOR.SELECTION_NONE;this._.cache.startElement=null;this._.cache.selectedElement= -null;this._.cache.selectedText="";this._.cache.ranges=new CKEDITOR.dom.rangeList}return this};var l={img:1,hr:1,li:1,table:1,tr:1,td:1,th:1,embed:1,object:1,ol:1,ul:1,a:1,input:1,form:1,select:1,textarea:1,button:1,fieldset:1,thead:1,tfoot:1};CKEDITOR.dom.selection.prototype={getNative:function(){return this._.cache.nativeSel!==void 0?this._.cache.nativeSel:this._.cache.nativeSel=j?this.document.$.selection:this.document.getWindow().$.getSelection()},getType:j?function(){var a=this._.cache;if(a.type)return a.type; +c.startOffset);b.collapse(1);var f=this.root.on("focus",function(a){a.cancel()},null,null,-100);a.addRange(b);f.removeListener()}}var a=this.getNative(),e;if(a)if(a.getRangeAt)e=(c=a.rangeCount&&a.getRangeAt(0))&&new CKEDITOR.dom.node(c.commonAncestorContainer);else{try{c=a.createRange()}catch(g){}e=c&&CKEDITOR.dom.element.get(c.item&&c.item(0)||c.parentElement())}if(!e||!this.root.equals(e)&&!this.root.contains(e)){this._.cache.type=CKEDITOR.SELECTION_NONE;this._.cache.startElement=null;this._.cache.selectedElement= +null;this._.cache.selectedText="";this._.cache.ranges=new CKEDITOR.dom.rangeList}return this};var k={img:1,hr:1,li:1,table:1,tr:1,td:1,th:1,embed:1,object:1,ol:1,ul:1,a:1,input:1,form:1,select:1,textarea:1,button:1,fieldset:1,thead:1,tfoot:1};CKEDITOR.dom.selection.prototype={getNative:function(){return this._.cache.nativeSel!==void 0?this._.cache.nativeSel:this._.cache.nativeSel=j?this.document.$.selection:this.document.getWindow().$.getSelection()},getType:j?function(){var a=this._.cache;if(a.type)return a.type; var b=CKEDITOR.SELECTION_NONE;try{var c=this.getNative(),f=c.type;if(f=="Text")b=CKEDITOR.SELECTION_TEXT;if(f=="Control")b=CKEDITOR.SELECTION_ELEMENT;if(c.createRange().parentElement())b=CKEDITOR.SELECTION_TEXT}catch(e){}return a.type=b}:function(){var a=this._.cache;if(a.type)return a.type;var b=CKEDITOR.SELECTION_TEXT,c=this.getNative();if(!c||!c.rangeCount)b=CKEDITOR.SELECTION_NONE;else if(c.rangeCount==1){var c=c.getRangeAt(0),f=c.startContainer;if(f==c.endContainer&&f.nodeType==1&&c.endOffset- -c.startOffset==1&&l[f.childNodes[c.startOffset].nodeName.toLowerCase()])b=CKEDITOR.SELECTION_ELEMENT}return a.type=b},getRanges:function(){var a=j?function(){function a(b){return(new CKEDITOR.dom.node(b)).getIndex()}var b=function(b,c){b=b.duplicate();b.collapse(c);var f=b.parentElement(),e=f.ownerDocument;if(!f.hasChildNodes())return{container:f,offset:0};for(var d=f.children,g,i,h=b.duplicate(),j=0,l=d.length-1,m=-1,o,B;j<=l;){m=Math.floor((j+l)/2);g=d[m];h.moveToElementText(g);o=h.compareEndPoints("StartToStart", -b);if(o>0)l=m-1;else if(o<0)j=m+1;else{if(CKEDITOR.env.ie9Compat&&g.tagName=="BR"){d=e.defaultView.getSelection();return{container:d[c?"anchorNode":"focusNode"],offset:d[c?"anchorOffset":"focusOffset"]}}return{container:f,offset:a(g)}}}if(m==-1||m==d.length-1&&o<0){h.moveToElementText(f);h.setEndPoint("StartToStart",b);e=h.text.replace(/(\r\n|\r)/g,"\n").length;d=f.childNodes;if(!e){g=d[d.length-1];return g.nodeType!=CKEDITOR.NODE_TEXT?{container:f,offset:d.length}:{container:g,offset:g.nodeValue.length}}for(f= -d.length;e>0&&f>0;){i=d[--f];if(i.nodeType==CKEDITOR.NODE_TEXT){B=i;e=e-i.nodeValue.length}}return{container:B,offset:-e}}h.collapse(o>0?true:false);h.setEndPoint(o>0?"StartToStart":"EndToStart",b);e=h.text.replace(/(\r\n|\r)/g,"\n").length;if(!e)return{container:f,offset:a(g)+(o>0?0:1)};for(;e>0;)try{i=g[o>0?"previousSibling":"nextSibling"];if(i.nodeType==CKEDITOR.NODE_TEXT){e=e-i.nodeValue.length;B=i}g=i}catch(y){return{container:f,offset:a(g)}}return{container:B,offset:o>0?-e:B.nodeValue.length+ -e}};return function(){var a=this.getNative(),c=a&&a.createRange(),f=this.getType();if(!a)return[];if(f==CKEDITOR.SELECTION_TEXT){a=new CKEDITOR.dom.range(this.root);f=b(c,true);a.setStart(new CKEDITOR.dom.node(f.container),f.offset);f=b(c);a.setEnd(new CKEDITOR.dom.node(f.container),f.offset);a.endContainer.getPosition(a.startContainer)&CKEDITOR.POSITION_PRECEDING&&a.endOffset<=a.startContainer.getIndex()&&a.collapse();return[a]}if(f==CKEDITOR.SELECTION_ELEMENT){for(var f=[],e=0;e<c.length;e++){for(var d= -c.item(e),g=d.parentNode,i=0,a=new CKEDITOR.dom.range(this.root);i<g.childNodes.length&&g.childNodes[i]!=d;i++);a.setStart(new CKEDITOR.dom.node(g),i);a.setEnd(new CKEDITOR.dom.node(g),i+1);f.push(a)}return f}return[]}}():function(){var a=[],b,c=this.getNative();if(!c)return a;for(var f=0;f<c.rangeCount;f++){var e=c.getRangeAt(f);b=new CKEDITOR.dom.range(this.root);b.setStart(new CKEDITOR.dom.node(e.startContainer),e.startOffset);b.setEnd(new CKEDITOR.dom.node(e.endContainer),e.endOffset);a.push(b)}return a}; -return function(b){var c=this._.cache;if(c.ranges&&!b)return c.ranges;if(!c.ranges)c.ranges=new CKEDITOR.dom.rangeList(a.call(this));if(b)for(var f=c.ranges,e=0;e<f.length;e++){var d=f[e];d.getCommonAncestor().isReadOnly()&&f.splice(e,1);if(!d.collapsed){if(d.startContainer.isReadOnly())for(var b=d.startContainer,g;b;){if((g=b.type==CKEDITOR.NODE_ELEMENT)&&b.is("body")||!b.isReadOnly())break;g&&b.getAttribute("contentEditable")=="false"&&d.setStartAfter(b);b=b.getParent()}b=d.startContainer;g=d.endContainer; -var i=d.startOffset,h=d.endOffset,j=d.clone();b&&b.type==CKEDITOR.NODE_TEXT&&(i>=b.getLength()?j.setStartAfter(b):j.setStartBefore(b));g&&g.type==CKEDITOR.NODE_TEXT&&(h?j.setEndAfter(g):j.setEndBefore(g));b=new CKEDITOR.dom.walker(j);b.evaluator=function(a){if(a.type==CKEDITOR.NODE_ELEMENT&&a.isReadOnly()){var b=d.clone();d.setEndBefore(a);d.collapsed&&f.splice(e--,1);if(!(a.getPosition(j.endContainer)&CKEDITOR.POSITION_CONTAINS)){b.setStartAfter(a);b.collapsed||f.splice(e+1,0,b)}return true}return false}; +c.startOffset==1&&k[f.childNodes[c.startOffset].nodeName.toLowerCase()])b=CKEDITOR.SELECTION_ELEMENT}return a.type=b},getRanges:function(){var a=j?function(){function a(b){return(new CKEDITOR.dom.node(b)).getIndex()}var b=function(b,c){b=b.duplicate();b.collapse(c);var f=b.parentElement(),e=f.ownerDocument;if(!f.hasChildNodes())return{container:f,offset:0};for(var g=f.children,d,i,h=b.duplicate(),j=0,k=g.length-1,l=-1,o,B;j<=k;){l=Math.floor((j+k)/2);d=g[l];h.moveToElementText(d);o=h.compareEndPoints("StartToStart", +b);if(o>0)k=l-1;else if(o<0)j=l+1;else{if(CKEDITOR.env.ie9Compat&&d.tagName=="BR"){g=e.defaultView.getSelection();return{container:g[c?"anchorNode":"focusNode"],offset:g[c?"anchorOffset":"focusOffset"]}}return{container:f,offset:a(d)}}}if(l==-1||l==g.length-1&&o<0){h.moveToElementText(f);h.setEndPoint("StartToStart",b);e=h.text.replace(/(\r\n|\r)/g,"\n").length;g=f.childNodes;if(!e){d=g[g.length-1];return d.nodeType!=CKEDITOR.NODE_TEXT?{container:f,offset:g.length}:{container:d,offset:d.nodeValue.length}}for(f= +g.length;e>0&&f>0;){i=g[--f];if(i.nodeType==CKEDITOR.NODE_TEXT){B=i;e=e-i.nodeValue.length}}return{container:B,offset:-e}}h.collapse(o>0?true:false);h.setEndPoint(o>0?"StartToStart":"EndToStart",b);e=h.text.replace(/(\r\n|\r)/g,"\n").length;if(!e)return{container:f,offset:a(d)+(o>0?0:1)};for(;e>0;)try{i=d[o>0?"previousSibling":"nextSibling"];if(i.nodeType==CKEDITOR.NODE_TEXT){e=e-i.nodeValue.length;B=i}d=i}catch(y){return{container:f,offset:a(d)}}return{container:B,offset:o>0?-e:B.nodeValue.length+ +e}};return function(){var a=this.getNative(),c=a&&a.createRange(),f=this.getType();if(!a)return[];if(f==CKEDITOR.SELECTION_TEXT){a=new CKEDITOR.dom.range(this.root);f=b(c,true);a.setStart(new CKEDITOR.dom.node(f.container),f.offset);f=b(c);a.setEnd(new CKEDITOR.dom.node(f.container),f.offset);a.endContainer.getPosition(a.startContainer)&CKEDITOR.POSITION_PRECEDING&&a.endOffset<=a.startContainer.getIndex()&&a.collapse();return[a]}if(f==CKEDITOR.SELECTION_ELEMENT){for(var f=[],e=0;e<c.length;e++){for(var g= +c.item(e),d=g.parentNode,i=0,a=new CKEDITOR.dom.range(this.root);i<d.childNodes.length&&d.childNodes[i]!=g;i++);a.setStart(new CKEDITOR.dom.node(d),i);a.setEnd(new CKEDITOR.dom.node(d),i+1);f.push(a)}return f}return[]}}():function(){var a=[],b,c=this.getNative();if(!c)return a;for(var f=0;f<c.rangeCount;f++){var e=c.getRangeAt(f);b=new CKEDITOR.dom.range(this.root);b.setStart(new CKEDITOR.dom.node(e.startContainer),e.startOffset);b.setEnd(new CKEDITOR.dom.node(e.endContainer),e.endOffset);a.push(b)}return a}; +return function(b){var c=this._.cache;if(c.ranges&&!b)return c.ranges;if(!c.ranges)c.ranges=new CKEDITOR.dom.rangeList(a.call(this));if(b)for(var f=c.ranges,e=0;e<f.length;e++){var g=f[e];g.getCommonAncestor().isReadOnly()&&f.splice(e,1);if(!g.collapsed){if(g.startContainer.isReadOnly())for(var b=g.startContainer,d;b;){if((d=b.type==CKEDITOR.NODE_ELEMENT)&&b.is("body")||!b.isReadOnly())break;d&&b.getAttribute("contentEditable")=="false"&&g.setStartAfter(b);b=b.getParent()}b=g.startContainer;d=g.endContainer; +var i=g.startOffset,h=g.endOffset,j=g.clone();b&&b.type==CKEDITOR.NODE_TEXT&&(i>=b.getLength()?j.setStartAfter(b):j.setStartBefore(b));d&&d.type==CKEDITOR.NODE_TEXT&&(h?j.setEndAfter(d):j.setEndBefore(d));b=new CKEDITOR.dom.walker(j);b.evaluator=function(a){if(a.type==CKEDITOR.NODE_ELEMENT&&a.isReadOnly()){var b=g.clone();g.setEndBefore(a);g.collapsed&&f.splice(e--,1);if(!(a.getPosition(j.endContainer)&CKEDITOR.POSITION_CONTAINS)){b.setStartAfter(a);b.collapsed||f.splice(e+1,0,b)}return true}return false}; b.next()}}return c.ranges}}(),getStartElement:function(){var a=this._.cache;if(a.startElement!==void 0)return a.startElement;var b;switch(this.getType()){case CKEDITOR.SELECTION_ELEMENT:return this.getSelectedElement();case CKEDITOR.SELECTION_TEXT:var c=this.getRanges()[0];if(c){if(c.collapsed){b=c.startContainer;b.type!=CKEDITOR.NODE_ELEMENT&&(b=b.getParent())}else{for(c.optimize();;){b=c.startContainer;if(c.startOffset==(b.getChildCount?b.getChildCount():b.getLength())&&!b.isBlockBoundary())c.setStartAfter(b); else break}b=c.startContainer;if(b.type!=CKEDITOR.NODE_ELEMENT)return b.getParent();b=b.getChild(c.startOffset);if(!b||b.type!=CKEDITOR.NODE_ELEMENT)b=c.startContainer;else for(c=b.getFirst();c&&c.type==CKEDITOR.NODE_ELEMENT;){b=c;c=c.getFirst()}}b=b.$}}return a.startElement=b?new CKEDITOR.dom.element(b):null},getSelectedElement:function(){var a=this._.cache;if(a.selectedElement!==void 0)return a.selectedElement;var b=this,c=CKEDITOR.tools.tryThese(function(){return b.getNative().createRange().item(0)}, -function(){for(var a=b.getRanges()[0],c,f,e=2;e&&(!(c=a.getEnclosedNode())||!(c.type==CKEDITOR.NODE_ELEMENT&&l[c.getName()]&&(f=c)));e--)a.shrink(CKEDITOR.SHRINK_ELEMENT);return f.$});return a.selectedElement=c?new CKEDITOR.dom.element(c):null},getSelectedText:function(){var a=this._.cache;if(a.selectedText!==void 0)return a.selectedText;var b=this.getNative(),b=j?b.type=="Control"?"":b.createRange().text:b.toString();return a.selectedText=b},lock:function(){this.getRanges();this.getStartElement(); +function(){for(var a=b.getRanges()[0],c,f,e=2;e&&(!(c=a.getEnclosedNode())||!(c.type==CKEDITOR.NODE_ELEMENT&&k[c.getName()]&&(f=c)));e--)a.shrink(CKEDITOR.SHRINK_ELEMENT);return f.$});return a.selectedElement=c?new CKEDITOR.dom.element(c):null},getSelectedText:function(){var a=this._.cache;if(a.selectedText!==void 0)return a.selectedText;var b=this.getNative(),b=j?b.type=="Control"?"":b.createRange().text:b.toString();return a.selectedText=b},lock:function(){this.getRanges();this.getStartElement(); this.getSelectedElement();this.getSelectedText();this._.cache.nativeSel=null;this.isLocked=1},unlock:function(a){if(this.isLocked){if(a)var b=this.getSelectedElement(),c=!b&&this.getRanges();this.isLocked=0;this.reset();if(a)(a=b||c[0]&&c[0].getCommonAncestor())&&a.getAscendant("body",1)&&(b?this.selectElement(b):this.selectRanges(c))}},reset:function(){this._.cache={}},selectElement:function(a){var b=new CKEDITOR.dom.range(this.root);b.setStartBefore(a);b.setEndAfter(a);this.selectRanges([b])},selectRanges:function(a){if(a.length)if(this.isLocked){var b= -CKEDITOR.document.getActive();this.unlock();this.selectRanges(a);this.lock();!b.equals(this.root)&&b.focus()}else{if(j){var c=CKEDITOR.dom.walker.whitespaces(true),f=/\ufeff|\u00a0/,d={table:1,tbody:1,tr:1};if(a.length>1){b=a[a.length-1];a[0].setEnd(b.endContainer,b.endOffset)}var b=a[0],a=b.collapsed,i,h,t,z=b.getEnclosedNode();if(z&&z.type==CKEDITOR.NODE_ELEMENT&&z.getName()in l&&(!z.is("a")||!z.getText()))try{t=z.$.createControlRange();t.addElement(z.$);t.select();return}catch(x){}(b.startContainer.type== +CKEDITOR.document.getActive();this.unlock();this.selectRanges(a);this.lock();!b.equals(this.root)&&b.focus()}else{if(j){var c=CKEDITOR.dom.walker.whitespaces(true),f=/\ufeff|\u00a0/,d={table:1,tbody:1,tr:1};if(a.length>1){b=a[a.length-1];a[0].setEnd(b.endContainer,b.endOffset)}var b=a[0],a=b.collapsed,i,h,t,z=b.getEnclosedNode();if(z&&z.type==CKEDITOR.NODE_ELEMENT&&z.getName()in k&&(!z.is("a")||!z.getText()))try{t=z.$.createControlRange();t.addElement(z.$);t.select();return}catch(x){}(b.startContainer.type== CKEDITOR.NODE_ELEMENT&&b.startContainer.getName()in d||b.endContainer.type==CKEDITOR.NODE_ELEMENT&&b.endContainer.getName()in d)&&b.shrink(CKEDITOR.NODE_ELEMENT,true);t=b.createBookmark();var d=t.startNode,u;if(!a)u=t.endNode;t=b.document.$.body.createTextRange();t.moveToElementText(d.$);t.moveStart("character",1);if(u){f=b.document.$.body.createTextRange();f.moveToElementText(u.$);t.setEndPoint("EndToEnd",f);t.moveEnd("character",-1)}else{i=d.getNext(c);h=d.hasAscendant("pre");i=!(i&&i.getText&& i.getText().match(f))&&(h||!d.hasPrevious()||d.getPrevious().is&&d.getPrevious().is("br"));h=b.document.createElement("span");h.setHtml("");h.insertBefore(d);i&&b.document.createText("").insertBefore(d)}b.setStartBefore(d);d.remove();if(a){if(i){t.moveStart("character",-1);t.select();b.document.$.selection.clear()}else t.select();b.moveToPosition(h,CKEDITOR.POSITION_BEFORE_START);h.remove()}else{b.setEndBefore(u);u.remove();t.select()}}else{u=this.getNative();if(!u)return;if(CKEDITOR.env.opera){b= this.document.$.createRange();b.selectNodeContents(this.root.$);u.addRange(b)}this.removeAllRanges();for(f=0;f<a.length;f++){if(f<a.length-1){b=a[f];t=a[f+1];h=b.clone();h.setStart(b.endContainer,b.endOffset);h.setEnd(t.startContainer,t.startOffset);if(!h.collapsed){h.shrink(CKEDITOR.NODE_ELEMENT,true);i=h.getCommonAncestor();h=h.getEnclosedNode();if(i.isReadOnly()||h&&h.isReadOnly()){t.setStart(b.startContainer,b.startOffset);a.splice(f--,1);continue}}}b=a[f];t=this.document.$.createRange();i=b.startContainer; @@ -339,29 +340,29 @@ if(CKEDITOR.env.opera&&b.collapsed&&i.type==CKEDITOR.NODE_ELEMENT){h=i.getChild( i.getName()=="br"){g(this.root);b.moveToPosition(i,CKEDITOR.POSITION_BEFORE_START)}else b.moveToPosition(h,CKEDITOR.POSITION_AFTER_END)}t.setStart(b.startContainer.$,b.startOffset);try{t.setEnd(b.endContainer.$,b.endOffset)}catch(w){if(w.toString().indexOf("NS_ERROR_ILLEGAL_VALUE")>=0){b.collapse(1);t.setEnd(b.endContainer.$,b.endOffset)}else throw w;}u.addRange(t)}}this.reset();this.root.fire("selectionchange")}},createBookmarks:function(a){return this.getRanges().createBookmarks(a)},createBookmarks2:function(a){return this.getRanges().createBookmarks2(a)}, selectBookmarks:function(a){for(var b=[],c=0;c<a.length;c++){var f=new CKEDITOR.dom.range(this.root);f.moveToBookmark(a[c]);b.push(f)}this.selectRanges(b);return this},getCommonAncestor:function(){var a=this.getRanges();return a[0].startContainer.getCommonAncestor(a[a.length-1].endContainer)},scrollIntoView:function(){this.type!=CKEDITOR.SELECTION_NONE&&this.getRanges()[0].scrollIntoView()},removeAllRanges:function(){var a=this.getNative();try{a&&a[j?"empty":"removeAllRanges"]()}catch(b){}this.reset()}}}(), CKEDITOR.editor.prototype.attachStyleStateChange=function(b,d){var a=this._.styleStateChangeCallbacks;if(!a){a=this._.styleStateChangeCallbacks=[];this.on("selectionChange",function(b){for(var d=0;d<a.length;d++){var g=a[d],f=g.style.checkActive(b.data.path)?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF;g.fn.call(this,f)}})}a.push({style:b,fn:d})},CKEDITOR.STYLE_BLOCK=1,CKEDITOR.STYLE_INLINE=2,CKEDITOR.STYLE_OBJECT=3,function(){function b(a,b){for(var c,f;a=a.getParent();){if(a.equals(b))break;if(a.getAttribute("data-nostyle"))c= -a;else if(!f){var e=a.getAttribute("contentEditable");e=="false"?c=a:e=="true"&&(f=1)}}return c}function d(a){var c=a.document;if(a.collapsed){c=p(this,c);a.insertNode(c);a.moveToPosition(c,CKEDITOR.POSITION_BEFORE_END)}else{var f=this.element,e=this._.definition,d,g=e.ignoreReadonly,i=g||e.includeReadonly;i==void 0&&(i=a.root.getCustomData("cke_includeReadonly"));var h=CKEDITOR.dtd[f]||(d=true,CKEDITOR.dtd.span);a.enlarge(CKEDITOR.ENLARGE_INLINE,1);a.trim();var j=a.createBookmark(),k=j.startNode, -l=j.endNode,m=k,q;if(!g){var r=a.getCommonAncestor(),g=b(k,r),r=b(l,r);g&&(m=g.getNextSourceNode(true));r&&(l=r)}for(m.getPosition(l)==CKEDITOR.POSITION_FOLLOWING&&(m=0);m;){g=false;if(m.equals(l)){m=null;g=true}else{var o=m.type,t=o==CKEDITOR.NODE_ELEMENT?m.getName():null,r=t&&m.getAttribute("contentEditable")=="false",u=t&&m.getAttribute("data-nostyle");if(t&&m.data("cke-bookmark")){m=m.getNextSourceNode(true);continue}if(!t||h[t]&&!u&&(!r||i)&&(m.getPosition(l)|CKEDITOR.POSITION_PRECEDING|CKEDITOR.POSITION_IDENTICAL| -CKEDITOR.POSITION_IS_CONTAINED)==CKEDITOR.POSITION_PRECEDING+CKEDITOR.POSITION_IDENTICAL+CKEDITOR.POSITION_IS_CONTAINED&&(!e.childRule||e.childRule(m))){var x=m.getParent();if(x&&((x.getDtd()||CKEDITOR.dtd.span)[f]||d)&&(!e.parentRule||e.parentRule(x))){if(!q&&(!t||!CKEDITOR.dtd.$removeEmpty[t]||(m.getPosition(l)|CKEDITOR.POSITION_PRECEDING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED)==CKEDITOR.POSITION_PRECEDING+CKEDITOR.POSITION_IDENTICAL+CKEDITOR.POSITION_IS_CONTAINED)){q=a.clone(); -q.setStartBefore(m)}if(o==CKEDITOR.NODE_TEXT||r||o==CKEDITOR.NODE_ELEMENT&&!m.getChildCount()){for(var o=m,w;(g=!o.getNext(A))&&(w=o.getParent(),h[w.getName()])&&(w.getPosition(k)|CKEDITOR.POSITION_FOLLOWING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED)==CKEDITOR.POSITION_FOLLOWING+CKEDITOR.POSITION_IDENTICAL+CKEDITOR.POSITION_IS_CONTAINED&&(!e.childRule||e.childRule(w));)o=w;q.setEndAfter(o)}}else g=true}else g=true;m=m.getNextSourceNode(u||r&&!i)}if(g&&q&&!q.collapsed){for(var g=p(this, -c),r=g.hasAttributes(),u=q.getCommonAncestor(),o={},t={},x={},z={},s,O,v;g&&u;){if(u.getName()==f){for(s in e.attributes)if(!z[s]&&(v=u.getAttribute(O)))g.getAttribute(s)==v?t[s]=1:z[s]=1;for(O in e.styles)if(!x[O]&&(v=u.getStyle(O)))g.getStyle(O)==v?o[O]=1:x[O]=1}u=u.getParent()}for(s in t)g.removeAttribute(s);for(O in o)g.removeStyle(O);r&&!g.hasAttributes()&&(g=null);if(g){q.extractContents().appendTo(g);n.call(this,g);q.insertNode(g);g.mergeSiblings();CKEDITOR.env.ie||g.$.normalize()}else{g=new CKEDITOR.dom.element("span"); -q.extractContents().appendTo(g);q.insertNode(g);n.call(this,g);g.remove(true)}q=null}}a.moveToBookmark(j);a.shrink(CKEDITOR.SHRINK_TEXT)}}function a(a){a.enlarge(CKEDITOR.ENLARGE_INLINE,1);var b=a.createBookmark(),c=b.startNode;if(a.collapsed){for(var f=new CKEDITOR.dom.elementPath(c.getParent(),a.root),e,d=0,g;d<f.elements.length&&(g=f.elements[d]);d++){if(g==f.block||g==f.blockLimit)break;if(this.checkElementRemovable(g)){var i;if(a.collapsed&&(a.checkBoundaryOfElement(g,CKEDITOR.END)||(i=a.checkBoundaryOfElement(g, -CKEDITOR.START)))){e=g;e.match=i?"start":"end"}else{g.mergeSiblings();g.getName()==this.element?m.call(this,g):o(g,t(this)[g.getName()])}}}if(e){g=c;for(d=0;;d++){i=f.elements[d];if(i.equals(e))break;else if(i.match)continue;else i=i.clone();i.append(g);g=i}g[e.match=="start"?"insertBefore":"insertAfter"](e)}}else{var h=b.endNode,j=this,f=function(){for(var a=new CKEDITOR.dom.elementPath(c.getParent()),b=new CKEDITOR.dom.elementPath(h.getParent()),f=null,e=null,d=0;d<a.elements.length;d++){var g= -a.elements[d];if(g==a.block||g==a.blockLimit)break;j.checkElementRemovable(g)&&(f=g)}for(d=0;d<b.elements.length;d++){g=b.elements[d];if(g==b.block||g==b.blockLimit)break;j.checkElementRemovable(g)&&(e=g)}e&&h.breakParent(e);f&&c.breakParent(f)};f();for(e=c;!e.equals(h);){d=e.getNextSourceNode();if(e.type==CKEDITOR.NODE_ELEMENT&&this.checkElementRemovable(e)){e.getName()==this.element?m.call(this,e):o(e,t(this)[e.getName()]);if(d.type==CKEDITOR.NODE_ELEMENT&&d.contains(c)){f();d=c.getNext()}}e=d}}a.moveToBookmark(b)} -function e(a){var b=a.getEnclosedNode()||a.getCommonAncestor(false,true);(a=(new CKEDITOR.dom.elementPath(b,a.root)).contains(this.element,1))&&!a.isReadOnly()&&r(a,this)}function h(a){var b=a.getCommonAncestor(true,true);if(a=(new CKEDITOR.dom.elementPath(b,a.root)).contains(this.element,1)){var b=this._.definition,c=b.attributes;if(c)for(var f in c)a.removeAttribute(f,c[f]);if(b.styles)for(var e in b.styles)b.styles.hasOwnProperty(e)&&a.removeStyle(e)}}function g(a){var b=a.createBookmark(true), -c=a.createIterator();c.enforceRealBlocks=true;if(this._.enterMode)c.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR;for(var f,e=a.document;f=c.getNextParagraph();)if(!f.isReadOnly()){var d=p(this,e,f);i(f,d)}a.moveToBookmark(b)}function f(a){var b=a.createBookmark(1),c=a.createIterator();c.enforceRealBlocks=true;c.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR;for(var f;f=c.getNextParagraph();)if(this.checkElementRemovable(f))if(f.is("pre")){var e=this._.enterMode==CKEDITOR.ENTER_BR?null:a.document.createElement(this._.enterMode== -CKEDITOR.ENTER_P?"p":"div");e&&f.copyAttributes(e);i(f,e)}else m.call(this,f);a.moveToBookmark(b)}function i(a,b){var f=!b;if(f){b=a.getDocument().createElement("div");a.copyAttributes(b)}var e=b&&b.is("pre"),d=a.is("pre"),g=!e&&d;if(e&&!d){d=b;(g=a.getBogus())&&g.remove();g=a.getHtml();g=j(g,/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g,"");g=g.replace(/[ \t\r\n]*(<br[^>]*>)[ \t\r\n]*/gi,"$1");g=g.replace(/([ \t\n\r]+| )/g," ");g=g.replace(/<br\b[^>]*>/gi,"\n");if(CKEDITOR.env.ie){var i=a.getDocument().createElement("div"); -i.append(d);d.$.outerHTML="<pre>"+g+"</pre>";d.copyAttributes(i.getFirst());d=i.getFirst().remove()}else d.setHtml(g);b=d}else g?b=l(f?[a.getHtml()]:c(a),b):a.moveChildren(b);b.replace(a);if(e){var f=b,h;if((h=f.getPrevious(B))&&h.is&&h.is("pre")){e=j(h.getHtml(),/\n$/,"")+"\n\n"+j(f.getHtml(),/^\n/,"");CKEDITOR.env.ie?f.$.outerHTML="<pre>"+e+"</pre>":f.setHtml(e);h.remove()}}else f&&k(b)}function c(a){a.getName();var b=[];j(a.getOuterHtml(),/(\S\s*)\n(?:\s|(<span[^>]+data-cke-bookmark.*?\/span>))*\n(?!$)/gi, -function(a,b,c){return b+"</pre>"+c+"<pre>"}).replace(/<pre\b.*?>([\s\S]*?)<\/pre>/gi,function(a,c){b.push(c)});return b}function j(a,b,c){var f="",e="",a=a.replace(/(^<span[^>]+data-cke-bookmark.*?\/span>)|(<span[^>]+data-cke-bookmark.*?\/span>$)/gi,function(a,b,c){b&&(f=b);c&&(e=c);return""});return f+a.replace(b,c)+e}function l(a,b){var c;a.length>1&&(c=new CKEDITOR.dom.documentFragment(b.getDocument()));for(var f=0;f<a.length;f++){var e=a[f],e=e.replace(/(\r\n|\r)/g,"\n"),e=j(e,/^[ \t]*\n/,""), -e=j(e,/\n$/,""),e=j(e,/^[ \t]+|[ \t]+$/g,function(a,b){return a.length==1?" ":b?" "+CKEDITOR.tools.repeat(" ",a.length-1):CKEDITOR.tools.repeat(" ",a.length-1)+" "}),e=e.replace(/\n/g,"<br>"),e=e.replace(/[ \t]{2,}/g,function(a){return CKEDITOR.tools.repeat(" ",a.length-1)+" "});if(c){var d=b.clone();d.setHtml(e);c.append(d)}else b.setHtml(e)}return c||b}function m(a){var b=this._.definition,c=b.attributes,b=b.styles,f=t(this)[a.getName()],e=CKEDITOR.tools.isEmpty(c)&&CKEDITOR.tools.isEmpty(b), -d;for(d in c)if(!((d=="class"||this._.definition.fullMatch)&&a.getAttribute(d)!=z(d,c[d]))){e=a.hasAttribute(d);a.removeAttribute(d)}for(var g in b)if(!(this._.definition.fullMatch&&a.getStyle(g)!=z(g,b[g],true))){e=e||!!a.getStyle(g);a.removeStyle(g)}o(a,f,u[a.getName()]);e&&(this._.definition.alwaysRemoveElement?k(a,1):!CKEDITOR.dtd.$block[a.getName()]||this._.enterMode==CKEDITOR.ENTER_BR&&!a.hasAttributes()?k(a):a.renameNode(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))}function n(a){for(var b= -t(this),c=a.getElementsByTag(this.element),f=c.count();--f>=0;)m.call(this,c.getItem(f));for(var e in b)if(e!=this.element){c=a.getElementsByTag(e);for(f=c.count()-1;f>=0;f--){var d=c.getItem(f);o(d,b[e])}}}function o(a,b,c){if(b=b&&b.attributes)for(var f=0;f<b.length;f++){var e=b[f][0],d;if(d=a.getAttribute(e)){var g=b[f][1];(g===null||g.test&&g.test(d)||typeof g=="string"&&d==g)&&a.removeAttribute(e)}}c||k(a)}function k(a,b){if(!a.hasAttributes()||b)if(CKEDITOR.dtd.$block[a.getName()]){var c=a.getPrevious(B), -f=a.getNext(B);c&&(c.type==CKEDITOR.NODE_TEXT||!c.isBlockBoundary({br:1}))&&a.append("br",1);f&&(f.type==CKEDITOR.NODE_TEXT||!f.isBlockBoundary({br:1}))&&a.append("br");a.remove(true)}else{c=a.getFirst();f=a.getLast();a.remove(true);if(c){c.type==CKEDITOR.NODE_ELEMENT&&c.mergeSiblings();f&&(!c.equals(f)&&f.type==CKEDITOR.NODE_ELEMENT)&&f.mergeSiblings()}}}function p(a,b,c){var f;f=a.element;f=="*"&&(f="span");f=new CKEDITOR.dom.element(f,b);c&&c.copyAttributes(f);f=r(f,a);b.getCustomData("doc_processing_style")&& -f.hasAttribute("id")?f.removeAttribute("id"):b.setCustomData("doc_processing_style",1);return f}function r(a,b){var c=b._.definition,f=c.attributes,c=CKEDITOR.style.getStyleText(c);if(f)for(var e in f)a.setAttribute(e,f[e]);c&&a.setAttribute("style",c);return a}function q(a,b){for(var c in a)a[c]=a[c].replace(v,function(a,c){return b[c]})}function t(a){if(a._.overrides)return a._.overrides;var b=a._.overrides={},c=a._.definition.overrides;if(c){CKEDITOR.tools.isArray(c)||(c=[c]);for(var f=0;f<c.length;f++){var e= +a;else if(!f){var e=a.getAttribute("contentEditable");e=="false"?c=a:e=="true"&&(f=1)}}return c}function d(a){var c=a.document;if(a.collapsed){c=p(this,c);a.insertNode(c);a.moveToPosition(c,CKEDITOR.POSITION_BEFORE_END)}else{var f=this.element,e=this._.definition,g,d=e.ignoreReadonly,i=d||e.includeReadonly;i==void 0&&(i=a.root.getCustomData("cke_includeReadonly"));var h=CKEDITOR.dtd[f]||(g=true,CKEDITOR.dtd.span);a.enlarge(CKEDITOR.ENLARGE_INLINE,1);a.trim();var j=a.createBookmark(),m=j.startNode, +k=j.endNode,l=m,r;if(!d){var q=a.getCommonAncestor(),d=b(m,q),q=b(k,q);d&&(l=d.getNextSourceNode(true));q&&(k=q)}for(l.getPosition(k)==CKEDITOR.POSITION_FOLLOWING&&(l=0);l;){d=false;if(l.equals(k)){l=null;d=true}else{var o=l.type,t=o==CKEDITOR.NODE_ELEMENT?l.getName():null,q=t&&l.getAttribute("contentEditable")=="false",u=t&&l.getAttribute("data-nostyle");if(t&&l.data("cke-bookmark")){l=l.getNextSourceNode(true);continue}if(!t||h[t]&&!u&&(!q||i)&&(l.getPosition(k)|CKEDITOR.POSITION_PRECEDING|CKEDITOR.POSITION_IDENTICAL| +CKEDITOR.POSITION_IS_CONTAINED)==CKEDITOR.POSITION_PRECEDING+CKEDITOR.POSITION_IDENTICAL+CKEDITOR.POSITION_IS_CONTAINED&&(!e.childRule||e.childRule(l))){var w=l.getParent();if(w&&((w.getDtd()||CKEDITOR.dtd.span)[f]||g)&&(!e.parentRule||e.parentRule(w))){if(!r&&(!t||!CKEDITOR.dtd.$removeEmpty[t]||(l.getPosition(k)|CKEDITOR.POSITION_PRECEDING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED)==CKEDITOR.POSITION_PRECEDING+CKEDITOR.POSITION_IDENTICAL+CKEDITOR.POSITION_IS_CONTAINED)){r=a.clone(); +r.setStartBefore(l)}if(o==CKEDITOR.NODE_TEXT||q||o==CKEDITOR.NODE_ELEMENT&&!l.getChildCount()){for(var o=l,x;(d=!o.getNext(A))&&(x=o.getParent(),h[x.getName()])&&(x.getPosition(m)|CKEDITOR.POSITION_FOLLOWING|CKEDITOR.POSITION_IDENTICAL|CKEDITOR.POSITION_IS_CONTAINED)==CKEDITOR.POSITION_FOLLOWING+CKEDITOR.POSITION_IDENTICAL+CKEDITOR.POSITION_IS_CONTAINED&&(!e.childRule||e.childRule(x));)o=x;r.setEndAfter(o)}}else d=true}else d=true;l=l.getNextSourceNode(u||q&&!i)}if(d&&r&&!r.collapsed){for(var d=p(this, +c),q=d.hasAttributes(),u=r.getCommonAncestor(),o={},t={},w={},z={},s,M,v;d&&u;){if(u.getName()==f){for(s in e.attributes)if(!z[s]&&(v=u.getAttribute(M)))d.getAttribute(s)==v?t[s]=1:z[s]=1;for(M in e.styles)if(!w[M]&&(v=u.getStyle(M)))d.getStyle(M)==v?o[M]=1:w[M]=1}u=u.getParent()}for(s in t)d.removeAttribute(s);for(M in o)d.removeStyle(M);q&&!d.hasAttributes()&&(d=null);if(d){r.extractContents().appendTo(d);n.call(this,d);r.insertNode(d);d.mergeSiblings();CKEDITOR.env.ie||d.$.normalize()}else{d=new CKEDITOR.dom.element("span"); +r.extractContents().appendTo(d);r.insertNode(d);n.call(this,d);d.remove(true)}r=null}}a.moveToBookmark(j);a.shrink(CKEDITOR.SHRINK_TEXT)}}function a(a){a.enlarge(CKEDITOR.ENLARGE_INLINE,1);var b=a.createBookmark(),c=b.startNode;if(a.collapsed){for(var f=new CKEDITOR.dom.elementPath(c.getParent(),a.root),e,g=0,d;g<f.elements.length&&(d=f.elements[g]);g++){if(d==f.block||d==f.blockLimit)break;if(this.checkElementRemovable(d)){var i;if(a.collapsed&&(a.checkBoundaryOfElement(d,CKEDITOR.END)||(i=a.checkBoundaryOfElement(d, +CKEDITOR.START)))){e=d;e.match=i?"start":"end"}else{d.mergeSiblings();d.getName()==this.element?l.call(this,d):o(d,t(this)[d.getName()])}}}if(e){d=c;for(g=0;;g++){i=f.elements[g];if(i.equals(e))break;else if(i.match)continue;else i=i.clone();i.append(d);d=i}d[e.match=="start"?"insertBefore":"insertAfter"](e)}}else{var h=b.endNode,j=this,f=function(){for(var a=new CKEDITOR.dom.elementPath(c.getParent()),b=new CKEDITOR.dom.elementPath(h.getParent()),f=null,e=null,g=0;g<a.elements.length;g++){var d= +a.elements[g];if(d==a.block||d==a.blockLimit)break;j.checkElementRemovable(d)&&(f=d)}for(g=0;g<b.elements.length;g++){d=b.elements[g];if(d==b.block||d==b.blockLimit)break;j.checkElementRemovable(d)&&(e=d)}e&&h.breakParent(e);f&&c.breakParent(f)};f();for(e=c;!e.equals(h);){g=e.getNextSourceNode();if(e.type==CKEDITOR.NODE_ELEMENT&&this.checkElementRemovable(e)){e.getName()==this.element?l.call(this,e):o(e,t(this)[e.getName()]);if(g.type==CKEDITOR.NODE_ELEMENT&&g.contains(c)){f();g=c.getNext()}}e=g}}a.moveToBookmark(b)} +function e(a){var b=a.getEnclosedNode()||a.getCommonAncestor(false,true);(a=(new CKEDITOR.dom.elementPath(b,a.root)).contains(this.element,1))&&!a.isReadOnly()&&q(a,this)}function h(a){var b=a.getCommonAncestor(true,true);if(a=(new CKEDITOR.dom.elementPath(b,a.root)).contains(this.element,1)){var b=this._.definition,c=b.attributes;if(c)for(var f in c)a.removeAttribute(f,c[f]);if(b.styles)for(var e in b.styles)b.styles.hasOwnProperty(e)&&a.removeStyle(e)}}function g(a){var b=a.createBookmark(true), +c=a.createIterator();c.enforceRealBlocks=true;if(this._.enterMode)c.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR;for(var f,e=a.document;f=c.getNextParagraph();)if(!f.isReadOnly()){var g=p(this,e,f);i(f,g)}a.moveToBookmark(b)}function f(a){var b=a.createBookmark(1),c=a.createIterator();c.enforceRealBlocks=true;c.enlargeBr=this._.enterMode!=CKEDITOR.ENTER_BR;for(var f;f=c.getNextParagraph();)if(this.checkElementRemovable(f))if(f.is("pre")){var e=this._.enterMode==CKEDITOR.ENTER_BR?null:a.document.createElement(this._.enterMode== +CKEDITOR.ENTER_P?"p":"div");e&&f.copyAttributes(e);i(f,e)}else l.call(this,f);a.moveToBookmark(b)}function i(a,b){var f=!b;if(f){b=a.getDocument().createElement("div");a.copyAttributes(b)}var e=b&&b.is("pre"),g=a.is("pre"),d=!e&&g;if(e&&!g){g=b;(d=a.getBogus())&&d.remove();d=a.getHtml();d=j(d,/(?:^[ \t\n\r]+)|(?:[ \t\n\r]+$)/g,"");d=d.replace(/[ \t\r\n]*(<br[^>]*>)[ \t\r\n]*/gi,"$1");d=d.replace(/([ \t\n\r]+| )/g," ");d=d.replace(/<br\b[^>]*>/gi,"\n");if(CKEDITOR.env.ie){var i=a.getDocument().createElement("div"); +i.append(g);g.$.outerHTML="<pre>"+d+"</pre>";g.copyAttributes(i.getFirst());g=i.getFirst().remove()}else g.setHtml(d);b=g}else d?b=k(f?[a.getHtml()]:c(a),b):a.moveChildren(b);b.replace(a);if(e){var f=b,h;if((h=f.getPrevious(B))&&h.is&&h.is("pre")){e=j(h.getHtml(),/\n$/,"")+"\n\n"+j(f.getHtml(),/^\n/,"");CKEDITOR.env.ie?f.$.outerHTML="<pre>"+e+"</pre>":f.setHtml(e);h.remove()}}else f&&m(b)}function c(a){a.getName();var b=[];j(a.getOuterHtml(),/(\S\s*)\n(?:\s|(<span[^>]+data-cke-bookmark.*?\/span>))*\n(?!$)/gi, +function(a,b,c){return b+"</pre>"+c+"<pre>"}).replace(/<pre\b.*?>([\s\S]*?)<\/pre>/gi,function(a,c){b.push(c)});return b}function j(a,b,c){var f="",e="",a=a.replace(/(^<span[^>]+data-cke-bookmark.*?\/span>)|(<span[^>]+data-cke-bookmark.*?\/span>$)/gi,function(a,b,c){b&&(f=b);c&&(e=c);return""});return f+a.replace(b,c)+e}function k(a,b){var c;a.length>1&&(c=new CKEDITOR.dom.documentFragment(b.getDocument()));for(var f=0;f<a.length;f++){var e=a[f],e=e.replace(/(\r\n|\r)/g,"\n"),e=j(e,/^[ \t]*\n/,""), +e=j(e,/\n$/,""),e=j(e,/^[ \t]+|[ \t]+$/g,function(a,b){return a.length==1?" ":b?" "+CKEDITOR.tools.repeat(" ",a.length-1):CKEDITOR.tools.repeat(" ",a.length-1)+" "}),e=e.replace(/\n/g,"<br>"),e=e.replace(/[ \t]{2,}/g,function(a){return CKEDITOR.tools.repeat(" ",a.length-1)+" "});if(c){var d=b.clone();d.setHtml(e);c.append(d)}else b.setHtml(e)}return c||b}function l(a){var b=this._.definition,c=b.attributes,b=b.styles,f=t(this)[a.getName()],e=CKEDITOR.tools.isEmpty(c)&&CKEDITOR.tools.isEmpty(b), +d;for(d in c)if(!((d=="class"||this._.definition.fullMatch)&&a.getAttribute(d)!=z(d,c[d]))){e=a.hasAttribute(d);a.removeAttribute(d)}for(var g in b)if(!(this._.definition.fullMatch&&a.getStyle(g)!=z(g,b[g],true))){e=e||!!a.getStyle(g);a.removeStyle(g)}o(a,f,u[a.getName()]);e&&(this._.definition.alwaysRemoveElement?m(a,1):!CKEDITOR.dtd.$block[a.getName()]||this._.enterMode==CKEDITOR.ENTER_BR&&!a.hasAttributes()?m(a):a.renameNode(this._.enterMode==CKEDITOR.ENTER_P?"p":"div"))}function n(a){for(var b= +t(this),c=a.getElementsByTag(this.element),f=c.count();--f>=0;)l.call(this,c.getItem(f));for(var e in b)if(e!=this.element){c=a.getElementsByTag(e);for(f=c.count()-1;f>=0;f--){var d=c.getItem(f);o(d,b[e])}}}function o(a,b,c){if(b=b&&b.attributes)for(var f=0;f<b.length;f++){var e=b[f][0],d;if(d=a.getAttribute(e)){var g=b[f][1];(g===null||g.test&&g.test(d)||typeof g=="string"&&d==g)&&a.removeAttribute(e)}}c||m(a)}function m(a,b){if(!a.hasAttributes()||b)if(CKEDITOR.dtd.$block[a.getName()]){var c=a.getPrevious(B), +f=a.getNext(B);c&&(c.type==CKEDITOR.NODE_TEXT||!c.isBlockBoundary({br:1}))&&a.append("br",1);f&&(f.type==CKEDITOR.NODE_TEXT||!f.isBlockBoundary({br:1}))&&a.append("br");a.remove(true)}else{c=a.getFirst();f=a.getLast();a.remove(true);if(c){c.type==CKEDITOR.NODE_ELEMENT&&c.mergeSiblings();f&&(!c.equals(f)&&f.type==CKEDITOR.NODE_ELEMENT)&&f.mergeSiblings()}}}function p(a,b,c){var f;f=a.element;f=="*"&&(f="span");f=new CKEDITOR.dom.element(f,b);c&&c.copyAttributes(f);f=q(f,a);b.getCustomData("doc_processing_style")&& +f.hasAttribute("id")?f.removeAttribute("id"):b.setCustomData("doc_processing_style",1);return f}function q(a,b){var c=b._.definition,f=c.attributes,c=CKEDITOR.style.getStyleText(c);if(f)for(var e in f)a.setAttribute(e,f[e]);c&&a.setAttribute("style",c);return a}function r(a,b){for(var c in a)a[c]=a[c].replace(v,function(a,c){return b[c]})}function t(a){if(a._.overrides)return a._.overrides;var b=a._.overrides={},c=a._.definition.overrides;if(c){CKEDITOR.tools.isArray(c)||(c=[c]);for(var f=0;f<c.length;f++){var e= c[f],d,g;if(typeof e=="string")d=e.toLowerCase();else{d=e.element?e.element.toLowerCase():a.element;g=e.attributes}e=b[d]||(b[d]={});if(g){var e=e.attributes=e.attributes||[],i;for(i in g)e.push([i.toLowerCase(),g[i]])}}}return b}function z(a,b,c){var f=new CKEDITOR.dom.element("span");f[c?"setStyle":"setAttribute"](a,b);return f[c?"getStyle":"getAttribute"](a)}function x(a,b){for(var c=a.document,f=a.getRanges(),e=b?this.removeFromRange:this.applyToRange,d,g=f.createIterator();d=g.getNextRange();)e.call(this, d);a.selectRanges(f);c.removeCustomData("doc_processing_style")}var u={address:1,div:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,p:1,pre:1,section:1,header:1,footer:1,nav:1,article:1,aside:1,figure:1,dialog:1,hgroup:1,time:1,meter:1,menu:1,command:1,keygen:1,output:1,progress:1,details:1,datagrid:1,datalist:1},w={a:1,embed:1,hr:1,img:1,li:1,object:1,ol:1,table:1,td:1,tr:1,th:1,ul:1,dl:1,dt:1,dd:1,form:1,audio:1,video:1},s=/\s*(?:;\s*|$)/,v=/#\((.+?)\)/g,A=CKEDITOR.dom.walker.bookmark(0,1),B=CKEDITOR.dom.walker.whitespaces(1); -CKEDITOR.style=function(a,b){var c=a.attributes;if(c&&c.style){a.styles=CKEDITOR.tools.extend({},a.styles,CKEDITOR.tools.parseCssText(c.style));delete c.style}if(b){a=CKEDITOR.tools.clone(a);q(a.attributes,b);q(a.styles,b)}c=this.element=a.element?typeof a.element=="string"?a.element.toLowerCase():a.element:"*";this.type=a.type||(u[c]?CKEDITOR.STYLE_BLOCK:w[c]?CKEDITOR.STYLE_OBJECT:CKEDITOR.STYLE_INLINE);if(typeof this.element=="object")this.type=CKEDITOR.STYLE_OBJECT;this._={definition:a}};CKEDITOR.editor.prototype.applyStyle= +CKEDITOR.style=function(a,b){var c=a.attributes;if(c&&c.style){a.styles=CKEDITOR.tools.extend({},a.styles,CKEDITOR.tools.parseCssText(c.style));delete c.style}if(b){a=CKEDITOR.tools.clone(a);r(a.attributes,b);r(a.styles,b)}c=this.element=a.element?typeof a.element=="string"?a.element.toLowerCase():a.element:"*";this.type=a.type||(u[c]?CKEDITOR.STYLE_BLOCK:w[c]?CKEDITOR.STYLE_OBJECT:CKEDITOR.STYLE_INLINE);if(typeof this.element=="object")this.type=CKEDITOR.STYLE_OBJECT;this._={definition:a}};CKEDITOR.editor.prototype.applyStyle= function(a){x.call(a,this.getSelection())};CKEDITOR.editor.prototype.removeStyle=function(a){x.call(a,this.getSelection(),1)};CKEDITOR.style.prototype={apply:function(a){x.call(this,a.getSelection())},remove:function(a){x.call(this,a.getSelection(),1)},applyToRange:function(a){return(this.applyToRange=this.type==CKEDITOR.STYLE_INLINE?d:this.type==CKEDITOR.STYLE_BLOCK?g:this.type==CKEDITOR.STYLE_OBJECT?e:null).call(this,a)},removeFromRange:function(b){return(this.removeFromRange=this.type==CKEDITOR.STYLE_INLINE? -a:this.type==CKEDITOR.STYLE_BLOCK?f:this.type==CKEDITOR.STYLE_OBJECT?h:null).call(this,b)},applyToObject:function(a){r(a,this)},checkActive:function(a){switch(this.type){case CKEDITOR.STYLE_BLOCK:return this.checkElementRemovable(a.block||a.blockLimit,true);case CKEDITOR.STYLE_OBJECT:case CKEDITOR.STYLE_INLINE:for(var b=a.elements,c=0,f;c<b.length;c++){f=b[c];if(!(this.type==CKEDITOR.STYLE_INLINE&&(f==a.block||f==a.blockLimit))){if(this.type==CKEDITOR.STYLE_OBJECT){var e=f.getName();if(!(typeof this.element== +a:this.type==CKEDITOR.STYLE_BLOCK?f:this.type==CKEDITOR.STYLE_OBJECT?h:null).call(this,b)},applyToObject:function(a){q(a,this)},checkActive:function(a){switch(this.type){case CKEDITOR.STYLE_BLOCK:return this.checkElementRemovable(a.block||a.blockLimit,true);case CKEDITOR.STYLE_OBJECT:case CKEDITOR.STYLE_INLINE:for(var b=a.elements,c=0,f;c<b.length;c++){f=b[c];if(!(this.type==CKEDITOR.STYLE_INLINE&&(f==a.block||f==a.blockLimit))){if(this.type==CKEDITOR.STYLE_OBJECT){var e=f.getName();if(!(typeof this.element== "string"?e==this.element:e in this.element))continue}if(this.checkElementRemovable(f,true))return true}}}return false},checkApplicable:function(a){switch(this.type){case CKEDITOR.STYLE_OBJECT:return a.contains(this.element)}return true},checkElementMatch:function(a,b){var c=this._.definition;if(!a||!c.ignoreReadonly&&a.isReadOnly())return false;var f=a.getName();if(typeof this.element=="string"?f==this.element:f in this.element){if(!b&&!a.hasAttributes())return true;if(f=c._AC)c=f;else{var f={},e= 0,d=c.attributes;if(d)for(var g in d){e++;f[g]=d[g]}if(g=CKEDITOR.style.getStyleText(c)){f.style||e++;f.style=g}f._length=e;c=c._AC=f}if(c._length){for(var i in c)if(i!="_length"){e=a.getAttribute(i)||"";if(i=="style")a:{f=c[i];typeof f=="string"&&(f=CKEDITOR.tools.parseCssText(f));typeof e=="string"&&(e=CKEDITOR.tools.parseCssText(e,true));g=void 0;for(g in f)if(!(g in e&&(e[g]==f[g]||f[g]=="inherit"||e[g]=="inherit"))){f=false;break a}f=true}else f=c[i]==e;if(f){if(!b)return true}else if(b)return false}if(b)return true}else return true}return false}, checkElementRemovable:function(a,b){if(this.checkElementMatch(a,b))return true;var c=t(this)[a.getName()];if(c){var f;if(!(c=c.attributes))return true;for(var e=0;e<c.length;e++){f=c[e][0];if(f=a.getAttribute(f)){var d=c[e][1];if(d===null||typeof d=="string"&&f==d||d.test(f))return true}}}return false},buildPreview:function(a){var b=this._.definition,c=[],f=b.element;f=="bdo"&&(f="span");var c=["<",f],e=b.attributes;if(e)for(var d in e)c.push(" ",d,'="',e[d],'"');(e=CKEDITOR.style.getStyleText(b))&& @@ -369,13 +370,13 @@ c.push(' style="',e,'"');c.push(">",a||b.name,"</",f,">");return c.join("")},get this.style=b;CKEDITOR.tools.extend(this,d,true)},CKEDITOR.styleCommand.prototype.exec=function(b){b.focus();this.state==CKEDITOR.TRISTATE_OFF?b.applyStyle(this.style):this.state==CKEDITOR.TRISTATE_ON&&b.removeStyle(this.style)},CKEDITOR.stylesSet=new CKEDITOR.resourceManager("","stylesSet"),CKEDITOR.addStylesSet=CKEDITOR.tools.bind(CKEDITOR.stylesSet.add,CKEDITOR.stylesSet),CKEDITOR.loadStylesSet=function(b,d,a){CKEDITOR.stylesSet.addExternal(b,d,"");CKEDITOR.stylesSet.load(b,a)},CKEDITOR.editor.prototype.getStylesSet= function(b){if(this._.stylesDefinitions)b(this._.stylesDefinitions);else{var d=this,a=d.config.stylesCombo_stylesSet||d.config.stylesSet;if(a===false)b(null);else if(a instanceof Array){d._.stylesDefinitions=a;b(a)}else{a||(a="default");var a=a.split(":"),e=a[0];CKEDITOR.stylesSet.addExternal(e,a[1]?a.slice(1).join(":"):CKEDITOR.getUrl("styles.js"),"");CKEDITOR.stylesSet.load(e,function(a){d._.stylesDefinitions=a[e];b(d._.stylesDefinitions)})}}},CKEDITOR.dom.comment=function(b,d){typeof b=="string"&& (b=(d?d.$:document).createComment(b));CKEDITOR.dom.domObject.call(this,b)},CKEDITOR.dom.comment.prototype=new CKEDITOR.dom.node,CKEDITOR.tools.extend(CKEDITOR.dom.comment.prototype,{type:CKEDITOR.NODE_COMMENT,getOuterHtml:function(){return"<\!--"+this.$.nodeValue+"--\>"}}),function(){var b={},d;for(d in CKEDITOR.dtd.$blockLimit)d in CKEDITOR.dtd.$list||(b[d]=1);var a={};for(d in CKEDITOR.dtd.$block)d in CKEDITOR.dtd.$blockLimit||d in CKEDITOR.dtd.$empty||(a[d]=1);CKEDITOR.dom.elementPath=function(e, -d){var g=null,f=null,i=[],d=d||e.getDocument().getBody(),c=e;do if(c.type==CKEDITOR.NODE_ELEMENT){i.push(c);if(!this.lastElement){this.lastElement=c;if(c.is(CKEDITOR.dtd.$object))continue}var j=c.getName();if(!f){!g&&a[j]&&(g=c);if(b[j]){var l;if(l=!g){if(j=j=="div"){a:{j=c.getChildren();l=0;for(var m=j.count();l<m;l++){var n=j.getItem(l);if(n.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$block[n.getName()]){j=true;break a}}j=false}j=!j&&!c.equals(d)}l=j}l?g=c:f=c}}if(c.equals(d))break}while(c=c.getParent()); +d){var g=null,f=null,i=[],d=d||e.getDocument().getBody(),c=e;do if(c.type==CKEDITOR.NODE_ELEMENT){i.push(c);if(!this.lastElement){this.lastElement=c;if(c.is(CKEDITOR.dtd.$object))continue}var j=c.getName();if(!f){!g&&a[j]&&(g=c);if(b[j]){var k;if(k=!g){if(j=j=="div"){a:{j=c.getChildren();k=0;for(var l=j.count();k<l;k++){var n=j.getItem(k);if(n.type==CKEDITOR.NODE_ELEMENT&&CKEDITOR.dtd.$block[n.getName()]){j=true;break a}}j=false}j=!j&&!c.equals(d)}k=j}k?g=c:f=c}}if(c.equals(d))break}while(c=c.getParent()); this.block=g;this.blockLimit=f;this.root=d;this.elements=i}}(),CKEDITOR.dom.elementPath.prototype={compare:function(b){var d=this.elements,b=b&&b.elements;if(!b||d.length!=b.length)return false;for(var a=0;a<d.length;a++)if(!d[a].equals(b[a]))return false;return true},contains:function(b,d,a){var e;typeof b=="string"&&(e=function(a){return a.getName()==b});b instanceof CKEDITOR.dom.element?e=function(a){return a.equals(b)}:CKEDITOR.tools.isArray(b)?e=function(a){return CKEDITOR.tools.indexOf(b,a.getName())> -1}:typeof b=="function"?e=b:typeof b=="object"&&(e=function(a){return a.getName()in b});var h=this.elements,g=h.length;d&&g--;if(a){h=Array.prototype.slice.call(h,0);h.reverse()}for(d=0;d<g;d++)if(e(h[d]))return h[d];return null},isContextFor:function(b){var d;if(b in CKEDITOR.dtd.$block){d=this.contains(CKEDITOR.dtd.$intermediate)||this.root.equals(this.block)&&this.block||this.blockLimit;return!!d.getDtd()[b]}return true},direction:function(){return(this.block||this.blockLimit||this.root).getDirection(1)}}, CKEDITOR.dom.text=function(b,d){typeof b=="string"&&(b=(d?d.$:document).createTextNode(b));this.$=b},CKEDITOR.dom.text.prototype=new CKEDITOR.dom.node,CKEDITOR.tools.extend(CKEDITOR.dom.text.prototype,{type:CKEDITOR.NODE_TEXT,getLength:function(){return this.$.nodeValue.length},getText:function(){return this.$.nodeValue},setText:function(b){this.$.nodeValue=b},split:function(b){var d=this.$.parentNode,a=d.childNodes.length,e=this.getLength(),h=this.getDocument(),g=new CKEDITOR.dom.text(this.$.splitText(b), h);if(d.childNodes.length==a)if(b>=e){g=h.createText("");g.insertAfter(this)}else{b=h.createText("");b.insertAfter(g);b.remove()}return g},substring:function(b,d){return typeof d!="number"?this.$.nodeValue.substr(b):this.$.nodeValue.substring(b,d)}}),function(){function b(a,b,d){var g=a.serializable,f=b[d?"endContainer":"startContainer"],i=d?"endOffset":"startOffset",c=g?b.document.getById(a.startNode):a.startNode,a=g?b.document.getById(a.endNode):a.endNode;if(f.equals(c.getPrevious())){b.startOffset= b.startOffset-f.getLength()-a.getPrevious().getLength();f=a.getNext()}else if(f.equals(a.getPrevious())){b.startOffset=b.startOffset-f.getLength();f=a.getNext()}f.equals(c.getParent())&&b[i]++;f.equals(a.getParent())&&b[i]++;b[d?"endContainer":"startContainer"]=f;return b}CKEDITOR.dom.rangeList=function(a){if(a instanceof CKEDITOR.dom.rangeList)return a;a?a instanceof CKEDITOR.dom.range&&(a=[a]):a=[];return CKEDITOR.tools.extend(a,d)};var d={createIterator:function(){var a=this,b=CKEDITOR.dom.walker.bookmark(), -d=[],g;return{getNextRange:function(f){g=g==void 0?0:g+1;var i=a[g];if(i&&a.length>1){if(!g)for(var c=a.length-1;c>=0;c--)d.unshift(a[c].createBookmark(true));if(f)for(var j=0;a[g+j+1];){for(var l=i.document,f=0,c=l.getById(d[j].endNode),l=l.getById(d[j+1].startNode);;){c=c.getNextSourceNode(false);if(l.equals(c))f=1;else if(b(c)||c.type==CKEDITOR.NODE_ELEMENT&&c.isBlockBoundary())continue;break}if(!f)break;j++}for(i.moveToBookmark(d.shift());j--;){c=a[++g];c.moveToBookmark(d.shift());i.setEnd(c.endContainer, +d=[],g;return{getNextRange:function(f){g=g==void 0?0:g+1;var i=a[g];if(i&&a.length>1){if(!g)for(var c=a.length-1;c>=0;c--)d.unshift(a[c].createBookmark(true));if(f)for(var j=0;a[g+j+1];){for(var k=i.document,f=0,c=k.getById(d[j].endNode),k=k.getById(d[j+1].startNode);;){c=c.getNextSourceNode(false);if(k.equals(c))f=1;else if(b(c)||c.type==CKEDITOR.NODE_ELEMENT&&c.isBlockBoundary())continue;break}if(!f)break;j++}for(i.moveToBookmark(d.shift());j--;){c=a[++g];c.moveToBookmark(d.shift());i.setEnd(c.endContainer, c.endOffset)}}return i}}},createBookmarks:function(a){for(var e=[],d,g=0;g<this.length;g++){e.push(d=this[g].createBookmark(a,true));for(var f=g+1;f<this.length;f++){this[f]=b(d,this[f]);this[f]=b(d,this[f],true)}}return e},createBookmarks2:function(a){for(var b=[],d=0;d<this.length;d++)b.push(this[d].createBookmark2(a));return b},moveToBookmarks:function(a){for(var b=0;b<this.length;b++)this[b].moveToBookmark(a[b])}}}(),function(){function b(){return CKEDITOR.getUrl(CKEDITOR.skinName.split(",")[1]|| "skins/"+CKEDITOR.skinName.split(",")[0]+"/")}function d(a){var c=CKEDITOR.skin["ua_"+a],f=CKEDITOR.env;if(c)for(var c=c.split(",").sort(function(a,b){return a>b?-1:1}),e=0,d;e<c.length;e++){d=c[e];if(f.ie&&(d.replace(/^ie/,"")==f.version||f.quirks&&d=="iequirks"))d="ie";if(f[d]){a=a+("_"+c[e]);break}}return CKEDITOR.getUrl(b()+a+".css")}function a(a,b){if(!g[a]){CKEDITOR.document.appendStyleSheet(d(a));g[a]=1}b&&b()}function e(a){var b=a.getById(f);if(!b){b=a.getHead().append("style");b.setAttribute("id", f);b.setAttribute("type","text/css")}return b}function h(a,b,c){var f,e,d;if(CKEDITOR.env.webkit){b=b.split("}").slice(0,-1);for(e=0;e<b.length;e++)b[e]=b[e].split("{")}for(var g=0;g<a.length;g++)if(CKEDITOR.env.webkit)for(e=0;e<b.length;e++){d=b[e][1];for(f=0;f<c.length;f++)d=d.replace(c[f][0],c[f][1]);a[g].$.sheet.addRule(b[e][0],d)}else{d=b;for(f=0;f<c.length;f++)d=d.replace(c[f][0],c[f][1]);CKEDITOR.env.ie?a[g].$.styleSheet.cssText=a[g].$.styleSheet.cssText+d:a[g].$.innerHTML=a[g].$.innerHTML+ @@ -397,15 +398,15 @@ a,c,f,function(){var a=['<div class="cke_dialog_ui_input_',c.type,'" role="prese g.rows=c.rows||5;g.cols=c.cols||20;g["class"]="cke_dialog_ui_input_textarea "+(c["class"]||"");if(typeof c.inputStyle!="undefined")g.style=c.inputStyle;if(c.dir)g.dir=c.dir;CKEDITOR.ui.dialog.labeledElement.call(this,a,c,f,function(){g["aria-labelledby"]=this._.labelId;this._.required&&(g["aria-required"]=this._.required);var a=['<div class="cke_dialog_ui_input_textarea" role="presentation"><textarea id="',d,'" '],b;for(b in g)a.push(b+'="'+CKEDITOR.tools.htmlEncode(g[b])+'" ');a.push(">",CKEDITOR.tools.htmlEncode(e._["default"]), "</textarea></div>");return a.join("")})}},checkbox:function(a,c,e){if(!(arguments.length<3)){var d=b.call(this,c,{"default":!!c["default"]});if(c.validate)this.validate=c.validate;CKEDITOR.ui.dialog.uiElement.call(this,a,c,e,"span",null,null,function(){var b=CKEDITOR.tools.extend({},c,{id:c.id?c.id+"_checkbox":CKEDITOR.tools.getNextId()+"_checkbox"},true),e=[],g=CKEDITOR.tools.getNextId()+"_label",h={"class":"cke_dialog_ui_checkbox_input",type:"checkbox","aria-labelledby":g};f(b);if(c["default"])h.checked= "checked";if(typeof b.inputStyle!="undefined")b.style=b.inputStyle;d.checkbox=new CKEDITOR.ui.dialog.uiElement(a,b,e,"input",null,h);e.push(' <label id="',g,'" for="',h.id,'"'+(c.labelStyle?' style="'+c.labelStyle+'"':"")+">",CKEDITOR.tools.htmlEncode(c.label),"</label>");return e.join("")})}},radio:function(a,c,e){if(!(arguments.length<3)){b.call(this,c);if(!this._["default"])this._["default"]=this._.initValue=c.items[0][1];if(c.validate)this.validate=c.valdiate;var d=[],g=this;CKEDITOR.ui.dialog.labeledElement.call(this, -a,c,e,function(){for(var b=[],e=[],h=c.id?c.id+"_radio":CKEDITOR.tools.getNextId()+"_radio",j=0;j<c.items.length;j++){var r=c.items[j],q=r[2]!==void 0?r[2]:r[0],t=r[1]!==void 0?r[1]:r[0],z=CKEDITOR.tools.getNextId()+"_radio_input",x=z+"_label",z=CKEDITOR.tools.extend({},c,{id:z,title:null,type:null},true),q=CKEDITOR.tools.extend({},z,{title:q},true),u={type:"radio","class":"cke_dialog_ui_radio_input",name:h,value:t,"aria-labelledby":x},w=[];if(g._["default"]==t)u.checked="checked";f(z);f(q);if(typeof z.inputStyle!= -"undefined")z.style=z.inputStyle;d.push(new CKEDITOR.ui.dialog.uiElement(a,z,w,"input",null,u));w.push(" ");new CKEDITOR.ui.dialog.uiElement(a,q,w,"label",null,{id:x,"for":u.id},r[0]);b.push(w.join(""))}new CKEDITOR.ui.dialog.hbox(a,d,b,e);return e.join("")});this._.children=d}},button:function(a,c,f){if(arguments.length){typeof c=="function"&&(c=c(a.getParentEditor()));b.call(this,c,{disabled:c.disabled||false});CKEDITOR.event.implementOn(this);var e=this;a.on("load",function(){var a=this.getElement(); +a,c,e,function(){for(var b=[],e=[],h=c.id?c.id+"_radio":CKEDITOR.tools.getNextId()+"_radio",j=0;j<c.items.length;j++){var q=c.items[j],r=q[2]!==void 0?q[2]:q[0],t=q[1]!==void 0?q[1]:q[0],z=CKEDITOR.tools.getNextId()+"_radio_input",x=z+"_label",z=CKEDITOR.tools.extend({},c,{id:z,title:null,type:null},true),r=CKEDITOR.tools.extend({},z,{title:r},true),u={type:"radio","class":"cke_dialog_ui_radio_input",name:h,value:t,"aria-labelledby":x},w=[];if(g._["default"]==t)u.checked="checked";f(z);f(r);if(typeof z.inputStyle!= +"undefined")z.style=z.inputStyle;d.push(new CKEDITOR.ui.dialog.uiElement(a,z,w,"input",null,u));w.push(" ");new CKEDITOR.ui.dialog.uiElement(a,r,w,"label",null,{id:x,"for":u.id},q[0]);b.push(w.join(""))}new CKEDITOR.ui.dialog.hbox(a,d,b,e);return e.join("")});this._.children=d}},button:function(a,c,f){if(arguments.length){typeof c=="function"&&(c=c(a.getParentEditor()));b.call(this,c,{disabled:c.disabled||false});CKEDITOR.event.implementOn(this);var e=this;a.on("load",function(){var a=this.getElement(); (function(){a.on("click",e.click,e);a.on("keydown",function(a){if(a.data.getKeystroke()in{32:1}){e.click();a.data.preventDefault()}})})();a.unselectable()},this);var d=CKEDITOR.tools.extend({},c);delete d.style;var g=CKEDITOR.tools.getNextId()+"_label";CKEDITOR.ui.dialog.uiElement.call(this,a,d,f,"a",null,{style:c.style,href:"javascript:void(0)",title:c.label,hidefocus:"true","class":c["class"],role:"button","aria-labelledby":g},'<span id="'+g+'" class="cke_dialog_ui_button">'+CKEDITOR.tools.htmlEncode(c.label)+ "</span>")}},select:function(a,c,e){if(!(arguments.length<3)){var d=b.call(this,c);if(c.validate)this.validate=c.validate;d.inputId=CKEDITOR.tools.getNextId()+"_select";CKEDITOR.ui.dialog.labeledElement.call(this,a,c,e,function(){var b=CKEDITOR.tools.extend({},c,{id:c.id?c.id+"_select":CKEDITOR.tools.getNextId()+"_select"},true),e=[],g=[],h={id:d.inputId,"class":"cke_dialog_ui_input_select","aria-labelledby":this._.labelId};e.push('<div class="cke_dialog_ui_input_',c.type,'" role="presentation"'); -c.width&&e.push('style="width:'+c.width+'" ');e.push(">");if(c.size!=void 0)h.size=c.size;if(c.multiple!=void 0)h.multiple=c.multiple;f(b);for(var j=0,r;j<c.items.length&&(r=c.items[j]);j++)g.push('<option value="',CKEDITOR.tools.htmlEncode(r[1]!==void 0?r[1]:r[0]).replace(/"/g,"""),'" /> ',CKEDITOR.tools.htmlEncode(r[0]));if(typeof b.inputStyle!="undefined")b.style=b.inputStyle;d.select=new CKEDITOR.ui.dialog.uiElement(a,b,e,"select",null,h,g.join(""));e.push("</div>");return e.join("")})}}, +c.width&&e.push('style="width:'+c.width+'" ');e.push(">");if(c.size!=void 0)h.size=c.size;if(c.multiple!=void 0)h.multiple=c.multiple;f(b);for(var j=0,q;j<c.items.length&&(q=c.items[j]);j++)g.push('<option value="',CKEDITOR.tools.htmlEncode(q[1]!==void 0?q[1]:q[0]).replace(/"/g,"""),'" /> ',CKEDITOR.tools.htmlEncode(q[0]));if(typeof b.inputStyle!="undefined")b.style=b.inputStyle;d.select=new CKEDITOR.ui.dialog.uiElement(a,b,e,"select",null,h,g.join(""));e.push("</div>");return e.join("")})}}, file:function(a,c,f){if(!(arguments.length<3)){c["default"]===void 0&&(c["default"]="");var e=CKEDITOR.tools.extend(b.call(this,c),{definition:c,buttons:[]});if(c.validate)this.validate=c.validate;a.on("load",function(){CKEDITOR.document.getById(e.frameId).getParent().addClass("cke_dialog_ui_input_file")});CKEDITOR.ui.dialog.labeledElement.call(this,a,c,f,function(){e.frameId=CKEDITOR.tools.getNextId()+"_fileInput";var a=CKEDITOR.env.isCustomDomain(),b=['<iframe frameborder="0" allowtransparency="0" class="cke_dialog_ui_input_file" role="presentation" id="', e.frameId,'" title="',c.label,'" src="javascript:void('];b.push(a?"(function(){document.open();document.domain='"+document.domain+"';document.close();})()":"0");b.push(')"></iframe>');return b.join("")})}},fileButton:function(a,c,f){if(!(arguments.length<3)){b.call(this,c);var e=this;if(c.validate)this.validate=c.validate;var d=CKEDITOR.tools.extend({},c),g=d.onClick;d.className=(d.className?d.className+" ":"")+"cke_dialog_ui_button";d.onClick=function(b){var f=c["for"];if(!g||g.call(this,b)!==false){a.getContentElement(f[0], -f[1]).submit();this.disable()}};a.on("load",function(){a.getContentElement(c["for"][0],c["for"][1])._.buttons.push(e)});CKEDITOR.ui.dialog.button.call(this,a,d,f)}},html:function(){var a=/^\s*<[\w:]+\s+([^>]*)?>/,b=/^(\s*<[\w:]+(?:\s+[^>]*)?)((?:.|\r|\n)+)$/,f=/\/$/;return function(e,d,g){if(!(arguments.length<3)){var h=[],k=d.html;k.charAt(0)!="<"&&(k="<span>"+k+"</span>");var p=d.focus;if(p){var r=this.focus;this.focus=function(){(typeof p=="function"?p:r).call(this);this.fire("focus")};if(d.isFocusable)this.isFocusable= -this.isFocusable;this.keyboardFocusable=true}CKEDITOR.ui.dialog.uiElement.call(this,e,d,h,"span",null,null,"");h=h.join("").match(a);k=k.match(b)||["","",""];if(f.test(k[1])){k[1]=k[1].slice(0,-1);k[2]="/"+k[2]}g.push([k[1]," ",h[1]||"",k[2]].join(""))}}}(),fieldset:function(a,b,f,e,d){var g=d.label;this._={children:b};CKEDITOR.ui.dialog.uiElement.call(this,a,d,e,"fieldset",null,null,function(){var a=[];g&&a.push("<legend"+(d.labelStyle?' style="'+d.labelStyle+'"':"")+">"+g+"</legend>");for(var b= +f[1]).submit();this.disable()}};a.on("load",function(){a.getContentElement(c["for"][0],c["for"][1])._.buttons.push(e)});CKEDITOR.ui.dialog.button.call(this,a,d,f)}},html:function(){var a=/^\s*<[\w:]+\s+([^>]*)?>/,b=/^(\s*<[\w:]+(?:\s+[^>]*)?)((?:.|\r|\n)+)$/,f=/\/$/;return function(e,d,g){if(!(arguments.length<3)){var h=[],m=d.html;m.charAt(0)!="<"&&(m="<span>"+m+"</span>");var p=d.focus;if(p){var q=this.focus;this.focus=function(){(typeof p=="function"?p:q).call(this);this.fire("focus")};if(d.isFocusable)this.isFocusable= +this.isFocusable;this.keyboardFocusable=true}CKEDITOR.ui.dialog.uiElement.call(this,e,d,h,"span",null,null,"");h=h.join("").match(a);m=m.match(b)||["","",""];if(f.test(m[1])){m[1]=m[1].slice(0,-1);m[2]="/"+m[2]}g.push([m[1]," ",h[1]||"",m[2]].join(""))}}}(),fieldset:function(a,b,f,e,d){var g=d.label;this._={children:b};CKEDITOR.ui.dialog.uiElement.call(this,a,d,e,"fieldset",null,null,function(){var a=[];g&&a.push("<legend"+(d.labelStyle?' style="'+d.labelStyle+'"':"")+">"+g+"</legend>");for(var b= 0;b<f.length;b++)a.push(f[b]);return a.join("")})}},true);CKEDITOR.ui.dialog.html.prototype=new CKEDITOR.ui.dialog.uiElement;CKEDITOR.ui.dialog.labeledElement.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{setLabel:function(a){var b=CKEDITOR.document.getById(this._.labelId);b.getChildCount()<1?(new CKEDITOR.dom.text(a,CKEDITOR.document)).appendTo(b):b.getChild(0).$.nodeValue=a;return this},getLabel:function(){var a=CKEDITOR.document.getById(this._.labelId);return!a||a.getChildCount()< 1?"":a.getChild(0).getText()},eventProcessors:h},true);CKEDITOR.ui.dialog.button.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{click:function(){return!this._.disabled?this.fire("click",{dialog:this._.dialog}):false},enable:function(){this._.disabled=false;var a=this.getElement();a&&a.removeClass("cke_disabled")},disable:function(){this._.disabled=true;this.getElement().addClass("cke_disabled")},isVisible:function(){return this.getElement().getFirst().isVisible()},isEnabled:function(){return!this._.disabled}, eventProcessors:CKEDITOR.tools.extend({},CKEDITOR.ui.dialog.uiElement.prototype.eventProcessors,{onClick:function(a,b){this.on("click",function(){b.apply(this,arguments)})}},true),accessKeyUp:function(){this.click()},accessKeyDown:function(){this.focus()},keyboardFocusable:true},true);CKEDITOR.ui.dialog.textInput.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,{getInputElement:function(){return CKEDITOR.document.getById(this._.inputId)},focus:function(){var a=this.selectParentTab(); @@ -416,38 +417,38 @@ function(){var a=this._.checkbox.getElement();a.on("propertychange",function(b){ this._.children,b=0;b<a.length;b++)if(a[b].getElement().$.checked)return a[b].getValue();return null},accessKeyUp:function(){var a=this._.children,b;for(b=0;b<a.length;b++)if(a[b].getElement().$.checked){a[b].getElement().focus();return}a[0].getElement().focus()},eventProcessors:{onChange:function(a,b){if(CKEDITOR.env.ie){a.on("load",function(){for(var a=this._.children,b=this,c=0;c<a.length;c++)a[c].getElement().on("propertychange",function(a){a=a.data.$;a.propertyName=="checked"&&this.$.checked&& b.fire("change",{value:this.getAttribute("value")})})},this);this.on("change",b)}else return h.onChange.apply(this,arguments);return null}},keyboardFocusable:true},e,true);CKEDITOR.ui.dialog.file.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.labeledElement,e,{getInputElement:function(){var a=CKEDITOR.document.getById(this._.frameId).getFrameDocument();return a.$.forms.length>0?new CKEDITOR.dom.element(a.$.forms[0].elements[0]):this.getElement()},submit:function(){this.getInputElement().getParent().$.submit(); return this},getAction:function(){return this.getInputElement().getParent().$.action},registerEvents:function(a){var b=/^on([A-Z]\w+)/,f,e=function(a,b,c,f){a.on("formLoaded",function(){a.getInputElement().on(c,f,a)})},d;for(d in a)if(f=d.match(b))this.eventProcessors[d]?this.eventProcessors[d].call(this,this._.dialog,a[d]):e(this,this._.dialog,f[1].toLowerCase(),a[d]);return this},reset:function(){function a(){f.$.open();if(CKEDITOR.env.isCustomDomain())f.$.domain=document.domain;var i="";e.size&& -(i=e.size-(CKEDITOR.env.ie?7:0));var q=b.frameId+"_input";f.$.write(['<html dir="'+k+'" lang="'+p+'"><head><title></title></head><body style="margin: 0; overflow: hidden; background: transparent;">','<form enctype="multipart/form-data" method="POST" dir="'+k+'" lang="'+p+'" action="',CKEDITOR.tools.htmlEncode(e.action),'"><label id="',b.labelId,'" for="',q,'" style="display:none">',CKEDITOR.tools.htmlEncode(e.label),'</label><input id="',q,'" aria-labelledby="',b.labelId,'" type="file" name="',CKEDITOR.tools.htmlEncode(e.id|| -"cke_upload"),'" size="',CKEDITOR.tools.htmlEncode(i>0?i:""),'" /></form></body></html>',"<script>window.parent.CKEDITOR.tools.callFunction("+g+");","window.onbeforeunload = function() {window.parent.CKEDITOR.tools.callFunction("+h+")}<\/script>"].join(""));f.$.close();for(i=0;i<d.length;i++)d[i].enable()}var b=this._,f=CKEDITOR.document.getById(b.frameId).getFrameDocument(),e=b.definition,d=b.buttons,g=this.formLoadedNumber,h=this.formUnloadNumber,k=b.dialog._.editor.lang.dir,p=b.dialog._.editor.langCode; +(i=e.size-(CKEDITOR.env.ie?7:0));var r=b.frameId+"_input";f.$.write(['<html dir="'+m+'" lang="'+p+'"><head><title></title></head><body style="margin: 0; overflow: hidden; background: transparent;">','<form enctype="multipart/form-data" method="POST" dir="'+m+'" lang="'+p+'" action="',CKEDITOR.tools.htmlEncode(e.action),'"><label id="',b.labelId,'" for="',r,'" style="display:none">',CKEDITOR.tools.htmlEncode(e.label),'</label><input id="',r,'" aria-labelledby="',b.labelId,'" type="file" name="',CKEDITOR.tools.htmlEncode(e.id|| +"cke_upload"),'" size="',CKEDITOR.tools.htmlEncode(i>0?i:""),'" /></form></body></html>',"<script>window.parent.CKEDITOR.tools.callFunction("+g+");","window.onbeforeunload = function() {window.parent.CKEDITOR.tools.callFunction("+h+")}<\/script>"].join(""));f.$.close();for(i=0;i<d.length;i++)d[i].enable()}var b=this._,f=CKEDITOR.document.getById(b.frameId).getFrameDocument(),e=b.definition,d=b.buttons,g=this.formLoadedNumber,h=this.formUnloadNumber,m=b.dialog._.editor.lang.dir,p=b.dialog._.editor.langCode; if(!g){g=this.formLoadedNumber=CKEDITOR.tools.addFunction(function(){this.fire("formLoaded")},this);h=this.formUnloadNumber=CKEDITOR.tools.addFunction(function(){this.getInputElement().clearCustomData()},this);this.getDialog()._.editor.on("destroy",function(){CKEDITOR.tools.removeFunction(g);CKEDITOR.tools.removeFunction(h)})}CKEDITOR.env.gecko?setTimeout(a,500):a()},getValue:function(){return this.getInputElement().$.value||""},setInitValue:function(){this._.initValue=""},eventProcessors:{onChange:function(a, b){if(!this._.domOnChangeRegistered){this.on("formLoaded",function(){this.getInputElement().on("change",function(){this.fire("change",{value:this.getValue()})},this)},this);this._.domOnChangeRegistered=true}this.on("change",b)}},keyboardFocusable:true},true);CKEDITOR.ui.dialog.fileButton.prototype=new CKEDITOR.ui.dialog.button;CKEDITOR.ui.dialog.fieldset.prototype=CKEDITOR.tools.clone(CKEDITOR.ui.dialog.hbox.prototype);CKEDITOR.dialog.addUIElement("text",d);CKEDITOR.dialog.addUIElement("password", -d);CKEDITOR.dialog.addUIElement("textarea",a);CKEDITOR.dialog.addUIElement("checkbox",a);CKEDITOR.dialog.addUIElement("radio",a);CKEDITOR.dialog.addUIElement("button",a);CKEDITOR.dialog.addUIElement("select",a);CKEDITOR.dialog.addUIElement("file",a);CKEDITOR.dialog.addUIElement("fileButton",a);CKEDITOR.dialog.addUIElement("html",a);CKEDITOR.dialog.addUIElement("fieldset",{build:function(a,b,f){for(var e=b.children,d,g=[],h=[],k=0;k<e.length&&(d=e[k]);k++){var p=[];g.push(p);h.push(CKEDITOR.dialog._.uiElementBuilders[d.type].build(a, +d);CKEDITOR.dialog.addUIElement("textarea",a);CKEDITOR.dialog.addUIElement("checkbox",a);CKEDITOR.dialog.addUIElement("radio",a);CKEDITOR.dialog.addUIElement("button",a);CKEDITOR.dialog.addUIElement("select",a);CKEDITOR.dialog.addUIElement("file",a);CKEDITOR.dialog.addUIElement("fileButton",a);CKEDITOR.dialog.addUIElement("html",a);CKEDITOR.dialog.addUIElement("fieldset",{build:function(a,b,f){for(var e=b.children,d,g=[],h=[],m=0;m<e.length&&(d=e[m]);m++){var p=[];g.push(p);h.push(CKEDITOR.dialog._.uiElementBuilders[d.type].build(a, d,p))}return new CKEDITOR.ui.dialog[b.type](a,h,g,f,b)}})}}),CKEDITOR.DIALOG_RESIZE_NONE=0,CKEDITOR.DIALOG_RESIZE_WIDTH=1,CKEDITOR.DIALOG_RESIZE_HEIGHT=2,CKEDITOR.DIALOG_RESIZE_BOTH=3,function(){function b(){for(var a=this._.tabIdList.length,b=CKEDITOR.tools.indexOf(this._.tabIdList,this._.currentTabId)+a,c=b-1;c>b-a;c--)if(this._.tabs[this._.tabIdList[c%a]][0].$.offsetHeight)return this._.tabIdList[c%a];return null}function d(){for(var a=this._.tabIdList.length,b=CKEDITOR.tools.indexOf(this._.tabIdList, this._.currentTabId),c=b+1;c<b+a;c++)if(this._.tabs[this._.tabIdList[c%a]][0].$.offsetHeight)return this._.tabIdList[c%a];return null}function a(a,b){for(var c=a.$.getElementsByTagName("input"),f=0,e=c.length;f<e;f++){var d=new CKEDITOR.dom.element(c[f]);if(d.getAttribute("type").toLowerCase()=="text")if(b){d.setAttribute("value",d.getCustomData("fake_value")||"");d.removeCustomData("fake_value")}else{d.setCustomData("fake_value",d.getAttribute("value"));d.setAttribute("value","")}}}function e(a, b){var c=this.getInputElement();c&&(a?c.removeAttribute("aria-invalid"):c.setAttribute("aria-invalid",true));a||(this.select?this.select():this.focus());b&&alert(b);this.fire("validated",{valid:a,msg:b})}function h(){var a=this.getInputElement();a&&a.removeAttribute("aria-invalid")}function g(a){var a=CKEDITOR.dom.element.createFromHtml(CKEDITOR.addTemplate("dialog",p).output({id:CKEDITOR.tools.getNextNumber(),editorId:a.id,langDir:a.lang.dir,langCode:a.langCode,editorDialogClass:"cke_editor_"+a.name.replace(/\./g, "\\.")+"_dialog",closeTitle:a.lang.common.close})),b=a.getChild([0,0,0,0,0]),c=b.getChild(0),f=b.getChild(1);if(CKEDITOR.env.ie&&!CKEDITOR.env.ie6Compat){var e=CKEDITOR.env.isCustomDomain(),e="javascript:void(function(){"+encodeURIComponent("document.open();"+(e?'document.domain="'+document.domain+'";':"")+"document.close();")+"}())";CKEDITOR.dom.element.createFromHtml('<iframe frameBorder="0" class="cke_iframe_shim" src="'+e+'" tabIndex="-1"></iframe>').appendTo(b.getParent())}c.unselectable();f.unselectable(); return{element:a,parts:{dialog:a.getChild(0),title:c,close:f,tabs:b.getChild(2),contents:b.getChild([3,0,0,0]),footer:b.getChild([3,0,1,0])}}}function f(a,b,c){this.element=b;this.focusIndex=c;this.tabIndex=0;this.isFocusable=function(){return!b.getAttribute("disabled")&&b.isVisible()};this.focus=function(){a._.currentFocusIndex=this.focusIndex;this.element.focus()};b.on("keydown",function(a){a.data.getKeystroke()in{32:1,13:1}&&this.fire("click")});b.on("focus",function(){this.fire("mouseover")}); -b.on("blur",function(){this.fire("mouseout")})}function i(a){function b(){a.layout()}var c=CKEDITOR.document.getWindow();c.on("resize",b);a.on("hide",function(){c.removeListener("resize",b)})}function c(a,b){this._={dialog:a};CKEDITOR.tools.extend(this,b)}function j(a){function b(c){var h=a.getSize(),j=CKEDITOR.document.getWindow().getViewPaneSize(),k=c.data.$.screenX,l=c.data.$.screenY,q=k-f.x,p=l-f.y;f={x:k,y:l};e.x=e.x+q;e.y=e.y+p;a.move(e.x+i[3]<g?-i[3]:e.x-i[1]>j.width-h.width-g?j.width-h.width+ -(d.lang.dir=="rtl"?0:i[1]):e.x,e.y+i[0]<g?-i[0]:e.y-i[2]>j.height-h.height-g?j.height-h.height+i[2]:e.y,1);c.data.preventDefault()}function c(){CKEDITOR.document.removeListener("mousemove",b);CKEDITOR.document.removeListener("mouseup",c);if(CKEDITOR.env.ie6Compat){var a=s.getChild(0).getFrameDocument();a.removeListener("mousemove",b);a.removeListener("mouseup",c)}}var f=null,e=null;a.getElement().getFirst();var d=a.getParentEditor(),g=d.config.dialog_magnetDistance,i=CKEDITOR.skin.margins||[0,0,0, -0];typeof g=="undefined"&&(g=20);a.parts.title.on("mousedown",function(d){f={x:d.data.$.screenX,y:d.data.$.screenY};CKEDITOR.document.on("mousemove",b);CKEDITOR.document.on("mouseup",c);e=a.getPosition();if(CKEDITOR.env.ie6Compat){var g=s.getChild(0).getFrameDocument();g.on("mousemove",b);g.on("mouseup",c)}d.data.preventDefault()},a)}function l(a){var b,c;function f(e){var q=i.lang.dir=="rtl",p=l.width,r=l.height,m=p+(e.data.$.screenX-b)*(q?-1:1)*(a._.moved?1:2),o=r+(e.data.$.screenY-c)*(a._.moved? -1:2),t=a._.element.getFirst(),t=q&&t.getComputedStyle("right"),u=a.getPosition();u.y+o>k.height&&(o=k.height-u.y);if((q?t:u.x)+m>k.width)m=k.width-(q?t:u.x);if(g==CKEDITOR.DIALOG_RESIZE_WIDTH||g==CKEDITOR.DIALOG_RESIZE_BOTH)p=Math.max(d.minWidth||0,m-h);if(g==CKEDITOR.DIALOG_RESIZE_HEIGHT||g==CKEDITOR.DIALOG_RESIZE_BOTH)r=Math.max(d.minHeight||0,o-j);a.resize(p,r);a._.moved||a.layout();e.data.preventDefault()}function e(){CKEDITOR.document.removeListener("mouseup",e);CKEDITOR.document.removeListener("mousemove", -f);if(q){q.remove();q=null}if(CKEDITOR.env.ie6Compat){var a=s.getChild(0).getFrameDocument();a.removeListener("mouseup",e);a.removeListener("mousemove",f)}}var d=a.definition,g=d.resizable;if(g!=CKEDITOR.DIALOG_RESIZE_NONE){var i=a.getParentEditor(),h,j,k,l,q,p=CKEDITOR.tools.addFunction(function(d){l=a.getSize();var g=a.parts.contents;if(g.$.getElementsByTagName("iframe").length){q=CKEDITOR.dom.element.createFromHtml('<div class="cke_dialog_resize_cover" style="height: 100%; position: absolute; width: 100%;"></div>'); -g.append(q)}j=l.height-a.parts.contents.getSize("height",!(CKEDITOR.env.gecko||CKEDITOR.env.opera||CKEDITOR.env.ie&&CKEDITOR.env.quirks));h=l.width-a.parts.contents.getSize("width",1);b=d.screenX;c=d.screenY;k=CKEDITOR.document.getWindow().getViewPaneSize();CKEDITOR.document.on("mousemove",f);CKEDITOR.document.on("mouseup",e);if(CKEDITOR.env.ie6Compat){g=s.getChild(0).getFrameDocument();g.on("mousemove",f);g.on("mouseup",e)}d.preventDefault&&d.preventDefault()});a.on("load",function(){var b="";g== -CKEDITOR.DIALOG_RESIZE_WIDTH?b=" cke_resizer_horizontal":g==CKEDITOR.DIALOG_RESIZE_HEIGHT&&(b=" cke_resizer_vertical");b=CKEDITOR.dom.element.createFromHtml('<div class="cke_resizer'+b+" cke_resizer_"+i.lang.dir+'" title="'+CKEDITOR.tools.htmlEncode(i.lang.common.resize)+'" onmousedown="CKEDITOR.tools.callFunction('+p+', event )">'+(i.lang.dir=="ltr"?"â—¢":"â—£")+"</div>");a.parts.footer.append(b,1)});i.on("destroy",function(){CKEDITOR.tools.removeFunction(p)})}}function m(a){a.data.preventDefault(1)} -function n(a){var b=CKEDITOR.document.getWindow(),c=a.config,f=c.dialog_backgroundCoverColor||"white",e=c.dialog_backgroundCoverOpacity,d=c.baseFloatZIndex,c=CKEDITOR.tools.genKey(f,e,d),g=w[c];if(g)g.show();else{d=['<div tabIndex="-1" style="position: ',CKEDITOR.env.ie6Compat?"absolute":"fixed","; z-index: ",d,"; top: 0px; left: 0px; ",!CKEDITOR.env.ie6Compat?"background-color: "+f:"",'" class="cke_dialog_background_cover">'];if(CKEDITOR.env.ie6Compat){var i=CKEDITOR.env.isCustomDomain(),f="<html><body style=\\'background-color:"+ -f+";\\'></body></html>";d.push('<iframe hidefocus="true" frameborder="0" id="cke_dialog_background_iframe" src="javascript:');d.push("void((function(){document.open();"+(i?"document.domain='"+document.domain+"';":"")+"document.write( '"+f+"' );document.close();})())");d.push('" style="position:absolute;left:0;top:0;width:100%;height: 100%;filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0)"></iframe>')}d.push("</div>");g=CKEDITOR.dom.element.createFromHtml(d.join(""));g.setOpacity(e!=void 0? -e:0.5);g.on("keydown",m);g.on("keypress",m);g.on("keyup",m);g.appendTo(CKEDITOR.document.getBody());w[c]=g}a.focusManager.add(g);s=g;var a=function(){var a=b.getViewPaneSize();g.setStyles({width:a.width+"px",height:a.height+"px"})},h=function(){var a=b.getScrollPosition(),c=CKEDITOR.dialog._.currentTop;g.setStyles({left:a.x+"px",top:a.y+"px"});if(c){do{a=c.getPosition();c.move(a.x,a.y)}while(c=c._.parentDialog)}};u=a;b.on("resize",a);a();(!CKEDITOR.env.mac||!CKEDITOR.env.webkit)&&g.focus();if(CKEDITOR.env.ie6Compat){var j= -function(){h();arguments.callee.prevScrollHandler.apply(this,arguments)};b.$.setTimeout(function(){j.prevScrollHandler=window.onscroll||function(){};window.onscroll=j},0);h()}}function o(a){if(s){a.focusManager.remove(s);a=CKEDITOR.document.getWindow();s.hide();a.removeListener("resize",u);CKEDITOR.env.ie6Compat&&a.$.setTimeout(function(){window.onscroll=window.onscroll&&window.onscroll.prevScrollHandler||null},0);u=null}}var k=CKEDITOR.tools.cssLength,p='<div class="cke cke_reset_all {editorId} {editorDialogClass}" dir="{langDir}" lang="{langCode}" role="application"><table class="cke_dialog '+ +b.on("blur",function(){this.fire("mouseout")})}function i(a){function b(){a.layout()}var c=CKEDITOR.document.getWindow();c.on("resize",b);a.on("hide",function(){c.removeListener("resize",b)})}function c(a,b){this._={dialog:a};CKEDITOR.tools.extend(this,b)}function j(a){function b(c){var i=a.getSize(),j=CKEDITOR.document.getWindow().getViewPaneSize(),m=c.data.$.screenX,k=c.data.$.screenY,r=m-f.x,p=k-f.y;f={x:m,y:k};e.x=e.x+r;e.y=e.y+p;a.move(e.x+h[3]<g?-h[3]:e.x-h[1]>j.width-i.width-g?j.width-i.width+ +(d.lang.dir=="rtl"?0:h[1]):e.x,e.y+h[0]<g?-h[0]:e.y-h[2]>j.height-i.height-g?j.height-i.height+h[2]:e.y,1);c.data.preventDefault()}function c(){CKEDITOR.document.removeListener("mousemove",b);CKEDITOR.document.removeListener("mouseup",c);if(CKEDITOR.env.ie6Compat){var a=s.getChild(0).getFrameDocument();a.removeListener("mousemove",b);a.removeListener("mouseup",c)}}var f=null,e=null;a.getElement().getFirst();var d=a.getParentEditor(),g=d.config.dialog_magnetDistance,h=CKEDITOR.skin.margins||[0,0,0, +0];typeof g=="undefined"&&(g=20);a.parts.title.on("mousedown",function(d){f={x:d.data.$.screenX,y:d.data.$.screenY};CKEDITOR.document.on("mousemove",b);CKEDITOR.document.on("mouseup",c);e=a.getPosition();if(CKEDITOR.env.ie6Compat){var g=s.getChild(0).getFrameDocument();g.on("mousemove",b);g.on("mouseup",c)}d.data.preventDefault()},a)}function k(a){var b,c;function f(e){var r=h.lang.dir=="rtl",p=k.width,q=k.height,l=p+(e.data.$.screenX-b)*(r?-1:1)*(a._.moved?1:2),o=q+(e.data.$.screenY-c)*(a._.moved? +1:2),t=a._.element.getFirst(),t=r&&t.getComputedStyle("right"),u=a.getPosition();u.y+o>m.height&&(o=m.height-u.y);if((r?t:u.x)+l>m.width)l=m.width-(r?t:u.x);if(g==CKEDITOR.DIALOG_RESIZE_WIDTH||g==CKEDITOR.DIALOG_RESIZE_BOTH)p=Math.max(d.minWidth||0,l-i);if(g==CKEDITOR.DIALOG_RESIZE_HEIGHT||g==CKEDITOR.DIALOG_RESIZE_BOTH)q=Math.max(d.minHeight||0,o-j);a.resize(p,q);a._.moved||a.layout();e.data.preventDefault()}function e(){CKEDITOR.document.removeListener("mouseup",e);CKEDITOR.document.removeListener("mousemove", +f);if(r){r.remove();r=null}if(CKEDITOR.env.ie6Compat){var a=s.getChild(0).getFrameDocument();a.removeListener("mouseup",e);a.removeListener("mousemove",f)}}var d=a.definition,g=d.resizable;if(g!=CKEDITOR.DIALOG_RESIZE_NONE){var h=a.getParentEditor(),i,j,m,k,r,p=CKEDITOR.tools.addFunction(function(d){k=a.getSize();var g=a.parts.contents;if(g.$.getElementsByTagName("iframe").length){r=CKEDITOR.dom.element.createFromHtml('<div class="cke_dialog_resize_cover" style="height: 100%; position: absolute; width: 100%;"></div>'); +g.append(r)}j=k.height-a.parts.contents.getSize("height",!(CKEDITOR.env.gecko||CKEDITOR.env.opera||CKEDITOR.env.ie&&CKEDITOR.env.quirks));i=k.width-a.parts.contents.getSize("width",1);b=d.screenX;c=d.screenY;m=CKEDITOR.document.getWindow().getViewPaneSize();CKEDITOR.document.on("mousemove",f);CKEDITOR.document.on("mouseup",e);if(CKEDITOR.env.ie6Compat){g=s.getChild(0).getFrameDocument();g.on("mousemove",f);g.on("mouseup",e)}d.preventDefault&&d.preventDefault()});a.on("load",function(){var b="";g== +CKEDITOR.DIALOG_RESIZE_WIDTH?b=" cke_resizer_horizontal":g==CKEDITOR.DIALOG_RESIZE_HEIGHT&&(b=" cke_resizer_vertical");b=CKEDITOR.dom.element.createFromHtml('<div class="cke_resizer'+b+" cke_resizer_"+h.lang.dir+'" title="'+CKEDITOR.tools.htmlEncode(h.lang.common.resize)+'" onmousedown="CKEDITOR.tools.callFunction('+p+', event )">'+(h.lang.dir=="ltr"?"â—¢":"â—£")+"</div>");a.parts.footer.append(b,1)});h.on("destroy",function(){CKEDITOR.tools.removeFunction(p)})}}function l(a){a.data.preventDefault(1)} +function n(a){var b=CKEDITOR.document.getWindow(),c=a.config,f=c.dialog_backgroundCoverColor||"white",e=c.dialog_backgroundCoverOpacity,d=c.baseFloatZIndex,c=CKEDITOR.tools.genKey(f,e,d),g=w[c];if(g)g.show();else{d=['<div tabIndex="-1" style="position: ',CKEDITOR.env.ie6Compat?"absolute":"fixed","; z-index: ",d,"; top: 0px; left: 0px; ",!CKEDITOR.env.ie6Compat?"background-color: "+f:"",'" class="cke_dialog_background_cover">'];if(CKEDITOR.env.ie6Compat){var h=CKEDITOR.env.isCustomDomain(),f="<html><body style=\\'background-color:"+ +f+";\\'></body></html>";d.push('<iframe hidefocus="true" frameborder="0" id="cke_dialog_background_iframe" src="javascript:');d.push("void((function(){document.open();"+(h?"document.domain='"+document.domain+"';":"")+"document.write( '"+f+"' );document.close();})())");d.push('" style="position:absolute;left:0;top:0;width:100%;height: 100%;filter: progid:DXImageTransform.Microsoft.Alpha(opacity=0)"></iframe>')}d.push("</div>");g=CKEDITOR.dom.element.createFromHtml(d.join(""));g.setOpacity(e!=void 0? +e:0.5);g.on("keydown",l);g.on("keypress",l);g.on("keyup",l);g.appendTo(CKEDITOR.document.getBody());w[c]=g}a.focusManager.add(g);s=g;var a=function(){var a=b.getViewPaneSize();g.setStyles({width:a.width+"px",height:a.height+"px"})},i=function(){var a=b.getScrollPosition(),c=CKEDITOR.dialog._.currentTop;g.setStyles({left:a.x+"px",top:a.y+"px"});if(c){do{a=c.getPosition();c.move(a.x,a.y)}while(c=c._.parentDialog)}};u=a;b.on("resize",a);a();(!CKEDITOR.env.mac||!CKEDITOR.env.webkit)&&g.focus();if(CKEDITOR.env.ie6Compat){var j= +function(){i();arguments.callee.prevScrollHandler.apply(this,arguments)};b.$.setTimeout(function(){j.prevScrollHandler=window.onscroll||function(){};window.onscroll=j},0);i()}}function o(a){if(s){a.focusManager.remove(s);a=CKEDITOR.document.getWindow();s.hide();a.removeListener("resize",u);CKEDITOR.env.ie6Compat&&a.$.setTimeout(function(){window.onscroll=window.onscroll&&window.onscroll.prevScrollHandler||null},0);u=null}}var m=CKEDITOR.tools.cssLength,p='<div class="cke cke_reset_all {editorId} {editorDialogClass}" dir="{langDir}" lang="{langCode}" role="application"><table class="cke_dialog '+ CKEDITOR.env.cssClass+' cke_{langDir}" aria-labelledby="cke_dialog_title_{id}" style="position:absolute" role="dialog"><tr><td role="presentation"><div class="cke_dialog_body" role="presentation"><div id="cke_dialog_title_{id}" class="cke_dialog_title" role="presentation"></div><a id="cke_dialog_close_button_{id}" class="cke_dialog_close_button" href="javascript:void(0)" title="{closeTitle}" role="button"><span class="cke_label">X</span></a><div id="cke_dialog_tabs_{id}" class="cke_dialog_tabs" role="tablist"></div><table class="cke_dialog_contents" role="presentation"><tr><td id="cke_dialog_contents_{id}" class="cke_dialog_contents_body" role="presentation"></td></tr><tr><td id="cke_dialog_footer_{id}" class="cke_dialog_footer" role="presentation"></td></tr></table></div></td></tr></table></div>'; -CKEDITOR.dialog=function(a,c){function f(){var a=s._.focusList;a.sort(function(a,b){return a.tabIndex!=b.tabIndex?b.tabIndex-a.tabIndex:a.focusIndex-b.focusIndex});for(var b=a.length,c=0;c<b;c++)a[c].focusIndex=c}function i(a){var b=s._.focusList,a=a||0;if(!(b.length<1)){var c=s._.currentFocusIndex;try{b[c].getInputElement().$.blur()}catch(f){}for(var e=c=(c+a+b.length)%b.length;a&&!b[e].isFocusable();){e=(e+a+b.length)%b.length;if(e==c)break}b[e].focus();b[e].type=="text"&&b[e].select()}}function k(c){if(s== +CKEDITOR.dialog=function(a,c){function f(){var a=s._.focusList;a.sort(function(a,b){return a.tabIndex!=b.tabIndex?b.tabIndex-a.tabIndex:a.focusIndex-b.focusIndex});for(var b=a.length,c=0;c<b;c++)a[c].focusIndex=c}function i(a){var b=s._.focusList,a=a||0;if(!(b.length<1)){var c=s._.currentFocusIndex;try{b[c].getInputElement().$.blur()}catch(f){}for(var e=c=(c+a+b.length)%b.length;a&&!b[e].isFocusable();){e=(e+a+b.length)%b.length;if(e==c)break}b[e].focus();b[e].type=="text"&&b[e].select()}}function m(c){if(s== CKEDITOR.dialog._.currentTop){var f=c.data.getKeystroke(),e=a.lang.dir=="rtl";n=w=0;if(f==9||f==CKEDITOR.SHIFT+9){f=f==CKEDITOR.SHIFT+9;if(s._.tabBarMode){f=f?b.call(s):d.call(s);s.selectPage(f);s._.tabs[f][0].focus()}else i(f?-1:1);n=1}else if(f==CKEDITOR.ALT+121&&!s._.tabBarMode&&s.getPageCount()>1){s._.tabBarMode=true;s._.tabs[s._.currentTabId][0].focus();n=1}else if((f==37||f==39)&&s._.tabBarMode){f=f==(e?39:37)?b.call(s):d.call(s);s.selectPage(f);s._.tabs[f][0].focus();n=1}else if((f==13||f== -32)&&s._.tabBarMode){this.selectPage(this._.currentTabId);this._.tabBarMode=false;this._.currentFocusIndex=-1;i(1);n=1}else if(f==13){f=c.data.getTarget();if(!f.is("a","button","select","textarea")&&(!f.is("input")||f.$.type!="button")){(f=this.getButton("ok"))&&CKEDITOR.tools.setTimeout(f.click,0,f);n=1}w=1}else if(f==27){(f=this.getButton("cancel"))?CKEDITOR.tools.setTimeout(f.click,0,f):this.fire("cancel",{hide:true}).hide!==false&&this.hide();w=1}else return;q(c)}}function q(a){n?a.data.preventDefault(1): -w&&a.data.stopPropagation()}var p=CKEDITOR.dialog._.dialogDefinitions[c],m=CKEDITOR.tools.clone(r),o=a.config.dialog_buttonsOrder||"OS",t=a.lang.dir,u={},n,w;(o=="OS"&&CKEDITOR.env.mac||o=="rtl"&&t=="ltr"||o=="ltr"&&t=="rtl")&&m.buttons.reverse();p=CKEDITOR.tools.extend(p(a),m);p=CKEDITOR.tools.clone(p);p=new x(this,p);m=g(a);this._={editor:a,element:m.element,name:c,contentSize:{width:0,height:0},size:{width:0,height:0},contents:{},buttons:{},accessKeyMap:{},tabs:{},tabIdList:[],currentTabId:null, -currentTabIndex:null,pageCount:0,lastTab:null,tabBarMode:false,focusList:[],currentFocusIndex:0,hasFocus:false};this.parts=m.parts;CKEDITOR.tools.setTimeout(function(){a.fire("ariaWidget",this.parts.contents)},0,this);m={position:CKEDITOR.env.ie6Compat?"absolute":"fixed",top:0,visibility:"hidden"};m[t=="rtl"?"right":"left"]=0;this.parts.dialog.setStyles(m);CKEDITOR.event.call(this);this.definition=p=CKEDITOR.fire("dialogDefinition",{name:c,definition:p},a).definition;if(!("removeDialogTabs"in a._)&& -a.config.removeDialogTabs){m=a.config.removeDialogTabs.split(";");for(t=0;t<m.length;t++){o=m[t].split(":");if(o.length==2){var z=o[0];u[z]||(u[z]=[]);u[z].push(o[1])}}a._.removeDialogTabs=u}if(a._.removeDialogTabs&&(u=a._.removeDialogTabs[c]))for(t=0;t<u.length;t++)p.removeContents(u[t]);if(p.onLoad)this.on("load",p.onLoad);if(p.onShow)this.on("show",p.onShow);if(p.onHide)this.on("hide",p.onHide);if(p.onOk)this.on("ok",function(b){a.fire("saveSnapshot");setTimeout(function(){a.fire("saveSnapshot")}, +32)&&s._.tabBarMode){this.selectPage(this._.currentTabId);this._.tabBarMode=false;this._.currentFocusIndex=-1;i(1);n=1}else if(f==13){f=c.data.getTarget();if(!f.is("a","button","select","textarea")&&(!f.is("input")||f.$.type!="button")){(f=this.getButton("ok"))&&CKEDITOR.tools.setTimeout(f.click,0,f);n=1}w=1}else if(f==27){(f=this.getButton("cancel"))?CKEDITOR.tools.setTimeout(f.click,0,f):this.fire("cancel",{hide:true}).hide!==false&&this.hide();w=1}else return;r(c)}}function r(a){n?a.data.preventDefault(1): +w&&a.data.stopPropagation()}var p=CKEDITOR.dialog._.dialogDefinitions[c],l=CKEDITOR.tools.clone(q),o=a.config.dialog_buttonsOrder||"OS",t=a.lang.dir,u={},n,w;(o=="OS"&&CKEDITOR.env.mac||o=="rtl"&&t=="ltr"||o=="ltr"&&t=="rtl")&&l.buttons.reverse();p=CKEDITOR.tools.extend(p(a),l);p=CKEDITOR.tools.clone(p);p=new x(this,p);l=g(a);this._={editor:a,element:l.element,name:c,contentSize:{width:0,height:0},size:{width:0,height:0},contents:{},buttons:{},accessKeyMap:{},tabs:{},tabIdList:[],currentTabId:null, +currentTabIndex:null,pageCount:0,lastTab:null,tabBarMode:false,focusList:[],currentFocusIndex:0,hasFocus:false};this.parts=l.parts;CKEDITOR.tools.setTimeout(function(){a.fire("ariaWidget",this.parts.contents)},0,this);l={position:CKEDITOR.env.ie6Compat?"absolute":"fixed",top:0,visibility:"hidden"};l[t=="rtl"?"right":"left"]=0;this.parts.dialog.setStyles(l);CKEDITOR.event.call(this);this.definition=p=CKEDITOR.fire("dialogDefinition",{name:c,definition:p},a).definition;if(!("removeDialogTabs"in a._)&& +a.config.removeDialogTabs){l=a.config.removeDialogTabs.split(";");for(t=0;t<l.length;t++){o=l[t].split(":");if(o.length==2){var z=o[0];u[z]||(u[z]=[]);u[z].push(o[1])}}a._.removeDialogTabs=u}if(a._.removeDialogTabs&&(u=a._.removeDialogTabs[c]))for(t=0;t<u.length;t++)p.removeContents(u[t]);if(p.onLoad)this.on("load",p.onLoad);if(p.onShow)this.on("show",p.onShow);if(p.onHide)this.on("hide",p.onHide);if(p.onOk)this.on("ok",function(b){a.fire("saveSnapshot");setTimeout(function(){a.fire("saveSnapshot")}, 0);if(p.onOk.call(this,b)===false)b.data.hide=false});if(p.onCancel)this.on("cancel",function(a){if(p.onCancel.call(this,a)===false)a.data.hide=false});var s=this,A=function(a){var b=s._.contents,c=false,f;for(f in b)for(var e in b[f])if(c=a.call(this,b[f][e]))return};this.on("ok",function(a){A(function(b){if(b.validate){var c=b.validate(this),f=typeof c=="string"||c===false;if(f){a.data.hide=false;a.stop()}e.call(b,!f,typeof c=="string"?c:void 0);return f}})},this,null,0);this.on("cancel",function(b){A(function(c){if(c.isChanged()){if(!confirm(a.lang.common.confirmCancel))b.data.hide= -false;return true}})},this,null,0);this.parts.close.on("click",function(a){this.fire("cancel",{hide:true}).hide!==false&&this.hide();a.data.preventDefault()},this);this.changeFocus=i;var v=this._.element;a.focusManager.add(v,1);this.on("show",function(){v.on("keydown",k,this);if(CKEDITOR.env.opera||CKEDITOR.env.gecko)v.on("keypress",q,this)});this.on("hide",function(){v.removeListener("keydown",k);(CKEDITOR.env.opera||CKEDITOR.env.gecko)&&v.removeListener("keypress",q);A(function(a){h.apply(a)})}); -this.on("iframeAdded",function(a){(new CKEDITOR.dom.document(a.data.iframe.$.contentWindow.document)).on("keydown",k,this,null,0)});this.on("show",function(){f();if(a.config.dialog_startupFocusTab&&s._.pageCount>1){s._.tabBarMode=true;s._.tabs[s._.currentTabId][0].focus()}else if(!this._.hasFocus){this._.currentFocusIndex=-1;if(p.onFocus){var b=p.onFocus.call(this);b&&b.focus()}else i(1)}},this,null,4294967295);if(CKEDITOR.env.ie6Compat)this.on("load",function(){var a=this.getElement(),b=a.getFirst(); -b.remove();b.appendTo(a)},this);j(this);l(this);(new CKEDITOR.dom.text(p.title,CKEDITOR.document)).appendTo(this.parts.title);for(t=0;t<p.contents.length;t++)(u=p.contents[t])&&this.addPage(u);this.parts.tabs.on("click",function(a){var b=a.data.getTarget();if(b.hasClass("cke_dialog_tab")){b=b.$.id;this.selectPage(b.substring(4,b.lastIndexOf("_")));if(this._.tabBarMode){this._.tabBarMode=false;this._.currentFocusIndex=-1;i(1)}a.data.preventDefault()}},this);t=[];u=CKEDITOR.dialog._.uiElementBuilders.hbox.build(this, +false;return true}})},this,null,0);this.parts.close.on("click",function(a){this.fire("cancel",{hide:true}).hide!==false&&this.hide();a.data.preventDefault()},this);this.changeFocus=i;var v=this._.element;a.focusManager.add(v,1);this.on("show",function(){v.on("keydown",m,this);if(CKEDITOR.env.opera||CKEDITOR.env.gecko)v.on("keypress",r,this)});this.on("hide",function(){v.removeListener("keydown",m);(CKEDITOR.env.opera||CKEDITOR.env.gecko)&&v.removeListener("keypress",r);A(function(a){h.apply(a)})}); +this.on("iframeAdded",function(a){(new CKEDITOR.dom.document(a.data.iframe.$.contentWindow.document)).on("keydown",m,this,null,0)});this.on("show",function(){f();if(a.config.dialog_startupFocusTab&&s._.pageCount>1){s._.tabBarMode=true;s._.tabs[s._.currentTabId][0].focus()}else if(!this._.hasFocus){this._.currentFocusIndex=-1;if(p.onFocus){var b=p.onFocus.call(this);b&&b.focus()}else i(1)}},this,null,4294967295);if(CKEDITOR.env.ie6Compat)this.on("load",function(){var a=this.getElement(),b=a.getFirst(); +b.remove();b.appendTo(a)},this);j(this);k(this);(new CKEDITOR.dom.text(p.title,CKEDITOR.document)).appendTo(this.parts.title);for(t=0;t<p.contents.length;t++)(u=p.contents[t])&&this.addPage(u);this.parts.tabs.on("click",function(a){var b=a.data.getTarget();if(b.hasClass("cke_dialog_tab")){b=b.$.id;this.selectPage(b.substring(4,b.lastIndexOf("_")));if(this._.tabBarMode){this._.tabBarMode=false;this._.currentFocusIndex=-1;i(1)}a.data.preventDefault()}},this);t=[];u=CKEDITOR.dialog._.uiElementBuilders.hbox.build(this, {type:"hbox",className:"cke_dialog_footer_buttons",widths:[],children:p.buttons},t).getChild();this.parts.footer.setHtml(t.join(""));for(t=0;t<u.length;t++)this._.buttons[u[t].id]=u[t]};CKEDITOR.dialog.prototype={destroy:function(){this.hide();this._.element.remove()},resize:function(){return function(a,b){if(!this._.contentSize||!(this._.contentSize.width==a&&this._.contentSize.height==b)){CKEDITOR.dialog.fire("resize",{dialog:this,width:a,height:b},this._.editor);this.fire("resize",{width:a,height:b}, this._.editor);this.parts.contents.setStyles({width:a+"px",height:b+"px"});if(this._.editor.lang.dir=="rtl"&&this._.position)this._.position.x=CKEDITOR.document.getWindow().getViewPaneSize().width-this._.contentSize.width-parseInt(this._.element.getFirst().getStyle("right"),10);this._.contentSize={width:a,height:b}}}}(),getSize:function(){var a=this._.element.getFirst();return{width:a.$.offsetWidth||0,height:a.$.offsetHeight||0}},move:function(a,b,c){var f=this._.element.getFirst(),e=this._.editor.lang.dir== "rtl",d=f.getComputedStyle("position")=="fixed";CKEDITOR.env.ie&&f.setStyle("zoom","100%");if(!d||!this._.position||!(this._.position.x==a&&this._.position.y==b)){this._.position={x:a,y:b};if(!d){d=CKEDITOR.document.getWindow().getScrollPosition();a=a+d.x;b=b+d.y}if(e){d=this.getSize();a=CKEDITOR.document.getWindow().getViewPaneSize().width-d.width-a}b={top:(b>0?b:0)+"px"};b[e?"right":"left"]=(a>0?a:0)+"px";f.setStyles(b);c&&(this._.moved=1)}},getPosition:function(){return CKEDITOR.tools.extend({}, @@ -466,20 +467,20 @@ this.updateStyle()}},showPage:function(a){if(a=this._.tabs[a]&&this._.tabs[a][0] disableButton:function(a){return this._.buttons[a].disable()},enableButton:function(a){return this._.buttons[a].enable()},getPageCount:function(){return this._.pageCount},getParentEditor:function(){return this._.editor},getSelectedElement:function(){return this.getParentEditor().getSelection().getSelectedElement()},addFocusable:function(a,b){if(typeof b=="undefined"){b=this._.focusList.length;this._.focusList.push(new f(this,a,b))}else{this._.focusList.splice(b,0,new f(this,a,b));for(var c=b+1;c< this._.focusList.length;c++)this._.focusList[c].focusIndex++}}};CKEDITOR.tools.extend(CKEDITOR.dialog,{add:function(a,b){if(!this._.dialogDefinitions[a]||typeof b=="function")this._.dialogDefinitions[a]=b},exists:function(a){return!!this._.dialogDefinitions[a]},getCurrent:function(){return CKEDITOR.dialog._.currentTop},isTabEnabled:function(a,b,c){a=a.config.removeDialogTabs;return!(a&&a.match(RegExp("(?:^|;)"+b+":"+c+"(?:$|;)","i")))},okButton:function(){var a=function(a,b){b=b||{};return CKEDITOR.tools.extend({id:"ok", type:"button",label:a.lang.common.ok,"class":"cke_dialog_ui_button_ok",onClick:function(a){a=a.data.dialog;a.fire("ok",{hide:true}).hide!==false&&a.hide()}},b,true)};a.type="button";a.override=function(b){return CKEDITOR.tools.extend(function(c){return a(c,b)},{type:"button"},true)};return a}(),cancelButton:function(){var a=function(a,b){b=b||{};return CKEDITOR.tools.extend({id:"cancel",type:"button",label:a.lang.common.cancel,"class":"cke_dialog_ui_button_cancel",onClick:function(a){a=a.data.dialog; -a.fire("cancel",{hide:true}).hide!==false&&a.hide()}},b,true)};a.type="button";a.override=function(b){return CKEDITOR.tools.extend(function(c){return a(c,b)},{type:"button"},true)};return a}(),addUIElement:function(a,b){this._.uiElementBuilders[a]=b}});CKEDITOR.dialog._={uiElementBuilders:{},dialogDefinitions:{},currentTop:null,currentZIndex:null};CKEDITOR.event.implementOn(CKEDITOR.dialog);CKEDITOR.event.implementOn(CKEDITOR.dialog.prototype);var r={resizable:CKEDITOR.DIALOG_RESIZE_BOTH,minWidth:600, -minHeight:400,buttons:[CKEDITOR.dialog.okButton,CKEDITOR.dialog.cancelButton]},q=function(a,b,c){for(var f=0,e;e=a[f];f++){if(e.id==b)return e;if(c&&e[c])if(e=q(e[c],b,c))return e}return null},t=function(a,b,c,f,e){if(c){for(var d=0,g;g=a[d];d++){if(g.id==c){a.splice(d,0,b);return b}if(f&&g[f])if(g=t(g[f],b,c,f,true))return g}if(e)return null}a.push(b);return b},z=function(a,b,c){for(var f=0,e;e=a[f];f++){if(e.id==b)return a.splice(f,1);if(c&&e[c])if(e=z(e[c],b,c))return e}return null},x=function(a, -b){this.dialog=a;for(var f=b.contents,e=0,d;d=f[e];e++)f[e]=d&&new c(a,d);CKEDITOR.tools.extend(this,b)};x.prototype={getContents:function(a){return q(this.contents,a)},getButton:function(a){return q(this.buttons,a)},addContents:function(a,b){return t(this.contents,a,b)},addButton:function(a,b){return t(this.buttons,a,b)},removeContents:function(a){z(this.contents,a)},removeButton:function(a){z(this.buttons,a)}};c.prototype={get:function(a){return q(this.elements,a,"children")},add:function(a,b){return t(this.elements, +a.fire("cancel",{hide:true}).hide!==false&&a.hide()}},b,true)};a.type="button";a.override=function(b){return CKEDITOR.tools.extend(function(c){return a(c,b)},{type:"button"},true)};return a}(),addUIElement:function(a,b){this._.uiElementBuilders[a]=b}});CKEDITOR.dialog._={uiElementBuilders:{},dialogDefinitions:{},currentTop:null,currentZIndex:null};CKEDITOR.event.implementOn(CKEDITOR.dialog);CKEDITOR.event.implementOn(CKEDITOR.dialog.prototype);var q={resizable:CKEDITOR.DIALOG_RESIZE_BOTH,minWidth:600, +minHeight:400,buttons:[CKEDITOR.dialog.okButton,CKEDITOR.dialog.cancelButton]},r=function(a,b,c){for(var f=0,e;e=a[f];f++){if(e.id==b)return e;if(c&&e[c])if(e=r(e[c],b,c))return e}return null},t=function(a,b,c,f,e){if(c){for(var d=0,g;g=a[d];d++){if(g.id==c){a.splice(d,0,b);return b}if(f&&g[f])if(g=t(g[f],b,c,f,true))return g}if(e)return null}a.push(b);return b},z=function(a,b,c){for(var f=0,e;e=a[f];f++){if(e.id==b)return a.splice(f,1);if(c&&e[c])if(e=z(e[c],b,c))return e}return null},x=function(a, +b){this.dialog=a;for(var f=b.contents,e=0,d;d=f[e];e++)f[e]=d&&new c(a,d);CKEDITOR.tools.extend(this,b)};x.prototype={getContents:function(a){return r(this.contents,a)},getButton:function(a){return r(this.buttons,a)},addContents:function(a,b){return t(this.contents,a,b)},addButton:function(a,b){return t(this.buttons,a,b)},removeContents:function(a){z(this.contents,a)},removeButton:function(a){z(this.buttons,a)}};c.prototype={get:function(a){return r(this.elements,a,"children")},add:function(a,b){return t(this.elements, a,b,"children")},remove:function(a){z(this.elements,a,"children")}};var u,w={},s,v={},A=function(a){var b=a.data.$.ctrlKey||a.data.$.metaKey,c=a.data.$.altKey,f=a.data.$.shiftKey,e=String.fromCharCode(a.data.$.keyCode);if((b=v[(b?"CTRL+":"")+(c?"ALT+":"")+(f?"SHIFT+":"")+e])&&b.length){b=b[b.length-1];b.keydown&&b.keydown.call(b.uiElement,b.dialog,b.key);a.data.preventDefault()}},B=function(a){var b=a.data.$.ctrlKey||a.data.$.metaKey,c=a.data.$.altKey,f=a.data.$.shiftKey,e=String.fromCharCode(a.data.$.keyCode); if((b=v[(b?"CTRL+":"")+(c?"ALT+":"")+(f?"SHIFT+":"")+e])&&b.length){b=b[b.length-1];if(b.keyup){b.keyup.call(b.uiElement,b.dialog,b.key);a.data.preventDefault()}}},y=function(a,b,c,f,e){(v[c]||(v[c]=[])).push({uiElement:a,dialog:b,key:c,keyup:e||a.accessKeyUp,keydown:f||a.accessKeyDown})},C=function(a){for(var b in v){for(var c=v[b],f=c.length-1;f>=0;f--)(c[f].dialog==a||c[f].uiElement==a)&&c.splice(f,1);c.length===0&&delete v[b]}},D=function(a,b){a._.accessKeyMap[b]&&a.selectPage(a._.accessKeyMap[b])}, -F=function(){};(function(){CKEDITOR.ui.dialog={uiElement:function(a,b,c,f,e,d,g){if(!(arguments.length<4)){var i=(f.call?f(b):f)||"div",h=["<",i," "],j=(e&&e.call?e(b):e)||{},k=(d&&d.call?d(b):d)||{},l=(g&&g.call?g.call(this,a,b):g)||"",q=this.domId=k.id||CKEDITOR.tools.getNextId()+"_uiElement";this.id=b.id;if(b.requiredContent&&!a.getParentEditor().filter.check(b.requiredContent)){j.display="none";this.notAllowed=true}k.id=q;var p={};b.type&&(p["cke_dialog_ui_"+b.type]=1);b.className&&(p[b.className]= -1);b.disabled&&(p.cke_disabled=1);for(var r=k["class"]&&k["class"].split?k["class"].split(" "):[],q=0;q<r.length;q++)r[q]&&(p[r[q]]=1);r=[];for(q in p)r.push(q);k["class"]=r.join(" ");if(b.title)k.title=b.title;p=(b.style||"").split(";");if(b.align){r=b.align;j["margin-left"]=r=="left"?0:"auto";j["margin-right"]=r=="right"?0:"auto"}for(q in j)p.push(q+":"+j[q]);b.hidden&&p.push("display:none");for(q=p.length-1;q>=0;q--)p[q]===""&&p.splice(q,1);if(p.length>0)k.style=(k.style?k.style+"; ":"")+p.join("; "); -for(q in k)h.push(q+'="'+CKEDITOR.tools.htmlEncode(k[q])+'" ');h.push(">",l,"</",i,">");c.push(h.join(""));(this._||(this._={})).dialog=a;if(typeof b.isChanged=="boolean")this.isChanged=function(){return b.isChanged};if(typeof b.isChanged=="function")this.isChanged=b.isChanged;if(typeof b.setValue=="function")this.setValue=CKEDITOR.tools.override(this.setValue,function(a){return function(c){a.call(this,b.setValue.call(this,c))}});if(typeof b.getValue=="function")this.getValue=CKEDITOR.tools.override(this.getValue, -function(a){return function(){return b.getValue.call(this,a.call(this))}});CKEDITOR.event.implementOn(this);this.registerEvents(b);this.accessKeyUp&&(this.accessKeyDown&&b.accessKey)&&y(this,a,"CTRL+"+b.accessKey);var m=this;a.on("load",function(){var b=m.getInputElement();if(b){var c=m.type in{checkbox:1,ratio:1}&&CKEDITOR.env.ie&&CKEDITOR.env.version<8?"cke_dialog_ui_focused":"";b.on("focus",function(){a._.tabBarMode=false;a._.hasFocus=true;m.fire("focus");c&&this.addClass(c)});b.on("blur",function(){m.fire("blur"); -c&&this.removeClass(c)})}});if(this.keyboardFocusable){this.tabIndex=b.tabIndex||0;this.focusIndex=a._.focusList.push(this)-1;this.on("focus",function(){a._.currentFocusIndex=m.focusIndex})}CKEDITOR.tools.extend(this,b)}},hbox:function(a,b,c,f,e){if(!(arguments.length<4)){this._||(this._={});var d=this._.children=b,g=e&&e.widths||null,i=e&&e.height||null,h,j={role:"presentation"};e&&e.align&&(j.align=e.align);CKEDITOR.ui.dialog.uiElement.call(this,a,e||{type:"hbox"},f,"table",{},j,function(){var a= -['<tbody><tr class="cke_dialog_ui_hbox">'];for(h=0;h<c.length;h++){var b="cke_dialog_ui_hbox_child",f=[];h===0&&(b="cke_dialog_ui_hbox_first");h==c.length-1&&(b="cke_dialog_ui_hbox_last");a.push('<td class="',b,'" role="presentation" ');g?g[h]&&f.push("width:"+k(g[h])):f.push("width:"+Math.floor(100/c.length)+"%");i&&f.push("height:"+k(i));e&&e.padding!=void 0&&f.push("padding:"+k(e.padding));CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&d[h].align)&&f.push("text-align:"+d[h].align);f.length>0&&a.push('style="'+ -f.join("; ")+'" ');a.push(">",c[h],"</td>")}a.push("</tr></tbody>");return a.join("")})}},vbox:function(a,b,c,f,e){if(!(arguments.length<3)){this._||(this._={});var d=this._.children=b,g=e&&e.width||null,i=e&&e.heights||null;CKEDITOR.ui.dialog.uiElement.call(this,a,e||{type:"vbox"},f,"div",null,{role:"presentation"},function(){var b=['<table role="presentation" cellspacing="0" border="0" '];b.push('style="');e&&e.expand&&b.push("height:100%;");b.push("width:"+k(g||"100%"),";");CKEDITOR.env.webkit&& -b.push("float:none;");b.push('"');b.push('align="',CKEDITOR.tools.htmlEncode(e&&e.align||(a.getParentEditor().lang.dir=="ltr"?"left":"right")),'" ');b.push("><tbody>");for(var f=0;f<c.length;f++){var h=[];b.push('<tr><td role="presentation" ');g&&h.push("width:"+k(g||"100%"));i?h.push("height:"+k(i[f])):e&&e.expand&&h.push("height:"+Math.floor(100/c.length)+"%");e&&e.padding!=void 0&&h.push("padding:"+k(e.padding));CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&d[f].align)&&h.push("text-align:"+d[f].align); -h.length>0&&b.push('style="',h.join("; "),'" ');b.push(' class="cke_dialog_ui_vbox_child">',c[f],"</td></tr>")}b.push("</tbody></table>");return b.join("")})}}}})();CKEDITOR.ui.dialog.uiElement.prototype={getElement:function(){return CKEDITOR.document.getById(this.domId)},getInputElement:function(){return this.getElement()},getDialog:function(){return this._.dialog},setValue:function(a,b){this.getInputElement().setValue(a);!b&&this.fire("change",{value:a});return this},getValue:function(){return this.getInputElement().getValue()}, +F=function(){};(function(){CKEDITOR.ui.dialog={uiElement:function(a,b,c,f,e,d,g){if(!(arguments.length<4)){var h=(f.call?f(b):f)||"div",i=["<",h," "],j=(e&&e.call?e(b):e)||{},m=(d&&d.call?d(b):d)||{},k=(g&&g.call?g.call(this,a,b):g)||"",r=this.domId=m.id||CKEDITOR.tools.getNextId()+"_uiElement";this.id=b.id;if(b.requiredContent&&!a.getParentEditor().filter.check(b.requiredContent)){j.display="none";this.notAllowed=true}m.id=r;var p={};b.type&&(p["cke_dialog_ui_"+b.type]=1);b.className&&(p[b.className]= +1);b.disabled&&(p.cke_disabled=1);for(var q=m["class"]&&m["class"].split?m["class"].split(" "):[],r=0;r<q.length;r++)q[r]&&(p[q[r]]=1);q=[];for(r in p)q.push(r);m["class"]=q.join(" ");if(b.title)m.title=b.title;p=(b.style||"").split(";");if(b.align){q=b.align;j["margin-left"]=q=="left"?0:"auto";j["margin-right"]=q=="right"?0:"auto"}for(r in j)p.push(r+":"+j[r]);b.hidden&&p.push("display:none");for(r=p.length-1;r>=0;r--)p[r]===""&&p.splice(r,1);if(p.length>0)m.style=(m.style?m.style+"; ":"")+p.join("; "); +for(r in m)i.push(r+'="'+CKEDITOR.tools.htmlEncode(m[r])+'" ');i.push(">",k,"</",h,">");c.push(i.join(""));(this._||(this._={})).dialog=a;if(typeof b.isChanged=="boolean")this.isChanged=function(){return b.isChanged};if(typeof b.isChanged=="function")this.isChanged=b.isChanged;if(typeof b.setValue=="function")this.setValue=CKEDITOR.tools.override(this.setValue,function(a){return function(c){a.call(this,b.setValue.call(this,c))}});if(typeof b.getValue=="function")this.getValue=CKEDITOR.tools.override(this.getValue, +function(a){return function(){return b.getValue.call(this,a.call(this))}});CKEDITOR.event.implementOn(this);this.registerEvents(b);this.accessKeyUp&&(this.accessKeyDown&&b.accessKey)&&y(this,a,"CTRL+"+b.accessKey);var l=this;a.on("load",function(){var b=l.getInputElement();if(b){var c=l.type in{checkbox:1,ratio:1}&&CKEDITOR.env.ie&&CKEDITOR.env.version<8?"cke_dialog_ui_focused":"";b.on("focus",function(){a._.tabBarMode=false;a._.hasFocus=true;l.fire("focus");c&&this.addClass(c)});b.on("blur",function(){l.fire("blur"); +c&&this.removeClass(c)})}});if(this.keyboardFocusable){this.tabIndex=b.tabIndex||0;this.focusIndex=a._.focusList.push(this)-1;this.on("focus",function(){a._.currentFocusIndex=l.focusIndex})}CKEDITOR.tools.extend(this,b)}},hbox:function(a,b,c,f,e){if(!(arguments.length<4)){this._||(this._={});var d=this._.children=b,g=e&&e.widths||null,h=e&&e.height||null,i,j={role:"presentation"};e&&e.align&&(j.align=e.align);CKEDITOR.ui.dialog.uiElement.call(this,a,e||{type:"hbox"},f,"table",{},j,function(){var a= +['<tbody><tr class="cke_dialog_ui_hbox">'];for(i=0;i<c.length;i++){var b="cke_dialog_ui_hbox_child",f=[];i===0&&(b="cke_dialog_ui_hbox_first");i==c.length-1&&(b="cke_dialog_ui_hbox_last");a.push('<td class="',b,'" role="presentation" ');g?g[i]&&f.push("width:"+m(g[i])):f.push("width:"+Math.floor(100/c.length)+"%");h&&f.push("height:"+m(h));e&&e.padding!=void 0&&f.push("padding:"+m(e.padding));CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&d[i].align)&&f.push("text-align:"+d[i].align);f.length>0&&a.push('style="'+ +f.join("; ")+'" ');a.push(">",c[i],"</td>")}a.push("</tr></tbody>");return a.join("")})}},vbox:function(a,b,c,f,e){if(!(arguments.length<3)){this._||(this._={});var d=this._.children=b,g=e&&e.width||null,h=e&&e.heights||null;CKEDITOR.ui.dialog.uiElement.call(this,a,e||{type:"vbox"},f,"div",null,{role:"presentation"},function(){var b=['<table role="presentation" cellspacing="0" border="0" '];b.push('style="');e&&e.expand&&b.push("height:100%;");b.push("width:"+m(g||"100%"),";");CKEDITOR.env.webkit&& +b.push("float:none;");b.push('"');b.push('align="',CKEDITOR.tools.htmlEncode(e&&e.align||(a.getParentEditor().lang.dir=="ltr"?"left":"right")),'" ');b.push("><tbody>");for(var f=0;f<c.length;f++){var i=[];b.push('<tr><td role="presentation" ');g&&i.push("width:"+m(g||"100%"));h?i.push("height:"+m(h[f])):e&&e.expand&&i.push("height:"+Math.floor(100/c.length)+"%");e&&e.padding!=void 0&&i.push("padding:"+m(e.padding));CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&d[f].align)&&i.push("text-align:"+d[f].align); +i.length>0&&b.push('style="',i.join("; "),'" ');b.push(' class="cke_dialog_ui_vbox_child">',c[f],"</td></tr>")}b.push("</tbody></table>");return b.join("")})}}}})();CKEDITOR.ui.dialog.uiElement.prototype={getElement:function(){return CKEDITOR.document.getById(this.domId)},getInputElement:function(){return this.getElement()},getDialog:function(){return this._.dialog},setValue:function(a,b){this.getInputElement().setValue(a);!b&&this.fire("change",{value:a});return this},getValue:function(){return this.getInputElement().getValue()}, isChanged:function(){return false},selectParentTab:function(){for(var a=this.getInputElement();(a=a.getParent())&&a.$.className.search("cke_dialog_page_contents")==-1;);if(!a)return this;a=a.getAttribute("name");this._.dialog._.currentTabId!=a&&this._.dialog.selectPage(a);return this},focus:function(){this.selectParentTab().getInputElement().focus();return this},registerEvents:function(a){var b=/^on([A-Z]\w+)/,c,f=function(a,b,c,f){b.on("load",function(){a.getInputElement().on(c,f,a)})},e;for(e in a)if(c= e.match(b))this.eventProcessors[e]?this.eventProcessors[e].call(this,this._.dialog,a[e]):f(this,this._.dialog,c[1].toLowerCase(),a[e]);return this},eventProcessors:{onLoad:function(a,b){a.on("load",b,this)},onShow:function(a,b){a.on("show",b,this)},onHide:function(a,b){a.on("hide",b,this)}},accessKeyDown:function(){this.focus()},accessKeyUp:function(){},disable:function(){var a=this.getElement();this.getInputElement().setAttribute("disabled","true");a.addClass("cke_disabled")},enable:function(){var a= this.getElement();this.getInputElement().removeAttribute("disabled");a.removeClass("cke_disabled")},isEnabled:function(){return!this.getElement().hasClass("cke_disabled")},isVisible:function(){return this.getInputElement().isVisible()},isFocusable:function(){return!this.isEnabled()||!this.isVisible()?false:true}};CKEDITOR.ui.dialog.hbox.prototype=CKEDITOR.tools.extend(new CKEDITOR.ui.dialog.uiElement,{getChild:function(a){if(arguments.length<1)return this._.children.concat();a.splice||(a=[a]);return a.length< @@ -492,28 +493,28 @@ CKEDITOR.dialog._.currentTop===null&&n(this);if(typeof f=="function"){c=this._.s b)},this,0,1)}CKEDITOR.skin.loadPart("dialog");return c}})}(),CKEDITOR.plugins.add("dialog",{requires:"dialogui",init:function(b){b.on("contentDom",function(){var d=b.editable();d.attachListener(d,"dblclick",function(a){if(b.readOnly)return false;a={element:a.data.getTarget()};b.fire("doubleclick",a);a.dialog&&b.openDialog(a.dialog);return 1})})}}),CKEDITOR.plugins.add("about",{requires:"dialog",init:function(b){var d=b.addCommand("about",new CKEDITOR.dialogCommand("about"));d.modes={wysiwyg:1,source:1}; d.canUndo=false;d.readOnly=1;b.ui.addButton&&b.ui.addButton("About",{label:b.lang.about.title,command:"about",toolbar:"about"});CKEDITOR.dialog.add("about",this.path+"dialogs/about.js")}}),function(){CKEDITOR.plugins.add("a11yhelp",{requires:"dialog",availableLangs:{en:1,ar:1,bg:1,ca:1,et:1,cs:1,cy:1,da:1,de:1,el:1,eo:1,es:1,fa:1,fi:1,fr:1,gu:1,he:1,hi:1,hr:1,hu:1,it:1,ja:1,km:1,ku:1,lt:1,lv:1,mk:1,mn:1,nb:1,nl:1,no:1,pl:1,pt:1,"pt-br":1,ro:1,ru:1,sk:1,sl:1,sv:1,th:1,tr:1,ug:1,uk:1,vi:1,"zh-cn":1}, init:function(b){var d=this;b.addCommand("a11yHelp",{exec:function(){var a=b.langCode,a=d.availableLangs[a]?a:d.availableLangs[a.replace(/-.*/,"")]?a.replace(/-.*/,""):"en";CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(d.path+"dialogs/lang/"+a+".js"),function(){b.lang.a11yhelp=d.langEntries[a];b.openDialog("a11yHelp")})},modes:{wysiwyg:1,source:1},readOnly:1,canUndo:false});b.setKeystroke(CKEDITOR.ALT+48,"a11yHelp");CKEDITOR.dialog.add("a11yHelp",this.path+"dialogs/a11yhelp.js")}})}(),CKEDITOR.plugins.add("basicstyles", -{init:function(b){var d=0,a=function(a,g,c,h){if(h){var h=new CKEDITOR.style(h),l=e[c];l.unshift(h);b.attachStyleStateChange(h,function(a){!b.readOnly&&b.getCommand(c).setState(a)});b.addCommand(c,new CKEDITOR.styleCommand(h,{contentForms:l}));b.ui.addButton&&b.ui.addButton(a,{label:g,command:c,toolbar:"basicstyles,"+(d=d+10)})}},e={bold:["strong","b",["span",function(a){a=a.styles["font-weight"];return a=="bold"||+a>=700}]],italic:["em","i",["span",function(a){return a.styles["font-style"]=="italic"}]], +{init:function(b){var d=0,a=function(a,g,c,h){if(h){var h=new CKEDITOR.style(h),k=e[c];k.unshift(h);b.attachStyleStateChange(h,function(a){!b.readOnly&&b.getCommand(c).setState(a)});b.addCommand(c,new CKEDITOR.styleCommand(h,{contentForms:k}));b.ui.addButton&&b.ui.addButton(a,{label:g,command:c,toolbar:"basicstyles,"+(d=d+10)})}},e={bold:["strong","b",["span",function(a){a=a.styles["font-weight"];return a=="bold"||+a>=700}]],italic:["em","i",["span",function(a){return a.styles["font-style"]=="italic"}]], underline:["u",["span",function(a){return a.styles["text-decoration"]=="underline"}]],strike:["s","strike",["span",function(a){return a.styles["text-decoration"]=="line-through"}]],subscript:["sub"],superscript:["sup"]},h=b.config,g=b.lang.basicstyles;a("Bold",g.bold,"bold",h.coreStyles_bold);a("Italic",g.italic,"italic",h.coreStyles_italic);a("Underline",g.underline,"underline",h.coreStyles_underline);a("Strike",g.strike,"strike",h.coreStyles_strike);a("Subscript",g.subscript,"subscript",h.coreStyles_subscript); a("Superscript",g.superscript,"superscript",h.coreStyles_superscript);b.setKeystroke([[CKEDITOR.CTRL+66,"bold"],[CKEDITOR.CTRL+73,"italic"],[CKEDITOR.CTRL+85,"underline"]])}}),CKEDITOR.config.coreStyles_bold={element:"strong",overrides:"b"},CKEDITOR.config.coreStyles_italic={element:"em",overrides:"i"},CKEDITOR.config.coreStyles_underline={element:"u"},CKEDITOR.config.coreStyles_strike={element:"s",overrides:"strike"},CKEDITOR.config.coreStyles_subscript={element:"sub"},CKEDITOR.config.coreStyles_superscript= {element:"sup"},function(){var b={exec:function(b){var a=b.getCommand("blockquote").state,e=b.getSelection(),h=e&&e.getRanges(true)[0];if(h){var g=e.createBookmarks();if(CKEDITOR.env.ie){var f=g[0].startNode,i=g[0].endNode,c;if(f&&f.getParent().getName()=="blockquote")for(c=f;c=c.getNext();)if(c.type==CKEDITOR.NODE_ELEMENT&&c.isBlockBoundary()){f.move(c,true);break}if(i&&i.getParent().getName()=="blockquote")for(c=i;c=c.getPrevious();)if(c.type==CKEDITOR.NODE_ELEMENT&&c.isBlockBoundary()){i.move(c); break}}var j=h.createIterator();j.enlargeBr=b.config.enterMode!=CKEDITOR.ENTER_BR;if(a==CKEDITOR.TRISTATE_OFF){for(f=[];a=j.getNextParagraph();)f.push(a);if(f.length<1){a=b.document.createElement(b.config.enterMode==CKEDITOR.ENTER_P?"p":"div");i=g.shift();h.insertNode(a);a.append(new CKEDITOR.dom.text("",b.document));h.moveToBookmark(i);h.selectNodeContents(a);h.collapse(true);i=h.createBookmark();f.push(a);g.unshift(i)}c=f[0].getParent();h=[];for(i=0;i<f.length;i++){a=f[i];c=c.getCommonAncestor(a.getParent())}for(a= {table:1,tbody:1,tr:1,ol:1,ul:1};a[c.getName()];)c=c.getParent();for(i=null;f.length>0;){for(a=f.shift();!a.getParent().equals(c);)a=a.getParent();a.equals(i)||h.push(a);i=a}for(;h.length>0;){a=h.shift();if(a.getName()=="blockquote"){for(i=new CKEDITOR.dom.documentFragment(b.document);a.getFirst();){i.append(a.getFirst().remove());f.push(i.getLast())}i.replace(a)}else f.push(a)}h=b.document.createElement("blockquote");for(h.insertBefore(f[0]);f.length>0;){a=f.shift();h.append(a)}}else if(a==CKEDITOR.TRISTATE_ON){i= [];for(c={};a=j.getNextParagraph();){for(f=h=null;a.getParent();){if(a.getParent().getName()=="blockquote"){h=a.getParent();f=a;break}a=a.getParent()}if(h&&f&&!f.getCustomData("blockquote_moveout")){i.push(f);CKEDITOR.dom.element.setMarker(c,f,"blockquote_moveout",true)}}CKEDITOR.dom.element.clearAllMarkers(c);a=[];f=[];for(c={};i.length>0;){j=i.shift();h=j.getParent();if(j.getPrevious())if(j.getNext()){j.breakParent(j.getParent());f.push(j.getNext())}else j.remove().insertAfter(h);else j.remove().insertBefore(h); -if(!h.getCustomData("blockquote_processed")){f.push(h);CKEDITOR.dom.element.setMarker(c,h,"blockquote_processed",true)}a.push(j)}CKEDITOR.dom.element.clearAllMarkers(c);for(i=f.length-1;i>=0;i--){h=f[i];a:{c=h;for(var j=0,l=c.getChildCount(),m=void 0;j<l&&(m=c.getChild(j));j++)if(m.type==CKEDITOR.NODE_ELEMENT&&m.isBlockBoundary()){c=false;break a}c=true}c&&h.remove()}if(b.config.enterMode==CKEDITOR.ENTER_BR)for(h=true;a.length;){j=a.shift();if(j.getName()=="div"){i=new CKEDITOR.dom.documentFragment(b.document); +if(!h.getCustomData("blockquote_processed")){f.push(h);CKEDITOR.dom.element.setMarker(c,h,"blockquote_processed",true)}a.push(j)}CKEDITOR.dom.element.clearAllMarkers(c);for(i=f.length-1;i>=0;i--){h=f[i];a:{c=h;for(var j=0,k=c.getChildCount(),l=void 0;j<k&&(l=c.getChild(j));j++)if(l.type==CKEDITOR.NODE_ELEMENT&&l.isBlockBoundary()){c=false;break a}c=true}c&&h.remove()}if(b.config.enterMode==CKEDITOR.ENTER_BR)for(h=true;a.length;){j=a.shift();if(j.getName()=="div"){i=new CKEDITOR.dom.documentFragment(b.document); h&&(j.getPrevious()&&!(j.getPrevious().type==CKEDITOR.NODE_ELEMENT&&j.getPrevious().isBlockBoundary()))&&i.append(b.document.createElement("br"));for(h=j.getNext()&&!(j.getNext().type==CKEDITOR.NODE_ELEMENT&&j.getNext().isBlockBoundary());j.getFirst();)j.getFirst().remove().appendTo(i);h&&i.append(b.document.createElement("br"));i.replace(j);h=false}}}e.selectBookmarks(g);b.focus()}},refresh:function(b,a){this.setState(b.elementPath(a.block||a.blockLimit).contains("blockquote",1)?CKEDITOR.TRISTATE_ON: CKEDITOR.TRISTATE_OFF)},context:"blockquote",allowedContent:"blockquote",requiredContent:"blockquote"};CKEDITOR.plugins.add("blockquote",{init:function(d){if(!d.blockless){d.addCommand("blockquote",b);d.ui.addButton&&d.ui.addButton("Blockquote",{label:d.lang.blockquote.toolbar,command:"blockquote",toolbar:"blocks,10"})}}})}(),"use strict",function(){function b(a){function b(){var c=a.editable();c.on(v,function(a){(!CKEDITOR.env.ie||!u)&&t(a)});CKEDITOR.env.ie&&c.on("paste",function(b){if(!w){d(); -b.data.preventDefault();t(b);h("paste")||a.openDialog("paste")}});if(CKEDITOR.env.ie){c.on("contextmenu",g,null,null,0);c.on("beforepaste",function(a){a.data&&!a.data.$.ctrlKey&&g()},null,null,0)}c.on("beforecut",function(){!u&&k(a)});(CKEDITOR.env.ie?c:a.document.getDocumentElement()).on("mouseup",function(){setTimeout(function(){z()},0)});c.on("keyup",z)}function c(b){return{type:b,canUndo:b=="cut",startDisabled:true,exec:function(){this.type=="cut"&&k();var b;var c=this.type;if(CKEDITOR.env.ie)b= +b.data.preventDefault();t(b);h("paste")||a.openDialog("paste")}});if(CKEDITOR.env.ie){c.on("contextmenu",g,null,null,0);c.on("beforepaste",function(a){a.data&&!a.data.$.ctrlKey&&g()},null,null,0)}c.on("beforecut",function(){!u&&m(a)});c.attachListener(CKEDITOR.env.ie?c:a.document.getDocumentElement(),"mouseup",function(){setTimeout(function(){z()},0)});c.on("keyup",z)}function c(b){return{type:b,canUndo:b=="cut",startDisabled:true,exec:function(){this.type=="cut"&&m();var b;var c=this.type;if(CKEDITOR.env.ie)b= h(c);else try{b=a.document.$.execCommand(c,false,null)}catch(e){b=false}b||alert(a.lang.clipboard[this.type+"Error"]);return b}}}function e(){return{canUndo:false,async:true,exec:function(a,b){var c=function(b,c){b&&o(b.type,b.dataValue,!!c);a.fire("afterCommandExec",{name:"paste",command:f,returnValue:!!b})},f=this;typeof b=="string"?c({type:"auto",dataValue:b},1):a.getClipboardData(c)}}}function d(){w=1;setTimeout(function(){w=0},100)}function g(){u=1;setTimeout(function(){u=0},10)}function h(b){var c= -a.document,e=c.getBody(),d=false,g=function(){d=true};e.on(b,g);(CKEDITOR.env.version>7?c.$:c.$.selection.createRange()).execCommand(b);e.removeListener(b,g);return d}function o(b,c,e){b={type:b};if(e&&!a.fire("beforePaste",b)||!c)return false;b.dataValue=c;return a.fire("paste",b)}function k(){if(CKEDITOR.env.ie&&!CKEDITOR.env.quirks){var b=a.getSelection(),c,e,d;if(b.getType()==CKEDITOR.SELECTION_ELEMENT&&(c=b.getSelectedElement())){e=b.getRanges()[0];d=a.document.createText("");d.insertBefore(c); -e.setStartBefore(d);e.setEndAfter(c);b.selectRanges([e]);setTimeout(function(){if(c.getParent()){d.remove();b.selectElement(c)}},0)}}}function p(b,c){var e=a.document,d=a.editable(),g=function(a){a.cancel()},h=CKEDITOR.env.gecko&&CKEDITOR.env.version<=10902;if(!e.getById("cke_pastebin")){var i=a.getSelection(),j=i.createBookmarks(),k=new CKEDITOR.dom.element(d.is("body")&&!CKEDITOR.env.ie&&!CKEDITOR.env.opera?"body":"div",e);k.setAttribute("id","cke_pastebin");CKEDITOR.env.opera&&k.appendBogus(); -var q=0,e=e.getWindow();if(h){k.insertAfter(j[0].startNode);k.setStyle("display","inline")}else{if(CKEDITOR.env.webkit){d.append(k);k.addClass("cke_editable");q=(d.is("body")?d:CKEDITOR.dom.element.get(k.$.offsetParent)).getDocumentPosition().y}else d.getAscendant(CKEDITOR.env.ie||CKEDITOR.env.opera?"body":"html",1).append(k);k.setStyles({position:"absolute",top:e.getScrollPosition().y-q+10+"px",width:"1px",height:Math.max(1,e.getViewPaneSize().height-20)+"px",overflow:"hidden",margin:0,padding:0})}if(h= -k.getParent().isReadOnly()){k.setOpacity(0);k.setAttribute("contenteditable",true)}else k.setStyle(a.config.contentsLangDirection=="ltr"?"left":"right","-1000px");a.on("selectionChange",g,null,null,0);h&&k.focus();h=new CKEDITOR.dom.range(k);h.selectNodeContents(k);var l=h.select();if(CKEDITOR.env.ie)var p=d.once("blur",function(){a.lockSelection(l)});var r=CKEDITOR.document.getWindow().getScrollPosition().y;setTimeout(function(){if(CKEDITOR.env.webkit||CKEDITOR.env.opera)CKEDITOR.document[CKEDITOR.env.webkit? -"getBody":"getDocumentElement"]().$.scrollTop=r;p&&p.removeListener();CKEDITOR.env.ie&&d.focus();i.selectBookmarks(j);k.remove();var b;if(CKEDITOR.env.webkit&&(b=k.getFirst())&&b.is&&b.hasClass("Apple-style-span"))k=b;a.removeListener("selectionChange",g);c(k.getHtml())},0)}}function r(){if(CKEDITOR.env.ie){a.focus();d();var b=a.focusManager;b.lock();if(a.editable().fire(v)&&!h("paste")){b.unlock();return false}b.unlock()}else try{if(a.editable().fire(v)&&!a.document.$.execCommand("Paste",false,null))throw 0; -}catch(c){return false}return true}function q(b){if(a.mode=="wysiwyg")switch(b.data.keyCode){case CKEDITOR.CTRL+86:case CKEDITOR.SHIFT+45:b=a.editable();d();!CKEDITOR.env.ie&&b.fire("beforepaste");(CKEDITOR.env.opera||CKEDITOR.env.gecko&&CKEDITOR.env.version<10900)&&b.fire("paste");break;case CKEDITOR.CTRL+88:case CKEDITOR.SHIFT+46:a.fire("saveSnapshot");setTimeout(function(){a.fire("saveSnapshot")},0)}}function t(b){var c={type:"auto"},e=a.fire("beforePaste",c);p(b,function(a){a=a.replace(/<span[^>]+data-cke-bookmark[^<]*?<\/span>/ig, +a.document,e=c.getBody(),d=false,g=function(){d=true};e.on(b,g);(CKEDITOR.env.version>7?c.$:c.$.selection.createRange()).execCommand(b);e.removeListener(b,g);return d}function o(b,c,e){b={type:b};if(e&&!a.fire("beforePaste",b)||!c)return false;b.dataValue=c;return a.fire("paste",b)}function m(){if(CKEDITOR.env.ie&&!CKEDITOR.env.quirks){var b=a.getSelection(),c,e,d;if(b.getType()==CKEDITOR.SELECTION_ELEMENT&&(c=b.getSelectedElement())){e=b.getRanges()[0];d=a.document.createText("");d.insertBefore(c); +e.setStartBefore(d);e.setEndAfter(c);b.selectRanges([e]);setTimeout(function(){if(c.getParent()){d.remove();b.selectElement(c)}},0)}}}function p(b,c){var e=a.document,d=a.editable(),g=function(a){a.cancel()},h=CKEDITOR.env.gecko&&CKEDITOR.env.version<=10902;if(!e.getById("cke_pastebin")){var i=a.getSelection(),j=i.createBookmarks(),m=new CKEDITOR.dom.element(d.is("body")&&!CKEDITOR.env.ie&&!CKEDITOR.env.opera?"body":"div",e);m.setAttribute("id","cke_pastebin");CKEDITOR.env.opera&&m.appendBogus(); +var r=0,e=e.getWindow();if(h){m.insertAfter(j[0].startNode);m.setStyle("display","inline")}else{if(CKEDITOR.env.webkit){d.append(m);m.addClass("cke_editable");r=(d.is("body")?d:CKEDITOR.dom.element.get(m.$.offsetParent)).getDocumentPosition().y}else d.getAscendant(CKEDITOR.env.ie||CKEDITOR.env.opera?"body":"html",1).append(m);m.setStyles({position:"absolute",top:e.getScrollPosition().y-r+10+"px",width:"1px",height:Math.max(1,e.getViewPaneSize().height-20)+"px",overflow:"hidden",margin:0,padding:0})}if(h= +m.getParent().isReadOnly()){m.setOpacity(0);m.setAttribute("contenteditable",true)}else m.setStyle(a.config.contentsLangDirection=="ltr"?"left":"right","-1000px");a.on("selectionChange",g,null,null,0);h&&m.focus();h=new CKEDITOR.dom.range(m);h.selectNodeContents(m);var k=h.select();if(CKEDITOR.env.ie)var p=d.once("blur",function(){a.lockSelection(k)});var q=CKEDITOR.document.getWindow().getScrollPosition().y;setTimeout(function(){if(CKEDITOR.env.webkit||CKEDITOR.env.opera)CKEDITOR.document[CKEDITOR.env.webkit? +"getBody":"getDocumentElement"]().$.scrollTop=q;p&&p.removeListener();CKEDITOR.env.ie&&d.focus();i.selectBookmarks(j);m.remove();var b;if(CKEDITOR.env.webkit&&(b=m.getFirst())&&b.is&&b.hasClass("Apple-style-span"))m=b;a.removeListener("selectionChange",g);c(m.getHtml())},0)}}function q(){if(CKEDITOR.env.ie){a.focus();d();var b=a.focusManager;b.lock();if(a.editable().fire(v)&&!h("paste")){b.unlock();return false}b.unlock()}else try{if(a.editable().fire(v)&&!a.document.$.execCommand("Paste",false,null))throw 0; +}catch(c){return false}return true}function r(b){if(a.mode=="wysiwyg")switch(b.data.keyCode){case CKEDITOR.CTRL+86:case CKEDITOR.SHIFT+45:b=a.editable();d();!CKEDITOR.env.ie&&b.fire("beforepaste");(CKEDITOR.env.opera||CKEDITOR.env.gecko&&CKEDITOR.env.version<10900)&&b.fire("paste");break;case CKEDITOR.CTRL+88:case CKEDITOR.SHIFT+46:a.fire("saveSnapshot");setTimeout(function(){a.fire("saveSnapshot")},0)}}function t(b){var c={type:"auto"},e=a.fire("beforePaste",c);p(b,function(a){a=a.replace(/<span[^>]+data-cke-bookmark[^<]*?<\/span>/ig, "");e&&o(c.type,a,0,1)})}function z(){if(a.mode=="wysiwyg"){var b=x("Paste");a.getCommand("cut").setState(x("Cut"));a.getCommand("copy").setState(x("Copy"));a.getCommand("paste").setState(b);a.fire("pasteState",b)}}function x(b){var c;if(s&&b in{Paste:1,Cut:1})return CKEDITOR.TRISTATE_DISABLED;if(b=="Paste"){CKEDITOR.env.ie&&(u=1);try{c=a.document.$.queryCommandEnabled(b)||CKEDITOR.env.webkit}catch(e){}u=0}else{b=a.getSelection();c=b.getRanges();c=b.getType()!=CKEDITOR.SELECTION_NONE&&!(c.length== -1&&c[0].collapsed)}return c?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED}var u=0,w=0,s=0,v=CKEDITOR.env.ie?"beforepaste":"paste";(function(){a.on("key",q);a.on("contentDom",b);a.on("selectionChange",function(a){s=a.data.selection.getRanges()[0].checkReadOnly();z()});a.contextMenu&&a.contextMenu.addListener(function(a,b){s=b.getRanges()[0].checkReadOnly();return{cut:x("Cut"),copy:x("Copy"),paste:x("Paste")}})})();(function(){function b(c,e,d,g,h){var i=a.lang.clipboard[e];a.addCommand(e,d);a.ui.addButton&& +1&&c[0].collapsed)}return c?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED}var u=0,w=0,s=0,v=CKEDITOR.env.ie?"beforepaste":"paste";(function(){a.on("key",r);a.on("contentDom",b);a.on("selectionChange",function(a){s=a.data.selection.getRanges()[0].checkReadOnly();z()});a.contextMenu&&a.contextMenu.addListener(function(a,b){s=b.getRanges()[0].checkReadOnly();return{cut:x("Cut"),copy:x("Copy"),paste:x("Paste")}})})();(function(){function b(c,e,d,g,h){var i=a.lang.clipboard[e];a.addCommand(e,d);a.ui.addButton&& a.ui.addButton(c,{label:i,command:e,toolbar:"clipboard,"+g});a.addMenuItems&&a.addMenuItem(e,{label:i,command:e,group:"clipboard",order:h})}b("Cut","cut",c("cut"),10,1);b("Copy","copy",c("copy"),20,4);b("Paste","paste",e(),30,8)})();a.getClipboardData=function(b,c){function e(a){a.removeListener();a.cancel();c(a.data)}function d(a){a.removeListener();a.cancel();j=true;c({type:i,dataValue:a.data})}function g(){this.customTitle=b&&b.title}var h=false,i="auto",j=false;if(!c){c=b;b=null}a.on("paste", -e,null,null,0);a.on("beforePaste",function(a){a.removeListener();h=true;i=a.data.type},null,null,1E3);if(r()===false){a.removeListener("paste",e);if(h&&a.fire("pasteDialog",g)){a.on("pasteDialogCommit",d);a.on("dialogHide",function(a){a.removeListener();a.data.removeListener("pasteDialogCommit",d);setTimeout(function(){j||c(null)},10)})}else c(null)}}}function d(a){if(CKEDITOR.env.webkit){if(!a.match(/^[^<]*$/g)&&!a.match(/^(<div><br( ?\/)?><\/div>|<div>[^<]*<\/div>)*$/gi))return"html"}else if(CKEDITOR.env.ie){if(!a.match(/^([^<]|<br( ?\/)?>)*$/gi)&& +e,null,null,0);a.on("beforePaste",function(a){a.removeListener();h=true;i=a.data.type},null,null,1E3);if(q()===false){a.removeListener("paste",e);if(h&&a.fire("pasteDialog",g)){a.on("pasteDialogCommit",d);a.on("dialogHide",function(a){a.removeListener();a.data.removeListener("pasteDialogCommit",d);setTimeout(function(){j||c(null)},10)})}else c(null)}}}function d(a){if(CKEDITOR.env.webkit){if(!a.match(/^[^<]*$/g)&&!a.match(/^(<div><br( ?\/)?><\/div>|<div>[^<]*<\/div>)*$/gi))return"html"}else if(CKEDITOR.env.ie){if(!a.match(/^([^<]|<br( ?\/)?>)*$/gi)&& !a.match(/^(<p>([^<]|<br( ?\/)?>)*<\/p>|(\r\n))*$/gi))return"html"}else if(CKEDITOR.env.gecko||CKEDITOR.env.opera){if(!a.match(/^([^<]|<br( ?\/)?>)*$/gi))return"html"}else return"html";return"htmlifiedtext"}function a(a,b){function c(a){return CKEDITOR.tools.repeat("</p><p>",~~(a/2))+(a%2==1?"<br>":"")}b=b.replace(/\s+/g," ").replace(/> +</g,"><").replace(/<br ?\/>/gi,"<br>");b=b.replace(/<\/?[A-Z]+>/g,function(a){return a.toLowerCase()});if(b.match(/^[^<]$/))return b;if(CKEDITOR.env.webkit&&b.indexOf("<div>")> -1){b=b.replace(/^(<div>(<br>|)<\/div>)(?!$|(<div>(<br>|)<\/div>))/g,"<br>").replace(/^(<div>(<br>|)<\/div>){2}(?!$)/g,"<div></div>");b.match(/<div>(<br>|)<\/div>/)&&(b="<p>"+b.replace(/(<div>(<br>|)<\/div>)+/g,function(a){return c(a.split("</div><div>").length+1)})+"</p>");b=b.replace(/<\/div><div>/g,"<br>");b=b.replace(/<\/?div>/g,"")}if((CKEDITOR.env.gecko||CKEDITOR.env.opera)&&a.enterMode!=CKEDITOR.ENTER_BR){CKEDITOR.env.gecko&&(b=b.replace(/^<br><br>$/,"<br>"));b.indexOf("<br><br>")>-1&&(b="<p>"+ b.replace(/(<br>){2,}/g,function(a){return c(a.length/4)})+"</p>")}return g(a,b)}function e(){var a=new CKEDITOR.htmlParser.filter,b={blockquote:1,dl:1,fieldset:1,h1:1,h2:1,h3:1,h4:1,h5:1,h6:1,ol:1,p:1,table:1,ul:1},c=CKEDITOR.tools.extend({br:0},CKEDITOR.dtd.$inline),e={p:1,br:1,"cke:br":1},d=CKEDITOR.dtd,g=CKEDITOR.tools.extend({area:1,basefont:1,embed:1,iframe:1,map:1,object:1,param:1},CKEDITOR.dtd.$nonBodyContent,CKEDITOR.dtd.$cdata),h=function(a){delete a.name;a.add(new CKEDITOR.htmlParser.text(" "))}, @@ -522,8 +523,8 @@ o=function(a){for(var b=a,c;(b=b.next)&&b.name&&b.name.match(/^h\d$/);){c=new CK "$2").replace(/(<\/?p>|<br \/>)(<cke:br \/>)/g,"$1").replace(/<(cke:)?br( \/)?>/g,"<br>").replace(/<p><\/p>/g,""),d=0,b=b.replace(/<\/?p>/g,function(a){if(a=="<p>"){if(++d>1)return"</p><p>"}else if(--d>0)return"</p><p>";return a}).replace(/<p><\/p>/g,"");return g(a,b)}function g(a,b){a.enterMode==CKEDITOR.ENTER_BR?b=b.replace(/(<\/p><p>)+/g,function(a){return CKEDITOR.tools.repeat("<br>",a.length/7*2)}).replace(/<\/?p>/g,""):a.enterMode==CKEDITOR.ENTER_DIV&&(b=b.replace(/<(\/)?p>/g,"<$1div>"));return b} CKEDITOR.plugins.add("clipboard",{requires:"dialog",init:function(f){var g;b(f);CKEDITOR.dialog.add("paste",CKEDITOR.getUrl(this.path+"dialogs/paste.js"));f.on("paste",function(a){var b=a.data.dataValue,f=CKEDITOR.dtd.$block;if(b.indexOf("Apple-")>-1){b=b.replace(/<span class="Apple-converted-space"> <\/span>/gi," ");a.data.type!="html"&&(b=b.replace(/<span class="Apple-tab-span"[^>]*>([^<]*)<\/span>/gi,function(a,b){return b.replace(/\t/g," ")}));if(b.indexOf('<br class="Apple-interchange-newline">')> -1){a.data.startsWithEOL=1;a.data.preSniffing="html";b=b.replace(/<br class="Apple-interchange-newline">/,"")}b=b.replace(/(<[^>]+) class="Apple-[^"]*"/gi,"$1")}if(b.match(/^<[^<]+cke_(editable|contents)/i)){var e,d,g=new CKEDITOR.dom.element("div");for(g.setHtml(b);g.getChildCount()==1&&(e=g.getFirst())&&e.type==CKEDITOR.NODE_ELEMENT&&(e.hasClass("cke_editable")||e.hasClass("cke_contents"));)g=d=e;d&&(b=d.getHtml().replace(/<br>$/i,""))}CKEDITOR.env.ie?b=b.replace(/^ (?: |\r\n)?<(\w+)/g,function(b, -e){if(e.toLowerCase()in f){a.data.preSniffing="html";return"<"+e}return b}):CKEDITOR.env.webkit?b=b.replace(/<\/(\w+)><div><br><\/div>$/,function(b,e){if(e in f){a.data.endsWithEOL=1;return"</"+e+">"}return b}):CKEDITOR.env.gecko&&(b=b.replace(/(\s)<br>$/,"$1"));a.data.dataValue=b},null,null,3);f.on("paste",function(b){var b=b.data,j=b.type,l=b.dataValue,m,n=f.config.clipboard_defaultContentType||"html";m=j=="html"||b.preSniffing=="html"?"html":d(l);m=="htmlifiedtext"?l=a(f.config,l):j=="text"&&m== -"html"&&(l=h(f.config,l,g||(g=e(f))));b.startsWithEOL&&(l='<br data-cke-eol="1">'+l);b.endsWithEOL&&(l=l+'<br data-cke-eol="1">');j=="auto"&&(j=m=="html"||n=="html"?"html":"text");b.type=j;b.dataValue=l;delete b.preSniffing;delete b.startsWithEOL;delete b.endsWithEOL},null,null,6);f.on("paste",function(a){a=a.data;f.insertHtml(a.dataValue,a.type);setTimeout(function(){f.fire("afterPaste")},0)},null,null,1E3);f.on("pasteDialog",function(a){setTimeout(function(){f.openDialog("paste",a.data)},0)})}})}(), +e){if(e.toLowerCase()in f){a.data.preSniffing="html";return"<"+e}return b}):CKEDITOR.env.webkit?b=b.replace(/<\/(\w+)><div><br><\/div>$/,function(b,e){if(e in f){a.data.endsWithEOL=1;return"</"+e+">"}return b}):CKEDITOR.env.gecko&&(b=b.replace(/(\s)<br>$/,"$1"));a.data.dataValue=b},null,null,3);f.on("paste",function(b){var b=b.data,j=b.type,k=b.dataValue,l,n=f.config.clipboard_defaultContentType||"html";l=j=="html"||b.preSniffing=="html"?"html":d(k);l=="htmlifiedtext"?k=a(f.config,k):j=="text"&&l== +"html"&&(k=h(f.config,k,g||(g=e(f))));b.startsWithEOL&&(k='<br data-cke-eol="1">'+k);b.endsWithEOL&&(k=k+'<br data-cke-eol="1">');j=="auto"&&(j=l=="html"||n=="html"?"html":"text");b.type=j;b.dataValue=k;delete b.preSniffing;delete b.startsWithEOL;delete b.endsWithEOL},null,null,6);f.on("paste",function(a){a=a.data;f.insertHtml(a.dataValue,a.type);setTimeout(function(){f.fire("afterPaste")},0)},null,null,1E3);f.on("pasteDialog",function(a){setTimeout(function(){f.openDialog("paste",a.data)},0)})}})}(), function(){CKEDITOR.plugins.add("panel",{beforeInit:function(a){a.ui.addHandler(CKEDITOR.UI_PANEL,CKEDITOR.ui.panel.handler)}});CKEDITOR.UI_PANEL="panel";CKEDITOR.ui.panel=function(a,b){b&&CKEDITOR.tools.extend(this,b);CKEDITOR.tools.extend(this,{className:"",css:[]});this.id=CKEDITOR.tools.getNextId();this.document=a;this.isFramed=this.forceIFrame||this.css.length;this._={blocks:{}}};CKEDITOR.ui.panel.handler={create:function(a){return new CKEDITOR.ui.panel(a)}};var b=CKEDITOR.addTemplate("panel", '<div lang="{langCode}" id="{id}" dir={dir} class="cke cke_reset_all {editorId} cke_panel cke_panel {cls} cke_{dir}" style="z-index:{z-index}" role="presentation">{frame}</div>'),d=CKEDITOR.addTemplate("panel-frame",'<iframe id="{id}" class="cke_panel_frame" role="application" frameborder="0" src="{src}"></iframe>'),a=CKEDITOR.addTemplate("panel-frame-inner",'<!DOCTYPE html><html class="cke_panel_container {env}" dir="{dir}" lang="{langCode}"><head>{css}</head><body class="cke_{dir}" style="margin:0;padding:0" onload="{onload}"></body></html>'); CKEDITOR.ui.panel.prototype={render:function(e,h){this.getHolderElement=function(){var b=this._.holder;if(!b){if(this.isFramed){var b=this.document.getById(this.id+"_frame"),c=b.getParent(),b=b.getFrameDocument();CKEDITOR.env.iOS&&c.setStyles({overflow:"scroll","-webkit-overflow-scrolling":"touch"});c=CKEDITOR.tools.addFunction(CKEDITOR.tools.bind(function(){this.isLoaded=true;if(this.onLoad)this.onLoad()},this));b.write(a.output(CKEDITOR.tools.extend({css:CKEDITOR.tools.buildStyleHtml(this.css), @@ -533,14 +534,14 @@ new CKEDITOR.ui.panel.block(this.getHolderElement(),b);this._.currentBlock||this a);a.show();return a},destroy:function(){this.element&&this.element.remove()}};CKEDITOR.ui.panel.block=CKEDITOR.tools.createClass({$:function(a,b){this.element=a.append(a.getDocument().createElement("div",{attributes:{tabIndex:-1,"class":"cke_panel_block",role:"presentation"},styles:{display:"none"}}));b&&CKEDITOR.tools.extend(this,b);if(!this.attributes.title)this.attributes.title=this.attributes["aria-label"];this.keys={};this._.focusIndex=-1;this.element.disableContextMenu()},_:{markItem:function(a){if(a!= -1){a=this.element.getElementsByTag("a").getItem(this._.focusIndex=a);(CKEDITOR.env.webkit||CKEDITOR.env.opera)&&a.getDocument().getWindow().focus();a.focus();this.onMark&&this.onMark(a)}}},proto:{show:function(){this.element.setStyle("display","")},hide:function(){(!this.onHide||this.onHide.call(this)!==true)&&this.element.setStyle("display","none")},onKeyDown:function(a){var b=this.keys[a];switch(b){case "next":for(var a=this._.focusIndex,b=this.element.getElementsByTag("a"),d;d=b.getItem(++a);)if(d.getAttribute("_cke_focus")&& d.$.offsetWidth){this._.focusIndex=a;d.focus();break}return false;case "prev":a=this._.focusIndex;for(b=this.element.getElementsByTag("a");a>0&&(d=b.getItem(--a));)if(d.getAttribute("_cke_focus")&&d.$.offsetWidth){this._.focusIndex=a;d.focus();break}return false;case "click":case "mouseup":a=this._.focusIndex;(d=a>=0&&this.element.getElementsByTag("a").getItem(a))&&(d.$[b]?d.$[b]():d.$["on"+b]());return false}return true}}})}(),CKEDITOR.plugins.add("floatpanel",{requires:"panel"}),function(){function b(a, -b,h,g,f){var f=CKEDITOR.tools.genKey(b.getUniqueId(),h.getUniqueId(),a.lang.dir,a.uiColor||"",g.css||"",f||""),i=d[f];if(!i){i=d[f]=new CKEDITOR.ui.panel(b,g);i.element=h.append(CKEDITOR.dom.element.createFromHtml(i.render(a),b));i.element.setStyles({display:"none",position:"absolute"})}return i}var d={};CKEDITOR.ui.floatPanel=CKEDITOR.tools.createClass({$:function(a,e,d,g){function f(){l.hide()}d.forceIFrame=1;d.toolbarRelated&&a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&(e=CKEDITOR.document.getById("cke_"+ -a.name));var i=e.getDocument(),g=b(a,i,e,d,g||0),c=g.element,j=c.getFirst(),l=this;c.disableContextMenu();c.setAttribute("role","application");this.element=c;this._={editor:a,panel:g,parentElement:e,definition:d,document:i,iframe:j,children:[],dir:a.lang.dir};a.on("mode",f);a.on("resize",f);i.getWindow().on("resize",f)},proto:{addBlock:function(a,b){return this._.panel.addBlock(a,b)},addListBlock:function(a,b){return this._.panel.addListBlock(a,b)},getBlock:function(a){return this._.panel.getBlock(a)}, -showBlock:function(a,b,d,g,f){var i=this._.panel,c=i.showBlock(a);this.allowBlur(false);a=this._.editor.editable();this._.returnFocus=a.hasFocus?a:new CKEDITOR.dom.element(CKEDITOR.document.$.activeElement);var j=this.element,a=this._.iframe,a=CKEDITOR.env.ie?a:new CKEDITOR.dom.window(a.$.contentWindow),l=j.getDocument(),m=this._.parentElement.getPositionedAncestor(),n=b.getDocumentPosition(l),l=m?m.getDocumentPosition(l):{x:0,y:0},o=this._.dir=="rtl",k=n.x+(g||0)-l.x,p=n.y+(f||0)-l.y;if(o&&(d==1|| -d==4))k=k+b.$.offsetWidth;else if(!o&&(d==2||d==3))k=k+(b.$.offsetWidth-1);if(d==3||d==4)p=p+(b.$.offsetHeight-1);this._.panel._.offsetParentId=b.getId();j.setStyles({top:p+"px",left:0,display:""});j.setOpacity(0);j.getFirst().removeStyle("width");this._.editor.focusManager.add(a);if(!this._.blurSet){CKEDITOR.event.useCapture=true;a.on("blur",function(a){if(this.allowBlur()&&a.data.getPhase()==CKEDITOR.EVENT_PHASE_AT_TARGET&&this.visible&&!this._.activeChild){delete this._.returnFocus;this.hide()}}, +b,h,g,f){var f=CKEDITOR.tools.genKey(b.getUniqueId(),h.getUniqueId(),a.lang.dir,a.uiColor||"",g.css||"",f||""),i=d[f];if(!i){i=d[f]=new CKEDITOR.ui.panel(b,g);i.element=h.append(CKEDITOR.dom.element.createFromHtml(i.render(a),b));i.element.setStyles({display:"none",position:"absolute"})}return i}var d={};CKEDITOR.ui.floatPanel=CKEDITOR.tools.createClass({$:function(a,e,d,g){function f(){k.hide()}d.forceIFrame=1;d.toolbarRelated&&a.elementMode==CKEDITOR.ELEMENT_MODE_INLINE&&(e=CKEDITOR.document.getById("cke_"+ +a.name));var i=e.getDocument(),g=b(a,i,e,d,g||0),c=g.element,j=c.getFirst(),k=this;c.disableContextMenu();c.setAttribute("role","application");this.element=c;this._={editor:a,panel:g,parentElement:e,definition:d,document:i,iframe:j,children:[],dir:a.lang.dir};a.on("mode",f);a.on("resize",f);i.getWindow().on("resize",f)},proto:{addBlock:function(a,b){return this._.panel.addBlock(a,b)},addListBlock:function(a,b){return this._.panel.addListBlock(a,b)},getBlock:function(a){return this._.panel.getBlock(a)}, +showBlock:function(a,b,d,g,f){var i=this._.panel,c=i.showBlock(a);this.allowBlur(false);a=this._.editor.editable();this._.returnFocus=a.hasFocus?a:new CKEDITOR.dom.element(CKEDITOR.document.$.activeElement);var j=this.element,a=this._.iframe,a=CKEDITOR.env.ie?a:new CKEDITOR.dom.window(a.$.contentWindow),k=j.getDocument(),l=this._.parentElement.getPositionedAncestor(),n=b.getDocumentPosition(k),k=l?l.getDocumentPosition(k):{x:0,y:0},o=this._.dir=="rtl",m=n.x+(g||0)-k.x,p=n.y+(f||0)-k.y;if(o&&(d==1|| +d==4))m=m+b.$.offsetWidth;else if(!o&&(d==2||d==3))m=m+(b.$.offsetWidth-1);if(d==3||d==4)p=p+(b.$.offsetHeight-1);this._.panel._.offsetParentId=b.getId();j.setStyles({top:p+"px",left:0,display:""});j.setOpacity(0);j.getFirst().removeStyle("width");this._.editor.focusManager.add(a);if(!this._.blurSet){CKEDITOR.event.useCapture=true;a.on("blur",function(a){if(this.allowBlur()&&a.data.getPhase()==CKEDITOR.EVENT_PHASE_AT_TARGET&&this.visible&&!this._.activeChild){delete this._.returnFocus;this.hide()}}, this);a.on("focus",function(){this._.focused=true;this.hideChild();this.allowBlur(true)},this);CKEDITOR.event.useCapture=false;this._.blurSet=1}i.onEscape=CKEDITOR.tools.bind(function(a){if(this.onEscape&&this.onEscape(a)===false)return false},this);CKEDITOR.tools.setTimeout(function(){var a=CKEDITOR.tools.bind(function(){j.removeStyle("width");if(c.autoSize){var a=c.element.getDocument(),a=(CKEDITOR.env.webkit?c.element:a.getBody()).$.scrollWidth;CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&a>0)&&(a=a+ -((j.$.offsetWidth||0)-(j.$.clientWidth||0)+3));j.setStyle("width",a+10+"px");a=c.element.$.scrollHeight;CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&a>0)&&(a=a+((j.$.offsetHeight||0)-(j.$.clientHeight||0)+3));j.setStyle("height",a+"px");i._.currentBlock.element.setStyle("display","none").removeStyle("display")}else j.removeStyle("height");o&&(k=k-j.$.offsetWidth);j.setStyle("left",k+"px");var b=i.element.getWindow(),a=j.$.getBoundingClientRect(),b=b.getViewPaneSize(),f=a.width||a.right-a.left,e=a.height|| -a.bottom-a.top,d=o?a.right:b.width-a.left,g=o?b.width-a.right:a.left;o?d<f&&(k=g>f?k+f:b.width>f?k-a.left:k-a.right+b.width):d<f&&(k=g>f?k-f:b.width>f?k-a.right+b.width:k-a.left);f=a.top;b.height-a.top<e&&(p=f>e?p-e:b.height>e?p-a.bottom+b.height:p-a.top);if(CKEDITOR.env.ie){b=a=new CKEDITOR.dom.element(j.$.offsetParent);b.getName()=="html"&&(b=b.getDocument().getBody());b.getComputedStyle("direction")=="rtl"&&(k=CKEDITOR.env.ie8Compat?k-j.getDocument().getDocumentElement().$.scrollLeft*2:k-(a.$.scrollWidth- -a.$.clientWidth))}var a=j.getFirst(),h;(h=a.getCustomData("activePanel"))&&h.onHide&&h.onHide.call(this,1);a.setCustomData("activePanel",this);j.setStyles({top:p+"px",left:k+"px"});j.setOpacity(1)},this);i.isLoaded?a():i.onLoad=a;CKEDITOR.tools.setTimeout(function(){this.focus();this.allowBlur(true);this._.editor.fire("panelShow",this)},0,this)},CKEDITOR.env.air?200:0,this);this.visible=1;this.onShow&&this.onShow.call(this)},focus:function(){if(CKEDITOR.env.webkit){var a=CKEDITOR.document.getActive(); +((j.$.offsetWidth||0)-(j.$.clientWidth||0)+3));j.setStyle("width",a+10+"px");a=c.element.$.scrollHeight;CKEDITOR.env.ie&&(CKEDITOR.env.quirks&&a>0)&&(a=a+((j.$.offsetHeight||0)-(j.$.clientHeight||0)+3));j.setStyle("height",a+"px");i._.currentBlock.element.setStyle("display","none").removeStyle("display")}else j.removeStyle("height");o&&(m=m-j.$.offsetWidth);j.setStyle("left",m+"px");var b=i.element.getWindow(),a=j.$.getBoundingClientRect(),b=b.getViewPaneSize(),f=a.width||a.right-a.left,e=a.height|| +a.bottom-a.top,d=o?a.right:b.width-a.left,g=o?b.width-a.right:a.left;o?d<f&&(m=g>f?m+f:b.width>f?m-a.left:m-a.right+b.width):d<f&&(m=g>f?m-f:b.width>f?m-a.right+b.width:m-a.left);f=a.top;b.height-a.top<e&&(p=f>e?p-e:b.height>e?p-a.bottom+b.height:p-a.top);if(CKEDITOR.env.ie){b=a=new CKEDITOR.dom.element(j.$.offsetParent);b.getName()=="html"&&(b=b.getDocument().getBody());b.getComputedStyle("direction")=="rtl"&&(m=CKEDITOR.env.ie8Compat?m-j.getDocument().getDocumentElement().$.scrollLeft*2:m-(a.$.scrollWidth- +a.$.clientWidth))}var a=j.getFirst(),h;(h=a.getCustomData("activePanel"))&&h.onHide&&h.onHide.call(this,1);a.setCustomData("activePanel",this);j.setStyles({top:p+"px",left:m+"px"});j.setOpacity(1)},this);i.isLoaded?a():i.onLoad=a;CKEDITOR.tools.setTimeout(function(){this.focus();this.allowBlur(true);this._.editor.fire("panelShow",this)},0,this)},CKEDITOR.env.air?200:0,this);this.visible=1;this.onShow&&this.onShow.call(this)},focus:function(){if(CKEDITOR.env.webkit){var a=CKEDITOR.document.getActive(); !a.equals(this._.iframe)&&a.$.blur()}(this._.lastFocused||this._.iframe.getFrameDocument().getWindow()).focus()},blur:function(){var a=this._.iframe.getFrameDocument().getActive();a.is("a")&&(this._.lastFocused=a)},hide:function(a){if(this.visible&&(!this.onHide||this.onHide.call(this)!==true)){this.hideChild();CKEDITOR.env.gecko&&this._.iframe.getFrameDocument().$.activeElement.blur();this.element.setStyle("display","none");this.visible=0;this.element.getFirst().removeCustomData("activePanel");if(a= a&&this._.returnFocus){CKEDITOR.env.webkit&&a.type&&a.getWindow().$.focus();a.focus()}delete this._.lastFocused;this._.editor.fire("panelHide",this)}},allowBlur:function(a){var b=this._.panel;if(a!=void 0)b.allowBlur=a;return b.allowBlur},showAsChild:function(a,b,d,g,f,i){if(!(this._.activeChild==a&&a._.panel._.offsetParentId==d.getId())){this.hideChild();a.onHide=CKEDITOR.tools.bind(function(){CKEDITOR.tools.setTimeout(function(){this._.focused||this.hide()},0,this)},this);this._.activeChild=a;this._.focused= false;a.showBlock(b,d,g,f,i);this.blur();(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)&&setTimeout(function(){a.element.getChild(0).$.style.cssText+=""},100)}},hideChild:function(a){var b=this._.activeChild;if(b){delete b.onHide;delete this._.activeChild;b.hide();a&&this.focus()}}}});CKEDITOR.on("instanceDestroyed",function(){var a=CKEDITOR.tools.isEmpty(CKEDITOR.instances),b;for(b in d){var h=d[b];a?h.destroy():h.element.hide()}a&&(d={})})}(),CKEDITOR.plugins.add("menu",{requires:"floatpanel", @@ -548,94 +549,94 @@ beforeInit:function(b){for(var d=b.config.menu_groups.split(","),a=b._.menuGroup b.order?-1:a.order>b.order?1:0})}var d='<span class="cke_menuitem"><a id="{id}" class="cke_menubutton cke_menubutton__{name} cke_menubutton_{state} {cls}" href="{href}" title="{title}" tabindex="-1"_cke_focus=1 hidefocus="true" role="menuitem" aria-haspopup="{hasPopup}" aria-disabled="{disabled}"';if(CKEDITOR.env.opera||CKEDITOR.env.gecko&&CKEDITOR.env.mac)d=d+' onkeypress="return false;"';CKEDITOR.env.gecko&&(d=d+' onblur="this.style.cssText = this.style.cssText;"');var d=d+(' onmouseover="CKEDITOR.tools.callFunction({hoverFn},{index});" onmouseout="CKEDITOR.tools.callFunction({moveOutFn},{index});" '+ (CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick")+'="CKEDITOR.tools.callFunction({clickFn},{index}); return false;">'),a=CKEDITOR.addTemplate("menuItem",d+'<span class="cke_menubutton_inner"><span class="cke_menubutton_icon"><span class="cke_button_icon cke_button__{iconName}_icon" style="{iconStyle}"></span></span><span class="cke_menubutton_label">{label}</span>{arrowHtml}</span></a></span>'),e=CKEDITOR.addTemplate("menuArrow",'<span class="cke_menuarrow"><span>{label}</span></span>'); CKEDITOR.menu=CKEDITOR.tools.createClass({$:function(a,b){b=this._.definition=b||{};this.id=CKEDITOR.tools.getNextId();this.editor=a;this.items=[];this._.listeners=[];this._.level=b.level||1;var f=CKEDITOR.tools.extend({},b.panel,{css:[CKEDITOR.skin.getPath("editor")],level:this._.level-1,block:{}}),e=f.block.attributes=f.attributes||{};!e.role&&(e.role="menu");this._.panelDefinition=f},_:{onShow:function(){var a=this.editor.getSelection(),b=a&&a.getStartElement(),f=this.editor.elementPath(),e=this._.listeners; -this.removeAll();for(var c=0;c<e.length;c++){var d=e[c](b,a,f);if(d)for(var l in d){var m=this.editor.getMenuItem(l);if(m&&(!m.command||this.editor.getCommand(m.command).state)){m.state=d[l];this.add(m)}}}},onClick:function(a){this.hide();if(a.onClick)a.onClick();else a.command&&this.editor.execCommand(a.command)},onEscape:function(a){var b=this.parent;b?b._.panel.hideChild(1):a==27&&this.hide(1);return false},onHide:function(){this.onHide&&this.onHide()},showSubMenu:function(a){var b=this._.subMenu, +this.removeAll();for(var c=0;c<e.length;c++){var d=e[c](b,a,f);if(d)for(var k in d){var l=this.editor.getMenuItem(k);if(l&&(!l.command||this.editor.getCommand(l.command).state)){l.state=d[k];this.add(l)}}}},onClick:function(a){this.hide();if(a.onClick)a.onClick();else a.command&&this.editor.execCommand(a.command)},onEscape:function(a){var b=this.parent;b?b._.panel.hideChild(1):a==27&&this.hide(1);return false},onHide:function(){this.onHide&&this.onHide()},showSubMenu:function(a){var b=this._.subMenu, f=this.items[a];if(f=f.getItems&&f.getItems()){if(b)b.removeAll();else{b=this._.subMenu=new CKEDITOR.menu(this.editor,CKEDITOR.tools.extend({},this._.definition,{level:this._.level+1},true));b.parent=this;b._.onClick=CKEDITOR.tools.bind(this._.onClick,this)}for(var e in f){var c=this.editor.getMenuItem(e);if(c){c.state=f[e];b.add(c)}}var d=this._.panel.getBlock(this.id).element.getDocument().getById(this.id+(""+a));setTimeout(function(){b.show(d,2)},0)}else this._.panel.hideChild(1)}},proto:{add:function(a){if(!a.order)a.order= -this.items.length;this.items.push(a)},removeAll:function(){this.items=[]},show:function(a,e,f,d){if(!this.parent){this._.onShow();if(!this.items.length)return}var e=e||(this.editor.lang.dir=="rtl"?2:1),c=this.items,j=this.editor,l=this._.panel,m=this._.element;if(!l){l=this._.panel=new CKEDITOR.ui.floatPanel(this.editor,CKEDITOR.document.getBody(),this._.panelDefinition,this._.level);l.onEscape=CKEDITOR.tools.bind(function(a){if(this._.onEscape(a)===false)return false},this);l.onShow=function(){l._.panel.getHolderElement().getParent().addClass("cke cke_reset_all")}; -l.onHide=CKEDITOR.tools.bind(function(){this._.onHide&&this._.onHide()},this);m=l.addBlock(this.id,this._.panelDefinition.block);m.autoSize=true;var n=m.keys;n[40]="next";n[9]="next";n[38]="prev";n[CKEDITOR.SHIFT+9]="prev";n[j.lang.dir=="rtl"?37:39]=CKEDITOR.env.ie?"mouseup":"click";n[32]=CKEDITOR.env.ie?"mouseup":"click";CKEDITOR.env.ie&&(n[13]="mouseup");m=this._.element=m.element;n=m.getDocument();n.getBody().setStyle("overflow","hidden");n.getElementsByTag("html").getItem(0).setStyle("overflow", +this.items.length;this.items.push(a)},removeAll:function(){this.items=[]},show:function(a,e,f,d){if(!this.parent){this._.onShow();if(!this.items.length)return}var e=e||(this.editor.lang.dir=="rtl"?2:1),c=this.items,j=this.editor,k=this._.panel,l=this._.element;if(!k){k=this._.panel=new CKEDITOR.ui.floatPanel(this.editor,CKEDITOR.document.getBody(),this._.panelDefinition,this._.level);k.onEscape=CKEDITOR.tools.bind(function(a){if(this._.onEscape(a)===false)return false},this);k.onShow=function(){k._.panel.getHolderElement().getParent().addClass("cke cke_reset_all")}; +k.onHide=CKEDITOR.tools.bind(function(){this._.onHide&&this._.onHide()},this);l=k.addBlock(this.id,this._.panelDefinition.block);l.autoSize=true;var n=l.keys;n[40]="next";n[9]="next";n[38]="prev";n[CKEDITOR.SHIFT+9]="prev";n[j.lang.dir=="rtl"?37:39]=CKEDITOR.env.ie?"mouseup":"click";n[32]=CKEDITOR.env.ie?"mouseup":"click";CKEDITOR.env.ie&&(n[13]="mouseup");l=this._.element=l.element;n=l.getDocument();n.getBody().setStyle("overflow","hidden");n.getElementsByTag("html").getItem(0).setStyle("overflow", "hidden");this._.itemOverFn=CKEDITOR.tools.addFunction(function(a){clearTimeout(this._.showSubTimeout);this._.showSubTimeout=CKEDITOR.tools.setTimeout(this._.showSubMenu,j.config.menu_subMenuDelay||400,this,[a])},this);this._.itemOutFn=CKEDITOR.tools.addFunction(function(){clearTimeout(this._.showSubTimeout)},this);this._.itemClickFn=CKEDITOR.tools.addFunction(function(a){var b=this.items[a];if(b.state==CKEDITOR.TRISTATE_DISABLED)this.hide(1);else if(b.getItems)this._.showSubMenu(a);else this._.onClick(b)}, -this)}b(c);for(var n=j.elementPath(),n=['<div class="cke_menu'+(n&&n.direction()!=j.lang.dir?" cke_mixed_dir_content":"")+'" role="presentation">'],o=c.length,k=o&&c[0].group,p=0;p<o;p++){var r=c[p];if(k!=r.group){n.push('<div class="cke_menuseparator" role="separator"></div>');k=r.group}r.render(this,p,n)}n.push("</div>");m.setHtml(n.join(""));CKEDITOR.ui.fire("ready",this);this.parent?this.parent._.panel.showAsChild(l,this.id,a,e,f,d):l.showBlock(this.id,a,e,f,d);j.fire("menuShow",[l])},addListener:function(a){this._.listeners.push(a)}, -hide:function(a){this._.onHide&&this._.onHide();this._.panel&&this._.panel.hide(a)}}});CKEDITOR.menuItem=CKEDITOR.tools.createClass({$:function(a,b,f){CKEDITOR.tools.extend(this,f,{order:0,className:"cke_menubutton__"+b});this.group=a._.menuGroups[this.group];this.editor=a;this.name=b},proto:{render:function(b,d,f){var i=b.id+(""+d),c=typeof this.state=="undefined"?CKEDITOR.TRISTATE_OFF:this.state,j=c==CKEDITOR.TRISTATE_ON?"on":c==CKEDITOR.TRISTATE_DISABLED?"disabled":"off",l=this.getItems,m="&#"+ -(this.editor.lang.dir=="rtl"?"9668":"9658")+";",n=this.name;if(this.icon&&!/\./.test(this.icon))n=this.icon;b={id:i,name:this.name,iconName:n,label:this.label,cls:this.className||"",state:j,hasPopup:l?"true":"false",disabled:c==CKEDITOR.TRISTATE_DISABLED,title:this.label,href:"javascript:void('"+(this.label||"").replace("'")+"')",hoverFn:b._.itemOverFn,moveOutFn:b._.itemOutFn,clickFn:b._.itemClickFn,index:d,iconStyle:CKEDITOR.skin.getIconStyle(n,this.editor.lang.dir=="rtl",n==this.icon?null:this.icon, -this.iconOffset),arrowHtml:l?e.output({label:m}):""};a.output(b,f)}}})}(),CKEDITOR.config.menu_groups="clipboard,form,tablecell,tablecellproperties,tablerow,tablecolumn,table,anchor,link,image,flash,checkbox,radio,textfield,hiddenfield,imagebutton,button,select,textarea,div",CKEDITOR.plugins.add("contextmenu",{requires:"menu",onLoad:function(){CKEDITOR.plugins.contextMenu=CKEDITOR.tools.createClass({base:CKEDITOR.menu,$:function(b){this.base.call(this,b,{panel:{className:"cke_menu_panel",attributes:{"aria-label":b.lang.contextmenu.options}}})}, +this)}b(c);for(var n=j.elementPath(),n=['<div class="cke_menu'+(n&&n.direction()!=j.lang.dir?" cke_mixed_dir_content":"")+'" role="presentation">'],o=c.length,m=o&&c[0].group,p=0;p<o;p++){var q=c[p];if(m!=q.group){n.push('<div class="cke_menuseparator" role="separator"></div>');m=q.group}q.render(this,p,n)}n.push("</div>");l.setHtml(n.join(""));CKEDITOR.ui.fire("ready",this);this.parent?this.parent._.panel.showAsChild(k,this.id,a,e,f,d):k.showBlock(this.id,a,e,f,d);j.fire("menuShow",[k])},addListener:function(a){this._.listeners.push(a)}, +hide:function(a){this._.onHide&&this._.onHide();this._.panel&&this._.panel.hide(a)}}});CKEDITOR.menuItem=CKEDITOR.tools.createClass({$:function(a,b,f){CKEDITOR.tools.extend(this,f,{order:0,className:"cke_menubutton__"+b});this.group=a._.menuGroups[this.group];this.editor=a;this.name=b},proto:{render:function(b,d,f){var i=b.id+(""+d),c=typeof this.state=="undefined"?CKEDITOR.TRISTATE_OFF:this.state,j=c==CKEDITOR.TRISTATE_ON?"on":c==CKEDITOR.TRISTATE_DISABLED?"disabled":"off",k=this.getItems,l="&#"+ +(this.editor.lang.dir=="rtl"?"9668":"9658")+";",n=this.name;if(this.icon&&!/\./.test(this.icon))n=this.icon;b={id:i,name:this.name,iconName:n,label:this.label,cls:this.className||"",state:j,hasPopup:k?"true":"false",disabled:c==CKEDITOR.TRISTATE_DISABLED,title:this.label,href:"javascript:void('"+(this.label||"").replace("'")+"')",hoverFn:b._.itemOverFn,moveOutFn:b._.itemOutFn,clickFn:b._.itemClickFn,index:d,iconStyle:CKEDITOR.skin.getIconStyle(n,this.editor.lang.dir=="rtl",n==this.icon?null:this.icon, +this.iconOffset),arrowHtml:k?e.output({label:l}):""};a.output(b,f)}}})}(),CKEDITOR.config.menu_groups="clipboard,form,tablecell,tablecellproperties,tablerow,tablecolumn,table,anchor,link,image,flash,checkbox,radio,textfield,hiddenfield,imagebutton,button,select,textarea,div",CKEDITOR.plugins.add("contextmenu",{requires:"menu",onLoad:function(){CKEDITOR.plugins.contextMenu=CKEDITOR.tools.createClass({base:CKEDITOR.menu,$:function(b){this.base.call(this,b,{panel:{className:"cke_menu_panel",attributes:{"aria-label":b.lang.contextmenu.options}}})}, proto:{addTarget:function(b,d){if(CKEDITOR.env.opera&&!("oncontextmenu"in document.body)){var a;b.on("mousedown",function(e){e=e.data;if(e.$.button!=2)e.getKeystroke()==CKEDITOR.CTRL+1&&b.fire("contextmenu",e);else if(!d||!(CKEDITOR.env.mac?e.$.metaKey:e.$.ctrlKey)){var f=e.getTarget();if(!a){f=f.getDocument();a=f.createElement("input");a.$.type="button";f.getBody().append(a)}a.setAttribute("style","position:absolute;top:"+(e.$.clientY-2)+"px;left:"+(e.$.clientX-2)+"px;width:5px;height:5px;opacity:0.01")}}); -b.on("mouseup",function(e){if(a){a.remove();a=void 0;b.fire("contextmenu",e.data)}})}b.on("contextmenu",function(a){a=a.data;if(!d||!(CKEDITOR.env.webkit?e:CKEDITOR.env.mac?a.$.metaKey:a.$.ctrlKey)){a.preventDefault();var b=a.getTarget().getDocument(),h=a.getTarget().getDocument().getDocumentElement(),c=!b.equals(CKEDITOR.document),b=b.getWindow().getScrollPosition(),j=c?a.$.clientX:a.$.pageX||b.x+a.$.clientX,l=c?a.$.clientY:a.$.pageY||b.y+a.$.clientY;CKEDITOR.tools.setTimeout(function(){this.open(h, -null,j,l)},CKEDITOR.env.ie?200:0,this)}},this);if(CKEDITOR.env.opera)b.on("keypress",function(a){a=a.data;a.$.keyCode===0&&a.preventDefault()});if(CKEDITOR.env.webkit){var e,h=function(){e=0};b.on("keydown",function(a){e=CKEDITOR.env.mac?a.data.$.metaKey:a.data.$.ctrlKey});b.on("keyup",h);b.on("contextmenu",h)}},open:function(b,d,a,e){this.editor.focus();b=b||CKEDITOR.document.getDocumentElement();this.editor.selectionChange(1);this.show(b,d,a,e)}}})},beforeInit:function(b){var d=b.contextMenu=new CKEDITOR.plugins.contextMenu(b); +b.on("mouseup",function(e){if(a){a.remove();a=void 0;b.fire("contextmenu",e.data)}})}b.on("contextmenu",function(a){a=a.data;if(!d||!(CKEDITOR.env.webkit?e:CKEDITOR.env.mac?a.$.metaKey:a.$.ctrlKey)){a.preventDefault();var b=a.getTarget().getDocument(),h=a.getTarget().getDocument().getDocumentElement(),c=!b.equals(CKEDITOR.document),b=b.getWindow().getScrollPosition(),j=c?a.$.clientX:a.$.pageX||b.x+a.$.clientX,k=c?a.$.clientY:a.$.pageY||b.y+a.$.clientY;CKEDITOR.tools.setTimeout(function(){this.open(h, +null,j,k)},CKEDITOR.env.ie?200:0,this)}},this);if(CKEDITOR.env.opera)b.on("keypress",function(a){a=a.data;a.$.keyCode===0&&a.preventDefault()});if(CKEDITOR.env.webkit){var e,h=function(){e=0};b.on("keydown",function(a){e=CKEDITOR.env.mac?a.data.$.metaKey:a.data.$.ctrlKey});b.on("keyup",h);b.on("contextmenu",h)}},open:function(b,d,a,e){this.editor.focus();b=b||CKEDITOR.document.getDocumentElement();this.editor.selectionChange(1);this.show(b,d,a,e)}}})},beforeInit:function(b){var d=b.contextMenu=new CKEDITOR.plugins.contextMenu(b); b.on("contentDom",function(){d.addTarget(b.editable(),b.config.browserContextMenuOnCtrl!==false)});b.addCommand("contextMenu",{exec:function(){b.contextMenu.open(b.document.getBody())}});b.setKeystroke(CKEDITOR.SHIFT+121,"contextMenu");b.setKeystroke(CKEDITOR.CTRL+CKEDITOR.SHIFT+121,"contextMenu")}}),CKEDITOR.plugins.add("resize",{init:function(b){var d,a,e,h,g=b.config,f=b.ui.spaceId("resizer"),i=b.element?b.element.getDirection(1):"ltr";!g.resize_dir&&(g.resize_dir="vertical");g.resize_maxWidth== -void 0&&(g.resize_maxWidth=3E3);g.resize_maxHeight==void 0&&(g.resize_maxHeight=3E3);g.resize_minWidth==void 0&&(g.resize_minWidth=750);g.resize_minHeight==void 0&&(g.resize_minHeight=250);if(g.resize_enabled!==false){var c=null,j=(g.resize_dir=="both"||g.resize_dir=="horizontal")&&g.resize_minWidth!=g.resize_maxWidth,l=(g.resize_dir=="both"||g.resize_dir=="vertical")&&g.resize_minHeight!=g.resize_maxHeight,m=function(c){var f=d,r=a,q=f+(c.data.$.screenX-e)*(i=="rtl"?-1:1),c=r+(c.data.$.screenY-h); -j&&(f=Math.max(g.resize_minWidth,Math.min(q,g.resize_maxWidth)));l&&(r=Math.max(g.resize_minHeight,Math.min(c,g.resize_maxHeight)));b.resize(j?f:null,r)},n=function(){CKEDITOR.document.removeListener("mousemove",m);CKEDITOR.document.removeListener("mouseup",n);if(b.document){b.document.removeListener("mousemove",m);b.document.removeListener("mouseup",n)}},o=CKEDITOR.tools.addFunction(function(f){c||(c=b.getResizable());d=c.$.offsetWidth||0;a=c.$.offsetHeight||0;e=f.screenX;h=f.screenY;g.resize_minWidth> -d&&(g.resize_minWidth=d);g.resize_minHeight>a&&(g.resize_minHeight=a);CKEDITOR.document.on("mousemove",m);CKEDITOR.document.on("mouseup",n);if(b.document){b.document.on("mousemove",m);b.document.on("mouseup",n)}f.preventDefault&&f.preventDefault()});b.on("destroy",function(){CKEDITOR.tools.removeFunction(o)});b.on("uiSpace",function(a){if(a.data.space=="bottom"){var c="";j&&!l&&(c=" cke_resizer_horizontal");!j&&l&&(c=" cke_resizer_vertical");var e='<span id="'+f+'" class="cke_resizer'+c+" cke_resizer_"+ +void 0&&(g.resize_maxWidth=3E3);g.resize_maxHeight==void 0&&(g.resize_maxHeight=3E3);g.resize_minWidth==void 0&&(g.resize_minWidth=750);g.resize_minHeight==void 0&&(g.resize_minHeight=250);if(g.resize_enabled!==false){var c=null,j=(g.resize_dir=="both"||g.resize_dir=="horizontal")&&g.resize_minWidth!=g.resize_maxWidth,k=(g.resize_dir=="both"||g.resize_dir=="vertical")&&g.resize_minHeight!=g.resize_maxHeight,l=function(c){var f=d,q=a,r=f+(c.data.$.screenX-e)*(i=="rtl"?-1:1),c=q+(c.data.$.screenY-h); +j&&(f=Math.max(g.resize_minWidth,Math.min(r,g.resize_maxWidth)));k&&(q=Math.max(g.resize_minHeight,Math.min(c,g.resize_maxHeight)));b.resize(j?f:null,q)},n=function(){CKEDITOR.document.removeListener("mousemove",l);CKEDITOR.document.removeListener("mouseup",n);if(b.document){b.document.removeListener("mousemove",l);b.document.removeListener("mouseup",n)}},o=CKEDITOR.tools.addFunction(function(f){c||(c=b.getResizable());d=c.$.offsetWidth||0;a=c.$.offsetHeight||0;e=f.screenX;h=f.screenY;g.resize_minWidth> +d&&(g.resize_minWidth=d);g.resize_minHeight>a&&(g.resize_minHeight=a);CKEDITOR.document.on("mousemove",l);CKEDITOR.document.on("mouseup",n);if(b.document){b.document.on("mousemove",l);b.document.on("mouseup",n)}f.preventDefault&&f.preventDefault()});b.on("destroy",function(){CKEDITOR.tools.removeFunction(o)});b.on("uiSpace",function(a){if(a.data.space=="bottom"){var c="";j&&!k&&(c=" cke_resizer_horizontal");!j&&k&&(c=" cke_resizer_vertical");var e='<span id="'+f+'" class="cke_resizer'+c+" cke_resizer_"+ i+'" title="'+CKEDITOR.tools.htmlEncode(b.lang.common.resize)+'" onmousedown="CKEDITOR.tools.callFunction('+o+', event)">'+(i=="ltr"?"â—¢":"â—£")+"</span>";i=="ltr"&&c=="ltr"?a.data.html=a.data.html+e:a.data.html=e+a.data.html}},b,null,100);b.on("maximize",function(a){b.ui.space("resizer")[a.data==CKEDITOR.TRISTATE_ON?"hide":"show"]()})}}}),function(){var b='<a id="{id}" class="cke_button cke_button__{name} cke_button_{state} {cls}"'+(CKEDITOR.env.gecko&&CKEDITOR.env.version>=10900&&!CKEDITOR.env.hc? "":'" href="javascript:void(\'{titleJs}\')"')+' title="{title}" tabindex="-1" hidefocus="true" role="button" aria-labelledby="{id}_label" aria-haspopup="{hasArrow}"';if(CKEDITOR.env.opera||CKEDITOR.env.gecko&&CKEDITOR.env.mac)b=b+' onkeypress="return false;"';CKEDITOR.env.gecko&&(b=b+' onblur="this.style.cssText = this.style.cssText;"');var b=b+(' onkeydown="return CKEDITOR.tools.callFunction({keydownFn},event);" onfocus="return CKEDITOR.tools.callFunction({focusFn},event);" onmousedown="return CKEDITOR.tools.callFunction({mousedownFn},event);" '+ (CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick")+'="CKEDITOR.tools.callFunction({clickFn},this);return false;"><span class="cke_button_icon cke_button__{iconName}_icon" style="{style}"'),b=b+'> </span><span id="{id}_label" class="cke_button_label cke_button__{name}_label">{label}</span>{arrowHtml}</a>',d=CKEDITOR.addTemplate("buttonArrow",'<span class="cke_button_arrow">'+(CKEDITOR.env.hc?"▼":"")+"</span>"),a=CKEDITOR.addTemplate("button",b);CKEDITOR.plugins.add("button", -{beforeInit:function(a){a.ui.addHandler(CKEDITOR.UI_BUTTON,CKEDITOR.ui.button.handler)}});CKEDITOR.UI_BUTTON="button";CKEDITOR.ui.button=function(a){CKEDITOR.tools.extend(this,a,{title:a.label,click:a.click||function(b){b.execCommand(a.command)}});this._={}};CKEDITOR.ui.button.handler={create:function(a){return new CKEDITOR.ui.button(a)}};CKEDITOR.ui.button.prototype={render:function(b,h){var g=CKEDITOR.env,f=this._.id=CKEDITOR.tools.getNextId(),i="",c=this.command,j;this._.editor=b;var l={id:f,button:this, -editor:b,focus:function(){CKEDITOR.document.getById(f).focus()},execute:function(){this.button.click(b)},attach:function(a){this.button.attach(a)}},m=CKEDITOR.tools.addFunction(function(a){if(l.onkey){a=new CKEDITOR.dom.event(a);return l.onkey(l,a.getKeystroke())!==false}}),n=CKEDITOR.tools.addFunction(function(a){var b;l.onfocus&&(b=l.onfocus(l,new CKEDITOR.dom.event(a))!==false);CKEDITOR.env.gecko&&CKEDITOR.env.version<10900&&a.preventBubble();return b}),o=0,k=CKEDITOR.tools.addFunction(function(){if(CKEDITOR.env.opera){var a= -b.editable();if(a.isInline()&&a.hasFocus){b.lockSelection();o=1}}});l.clickFn=j=CKEDITOR.tools.addFunction(function(){if(o){b.unlockSelection(1);o=0}l.execute()});if(this.modes){var p={},r=function(){var a=b.mode;if(a){a=this.modes[a]?p[a]!=void 0?p[a]:CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED;this.setState(b.readOnly&&!this.readOnly?CKEDITOR.TRISTATE_DISABLED:a)}};b.on("beforeModeUnload",function(){if(b.mode&&this._.state!=CKEDITOR.TRISTATE_DISABLED)p[b.mode]=this._.state},this);b.on("mode", -r,this);!this.readOnly&&b.on("readOnly",r,this)}else if(c)if(c=b.getCommand(c)){c.on("state",function(){this.setState(c.state)},this);i=i+(c.state==CKEDITOR.TRISTATE_ON?"on":c.state==CKEDITOR.TRISTATE_DISABLED?"disabled":"off")}if(this.directional)b.on("contentDirChanged",function(a){var c=CKEDITOR.document.getById(this._.id),f=c.getFirst(),a=a.data;a!=b.lang.dir?c.addClass("cke_"+a):c.removeClass("cke_ltr").removeClass("cke_rtl");f.setAttribute("style",CKEDITOR.skin.getIconStyle(q,a=="rtl",this.icon, -this.iconOffset))},this);c||(i=i+"off");var q=r=this.name||this.command;if(this.icon&&!/\./.test(this.icon)){q=this.icon;this.icon=null}g={id:f,name:r,iconName:q,label:this.label,cls:this.className||"",state:i,title:this.title,titleJs:g.gecko&&g.version>=10900&&!g.hc?"":(this.title||"").replace("'",""),hasArrow:this.hasArrow?"true":"false",keydownFn:m,mousedownFn:k,focusFn:n,clickFn:j,style:CKEDITOR.skin.getIconStyle(q,b.lang.dir=="rtl",this.icon,this.iconOffset),arrowHtml:this.hasArrow?d.output(): -""};a.output(g,h);if(this.onRender)this.onRender();return l},setState:function(a){if(this._.state==a)return false;this._.state=a;var b=CKEDITOR.document.getById(this._.id);if(b){b.setState(a,"cke_button");a==CKEDITOR.TRISTATE_DISABLED?b.setAttribute("aria-disabled",true):b.removeAttribute("aria-disabled");a==CKEDITOR.TRISTATE_ON?b.setAttribute("aria-pressed",true):b.removeAttribute("aria-pressed");return true}return false},toFeature:function(a){if(this._.feature)return this._.feature;var b=this;!this.allowedContent&& -(!this.requiredContent&&this.command)&&(b=a.getCommand(this.command)||b);return this._.feature=b}};CKEDITOR.ui.prototype.addButton=function(a,b){this.add(a,CKEDITOR.UI_BUTTON,b)}}(),function(){function b(a){function b(){for(var c=f(),g=CKEDITOR.tools.clone(a.config.toolbarGroups)||d(a),j=0;j<g.length;j++){var k=g[j];if(k!="/"){typeof k=="string"&&(k=g[j]={name:k});var l,r=k.groups;if(r)for(var q=0;q<r.length;q++){l=r[q];(l=c[l])&&e(k,l)}(l=c[k.name])&&e(k,l)}}return g}function f(){var b={},c,f,e; +{beforeInit:function(a){a.ui.addHandler(CKEDITOR.UI_BUTTON,CKEDITOR.ui.button.handler)}});CKEDITOR.UI_BUTTON="button";CKEDITOR.ui.button=function(a){CKEDITOR.tools.extend(this,a,{title:a.label,click:a.click||function(b){b.execCommand(a.command)}});this._={}};CKEDITOR.ui.button.handler={create:function(a){return new CKEDITOR.ui.button(a)}};CKEDITOR.ui.button.prototype={render:function(b,h){var g=CKEDITOR.env,f=this._.id=CKEDITOR.tools.getNextId(),i="",c=this.command,j;this._.editor=b;var k={id:f,button:this, +editor:b,focus:function(){CKEDITOR.document.getById(f).focus()},execute:function(){this.button.click(b)},attach:function(a){this.button.attach(a)}},l=CKEDITOR.tools.addFunction(function(a){if(k.onkey){a=new CKEDITOR.dom.event(a);return k.onkey(k,a.getKeystroke())!==false}}),n=CKEDITOR.tools.addFunction(function(a){var b;k.onfocus&&(b=k.onfocus(k,new CKEDITOR.dom.event(a))!==false);CKEDITOR.env.gecko&&CKEDITOR.env.version<10900&&a.preventBubble();return b}),o=0,m=CKEDITOR.tools.addFunction(function(){if(CKEDITOR.env.opera){var a= +b.editable();if(a.isInline()&&a.hasFocus){b.lockSelection();o=1}}});k.clickFn=j=CKEDITOR.tools.addFunction(function(){if(o){b.unlockSelection(1);o=0}k.execute()});if(this.modes){var p={},q=function(){var a=b.mode;if(a){a=this.modes[a]?p[a]!=void 0?p[a]:CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED;this.setState(b.readOnly&&!this.readOnly?CKEDITOR.TRISTATE_DISABLED:a)}};b.on("beforeModeUnload",function(){if(b.mode&&this._.state!=CKEDITOR.TRISTATE_DISABLED)p[b.mode]=this._.state},this);b.on("mode", +q,this);!this.readOnly&&b.on("readOnly",q,this)}else if(c)if(c=b.getCommand(c)){c.on("state",function(){this.setState(c.state)},this);i=i+(c.state==CKEDITOR.TRISTATE_ON?"on":c.state==CKEDITOR.TRISTATE_DISABLED?"disabled":"off")}if(this.directional)b.on("contentDirChanged",function(a){var c=CKEDITOR.document.getById(this._.id),f=c.getFirst(),a=a.data;a!=b.lang.dir?c.addClass("cke_"+a):c.removeClass("cke_ltr").removeClass("cke_rtl");f.setAttribute("style",CKEDITOR.skin.getIconStyle(r,a=="rtl",this.icon, +this.iconOffset))},this);c||(i=i+"off");var r=q=this.name||this.command;if(this.icon&&!/\./.test(this.icon)){r=this.icon;this.icon=null}g={id:f,name:q,iconName:r,label:this.label,cls:this.className||"",state:i,title:this.title,titleJs:g.gecko&&g.version>=10900&&!g.hc?"":(this.title||"").replace("'",""),hasArrow:this.hasArrow?"true":"false",keydownFn:l,mousedownFn:m,focusFn:n,clickFn:j,style:CKEDITOR.skin.getIconStyle(r,b.lang.dir=="rtl",this.icon,this.iconOffset),arrowHtml:this.hasArrow?d.output(): +""};a.output(g,h);if(this.onRender)this.onRender();return k},setState:function(a){if(this._.state==a)return false;this._.state=a;var b=CKEDITOR.document.getById(this._.id);if(b){b.setState(a,"cke_button");a==CKEDITOR.TRISTATE_DISABLED?b.setAttribute("aria-disabled",true):b.removeAttribute("aria-disabled");a==CKEDITOR.TRISTATE_ON?b.setAttribute("aria-pressed",true):b.removeAttribute("aria-pressed");return true}return false},toFeature:function(a){if(this._.feature)return this._.feature;var b=this;!this.allowedContent&& +(!this.requiredContent&&this.command)&&(b=a.getCommand(this.command)||b);return this._.feature=b}};CKEDITOR.ui.prototype.addButton=function(a,b){this.add(a,CKEDITOR.UI_BUTTON,b)}}(),function(){function b(a){function b(){for(var c=f(),g=CKEDITOR.tools.clone(a.config.toolbarGroups)||d(a),j=0;j<g.length;j++){var m=g[j];if(m!="/"){typeof m=="string"&&(m=g[j]={name:m});var k,q=m.groups;if(q)for(var r=0;r<q.length;r++){k=q[r];(k=c[k])&&e(m,k)}(k=c[m.name])&&e(m,k)}}return g}function f(){var b={},c,f,e; for(c in a.ui.items){f=a.ui.items[c];e=f.toolbar||"others";e=e.split(",");f=e[0];e=parseInt(e[1]||-1,10);b[f]||(b[f]=[]);b[f].push({name:c,order:e})}for(f in b)b[f]=b[f].sort(function(a,b){return a.order==b.order?0:b.order<0?-1:a.order<0?1:a.order<b.order?-1:1});return b}function e(b,c){if(c.length){b.items?b.items.push(a.ui.create("-")):b.items=[];for(var f;f=c.shift();){f=typeof f=="string"?f:f.name;if(!j||CKEDITOR.tools.indexOf(j,f)==-1)(f=a.ui.create(f))&&a.addFeature(f)&&b.items.push(f)}}}function c(a){var b= -[],c,f,d;for(c=0;c<a.length;++c){f=a[c];d={};if(f=="/")b.push(f);else if(CKEDITOR.tools.isArray(f)){e(d,CKEDITOR.tools.clone(f));b.push(d)}else if(f.items){e(d,CKEDITOR.tools.clone(f.items));d.name=f.name;b.push(d)}}return b}var j=a.config.removeButtons,j=j&&j.split(","),l=a.config.toolbar;typeof l=="string"&&(l=a.config["toolbar_"+l]);return a.toolbar=l?c(l):b()}function d(a){return a._.toolbarGroups||(a._.toolbarGroups=[{name:"document",groups:["mode","document","doctools"]},{name:"clipboard",groups:["clipboard", +[],c,f,d;for(c=0;c<a.length;++c){f=a[c];d={};if(f=="/")b.push(f);else if(CKEDITOR.tools.isArray(f)){e(d,CKEDITOR.tools.clone(f));b.push(d)}else if(f.items){e(d,CKEDITOR.tools.clone(f.items));d.name=f.name;b.push(d)}}return b}var j=a.config.removeButtons,j=j&&j.split(","),k=a.config.toolbar;typeof k=="string"&&(k=a.config["toolbar_"+k]);return a.toolbar=k?c(k):b()}function d(a){return a._.toolbarGroups||(a._.toolbarGroups=[{name:"document",groups:["mode","document","doctools"]},{name:"clipboard",groups:["clipboard", "undo"]},{name:"editing",groups:["find","selection","spellchecker"]},{name:"forms"},"/",{name:"basicstyles",groups:["basicstyles","cleanup"]},{name:"paragraph",groups:["list","indent","blocks","align"]},{name:"links"},{name:"insert"},"/",{name:"styles"},{name:"colors"},{name:"tools"},{name:"others"},{name:"about"}])}var a=function(){this.toolbars=[];this.focusCommandExecuted=false};a.prototype.focus=function(){for(var a=0,b;b=this.toolbars[a++];)for(var f=0,e;e=b.items[f++];)if(e.focus){e.focus(); -return}};var e={modes:{wysiwyg:1,source:1},readOnly:1,exec:function(a){if(a.toolbox){a.toolbox.focusCommandExecuted=true;CKEDITOR.env.ie||CKEDITOR.env.air?setTimeout(function(){a.toolbox.focus()},100):a.toolbox.focus()}}};CKEDITOR.plugins.add("toolbar",{requires:"button",init:function(d){var g,f=function(a,b){var e,l=d.lang.dir=="rtl",m=d.config.toolbarGroupCycling,m=m===void 0||m;switch(b){case 9:case CKEDITOR.SHIFT+9:for(;!e||!e.items.length;){e=b==9?(e?e.next:a.toolbar.next)||d.toolbox.toolbars[0]: -(e?e.previous:a.toolbar.previous)||d.toolbox.toolbars[d.toolbox.toolbars.length-1];if(e.items.length)for(a=e.items[g?e.items.length-1:0];a&&!a.focus;)(a=g?a.previous:a.next)||(e=0)}a&&a.focus();return false;case l?37:39:case 40:e=a;do{e=e.next;!e&&m&&(e=a.toolbar.items[0])}while(e&&!e.focus);e?e.focus():f(a,9);return false;case l?39:37:case 38:e=a;do{e=e.previous;!e&&m&&(e=a.toolbar.items[a.toolbar.items.length-1])}while(e&&!e.focus);if(e)e.focus();else{g=1;f(a,CKEDITOR.SHIFT+9);g=0}return false; -case 27:d.focus();return false;case 13:case 32:a.execute();return false}return true};d.on("uiSpace",function(e){if(e.data.space==d.config.toolbarLocation){e.removeListener();d.toolbox=new a;var c=CKEDITOR.tools.getNextId(),g=['<span id="',c,'" class="cke_voice_label">',d.lang.toolbar.toolbars,"</span>",'<span id="'+d.ui.spaceId("toolbox")+'" class="cke_toolbox" role="group" aria-labelledby="',c,'" onmousedown="return false;">'],c=d.config.toolbarStartupExpanded!==false,l,m;d.config.toolbarCanCollapse&& -d.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE&&g.push('<span class="cke_toolbox_main"'+(c?">":' style="display:none">'));for(var n=d.toolbox.toolbars,o=b(d),k=0;k<o.length;k++){var p,r=0,q,t=o[k],z;if(t){if(l){g.push("</span>");m=l=0}if(t==="/")g.push('<span class="cke_toolbar_break"></span>');else{z=t.items||t;for(var x=0;x<z.length;x++){var u=z[x],w;if(u)if(u.type==CKEDITOR.UI_SEPARATOR)m=l&&u;else{w=u.canGroup!==false;if(!r){p=CKEDITOR.tools.getNextId();r={id:p,items:[]};q=t.name&&(d.lang.toolbar.toolbarGroups[t.name]|| -t.name);g.push('<span id="',p,'" class="cke_toolbar"',q?' aria-labelledby="'+p+'_label"':"",' role="toolbar">');q&&g.push('<span id="',p,'_label" class="cke_voice_label">',q,"</span>");g.push('<span class="cke_toolbar_start"></span>');var s=n.push(r)-1;if(s>0){r.previous=n[s-1];r.previous.next=r}}if(w){if(!l){g.push('<span class="cke_toolgroup" role="presentation">');l=1}}else if(l){g.push("</span>");l=0}p=function(a){a=a.render(d,g);s=r.items.push(a)-1;if(s>0){a.previous=r.items[s-1];a.previous.next= -a}a.toolbar=r;a.onkey=f;a.onfocus=function(){d.toolbox.focusCommandExecuted||d.focus()}};if(m){p(m);m=0}p(u)}}if(l){g.push("</span>");m=l=0}r&&g.push('<span class="cke_toolbar_end"></span></span>')}}}d.config.toolbarCanCollapse&&g.push("</span>");if(d.config.toolbarCanCollapse&&d.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var v=CKEDITOR.tools.addFunction(function(){d.execCommand("toolbarCollapse")});d.on("destroy",function(){CKEDITOR.tools.removeFunction(v)});d.addCommand("toolbarCollapse",{readOnly:1, +return}};var e={modes:{wysiwyg:1,source:1},readOnly:1,exec:function(a){if(a.toolbox){a.toolbox.focusCommandExecuted=true;CKEDITOR.env.ie||CKEDITOR.env.air?setTimeout(function(){a.toolbox.focus()},100):a.toolbox.focus()}}};CKEDITOR.plugins.add("toolbar",{requires:"button",init:function(d){var g,f=function(a,b){var e,k=d.lang.dir=="rtl",l=d.config.toolbarGroupCycling,l=l===void 0||l;switch(b){case 9:case CKEDITOR.SHIFT+9:for(;!e||!e.items.length;){e=b==9?(e?e.next:a.toolbar.next)||d.toolbox.toolbars[0]: +(e?e.previous:a.toolbar.previous)||d.toolbox.toolbars[d.toolbox.toolbars.length-1];if(e.items.length)for(a=e.items[g?e.items.length-1:0];a&&!a.focus;)(a=g?a.previous:a.next)||(e=0)}a&&a.focus();return false;case k?37:39:case 40:e=a;do{e=e.next;!e&&l&&(e=a.toolbar.items[0])}while(e&&!e.focus);e?e.focus():f(a,9);return false;case k?39:37:case 38:e=a;do{e=e.previous;!e&&l&&(e=a.toolbar.items[a.toolbar.items.length-1])}while(e&&!e.focus);if(e)e.focus();else{g=1;f(a,CKEDITOR.SHIFT+9);g=0}return false; +case 27:d.focus();return false;case 13:case 32:a.execute();return false}return true};d.on("uiSpace",function(e){if(e.data.space==d.config.toolbarLocation){e.removeListener();d.toolbox=new a;var c=CKEDITOR.tools.getNextId(),g=['<span id="',c,'" class="cke_voice_label">',d.lang.toolbar.toolbars,"</span>",'<span id="'+d.ui.spaceId("toolbox")+'" class="cke_toolbox" role="group" aria-labelledby="',c,'" onmousedown="return false;">'],c=d.config.toolbarStartupExpanded!==false,k,l;d.config.toolbarCanCollapse&& +d.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE&&g.push('<span class="cke_toolbox_main"'+(c?">":' style="display:none">'));for(var n=d.toolbox.toolbars,o=b(d),m=0;m<o.length;m++){var p,q=0,r,t=o[m],z;if(t){if(k){g.push("</span>");l=k=0}if(t==="/")g.push('<span class="cke_toolbar_break"></span>');else{z=t.items||t;for(var x=0;x<z.length;x++){var u=z[x],w;if(u)if(u.type==CKEDITOR.UI_SEPARATOR)l=k&&u;else{w=u.canGroup!==false;if(!q){p=CKEDITOR.tools.getNextId();q={id:p,items:[]};r=t.name&&(d.lang.toolbar.toolbarGroups[t.name]|| +t.name);g.push('<span id="',p,'" class="cke_toolbar"',r?' aria-labelledby="'+p+'_label"':"",' role="toolbar">');r&&g.push('<span id="',p,'_label" class="cke_voice_label">',r,"</span>");g.push('<span class="cke_toolbar_start"></span>');var s=n.push(q)-1;if(s>0){q.previous=n[s-1];q.previous.next=q}}if(w){if(!k){g.push('<span class="cke_toolgroup" role="presentation">');k=1}}else if(k){g.push("</span>");k=0}p=function(a){a=a.render(d,g);s=q.items.push(a)-1;if(s>0){a.previous=q.items[s-1];a.previous.next= +a}a.toolbar=q;a.onkey=f;a.onfocus=function(){d.toolbox.focusCommandExecuted||d.focus()}};if(l){p(l);l=0}p(u)}}if(k){g.push("</span>");l=k=0}q&&g.push('<span class="cke_toolbar_end"></span></span>')}}}d.config.toolbarCanCollapse&&g.push("</span>");if(d.config.toolbarCanCollapse&&d.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var v=CKEDITOR.tools.addFunction(function(){d.execCommand("toolbarCollapse")});d.on("destroy",function(){CKEDITOR.tools.removeFunction(v)});d.addCommand("toolbarCollapse",{readOnly:1, exec:function(a){var b=a.ui.space("toolbar_collapser"),c=b.getPrevious(),f=a.ui.space("contents"),e=c.getParent(),d=parseInt(f.$.style.height,10),g=e.$.offsetHeight,i=b.hasClass("cke_toolbox_collapser_min");if(i){c.show();b.removeClass("cke_toolbox_collapser_min");b.setAttribute("title",a.lang.toolbar.toolbarCollapse)}else{c.hide();b.addClass("cke_toolbox_collapser_min");b.setAttribute("title",a.lang.toolbar.toolbarExpand)}b.getFirst().setText(i?"â–²":"â—€");f.setStyle("height",d-(e.$.offsetHeight-g)+ "px");a.fire("resize")},modes:{wysiwyg:1,source:1}});d.setKeystroke(CKEDITOR.ALT+(CKEDITOR.env.ie||CKEDITOR.env.webkit?189:109),"toolbarCollapse");g.push('<a title="'+(c?d.lang.toolbar.toolbarCollapse:d.lang.toolbar.toolbarExpand)+'" id="'+d.ui.spaceId("toolbar_collapser")+'" tabIndex="-1" class="cke_toolbox_collapser');c||g.push(" cke_toolbox_collapser_min");g.push('" onclick="CKEDITOR.tools.callFunction('+v+')">','<span class="cke_arrow">▲</span>',"</a>")}g.push("</span>");e.data.html=e.data.html+ g.join("")}});d.on("destroy",function(){if(this.toolbox){var a,b=0,f,e,d;for(a=this.toolbox.toolbars;b<a.length;b++){e=a[b].items;for(f=0;f<e.length;f++){d=e[f];d.clickFn&&CKEDITOR.tools.removeFunction(d.clickFn);d.keyDownFn&&CKEDITOR.tools.removeFunction(d.keyDownFn)}}}});d.on("uiReady",function(){var a=d.ui.space("toolbox");a&&d.focusManager.add(a,1)});d.addCommand("toolbarFocus",e);d.setKeystroke(CKEDITOR.ALT+121,"toolbarFocus");d.ui.add("-",CKEDITOR.UI_SEPARATOR,{});d.ui.addHandler(CKEDITOR.UI_SEPARATOR, {create:function(){return{render:function(a,b){b.push('<span class="cke_toolbar_separator" role="separator"></span>');return{}}}}})}});CKEDITOR.ui.prototype.addToolbarGroup=function(a,b,f){var e=d(this.editor),c=b===0,j={name:a};if(f){if(f=CKEDITOR.tools.search(e,function(a){return a.name==f})){!f.groups&&(f.groups=[]);if(b){b=CKEDITOR.tools.indexOf(f.groups,b);if(b>=0){f.groups.splice(b+1,0,a);return}}c?f.groups.splice(0,0,a):f.groups.push(a);return}b=null}b&&(b=CKEDITOR.tools.indexOf(e,function(a){return a.name== -b}));c?e.splice(0,0,a):typeof b=="number"?e.splice(b+1,0,j):e.push(a)}}(),CKEDITOR.UI_SEPARATOR="separator",CKEDITOR.config.toolbarLocation="top",function(){var b;function d(e,f){function d(a){a=e._.elementsPath.list[a];if(a.equals(e.editable())){var b=e.createRange();b.selectNodeContents(a);b.select()}else e.getSelection().selectElement(a);e.focus()}function c(){l&&l.setHtml(a);delete e._.elementsPath.list}var j=e.ui.spaceId("path"),l,m="cke_elementspath_"+CKEDITOR.tools.getNextNumber()+"_";e._.elementsPath= -{idBase:m,filters:[]};f.html=f.html+('<span id="'+j+'_label" class="cke_voice_label">'+e.lang.elementspath.eleLabel+'</span><span id="'+j+'" class="cke_path" role="group" aria-labelledby="'+j+'_label">'+a+"</span>");e.on("uiReady",function(){var a=e.ui.space("path");a&&e.focusManager.add(a,1)});var n=CKEDITOR.tools.addFunction(d),o=CKEDITOR.tools.addFunction(function(a,b){var c=e._.elementsPath.idBase,f,b=new CKEDITOR.dom.event(b);f=e.lang.dir=="rtl";switch(b.getKeystroke()){case f?39:37:case 9:(f= +b}));c?e.splice(0,0,a):typeof b=="number"?e.splice(b+1,0,j):e.push(a)}}(),CKEDITOR.UI_SEPARATOR="separator",CKEDITOR.config.toolbarLocation="top",function(){var b;function d(e,f){function d(a){a=e._.elementsPath.list[a];if(a.equals(e.editable())){var b=e.createRange();b.selectNodeContents(a);b.select()}else e.getSelection().selectElement(a);e.focus()}function c(){k&&k.setHtml(a);delete e._.elementsPath.list}var j=e.ui.spaceId("path"),k,l="cke_elementspath_"+CKEDITOR.tools.getNextNumber()+"_";e._.elementsPath= +{idBase:l,filters:[]};f.html=f.html+('<span id="'+j+'_label" class="cke_voice_label">'+e.lang.elementspath.eleLabel+'</span><span id="'+j+'" class="cke_path" role="group" aria-labelledby="'+j+'_label">'+a+"</span>");e.on("uiReady",function(){var a=e.ui.space("path");a&&e.focusManager.add(a,1)});var n=CKEDITOR.tools.addFunction(d),o=CKEDITOR.tools.addFunction(function(a,b){var c=e._.elementsPath.idBase,f,b=new CKEDITOR.dom.event(b);f=e.lang.dir=="rtl";switch(b.getKeystroke()){case f?39:37:case 9:(f= CKEDITOR.document.getById(c+(a+1)))||(f=CKEDITOR.document.getById(c+"0"));f.focus();return false;case f?37:39:case CKEDITOR.SHIFT+9:(f=CKEDITOR.document.getById(c+(a-1)))||(f=CKEDITOR.document.getById(c+(e._.elementsPath.list.length-1)));f.focus();return false;case 27:e.focus();return false;case 13:case 32:d(a);return false}return true});e.on("selectionChange",function(b){for(var c=e.editable(),f=b.data.selection.getStartElement(),b=[],d=e._.elementsPath.list=[],i=e._.elementsPath.filters;f;){var z= -0,x;x=f.data("cke-display-name")?f.data("cke-display-name"):f.data("cke-real-element-type")?f.data("cke-real-element-type"):f.getName();for(var u=0;u<i.length;u++){var w=i[u](f,x);if(w===false){z=1;break}x=w||x}if(!z){z=d.push(f)-1;u=e.lang.elementspath.eleTitle.replace(/%1/,x);x=h.output({id:m+z,label:u,text:x,jsTitle:"javascript:void('"+x+"')",index:z,keyDownFn:o,clickFn:n});b.unshift(x)}if(f.equals(c))break;f=f.getParent()}l||(l=CKEDITOR.document.getById(j));c=l;c.setHtml(b.join("")+a);e.fire("elementsPathUpdate", +0,x;x=f.data("cke-display-name")?f.data("cke-display-name"):f.data("cke-real-element-type")?f.data("cke-real-element-type"):f.getName();for(var u=0;u<i.length;u++){var w=i[u](f,x);if(w===false){z=1;break}x=w||x}if(!z){z=d.push(f)-1;u=e.lang.elementspath.eleTitle.replace(/%1/,x);x=h.output({id:l+z,label:u,text:x,jsTitle:"javascript:void('"+x+"')",index:z,keyDownFn:o,clickFn:n});b.unshift(x)}if(f.equals(c))break;f=f.getParent()}k||(k=CKEDITOR.document.getById(j));c=k;c.setHtml(b.join("")+a);e.fire("elementsPathUpdate", {space:c})});e.on("readOnly",c);e.on("contentDomUnload",c);e.addCommand("elementsPathFocus",b);e.setKeystroke(CKEDITOR.ALT+122,"elementsPathFocus")}b={editorFocus:false,readOnly:1,exec:function(a){(a=CKEDITOR.document.getById(a._.elementsPath.idBase+"0"))&&a.focus(CKEDITOR.env.ie||CKEDITOR.env.air)}};var a='<span class="cke_path_empty"> </span>',e="";if(CKEDITOR.env.opera||CKEDITOR.env.gecko&&CKEDITOR.env.mac)e=e+' onkeypress="return false;"';CKEDITOR.env.gecko&&(e=e+' onblur="this.style.cssText = this.style.cssText;"'); var h=CKEDITOR.addTemplate("pathItem",'<a id="{id}" href="{jsTitle}" tabindex="-1" class="cke_path_item" title="{label}"'+(CKEDITOR.env.gecko&&CKEDITOR.env.version<10900?' onfocus="event.preventBubble();"':"")+e+' hidefocus="true" onkeydown="return CKEDITOR.tools.callFunction({keyDownFn},{index}, event );" onclick="CKEDITOR.tools.callFunction({clickFn},{index}); return false;" role="button" aria-label="{label}">{text}</a>');CKEDITOR.plugins.add("elementspath",{init:function(a){a.on("uiSpace",function(b){b.data.space== -"bottom"&&d(a,b.data)})}})}(),function(){function b(a,b,c){function f(c){if((j=h[c?"getFirst":"getLast"]())&&(!j.is||!j.isBlockBoundary())&&(l=b.root[c?"getPrevious":"getNext"](CKEDITOR.dom.walker.invisible(true)))&&(!l.is||!l.isBlockBoundary({br:1})))a.document.createElement("br")[c?"insertBefore":"insertAfter"](j)}for(var e=CKEDITOR.plugins.list.listToArray(b.root,c),d=[],g=0;g<b.contents.length;g++){var i=b.contents[g];if((i=i.getAscendant("li",true))&&!i.getCustomData("list_item_processed")){d.push(i); -CKEDITOR.dom.element.setMarker(c,i,"list_item_processed",true)}}i=null;for(g=0;g<d.length;g++){i=d[g].getCustomData("listarray_index");e[i].indent=-1}for(g=i+1;g<e.length;g++)if(e[g].indent>e[g-1].indent+1){d=e[g-1].indent+1-e[g].indent;for(i=e[g].indent;e[g]&&e[g].indent>=i;){e[g].indent=e[g].indent+d;g++}g--}var h=CKEDITOR.plugins.list.arrayToList(e,c,null,a.config.enterMode,b.root.getAttribute("dir")).listNode,j,l;f(true);f();h.replace(b.root)}function d(a,b){this.name=a;this.context=this.type= -b;this.allowedContent=b+" li";this.requiredContent=b}function a(a,b,c,f){for(var e,d;e=a[f?"getLast":"getFirst"](o);){(d=e.getDirection(1))!==b.getDirection(1)&&e.setAttribute("dir",d);e.remove();c?e[f?"insertBefore":"insertAfter"](c):b.append(e,f)}}function e(b){var c;(c=function(c){var f=b[c?"getPrevious":"getNext"](l);if(f&&f.type==CKEDITOR.NODE_ELEMENT&&f.is(b.getName())){a(b,f,null,!c);b.remove();b=f}})();c(1)}function h(a){return a.type==CKEDITOR.NODE_ELEMENT&&(a.getName()in CKEDITOR.dtd.$block|| -a.getName()in CKEDITOR.dtd.$listItem)&&CKEDITOR.dtd[a.getName()]["#"]}function g(b,c,d){b.fire("saveSnapshot");d.enlarge(CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS);var g=d.extractContents();c.trim(false,true);var i=c.createBookmark(),h=new CKEDITOR.dom.elementPath(c.startContainer),j=h.block,h=h.lastElement.getAscendant("li",1)||j,o=new CKEDITOR.dom.elementPath(d.startContainer),w=o.contains(CKEDITOR.dtd.$listItem),o=o.contains(CKEDITOR.dtd.$list);if(j)(j=j.getBogus())&&j.remove();else if(o)(j=o.getPrevious(l))&& -m(j)&&j.remove();(j=g.getLast())&&(j.type==CKEDITOR.NODE_ELEMENT&&j.is("br"))&&j.remove();(j=c.startContainer.getChild(c.startOffset))?g.insertBefore(j):c.startContainer.append(g);if(w)if(g=f(w))if(h.contains(w)){a(g,w.getParent(),w);g.remove()}else h.append(g);for(;d.checkStartOfBlock()&&d.checkEndOfBlock();){o=d.startPath();g=o.block;if(g.is("li")){h=g.getParent();g.equals(h.getLast(l))&&g.equals(h.getFirst(l))&&(g=h)}d.moveToPosition(g,CKEDITOR.POSITION_BEFORE_START);g.remove()}d=d.clone();g=b.editable(); -d.setEndAt(g,CKEDITOR.POSITION_BEFORE_END);d=new CKEDITOR.dom.walker(d);d.evaluator=function(a){return l(a)&&!m(a)};(d=d.next())&&(d.type==CKEDITOR.NODE_ELEMENT&&d.getName()in CKEDITOR.dtd.$list)&&e(d);c.moveToBookmark(i);c.select();b.fire("saveSnapshot")}function f(a){return(a=a.getLast(l))&&a.type==CKEDITOR.NODE_ELEMENT&&a.getName()in i?a:null}var i={ol:1,ul:1},c=CKEDITOR.dom.walker.whitespaces(),j=CKEDITOR.dom.walker.bookmark(),l=function(a){return!(c(a)||j(a))},m=CKEDITOR.dom.walker.bogus();CKEDITOR.plugins.list= +"bottom"&&d(a,b.data)})}})}(),function(){function b(a,b,c){function f(c){if((j=h[c?"getFirst":"getLast"]())&&(!j.is||!j.isBlockBoundary())&&(k=b.root[c?"getPrevious":"getNext"](CKEDITOR.dom.walker.invisible(true)))&&(!k.is||!k.isBlockBoundary({br:1})))a.document.createElement("br")[c?"insertBefore":"insertAfter"](j)}for(var e=CKEDITOR.plugins.list.listToArray(b.root,c),d=[],g=0;g<b.contents.length;g++){var i=b.contents[g];if((i=i.getAscendant("li",true))&&!i.getCustomData("list_item_processed")){d.push(i); +CKEDITOR.dom.element.setMarker(c,i,"list_item_processed",true)}}i=null;for(g=0;g<d.length;g++){i=d[g].getCustomData("listarray_index");e[i].indent=-1}for(g=i+1;g<e.length;g++)if(e[g].indent>e[g-1].indent+1){d=e[g-1].indent+1-e[g].indent;for(i=e[g].indent;e[g]&&e[g].indent>=i;){e[g].indent=e[g].indent+d;g++}g--}var h=CKEDITOR.plugins.list.arrayToList(e,c,null,a.config.enterMode,b.root.getAttribute("dir")).listNode,j,k;f(true);f();h.replace(b.root)}function d(a,b){this.name=a;this.context=this.type= +b;this.allowedContent=b+" li";this.requiredContent=b}function a(a,b,c,f){for(var e,d;e=a[f?"getLast":"getFirst"](o);){(d=e.getDirection(1))!==b.getDirection(1)&&e.setAttribute("dir",d);e.remove();c?e[f?"insertBefore":"insertAfter"](c):b.append(e,f)}}function e(b){var c;(c=function(c){var f=b[c?"getPrevious":"getNext"](k);if(f&&f.type==CKEDITOR.NODE_ELEMENT&&f.is(b.getName())){a(b,f,null,!c);b.remove();b=f}})();c(1)}function h(a){return a.type==CKEDITOR.NODE_ELEMENT&&(a.getName()in CKEDITOR.dtd.$block|| +a.getName()in CKEDITOR.dtd.$listItem)&&CKEDITOR.dtd[a.getName()]["#"]}function g(b,c,d){b.fire("saveSnapshot");d.enlarge(CKEDITOR.ENLARGE_LIST_ITEM_CONTENTS);var g=d.extractContents();c.trim(false,true);var i=c.createBookmark(),h=new CKEDITOR.dom.elementPath(c.startContainer),j=h.block,h=h.lastElement.getAscendant("li",1)||j,o=new CKEDITOR.dom.elementPath(d.startContainer),w=o.contains(CKEDITOR.dtd.$listItem),o=o.contains(CKEDITOR.dtd.$list);if(j)(j=j.getBogus())&&j.remove();else if(o)(j=o.getPrevious(k))&& +l(j)&&j.remove();(j=g.getLast())&&(j.type==CKEDITOR.NODE_ELEMENT&&j.is("br"))&&j.remove();(j=c.startContainer.getChild(c.startOffset))?g.insertBefore(j):c.startContainer.append(g);if(w)if(g=f(w))if(h.contains(w)){a(g,w.getParent(),w);g.remove()}else h.append(g);for(;d.checkStartOfBlock()&&d.checkEndOfBlock();){o=d.startPath();g=o.block;if(g.is("li")){h=g.getParent();g.equals(h.getLast(k))&&g.equals(h.getFirst(k))&&(g=h)}d.moveToPosition(g,CKEDITOR.POSITION_BEFORE_START);g.remove()}d=d.clone();g=b.editable(); +d.setEndAt(g,CKEDITOR.POSITION_BEFORE_END);d=new CKEDITOR.dom.walker(d);d.evaluator=function(a){return k(a)&&!l(a)};(d=d.next())&&(d.type==CKEDITOR.NODE_ELEMENT&&d.getName()in CKEDITOR.dtd.$list)&&e(d);c.moveToBookmark(i);c.select();b.fire("saveSnapshot")}function f(a){return(a=a.getLast(k))&&a.type==CKEDITOR.NODE_ELEMENT&&a.getName()in i?a:null}var i={ol:1,ul:1},c=CKEDITOR.dom.walker.whitespaces(),j=CKEDITOR.dom.walker.bookmark(),k=function(a){return!(c(a)||j(a))},l=CKEDITOR.dom.walker.bogus();CKEDITOR.plugins.list= {listToArray:function(a,b,c,f,e){if(!i[a.getName()])return[];f||(f=0);c||(c=[]);for(var d=0,g=a.getChildCount();d<g;d++){var h=a.getChild(d);h.type==CKEDITOR.NODE_ELEMENT&&h.getName()in CKEDITOR.dtd.$list&&CKEDITOR.plugins.list.listToArray(h,b,c,f+1);if(h.$.nodeName.toLowerCase()=="li"){var j={parent:a,indent:f,element:h,contents:[]};if(e)j.grandparent=e;else{j.grandparent=a.getParent();if(j.grandparent&&j.grandparent.$.nodeName.toLowerCase()=="li")j.grandparent=j.grandparent.getParent()}b&&CKEDITOR.dom.element.setMarker(b, -h,"listarray_index",c.length);c.push(j);for(var l=0,m=h.getChildCount(),o;l<m;l++){o=h.getChild(l);o.type==CKEDITOR.NODE_ELEMENT&&i[o.getName()]?CKEDITOR.plugins.list.listToArray(o,b,c,f+1,j.grandparent):j.contents.push(o)}}}return c},arrayToList:function(a,b,c,f,e){c||(c=0);if(!a||a.length<c+1)return null;for(var d,g=a[c].parent.getDocument(),h=new CKEDITOR.dom.documentFragment(g),j=null,m=c,o=Math.max(a[c].indent,0),n=null,B,y,C=f==CKEDITOR.ENTER_P?"p":"div";;){var D=a[m];d=D.grandparent;B=D.element.getDirection(1); -if(D.indent==o){if(!j||a[m].parent.getName()!=j.getName()){j=a[m].parent.clone(false,1);e&&j.setAttribute("dir",e);h.append(j)}n=j.append(D.element.clone(0,1));B!=j.getDirection(1)&&n.setAttribute("dir",B);for(d=0;d<D.contents.length;d++)n.append(D.contents[d].clone(1,1));m++}else if(D.indent==Math.max(o,0)+1){y=a[m-1].element.getDirection(1);m=CKEDITOR.plugins.list.arrayToList(a,null,m,f,y!=B?B:null);!n.getChildCount()&&(CKEDITOR.env.ie&&!(g.$.documentMode>7))&&n.append(g.createText(" "));n.append(m.listNode); -m=m.nextIndex}else if(D.indent==-1&&!c&&d){if(i[d.getName()]){n=D.element.clone(false,true);B!=d.getDirection(1)&&n.setAttribute("dir",B)}else n=new CKEDITOR.dom.documentFragment(g);var j=d.getDirection(1)!=B,F=D.element,E=F.getAttribute("class"),K=F.getAttribute("style"),I=n.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(f!=CKEDITOR.ENTER_BR||j||K||E),G,H=D.contents.length;for(d=0;d<H;d++){G=D.contents[d];if(G.type==CKEDITOR.NODE_ELEMENT&&G.isBlockBoundary()){j&&!G.getDirection()&&G.setAttribute("dir", -B);var L=G,J=F.getAttribute("style");J&&L.setAttribute("style",J.replace(/([^;])$/,"$1;")+(L.getAttribute("style")||""));E&&G.addClass(E)}else if(I){if(!y){y=g.createElement(C);j&&y.setAttribute("dir",B)}K&&y.setAttribute("style",K);E&&y.setAttribute("class",E);y.append(G.clone(1,1))}n.append(y||G.clone(1,1))}if(n.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&m!=a.length-1){(B=n.getLast())&&(B.type==CKEDITOR.NODE_ELEMENT&&B.getAttribute("type")=="_moz")&&B.remove();(!n.getLast(l)||!(B.type==CKEDITOR.NODE_ELEMENT&& -B.getName()in CKEDITOR.dtd.$block))&&n.append(g.createElement("br"))}B=n.$.nodeName.toLowerCase();!CKEDITOR.env.ie&&(B=="div"||B=="p")&&n.appendBogus();h.append(n);j=null;m++}else return null;y=null;if(a.length<=m||Math.max(a[m].indent,0)<o)break}if(b)for(a=h.getFirst();a;){if(a.type==CKEDITOR.NODE_ELEMENT){CKEDITOR.dom.element.clearMarkers(b,a);if(a.getName()in CKEDITOR.dtd.$listItem){c=a;g=e=f=void 0;if(f=c.getDirection()){for(e=c.getParent();e&&!(g=e.getDirection());)e=e.getParent();f==g&&c.removeAttribute("dir")}}}a= -a.getNextSourceNode()}return{listNode:h,nextIndex:m}}};var n=/^h[1-6]$/,o=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT);d.prototype={exec:function(a){this.refresh(a,a.elementPath());var c=a.config,f=a.getSelection(),d=f&&f.getRanges(true);if(this.state==CKEDITOR.TRISTATE_OFF){var g=a.editable();if(g.getFirst(l)){var h=d.length==1&&d[0];(c=h&&h.getEnclosedNode())&&(c.is&&this.type==c.getName())&&this.setState(CKEDITOR.TRISTATE_ON)}else{c.enterMode==CKEDITOR.ENTER_BR?g.appendBogus():d[0].fixBlock(1, -c.enterMode==CKEDITOR.ENTER_P?"p":"div");f.selectRanges(d)}}for(var c=f.createBookmarks(true),g=[],j={},d=d.createIterator(),m=0;(h=d.getNextRange())&&++m;){var o=h.getBoundaryNodes(),s=o.startNode,v=o.endNode;s.type==CKEDITOR.NODE_ELEMENT&&s.getName()=="td"&&h.setStartAt(o.startNode,CKEDITOR.POSITION_AFTER_START);v.type==CKEDITOR.NODE_ELEMENT&&v.getName()=="td"&&h.setEndAt(o.endNode,CKEDITOR.POSITION_BEFORE_END);h=h.createIterator();for(h.forceBrBreak=this.state==CKEDITOR.TRISTATE_OFF;o=h.getNextParagraph();)if(!o.getCustomData("list_block")){CKEDITOR.dom.element.setMarker(j, -o,"list_block",1);for(var A=a.elementPath(o),s=A.elements,v=0,A=A.blockLimit,B,y=s.length-1;y>=0&&(B=s[y]);y--)if(i[B.getName()]&&A.contains(B)){A.removeCustomData("list_group_object_"+m);if(s=B.getCustomData("list_group_object"))s.contents.push(o);else{s={root:B,contents:[o]};g.push(s);CKEDITOR.dom.element.setMarker(j,B,"list_group_object",s)}v=1;break}if(!v){v=A;if(v.getCustomData("list_group_object_"+m))v.getCustomData("list_group_object_"+m).contents.push(o);else{s={root:v,contents:[o]};CKEDITOR.dom.element.setMarker(j, -v,"list_group_object_"+m,s);g.push(s)}}}}for(B=[];g.length>0;){s=g.shift();if(this.state==CKEDITOR.TRISTATE_OFF)if(i[s.root.getName()]){o=a;d=s;s=j;m=B;v=CKEDITOR.plugins.list.listToArray(d.root,s);A=[];for(h=0;h<d.contents.length;h++){y=d.contents[h];if((y=y.getAscendant("li",true))&&!y.getCustomData("list_item_processed")){A.push(y);CKEDITOR.dom.element.setMarker(s,y,"list_item_processed",true)}}for(var y=d.root.getDocument(),C=void 0,D=void 0,h=0;h<A.length;h++){var F=A[h].getCustomData("listarray_index"), -C=v[F].parent;if(!C.is(this.type)){D=y.createElement(this.type);C.copyAttributes(D,{start:1,type:1});D.removeStyle("list-style-type");v[F].parent=D}}o=CKEDITOR.plugins.list.arrayToList(v,s,null,o.config.enterMode);s=void 0;v=o.listNode.getChildCount();for(h=0;h<v&&(s=o.listNode.getChild(h));h++)s.getName()==this.type&&m.push(s);o.listNode.replace(d.root)}else{v=a;o=s;h=B;A=o.contents;d=o.root.getDocument();m=[];if(A.length==1&&A[0].equals(o.root)){s=d.createElement("div");A[0].moveChildren&&A[0].moveChildren(s); -A[0].append(s);A[0]=s}o=o.contents[0].getParent();for(y=0;y<A.length;y++)o=o.getCommonAncestor(A[y].getParent());C=v.config.useComputedState;v=s=void 0;C=C===void 0||C;for(y=0;y<A.length;y++)for(D=A[y];F=D.getParent();){if(F.equals(o)){m.push(D);!v&&D.getDirection()&&(v=1);D=D.getDirection(C);s!==null&&(s=s&&s!=D?null:D);break}D=F}if(!(m.length<1)){A=m[m.length-1].getNext();y=d.createElement(this.type);h.push(y);for(C=h=void 0;m.length;){h=m.shift();C=d.createElement("li");if(h.is("pre")||n.test(h.getName()))h.appendTo(C); +h,"listarray_index",c.length);c.push(j);for(var k=0,l=h.getChildCount(),o;k<l;k++){o=h.getChild(k);o.type==CKEDITOR.NODE_ELEMENT&&i[o.getName()]?CKEDITOR.plugins.list.listToArray(o,b,c,f+1,j.grandparent):j.contents.push(o)}}}return c},arrayToList:function(a,b,c,f,e){c||(c=0);if(!a||a.length<c+1)return null;for(var d,g=a[c].parent.getDocument(),h=new CKEDITOR.dom.documentFragment(g),j=null,l=c,o=Math.max(a[c].indent,0),n=null,B,y,C=f==CKEDITOR.ENTER_P?"p":"div";;){var D=a[l];d=D.grandparent;B=D.element.getDirection(1); +if(D.indent==o){if(!j||a[l].parent.getName()!=j.getName()){j=a[l].parent.clone(false,1);e&&j.setAttribute("dir",e);h.append(j)}n=j.append(D.element.clone(0,1));B!=j.getDirection(1)&&n.setAttribute("dir",B);for(d=0;d<D.contents.length;d++)n.append(D.contents[d].clone(1,1));l++}else if(D.indent==Math.max(o,0)+1){y=a[l-1].element.getDirection(1);l=CKEDITOR.plugins.list.arrayToList(a,null,l,f,y!=B?B:null);!n.getChildCount()&&(CKEDITOR.env.ie&&!(g.$.documentMode>7))&&n.append(g.createText(" "));n.append(l.listNode); +l=l.nextIndex}else if(D.indent==-1&&!c&&d){if(i[d.getName()]){n=D.element.clone(false,true);B!=d.getDirection(1)&&n.setAttribute("dir",B)}else n=new CKEDITOR.dom.documentFragment(g);var j=d.getDirection(1)!=B,F=D.element,E=F.getAttribute("class"),K=F.getAttribute("style"),I=n.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&(f!=CKEDITOR.ENTER_BR||j||K||E),G,H=D.contents.length;for(d=0;d<H;d++){G=D.contents[d];if(G.type==CKEDITOR.NODE_ELEMENT&&G.isBlockBoundary()){j&&!G.getDirection()&&G.setAttribute("dir", +B);var L=G,J=F.getAttribute("style");J&&L.setAttribute("style",J.replace(/([^;])$/,"$1;")+(L.getAttribute("style")||""));E&&G.addClass(E)}else if(I){if(!y){y=g.createElement(C);j&&y.setAttribute("dir",B)}K&&y.setAttribute("style",K);E&&y.setAttribute("class",E);y.append(G.clone(1,1))}n.append(y||G.clone(1,1))}if(n.type==CKEDITOR.NODE_DOCUMENT_FRAGMENT&&l!=a.length-1){(B=n.getLast())&&(B.type==CKEDITOR.NODE_ELEMENT&&B.getAttribute("type")=="_moz")&&B.remove();(!n.getLast(k)||!(B.type==CKEDITOR.NODE_ELEMENT&& +B.getName()in CKEDITOR.dtd.$block))&&n.append(g.createElement("br"))}B=n.$.nodeName.toLowerCase();!CKEDITOR.env.ie&&(B=="div"||B=="p")&&n.appendBogus();h.append(n);j=null;l++}else return null;y=null;if(a.length<=l||Math.max(a[l].indent,0)<o)break}if(b)for(a=h.getFirst();a;){if(a.type==CKEDITOR.NODE_ELEMENT){CKEDITOR.dom.element.clearMarkers(b,a);if(a.getName()in CKEDITOR.dtd.$listItem){c=a;g=e=f=void 0;if(f=c.getDirection()){for(e=c.getParent();e&&!(g=e.getDirection());)e=e.getParent();f==g&&c.removeAttribute("dir")}}}a= +a.getNextSourceNode()}return{listNode:h,nextIndex:l}}};var n=/^h[1-6]$/,o=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_ELEMENT);d.prototype={exec:function(a){this.refresh(a,a.elementPath());var c=a.config,f=a.getSelection(),d=f&&f.getRanges(true);if(this.state==CKEDITOR.TRISTATE_OFF){var g=a.editable();if(g.getFirst(k)){var h=d.length==1&&d[0];(c=h&&h.getEnclosedNode())&&(c.is&&this.type==c.getName())&&this.setState(CKEDITOR.TRISTATE_ON)}else{c.enterMode==CKEDITOR.ENTER_BR?g.appendBogus():d[0].fixBlock(1, +c.enterMode==CKEDITOR.ENTER_P?"p":"div");f.selectRanges(d)}}for(var c=f.createBookmarks(true),g=[],j={},d=d.createIterator(),l=0;(h=d.getNextRange())&&++l;){var o=h.getBoundaryNodes(),s=o.startNode,v=o.endNode;s.type==CKEDITOR.NODE_ELEMENT&&s.getName()=="td"&&h.setStartAt(o.startNode,CKEDITOR.POSITION_AFTER_START);v.type==CKEDITOR.NODE_ELEMENT&&v.getName()=="td"&&h.setEndAt(o.endNode,CKEDITOR.POSITION_BEFORE_END);h=h.createIterator();for(h.forceBrBreak=this.state==CKEDITOR.TRISTATE_OFF;o=h.getNextParagraph();)if(!o.getCustomData("list_block")){CKEDITOR.dom.element.setMarker(j, +o,"list_block",1);for(var A=a.elementPath(o),s=A.elements,v=0,A=A.blockLimit,B,y=s.length-1;y>=0&&(B=s[y]);y--)if(i[B.getName()]&&A.contains(B)){A.removeCustomData("list_group_object_"+l);if(s=B.getCustomData("list_group_object"))s.contents.push(o);else{s={root:B,contents:[o]};g.push(s);CKEDITOR.dom.element.setMarker(j,B,"list_group_object",s)}v=1;break}if(!v){v=A;if(v.getCustomData("list_group_object_"+l))v.getCustomData("list_group_object_"+l).contents.push(o);else{s={root:v,contents:[o]};CKEDITOR.dom.element.setMarker(j, +v,"list_group_object_"+l,s);g.push(s)}}}}for(B=[];g.length>0;){s=g.shift();if(this.state==CKEDITOR.TRISTATE_OFF)if(i[s.root.getName()]){o=a;d=s;s=j;l=B;v=CKEDITOR.plugins.list.listToArray(d.root,s);A=[];for(h=0;h<d.contents.length;h++){y=d.contents[h];if((y=y.getAscendant("li",true))&&!y.getCustomData("list_item_processed")){A.push(y);CKEDITOR.dom.element.setMarker(s,y,"list_item_processed",true)}}for(var y=d.root.getDocument(),C=void 0,D=void 0,h=0;h<A.length;h++){var F=A[h].getCustomData("listarray_index"), +C=v[F].parent;if(!C.is(this.type)){D=y.createElement(this.type);C.copyAttributes(D,{start:1,type:1});D.removeStyle("list-style-type");v[F].parent=D}}o=CKEDITOR.plugins.list.arrayToList(v,s,null,o.config.enterMode);s=void 0;v=o.listNode.getChildCount();for(h=0;h<v&&(s=o.listNode.getChild(h));h++)s.getName()==this.type&&l.push(s);o.listNode.replace(d.root)}else{v=a;o=s;h=B;A=o.contents;d=o.root.getDocument();l=[];if(A.length==1&&A[0].equals(o.root)){s=d.createElement("div");A[0].moveChildren&&A[0].moveChildren(s); +A[0].append(s);A[0]=s}o=o.contents[0].getParent();for(y=0;y<A.length;y++)o=o.getCommonAncestor(A[y].getParent());C=v.config.useComputedState;v=s=void 0;C=C===void 0||C;for(y=0;y<A.length;y++)for(D=A[y];F=D.getParent();){if(F.equals(o)){l.push(D);!v&&D.getDirection()&&(v=1);D=D.getDirection(C);s!==null&&(s=s&&s!=D?null:D);break}D=F}if(!(l.length<1)){A=l[l.length-1].getNext();y=d.createElement(this.type);h.push(y);for(C=h=void 0;l.length;){h=l.shift();C=d.createElement("li");if(h.is("pre")||n.test(h.getName()))h.appendTo(C); else{h.copyAttributes(C);if(s&&h.getDirection()){C.removeStyle("direction");C.removeAttribute("dir")}h.moveChildren(C);h.remove()}C.appendTo(y)}s&&v&&y.setAttribute("dir",s);A?y.insertBefore(A):y.appendTo(o)}}else this.state==CKEDITOR.TRISTATE_ON&&i[s.root.getName()]&&b.call(this,a,s,j)}for(y=0;y<B.length;y++)e(B[y]);CKEDITOR.dom.element.clearAllMarkers(j);f.selectBookmarks(c);a.focus()},refresh:function(a,b){var c=b.contains(i,1),f=b.blockLimit||b.root;c&&f.contains(c)?this.setState(c.is(this.type)? -CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_OFF)}};CKEDITOR.plugins.add("list",{init:function(a){if(!a.blockless){a.addCommand("numberedlist",new d("numberedlist","ol"));a.addCommand("bulletedlist",new d("bulletedlist","ul"));if(a.ui.addButton){a.ui.addButton("NumberedList",{label:a.lang.list.numberedlist,command:"numberedlist",directional:true,toolbar:"list,10"});a.ui.addButton("BulletedList",{label:a.lang.list.bulletedlist,command:"bulletedlist",directional:true, -toolbar:"list,20"})}a.on("key",function(b){var c=b.data.keyCode;if(a.mode=="wysiwyg"&&c in{8:1,46:1}){var e=a.getSelection().getRanges()[0],d=e.startPath();if(e.collapsed){var d=new CKEDITOR.dom.elementPath(e.startContainer),j=c==8,o=a.editable(),n=new CKEDITOR.dom.walker(e.clone());n.evaluator=function(a){return l(a)&&!m(a)};n.guard=function(a,b){return!(b&&a.type==CKEDITOR.NODE_ELEMENT&&a.is("table"))};c=e.clone();if(j){var w,s;if((w=d.contains(i))&&e.checkBoundaryOfElement(w,CKEDITOR.START)&&(w= -w.getParent())&&w.is("li")&&(w=f(w))){s=w;w=w.getPrevious(l);c.moveToPosition(w&&m(w)?w:s,CKEDITOR.POSITION_BEFORE_START)}else{n.range.setStartAt(o,CKEDITOR.POSITION_AFTER_START);n.range.setEnd(e.startContainer,e.startOffset);if((w=n.previous())&&w.type==CKEDITOR.NODE_ELEMENT&&(w.getName()in i||w.is("li"))){if(!w.is("li")){n.range.selectNodeContents(w);n.reset();n.evaluator=h;w=n.previous()}s=w;c.moveToElementEditEnd(s)}}if(s){g(a,c,e);b.cancel()}else if((c=d.contains(i))&&e.checkBoundaryOfElement(c, -CKEDITOR.START)){s=c.getFirst(l);if(e.checkBoundaryOfElement(s,CKEDITOR.START)){w=c.getPrevious(l);if(f(s)){if(w){e.moveToElementEditEnd(w);e.select()}}else a.execCommand("outdent");b.cancel()}}}else if(s=d.contains("li")){n.range.setEndAt(o,CKEDITOR.POSITION_BEFORE_END);o=(d=s.getLast(l))&&h(d)?d:s;s=0;if((w=n.next())&&w.type==CKEDITOR.NODE_ELEMENT&&w.getName()in i&&w.equals(d)){s=1;w=n.next()}else e.checkBoundaryOfElement(o,CKEDITOR.END)&&(s=1);if(s&&w){e=e.clone();e.moveToElementEditStart(w);g(a, -c,e);b.cancel()}}else{n.range.setEndAt(o,CKEDITOR.POSITION_BEFORE_END);if((w=n.next())&&w.type==CKEDITOR.NODE_ELEMENT&&w.is(i)){w=w.getFirst(l);if(d.block&&e.checkStartOfBlock()&&e.checkEndOfBlock()){d.block.remove();e.moveToElementEditStart(w);e.select()}else if(f(w)){e.moveToElementEditStart(w);e.select()}else{e=e.clone();e.moveToElementEditStart(w);g(a,c,e)}b.cancel()}}setTimeout(function(){a.selectionChange(1)})}}})}}})}(),function(){function b(a,b){this.name=b;var c=this.useIndentClasses=a.config.indentClasses&& -a.config.indentClasses.length>0;if(c){this.classNameRegex=RegExp("(?:^|\\s+)("+a.config.indentClasses.join("|")+")(?=$|\\s)");this.indentClassMap={};for(var e=0;e<a.config.indentClasses.length;e++)this.indentClassMap[a.config.indentClasses[e]]=e+1}this.startDisabled=b=="outdent";this.allowedContent={"div h1 h2 h3 h4 h5 h6 ol p pre ul":{propertiesOnly:true,styles:!c?"margin-left,margin-right":null,classes:c?a.config.indentClasses:null}};this.requiredContent="p"+(c?"("+a.config.indentClasses[0]+")": -"{margin-left}")}function d(a,b){return(b||a.getComputedStyle("direction"))=="ltr"?"margin-left":"margin-right"}function a(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.is("li")}var e={ol:1,ul:1},h=CKEDITOR.dom.walker.whitespaces(true),g=CKEDITOR.dom.walker.bookmark(false,true);b.prototype={context:"p",refresh:function(a,b){var c=b&&b.contains(e),g=b.block||b.blockLimit;if(c)this.setState(CKEDITOR.TRISTATE_OFF);else if(!this.useIndentClasses&&this.name=="indent")this.setState(CKEDITOR.TRISTATE_OFF); +CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_OFF)}};CKEDITOR.plugins.add("list",{requires:"indent",init:function(a){if(!a.blockless){a.addCommand("numberedlist",new d("numberedlist","ol"));a.addCommand("bulletedlist",new d("bulletedlist","ul"));if(a.ui.addButton){a.ui.addButton("NumberedList",{label:a.lang.list.numberedlist,command:"numberedlist",directional:true,toolbar:"list,10"});a.ui.addButton("BulletedList",{label:a.lang.list.bulletedlist,command:"bulletedlist", +directional:true,toolbar:"list,20"})}a.on("key",function(b){var c=b.data.keyCode;if(a.mode=="wysiwyg"&&c in{8:1,46:1}){var e=a.getSelection().getRanges()[0],d=e.startPath();if(e.collapsed){var d=new CKEDITOR.dom.elementPath(e.startContainer),j=c==8,o=a.editable(),n=new CKEDITOR.dom.walker(e.clone());n.evaluator=function(a){return k(a)&&!l(a)};n.guard=function(a,b){return!(b&&a.type==CKEDITOR.NODE_ELEMENT&&a.is("table"))};c=e.clone();if(j){var w,s;if((w=d.contains(i))&&e.checkBoundaryOfElement(w,CKEDITOR.START)&& +(w=w.getParent())&&w.is("li")&&(w=f(w))){s=w;w=w.getPrevious(k);c.moveToPosition(w&&l(w)?w:s,CKEDITOR.POSITION_BEFORE_START)}else{n.range.setStartAt(o,CKEDITOR.POSITION_AFTER_START);n.range.setEnd(e.startContainer,e.startOffset);if((w=n.previous())&&w.type==CKEDITOR.NODE_ELEMENT&&(w.getName()in i||w.is("li"))){if(!w.is("li")){n.range.selectNodeContents(w);n.reset();n.evaluator=h;w=n.previous()}s=w;c.moveToElementEditEnd(s)}}if(s){g(a,c,e);b.cancel()}else if((c=d.contains(i))&&e.checkBoundaryOfElement(c, +CKEDITOR.START)){s=c.getFirst(k);if(e.checkBoundaryOfElement(s,CKEDITOR.START)){w=c.getPrevious(k);if(f(s)){if(w){e.moveToElementEditEnd(w);e.select()}}else a.execCommand("outdent");b.cancel()}}}else if(s=d.contains("li")){n.range.setEndAt(o,CKEDITOR.POSITION_BEFORE_END);o=(d=s.getLast(k))&&h(d)?d:s;s=0;if((w=n.next())&&w.type==CKEDITOR.NODE_ELEMENT&&w.getName()in i&&w.equals(d)){s=1;w=n.next()}else e.checkBoundaryOfElement(o,CKEDITOR.END)&&(s=1);if(s&&w){e=e.clone();e.moveToElementEditStart(w);g(a, +c,e);b.cancel()}}else{n.range.setEndAt(o,CKEDITOR.POSITION_BEFORE_END);if((w=n.next())&&w.type==CKEDITOR.NODE_ELEMENT&&w.is(i)){w=w.getFirst(k);if(d.block&&e.checkStartOfBlock()&&e.checkEndOfBlock()){d.block.remove();e.moveToElementEditStart(w);e.select()}else if(f(w)){e.moveToElementEditStart(w);e.select()}else{e=e.clone();e.moveToElementEditStart(w);g(a,c,e)}b.cancel()}}setTimeout(function(){a.selectionChange(1)})}}})}}})}(),function(){function b(a,b){this.name=b;var c=this.useIndentClasses=a.config.indentClasses&& +a.config.indentClasses.length>0;if(c){this.classNameRegex=RegExp("(?:^|\\s+)("+a.config.indentClasses.join("|")+")(?=$|\\s)");this.indentClassMap={};for(var e=0;e<a.config.indentClasses.length;e++)this.indentClassMap[a.config.indentClasses[e]]=e+1}this.startDisabled=b=="outdent";this.allowedContent={"div h1 h2 h3 h4 h5 h6 ol p pre ul":{propertiesOnly:true,styles:!c?"margin-left,margin-right":null,classes:c?a.config.indentClasses:null}};this.requiredContent=["p"+(c?"("+a.config.indentClasses[0]+")": +"{margin-left}"),"li"]}function d(a,b){return(b||a.getComputedStyle("direction"))=="ltr"?"margin-left":"margin-right"}function a(a){return a.type==CKEDITOR.NODE_ELEMENT&&a.is("li")}var e={ol:1,ul:1},h=CKEDITOR.dom.walker.whitespaces(true),g=CKEDITOR.dom.walker.bookmark(false,true);b.prototype={context:"p",refresh:function(a,b){var c=b&&b.contains(e),g=b.block||b.blockLimit;if(c)this.setState(CKEDITOR.TRISTATE_OFF);else if(!this.useIndentClasses&&this.name=="indent")this.setState(CKEDITOR.TRISTATE_OFF); else if(g)if(this.useIndentClasses){c=g.$.className.match(this.classNameRegex);g=0;if(c){c=c[1];g=this.indentClassMap[c]}this.name=="outdent"&&!g||this.name=="indent"&&g==a.config.indentClasses.length?this.setState(CKEDITOR.TRISTATE_DISABLED):this.setState(CKEDITOR.TRISTATE_OFF)}else{c=parseInt(g.getStyle(d(g)),10);isNaN(c)&&(c=0);c<=0?this.setState(CKEDITOR.TRISTATE_DISABLED):this.setState(CKEDITOR.TRISTATE_OFF)}else this.setState(CKEDITOR.TRISTATE_DISABLED)},exec:function(b){function i(a){for(var c= -k.startContainer,d=k.endContainer;c&&!c.getParent().equals(a);)c=c.getParent();for(;d&&!d.getParent().equals(a);)d=d.getParent();if(c&&d){for(var i=c,c=[],j=false;!j;){i.equals(d)&&(j=true);c.push(i);i=i.getNext()}if(!(c.length<1)){i=a.getParents(true);for(d=0;d<i.length;d++)if(i[d].getName&&e[i[d].getName()]){a=i[d];break}for(var i=l.name=="indent"?1:-1,d=c[0],c=c[c.length-1],j=CKEDITOR.plugins.list.listToArray(a,m),q=j[c.getCustomData("listarray_index")].indent,d=d.getCustomData("listarray_index");d<= -c.getCustomData("listarray_index");d++){j[d].indent=j[d].indent+i;if(i>0){var o=j[d].parent;j[d].parent=new CKEDITOR.dom.element(o.getName(),o.getDocument())}}for(d=c.getCustomData("listarray_index")+1;d<j.length&&j[d].indent>q;d++)j[d].indent=j[d].indent+i;c=CKEDITOR.plugins.list.arrayToList(j,m,null,b.config.enterMode,a.getDirection());if(l.name=="outdent"){var p;if((p=a.getParent())&&p.is("li"))for(var i=c.listNode.getChildren(),r=[],n,d=i.count()-1;d>=0;d--)(n=i.getItem(d))&&(n.is&&n.is("li"))&& -r.push(n)}c&&c.listNode.replace(a);if(r&&r.length)for(d=0;d<r.length;d++){for(n=a=r[d];(n=n.getNext())&&n.is&&n.getName()in e;){CKEDITOR.env.ie&&!a.getFirst(function(a){return h(a)&&g(a)})&&a.append(k.document.createText(" "));a.append(n)}a.insertAfter(p)}}}}function c(){var a=k.createIterator(),c=b.config.enterMode;a.enforceRealBlocks=true;a.enlargeBr=c!=CKEDITOR.ENTER_BR;for(var e;e=a.getNextParagraph(c==CKEDITOR.ENTER_P?"p":"div");)j(e)}function j(a,c){if(a.getCustomData("indent_processed"))return false; -if(l.useIndentClasses){var e=a.$.className.match(l.classNameRegex),g=0;if(e){e=e[1];g=l.indentClassMap[e]}l.name=="outdent"?g--:g++;if(g<0)return false;g=Math.min(g,b.config.indentClasses.length);g=Math.max(g,0);a.$.className=CKEDITOR.tools.ltrim(a.$.className.replace(l.classNameRegex,""));g>0&&a.addClass(b.config.indentClasses[g-1])}else{e=d(a,c);g=parseInt(a.getStyle(e),10);isNaN(g)&&(g=0);var h=b.config.indentOffset||40,g=g+(l.name=="indent"?1:-1)*h;if(g<0)return false;g=Math.max(g,0);g=Math.ceil(g/ -h)*h;a.setStyle(e,g?g+(b.config.indentUnit||"px"):"");a.getAttribute("style")===""&&a.removeAttribute("style")}CKEDITOR.dom.element.setMarker(m,a,"indent_processed",1);return true}for(var l=this,m={},n=b.getSelection(),o=n.createBookmarks(1),k,p=(n&&n.getRanges(1)).createIterator();k=p.getNextRange();){for(var r=k.getCommonAncestor();r&&!(r.type==CKEDITOR.NODE_ELEMENT&&e[r.getName()]);)r=r.getParent();if(!r){var q=k.getEnclosedNode();if(q&&q.type==CKEDITOR.NODE_ELEMENT&&q.getName()in e){k.setStartAt(q, -CKEDITOR.POSITION_AFTER_START);k.setEndAt(q,CKEDITOR.POSITION_BEFORE_END);r=q}}if(r&&k.startContainer.type==CKEDITOR.NODE_ELEMENT&&k.startContainer.getName()in e){q=new CKEDITOR.dom.walker(k);q.evaluator=a;k.startContainer=q.next()}if(r&&k.endContainer.type==CKEDITOR.NODE_ELEMENT&&k.endContainer.getName()in e){q=new CKEDITOR.dom.walker(k);q.evaluator=a;k.endContainer=q.previous()}if(r){var q=r.getFirst(a),t=!!q.getNext(a),z=k.startContainer;(!q.equals(z)&&!q.contains(z)||!(l.name=="indent"||l.useIndentClasses|| -parseInt(r.getStyle(d(r)),10))||!j(r,!t&&q.getDirection()))&&i(r)}else c()}CKEDITOR.dom.element.clearAllMarkers(m);b.forceNextSelectionCheck();n.selectBookmarks(o)}};CKEDITOR.plugins.add("indent",{requires:"list",onLoad:function(){(CKEDITOR.env.ie6Compat||CKEDITOR.env.ie7Compat)&&CKEDITOR.addCss(".cke_editable ul,.cke_editable ol{\tmargin-left: 0px;\tpadding-left: 40px;}")},init:function(a){if(!a.blockless){a.addCommand("indent",new b(a,"indent"));a.addCommand("outdent",new b(a,"outdent"));if(a.ui.addButton){a.ui.addButton("Indent", +m.startContainer,d=m.endContainer;c&&!c.getParent().equals(a);)c=c.getParent();for(;d&&!d.getParent().equals(a);)d=d.getParent();if(c&&d){for(var i=c,c=[],j=false;!j;){i.equals(d)&&(j=true);c.push(i);i=i.getNext()}if(!(c.length<1)){i=a.getParents(true);for(d=0;d<i.length;d++)if(i[d].getName&&e[i[d].getName()]){a=i[d];break}for(var i=k.name=="indent"?1:-1,d=c[0],c=c[c.length-1],j=CKEDITOR.plugins.list.listToArray(a,l),r=j[c.getCustomData("listarray_index")].indent,d=d.getCustomData("listarray_index");d<= +c.getCustomData("listarray_index");d++){j[d].indent=j[d].indent+i;if(i>0){var o=j[d].parent;j[d].parent=new CKEDITOR.dom.element(o.getName(),o.getDocument())}}for(d=c.getCustomData("listarray_index")+1;d<j.length&&j[d].indent>r;d++)j[d].indent=j[d].indent+i;c=CKEDITOR.plugins.list.arrayToList(j,l,null,b.config.enterMode,a.getDirection());if(k.name=="outdent"){var p;if((p=a.getParent())&&p.is("li"))for(var i=c.listNode.getChildren(),q=[],n,d=i.count()-1;d>=0;d--)(n=i.getItem(d))&&(n.is&&n.is("li"))&& +q.push(n)}c&&c.listNode.replace(a);if(q&&q.length)for(d=0;d<q.length;d++){for(n=a=q[d];(n=n.getNext())&&n.is&&n.getName()in e;){CKEDITOR.env.ie&&!a.getFirst(function(a){return h(a)&&g(a)})&&a.append(m.document.createText(" "));a.append(n)}a.insertAfter(p)}}}}function c(){var a=m.createIterator(),c=b.config.enterMode;a.enforceRealBlocks=true;a.enlargeBr=c!=CKEDITOR.ENTER_BR;for(var e;e=a.getNextParagraph(c==CKEDITOR.ENTER_P?"p":"div");)j(e)}function j(a,c){if(a.getCustomData("indent_processed"))return false; +if(k.useIndentClasses){var e=a.$.className.match(k.classNameRegex),g=0;if(e){e=e[1];g=k.indentClassMap[e]}k.name=="outdent"?g--:g++;if(g<0)return false;g=Math.min(g,b.config.indentClasses.length);g=Math.max(g,0);a.$.className=CKEDITOR.tools.ltrim(a.$.className.replace(k.classNameRegex,""));g>0&&a.addClass(b.config.indentClasses[g-1])}else{e=d(a,c);g=parseInt(a.getStyle(e),10);isNaN(g)&&(g=0);var h=b.config.indentOffset||40,g=g+(k.name=="indent"?1:-1)*h;if(g<0)return false;g=Math.max(g,0);g=Math.ceil(g/ +h)*h;a.setStyle(e,g?g+(b.config.indentUnit||"px"):"");a.getAttribute("style")===""&&a.removeAttribute("style")}CKEDITOR.dom.element.setMarker(l,a,"indent_processed",1);return true}for(var k=this,l={},n=b.getSelection(),o=n.createBookmarks(1),m,p=(n&&n.getRanges(1)).createIterator();m=p.getNextRange();){for(var q=m.getCommonAncestor();q&&!(q.type==CKEDITOR.NODE_ELEMENT&&e[q.getName()]);)q=q.getParent();if(!q){var r=m.getEnclosedNode();if(r&&r.type==CKEDITOR.NODE_ELEMENT&&r.getName()in e){m.setStartAt(r, +CKEDITOR.POSITION_AFTER_START);m.setEndAt(r,CKEDITOR.POSITION_BEFORE_END);q=r}}if(q&&m.startContainer.type==CKEDITOR.NODE_ELEMENT&&m.startContainer.getName()in e){r=new CKEDITOR.dom.walker(m);r.evaluator=a;m.startContainer=r.next()}if(q&&m.endContainer.type==CKEDITOR.NODE_ELEMENT&&m.endContainer.getName()in e){r=new CKEDITOR.dom.walker(m);r.evaluator=a;m.endContainer=r.previous()}if(q){var r=q.getFirst(a),t=!!r.getNext(a),z=m.startContainer;(!r.equals(z)&&!r.contains(z)||!(k.name=="indent"||k.useIndentClasses|| +parseInt(q.getStyle(d(q)),10))||!j(q,!t&&r.getDirection()))&&i(q)}else c()}CKEDITOR.dom.element.clearAllMarkers(l);b.forceNextSelectionCheck();n.selectBookmarks(o)}};CKEDITOR.plugins.add("indent",{requires:"list",onLoad:function(){(CKEDITOR.env.ie6Compat||CKEDITOR.env.ie7Compat)&&CKEDITOR.addCss(".cke_editable ul,.cke_editable ol{\tmargin-left: 0px;\tpadding-left: 40px;}")},init:function(a){if(!a.blockless){a.addCommand("indent",new b(a,"indent"));a.addCommand("outdent",new b(a,"outdent"));if(a.ui.addButton){a.ui.addButton("Indent", {label:a.lang.indent.indent,command:"indent",directional:true,toolbar:"indent,20"});a.ui.addButton("Outdent",{label:a.lang.indent.outdent,command:"outdent",directional:true,toolbar:"indent,10"})}a.on("dirChanged",function(b){var c=a.createRange();c.setStartBefore(b.data.node);c.setEndAfter(b.data.node);for(var e=new CKEDITOR.dom.walker(c),d;d=e.next();)if(d.type==CKEDITOR.NODE_ELEMENT)if(!d.equals(b.data.node)&&d.getDirection()){c.setStartAfter(d);e=new CKEDITOR.dom.walker(c)}else{var g=a.config.indentClasses; if(g)for(var h=b.data.dir=="ltr"?["_rtl",""]:["","_rtl"],o=0;o<g.length;o++)if(d.hasClass(g[o]+h[0])){d.removeClass(g[o]+h[0]);d.addClass(g[o]+h[1])}g=d.getStyle("margin-right");h=d.getStyle("margin-left");g?d.setStyle("margin-left",g):d.removeStyle("margin-left");h?d.setStyle("margin-right",h):d.removeStyle("margin-right")}})}}})}(),function(){function b(a,b,e){e=a.config.forceEnterMode||e;if(a.mode!="wysiwyg")return false;if(!b)b=a.config.enterMode;if(!a.elementPath().isContextFor("p")){b=CKEDITOR.ENTER_BR; e=1}a.fire("saveSnapshot");b==CKEDITOR.ENTER_BR?g(a,b,null,e):f(a,b,null,e);a.fire("saveSnapshot");return true}function d(a){for(var a=a.getSelection().getRanges(true),b=a.length-1;b>0;b--)a[b].deleteContents();return a[0]}CKEDITOR.plugins.add("enterkey",{requires:"indent",init:function(a){a.addCommand("enter",{modes:{wysiwyg:1},editorFocus:false,exec:function(a){b(a)}});a.addCommand("shiftEnter",{modes:{wysiwyg:1},editorFocus:false,exec:function(a){a.mode=="wysiwyg"&&b(a,a.config.shiftEnterMode, -1)}});a.setKeystroke([[13,"enter"],[CKEDITOR.SHIFT+13,"shiftEnter"]])}});var a=CKEDITOR.dom.walker.whitespaces(),e=CKEDITOR.dom.walker.bookmark();CKEDITOR.plugins.enterkey={enterBlock:function(b,f,h,m){if(h=h||d(b)){var n=h.document,o=h.checkStartOfBlock(),k=h.checkEndOfBlock(),p=b.elementPath(h.startContainer).block;if(o&&k){if(p&&(p.is("li")||p.getParent().is("li"))){b.execCommand("outdent");return}if(p&&p.getParent().is("blockquote")){p.breakParent(p.getParent());p.getPrevious().getFirst(CKEDITOR.dom.walker.invisible(1))|| -p.getPrevious().remove();p.getNext().getFirst(CKEDITOR.dom.walker.invisible(1))||p.getNext().remove();h.moveToElementEditStart(p);h.select();return}}else if(p&&p.is("pre")&&!k){g(b,f,h,m);return}var p=f==CKEDITOR.ENTER_DIV?"div":"p",r=h.splitBlock(p);if(r){var f=r.previousBlock,b=r.nextBlock,o=r.wasStartOfBlock,k=r.wasEndOfBlock,q;if(b){q=b.getParent();if(q.is("li")){b.breakParent(q);b.move(b.getNext(),1)}}else if(f&&(q=f.getParent())&&q.is("li")){f.breakParent(q);q=f.getNext();h.moveToElementEditStart(q); -f.move(f.getPrevious())}if(!o&&!k){if(b.is("li")){var t=h.clone();t.selectNodeContents(b);t=new CKEDITOR.dom.walker(t);t.evaluator=function(b){return!(e(b)||a(b)||b.type==CKEDITOR.NODE_ELEMENT&&b.getName()in CKEDITOR.dtd.$inline&&!(b.getName()in CKEDITOR.dtd.$empty))};(q=t.next())&&(q.type==CKEDITOR.NODE_ELEMENT&&q.is("ul","ol"))&&(CKEDITOR.env.ie?n.createText(" "):n.createElement("br")).insertBefore(q)}b&&h.moveToElementEditStart(b)}else{var z;if(f){if(f.is("li")||!i.test(f.getName())&&!f.is("pre"))t= -f.clone()}else b&&(t=b.clone());if(t)m&&!t.is("li")&&t.renameNode(p);else if(q&&q.is("li"))t=q;else{t=n.createElement(p);f&&(z=f.getDirection())&&t.setAttribute("dir",z)}if(n=r.elementPath){m=0;for(q=n.elements.length;m<q;m++){z=n.elements[m];if(z.equals(n.block)||z.equals(n.blockLimit))break;if(CKEDITOR.dtd.$removeEmpty[z.getName()]){z=z.clone();t.moveChildren(z);t.append(z)}}}CKEDITOR.env.ie||t.appendBogus();t.getParent()||h.insertNode(t);t.is("li")&&t.removeAttribute("value");if(CKEDITOR.env.ie&& -o&&(!k||!f.getChildCount())){h.moveToElementEditStart(k?f:t);h.select()}h.moveToElementEditStart(o&&!k?b:t)}h.select();h.scrollIntoView()}}},enterBr:function(a,b,e,g){if(e=e||d(a)){var h=e.document,o=e.checkEndOfBlock(),k=new CKEDITOR.dom.elementPath(a.getSelection().getStartElement()),p=k.block,k=p&&k.block.getName();if(!g&&k=="li")f(a,b,e,g);else{if(!g&&o&&i.test(k))if(o=p.getDirection()){h=h.createElement("div");h.setAttribute("dir",o);h.insertAfter(p);e.setStart(h,0)}else{h.createElement("br").insertAfter(p); -CKEDITOR.env.gecko&&h.createText("").insertAfter(p);e.setStartAt(p.getNext(),CKEDITOR.env.ie?CKEDITOR.POSITION_BEFORE_START:CKEDITOR.POSITION_AFTER_START)}else{p=k=="pre"&&CKEDITOR.env.ie&&CKEDITOR.env.version<8?h.createText("\r"):h.createElement("br");e.deleteContents();e.insertNode(p);if(CKEDITOR.env.ie)e.setStartAt(p,CKEDITOR.POSITION_AFTER_END);else{h.createText("").insertAfter(p);o&&p.getParent().appendBogus();p.getNext().$.nodeValue="";e.setStartAt(p.getNext(),CKEDITOR.POSITION_AFTER_START)}}e.collapse(true); +1)}});a.setKeystroke([[13,"enter"],[CKEDITOR.SHIFT+13,"shiftEnter"]])}});var a=CKEDITOR.dom.walker.whitespaces(),e=CKEDITOR.dom.walker.bookmark();CKEDITOR.plugins.enterkey={enterBlock:function(b,f,h,l){if(h=h||d(b)){var n=h.document,o=h.checkStartOfBlock(),m=h.checkEndOfBlock(),p=b.elementPath(h.startContainer).block;if(o&&m){if(p&&(p.is("li")||p.getParent().is("li"))){b.execCommand("outdent");return}if(p&&p.getParent().is("blockquote")){p.breakParent(p.getParent());p.getPrevious().getFirst(CKEDITOR.dom.walker.invisible(1))|| +p.getPrevious().remove();p.getNext().getFirst(CKEDITOR.dom.walker.invisible(1))||p.getNext().remove();h.moveToElementEditStart(p);h.select();return}}else if(p&&p.is("pre")&&!m){g(b,f,h,l);return}var p=f==CKEDITOR.ENTER_DIV?"div":"p",q=h.splitBlock(p);if(q){var f=q.previousBlock,b=q.nextBlock,o=q.wasStartOfBlock,m=q.wasEndOfBlock,r;if(b){r=b.getParent();if(r.is("li")){b.breakParent(r);b.move(b.getNext(),1)}}else if(f&&(r=f.getParent())&&r.is("li")){f.breakParent(r);r=f.getNext();h.moveToElementEditStart(r); +f.move(f.getPrevious())}if(!o&&!m){if(b.is("li")){var t=h.clone();t.selectNodeContents(b);t=new CKEDITOR.dom.walker(t);t.evaluator=function(b){return!(e(b)||a(b)||b.type==CKEDITOR.NODE_ELEMENT&&b.getName()in CKEDITOR.dtd.$inline&&!(b.getName()in CKEDITOR.dtd.$empty))};(r=t.next())&&(r.type==CKEDITOR.NODE_ELEMENT&&r.is("ul","ol"))&&(CKEDITOR.env.ie?n.createText(" "):n.createElement("br")).insertBefore(r)}b&&h.moveToElementEditStart(b)}else{var z;if(f){if(f.is("li")||!i.test(f.getName())&&!f.is("pre"))t= +f.clone()}else b&&(t=b.clone());if(t)l&&!t.is("li")&&t.renameNode(p);else if(r&&r.is("li"))t=r;else{t=n.createElement(p);f&&(z=f.getDirection())&&t.setAttribute("dir",z)}if(n=q.elementPath){l=0;for(r=n.elements.length;l<r;l++){z=n.elements[l];if(z.equals(n.block)||z.equals(n.blockLimit))break;if(CKEDITOR.dtd.$removeEmpty[z.getName()]){z=z.clone();t.moveChildren(z);t.append(z)}}}CKEDITOR.env.ie||t.appendBogus();t.getParent()||h.insertNode(t);t.is("li")&&t.removeAttribute("value");if(CKEDITOR.env.ie&& +o&&(!m||!f.getChildCount())){h.moveToElementEditStart(m?f:t);h.select()}h.moveToElementEditStart(o&&!m?b:t)}h.select();h.scrollIntoView()}}},enterBr:function(a,b,e,g){if(e=e||d(a)){var h=e.document,o=e.checkEndOfBlock(),m=new CKEDITOR.dom.elementPath(a.getSelection().getStartElement()),p=m.block,m=p&&m.block.getName();if(!g&&m=="li")f(a,b,e,g);else{if(!g&&o&&i.test(m))if(o=p.getDirection()){h=h.createElement("div");h.setAttribute("dir",o);h.insertAfter(p);e.setStart(h,0)}else{h.createElement("br").insertAfter(p); +CKEDITOR.env.gecko&&h.createText("").insertAfter(p);e.setStartAt(p.getNext(),CKEDITOR.env.ie?CKEDITOR.POSITION_BEFORE_START:CKEDITOR.POSITION_AFTER_START)}else{p=m=="pre"&&CKEDITOR.env.ie&&CKEDITOR.env.version<8?h.createText("\r"):h.createElement("br");e.deleteContents();e.insertNode(p);if(CKEDITOR.env.ie)e.setStartAt(p,CKEDITOR.POSITION_AFTER_END);else{h.createText("").insertAfter(p);o&&p.getParent().appendBogus();p.getNext().$.nodeValue="";e.setStartAt(p.getNext(),CKEDITOR.POSITION_AFTER_START)}}e.collapse(true); e.select();e.scrollIntoView()}}}};var h=CKEDITOR.plugins.enterkey,g=h.enterBr,f=h.enterBlock,i=/^h[1-6]$/}(),function(){function b(b,a){var e={},h=[],g={nbsp:" ",shy:"Â",gt:">",lt:"<",amp:"&",apos:"'",quot:'"'},b=b.replace(/\b(nbsp|shy|gt|lt|amp|apos|quot)(?:,|$)/g,function(b,c){var f=a?"&"+c+";":g[c];e[f]=a?g[c]:"&"+c+";";h.push(f);return""});if(!a&&b){var b=b.split(","),f=document.createElement("div"),i;f.innerHTML="&"+b.join(";&")+";";i=f.innerHTML;f=null;for(f=0;f<i.length;f++){var c=i.charAt(f); e[c]="&"+b[f]+";";h.push(c)}}e.regex=h.join(a?"|":"");return e}CKEDITOR.plugins.add("entities",{afterInit:function(d){var a=d.config;if(d=(d=d.dataProcessor)&&d.htmlFilter){var e=[];a.basicEntities!==false&&e.push("nbsp,gt,lt,amp");if(a.entities){e.length&&e.push("quot,iexcl,cent,pound,curren,yen,brvbar,sect,uml,copy,ordf,laquo,not,shy,reg,macr,deg,plusmn,sup2,sup3,acute,micro,para,middot,cedil,sup1,ordm,raquo,frac14,frac12,frac34,iquest,times,divide,fnof,bull,hellip,prime,Prime,oline,frasl,weierp,image,real,trade,alefsym,larr,uarr,rarr,darr,harr,crarr,lArr,uArr,rArr,dArr,hArr,forall,part,exist,empty,nabla,isin,notin,ni,prod,sum,minus,lowast,radic,prop,infin,ang,and,or,cap,cup,int,there4,sim,cong,asymp,ne,equiv,le,ge,sub,sup,nsub,sube,supe,oplus,otimes,perp,sdot,lceil,rceil,lfloor,rfloor,lang,rang,loz,spades,clubs,hearts,diams,circ,tilde,ensp,emsp,thinsp,zwnj,zwj,lrm,rlm,ndash,mdash,lsquo,rsquo,sbquo,ldquo,rdquo,bdquo,dagger,Dagger,permil,lsaquo,rsaquo,euro"); a.entities_latin&&e.push("Agrave,Aacute,Acirc,Atilde,Auml,Aring,AElig,Ccedil,Egrave,Eacute,Ecirc,Euml,Igrave,Iacute,Icirc,Iuml,ETH,Ntilde,Ograve,Oacute,Ocirc,Otilde,Ouml,Oslash,Ugrave,Uacute,Ucirc,Uuml,Yacute,THORN,szlig,agrave,aacute,acirc,atilde,auml,aring,aelig,ccedil,egrave,eacute,ecirc,euml,igrave,iacute,icirc,iuml,eth,ntilde,ograve,oacute,ocirc,otilde,ouml,oslash,ugrave,uacute,ucirc,uuml,yacute,thorn,yuml,OElig,oelig,Scaron,scaron,Yuml");a.entities_greek&&e.push("Alpha,Beta,Gamma,Delta,Epsilon,Zeta,Eta,Theta,Iota,Kappa,Lambda,Mu,Nu,Xi,Omicron,Pi,Rho,Sigma,Tau,Upsilon,Phi,Chi,Psi,Omega,alpha,beta,gamma,delta,epsilon,zeta,eta,theta,iota,kappa,lambda,mu,nu,xi,omicron,pi,rho,sigmaf,sigma,tau,upsilon,phi,chi,psi,omega,thetasym,upsih,piv"); @@ -644,14 +645,14 @@ a.entities_additional&&e.push(a.entities_additional)}var h=b(e.join(",")),g=h.re 420);var h=parseInt((window.screen.height-a)/2,10),g=parseInt((window.screen.width-d)/2,10),e=(e||"location=no,menubar=no,toolbar=no,dependent=yes,minimizable=no,modal=yes,alwaysRaised=yes,resizable=yes,scrollbars=yes")+",width="+d+",height="+a+",top="+h+",left="+g,f=window.open("",null,e,true);if(!f)return false;try{if(navigator.userAgent.toLowerCase().indexOf(" chrome/")==-1){f.moveTo(g,h);f.resizeTo(d,a)}f.focus();f.location.href=b}catch(i){window.open(b,null,e,true)}return true}}),function(){function b(a, b){var f=[];if(b)for(var e in b)f.push(e+"="+encodeURIComponent(b[e]));else return a;return a+(a.indexOf("?")!=-1?"&":"?")+f.join("&")}function d(a){a=a+"";return a.charAt(0).toUpperCase()+a.substr(1)}function a(){var a=this.getDialog(),f=a.getParentEditor();f._.filebrowserSe=this;var e=f.config["filebrowser"+d(a.getName())+"WindowWidth"]||f.config.filebrowserWindowWidth||"80%",a=f.config["filebrowser"+d(a.getName())+"WindowHeight"]||f.config.filebrowserWindowHeight||"70%",g=this.filebrowser.params|| {};g.CKEditor=f.name;g.CKEditorFuncNum=f._.filebrowserFn;if(!g.langCode)g.langCode=f.langCode;g=b(this.filebrowser.url,g);f.popup(g,e,a,f.config.filebrowserWindowFeatures||f.config.fileBrowserWindowFeatures)}function e(){var a=this.getDialog();a.getParentEditor()._.filebrowserSe=this;return!a.getContentElement(this["for"][0],this["for"][1]).getInputElement().$.value||!a.getContentElement(this["for"][0],this["for"][1]).getAction()?false:true}function h(a,f,e){var d=e.params||{};d.CKEditor=a.name;d.CKEditorFuncNum= -a._.filebrowserFn;if(!d.langCode)d.langCode=a.langCode;f.action=b(e.url,d);f.filebrowser=e}function g(b,f,i,m){var n,o;for(o in m){n=m[o];(n.type=="hbox"||n.type=="vbox"||n.type=="fieldset")&&g(b,f,i,n.children);if(n.filebrowser){if(typeof n.filebrowser=="string")n.filebrowser={action:n.type=="fileButton"?"QuickUpload":"Browse",target:n.filebrowser};if(n.filebrowser.action=="Browse"){var k=n.filebrowser.url;if(k===void 0){k=b.config["filebrowser"+d(f)+"BrowseUrl"];if(k===void 0)k=b.config.filebrowserBrowseUrl}if(k){n.onClick= -a;n.filebrowser.url=k;n.hidden=false}}else if(n.filebrowser.action=="QuickUpload"&&n["for"]){k=n.filebrowser.url;if(k===void 0){k=b.config["filebrowser"+d(f)+"UploadUrl"];if(k===void 0)k=b.config.filebrowserUploadUrl}if(k){var p=n.onClick;n.onClick=function(a){var b=a.sender;return p&&p.call(b,a)===false?false:e.call(b,a)};n.filebrowser.url=k;n.hidden=false;h(b,i.getContents(n["for"][0]).get(n["for"][1]),n.filebrowser)}}}}}function f(a,b,e){if(e.indexOf(";")!==-1){for(var e=e.split(";"),d=0;d<e.length;d++)if(f(a, +a._.filebrowserFn;if(!d.langCode)d.langCode=a.langCode;f.action=b(e.url,d);f.filebrowser=e}function g(b,f,i,l){var n,o;for(o in l){n=l[o];(n.type=="hbox"||n.type=="vbox"||n.type=="fieldset")&&g(b,f,i,n.children);if(n.filebrowser){if(typeof n.filebrowser=="string")n.filebrowser={action:n.type=="fileButton"?"QuickUpload":"Browse",target:n.filebrowser};if(n.filebrowser.action=="Browse"){var m=n.filebrowser.url;if(m===void 0){m=b.config["filebrowser"+d(f)+"BrowseUrl"];if(m===void 0)m=b.config.filebrowserBrowseUrl}if(m){n.onClick= +a;n.filebrowser.url=m;n.hidden=false}}else if(n.filebrowser.action=="QuickUpload"&&n["for"]){m=n.filebrowser.url;if(m===void 0){m=b.config["filebrowser"+d(f)+"UploadUrl"];if(m===void 0)m=b.config.filebrowserUploadUrl}if(m){var p=n.onClick;n.onClick=function(a){var b=a.sender;return p&&p.call(b,a)===false?false:e.call(b,a)};n.filebrowser.url=m;n.hidden=false;h(b,i.getContents(n["for"][0]).get(n["for"][1]),n.filebrowser)}}}}}function f(a,b,e){if(e.indexOf(";")!==-1){for(var e=e.split(";"),d=0;d<e.length;d++)if(f(a, b,e[d]))return true;return false}return(a=a.getContents(b).get(e).filebrowser)&&a.url}function i(a,b){var f=this._.filebrowserSe.getDialog(),e=this._.filebrowserSe["for"],d=this._.filebrowserSe.filebrowser.onSelect;e&&f.getContentElement(e[0],e[1]).reset();if(!(typeof b=="function"&&b.call(this._.filebrowserSe)===false)&&!(d&&d.call(this._.filebrowserSe,a,b)===false)){typeof b=="string"&&b&&alert(b);if(a){e=this._.filebrowserSe;f=e.getDialog();if(e=e.filebrowser.target||null){e=e.split(":");if(d= f.getContentElement(e[0],e[1])){d.setValue(a);f.selectPage(e[0])}}}}}CKEDITOR.plugins.add("filebrowser",{requires:"popup",init:function(a){a._.filebrowserFn=CKEDITOR.tools.addFunction(i,a);a.on("destroy",function(){CKEDITOR.tools.removeFunction(this._.filebrowserFn)})}});CKEDITOR.on("dialogDefinition",function(a){var b=a.data.definition,e,d;for(d in b.contents)if(e=b.contents[d]){g(a.editor,a.data.name,b,e.elements);if(e.hidden&&e.filebrowser)e.hidden=!f(b,e.id,e.filebrowser)}})}(),function(){function b(a){var b= -a=="left"?"pageXOffset":"pageYOffset";return b in e.$?e.$[b]:CKEDITOR.document.$.documentElement[a=="left"?"scrollLeft":"scrollTop"]}function d(d){var f,i=d.config,c=i.floatSpaceDockedOffsetX||0,j=i.floatSpaceDockedOffsetY||0,l=i.floatSpacePinnedOffsetX||0,m=i.floatSpacePinnedOffsetY||0,n=function(a){function i(a,b,c){p.setStyle(b,h(c));p.setStyle("position",a)}function k(a){var b=o.getDocumentPosition();switch(a){case "top":i("absolute","top",b.y-w-j);break;case "pin":i("fixed","top",m);break;case "bottom":i("absolute", -"top",b.y+(u.height||u.bottom-u.top)+j)}f=a}var o=d.editable();if(o){a.name=="focus"&&p.show();p.removeStyle("left");p.removeStyle("right");var x=p.getClientRect(),u=o.getClientRect(),w=x.height,s=b("left");if(f){f=="top"&&x.top<m?k("pin"):f=="pin"?u.top>j+w?k("top"):u.bottom-x.bottom<w&&k("bottom"):f=="bottom"&&(u.top>j+w?k("top"):u.bottom>2*w+m&&k("pin"));var a=e.getViewPaneSize(),v=a.width/2,v=u.left>0&&u.right<a.width&&u.width>x.width?d.config.contentsLangDirection=="rtl"?"right":"left":v-u.left> -u.right-v?"left":"right",A;if(x.width>a.width){v="left";A=0}else{A=v=="left"?u.left>0?u.left:0:u.right<a.width?a.width-u.right:0;if(A+x.width>a.width){v=v=="left"?"right":"left";A=0}}p.setStyle(v,h((f=="pin"?l:c)+A+(f=="pin"?0:v=="left"?s:-s)))}else{f="pin";k("pin");n(a)}}},i=CKEDITOR.document.getBody(),o={id:d.id,name:d.name,langDir:d.lang.dir,langCode:d.langCode},k=d.fire("uiSpace",{space:"top",html:""}).html;if(k){var p=i.append(CKEDITOR.dom.element.createFromHtml(a.output(CKEDITOR.tools.extend({topId:d.ui.spaceId("top"), -content:k,style:"display:none;z-index:"+(d.config.baseFloatZIndex-1)},o))));p.unselectable();p.on("mousedown",function(a){a=a.data;a.getTarget().hasAscendant("a",1)||a.preventDefault()});d.on("focus",function(a){n(a);e.on("scroll",n);e.on("resize",n)});d.on("blur",function(){p.hide();e.removeListener("scroll",n);e.removeListener("resize",n)});d.on("destroy",function(){e.removeListener("scroll",n);e.removeListener("resize",n);p.clearCustomData();p.remove()});d.focusManager.hasFocus&&p.show();d.focusManager.add(p, +a=="left"?"pageXOffset":"pageYOffset";return b in e.$?e.$[b]:CKEDITOR.document.$.documentElement[a=="left"?"scrollLeft":"scrollTop"]}function d(d){var f,i=d.config,c=i.floatSpaceDockedOffsetX||0,j=i.floatSpaceDockedOffsetY||0,k=i.floatSpacePinnedOffsetX||0,l=i.floatSpacePinnedOffsetY||0,n=function(a){function i(a,b,c){p.setStyle(b,h(c));p.setStyle("position",a)}function m(a){var b=o.getDocumentPosition();switch(a){case "top":i("absolute","top",b.y-w-j);break;case "pin":i("fixed","top",l);break;case "bottom":i("absolute", +"top",b.y+(u.height||u.bottom-u.top)+j)}f=a}var o=d.editable();if(o){a.name=="focus"&&p.show();p.removeStyle("left");p.removeStyle("right");var x=p.getClientRect(),u=o.getClientRect(),w=x.height,s=b("left");if(f){f=="top"&&x.top<l?m("pin"):f=="pin"?u.top>j+w?m("top"):u.bottom-x.bottom<w&&m("bottom"):f=="bottom"&&(u.top>j+w?m("top"):u.bottom>2*w+l&&m("pin"));var a=e.getViewPaneSize(),v=a.width/2,v=u.left>0&&u.right<a.width&&u.width>x.width?d.config.contentsLangDirection=="rtl"?"right":"left":v-u.left> +u.right-v?"left":"right",A;if(x.width>a.width){v="left";A=0}else{A=v=="left"?u.left>0?u.left:0:u.right<a.width?a.width-u.right:0;if(A+x.width>a.width){v=v=="left"?"right":"left";A=0}}p.setStyle(v,h((f=="pin"?k:c)+A+(f=="pin"?0:v=="left"?s:-s)))}else{f="pin";m("pin");n(a)}}},i=CKEDITOR.document.getBody(),o={id:d.id,name:d.name,langDir:d.lang.dir,langCode:d.langCode},m=d.fire("uiSpace",{space:"top",html:""}).html;if(m){var p=i.append(CKEDITOR.dom.element.createFromHtml(a.output(CKEDITOR.tools.extend({topId:d.ui.spaceId("top"), +content:m,style:"display:none;z-index:"+(d.config.baseFloatZIndex-1)},o))));p.unselectable();p.on("mousedown",function(a){a=a.data;a.getTarget().hasAscendant("a",1)||a.preventDefault()});d.on("focus",function(a){n(a);e.on("scroll",n);e.on("resize",n)});d.on("blur",function(){p.hide();e.removeListener("scroll",n);e.removeListener("resize",n)});d.on("destroy",function(){e.removeListener("scroll",n);e.removeListener("resize",n);p.clearCustomData();p.remove()});d.focusManager.hasFocus&&p.show();d.focusManager.add(p, 1)}}var a=CKEDITOR.addTemplate("floatcontainer",'<div id="cke_{name}" class="cke {id} cke_reset_all cke_chrome cke_editor_{name} cke_float cke_{langDir} '+CKEDITOR.env.cssClass+'" dir="{langDir}" title="'+(CKEDITOR.env.gecko?" ":"")+'" lang="{langCode}" role="application" style="{style}"><div class="cke_inner"><div id="{topId}" class="cke_top" role="presentation">{content}</div></div></div>');CKEDITOR.plugins.add("floatingspace",{init:function(a){a.on("loaded",function(){d(a)},null,null,20)}});var e= CKEDITOR.document.getWindow(),h=CKEDITOR.tools.cssLength}(),CKEDITOR.plugins.add("listblock",{requires:"panel",onLoad:function(){var b=CKEDITOR.addTemplate("panel-list",'<ul role="presentation" class="cke_panel_list">{items}</ul>'),d=CKEDITOR.addTemplate("panel-list-item",'<li id="{id}" class="cke_panel_listItem" role=presentation><a id="{id}_option" _cke_focus=1 hidefocus=true title="{title}" href="javascript:void(\'{val}\')" {onclick}="CKEDITOR.tools.callFunction({clickFn},\'{val}\'); return false;" role="option">{text}</a></li>'), a=CKEDITOR.addTemplate("panel-list-group",'<h1 id="{id}" class="cke_panel_grouptitle" role="presentation" >{label}</h1>');CKEDITOR.ui.panel.prototype.addListBlock=function(a,b){return this.addBlock(a,new CKEDITOR.ui.listBlock(this.getHolderElement(),b))};CKEDITOR.ui.listBlock=CKEDITOR.tools.createClass({base:CKEDITOR.ui.panel.block,$:function(a,b){var b=b||{},d=b.attributes||(b.attributes={});(this.multiSelect=!!b.multiSelect)&&(d["aria-multiselectable"]=true);!d.role&&(d.role="listbox");this.base.apply(this, @@ -665,8 +666,8 @@ focus:function(a){this._.focusIndex=-1;if(a){for(var b=this.element.getDocument( (CKEDITOR.env.ie?'onclick="return false;" onmouseup':"onclick")+'="CKEDITOR.tools.callFunction({clickFn},this);return false;"><span id="{id}_text" class="cke_combo_text cke_combo_inlinelabel">{label}</span><span class="cke_combo_open"><span class="cke_combo_arrow">'+(CKEDITOR.env.hc?"▼":CKEDITOR.env.air?" ":"")+"</span></span></a></span>"),d=CKEDITOR.addTemplate("combo",b);CKEDITOR.UI_RICHCOMBO="richcombo";CKEDITOR.ui.richCombo=CKEDITOR.tools.createClass({$:function(a){CKEDITOR.tools.extend(this, a,{canGroup:false,title:a.label,modes:{wysiwyg:1},editorFocus:1});a=this.panel||{};delete this.panel;this.id=CKEDITOR.tools.getNextNumber();this.document=a.parent&&a.parent.getDocument()||CKEDITOR.document;a.className="cke_combopanel";a.block={multiSelect:a.multiSelect,attributes:a.attributes};a.toolbarRelated=true;this._={panelDefinition:a,items:{}}},proto:{renderHtml:function(a){var b=[];this.render(a,b);return b.join("")},render:function(a,b){function h(){var b=this.modes[a.mode]?CKEDITOR.TRISTATE_OFF: CKEDITOR.TRISTATE_DISABLED;this.setState(a.readOnly&&!this.readOnly?CKEDITOR.TRISTATE_DISABLED:b);this.setValue("")}var g=CKEDITOR.env,f="cke_"+this.id,i=CKEDITOR.tools.addFunction(function(b){if(n){a.unlockSelection(1);n=0}j.execute(b)},this),c=this,j={id:f,combo:this,focus:function(){CKEDITOR.document.getById(f).getChild(1).focus()},execute:function(b){var f=c._;if(f.state!=CKEDITOR.TRISTATE_DISABLED){c.createPanel(a);if(f.on)f.panel.hide();else{c.commit();var d=c.getValue();d?f.list.mark(d):f.list.unmarkAll(); -f.panel.showBlock(c.id,new CKEDITOR.dom.element(b),4)}}},clickFn:i};a.on("mode",h,this);!this.readOnly&&a.on("readOnly",h,this);var l=CKEDITOR.tools.addFunction(function(a,b){var a=new CKEDITOR.dom.event(a),c=a.getKeystroke();switch(c){case 13:case 32:case 40:CKEDITOR.tools.callFunction(i,b);break;default:j.onkey(j,c)}a.preventDefault()}),m=CKEDITOR.tools.addFunction(function(){j.onfocus&&j.onfocus()}),n=0,o=CKEDITOR.tools.addFunction(function(){if(CKEDITOR.env.opera){var b=a.editable();if(b.isInline()&& -b.hasFocus){a.lockSelection();n=1}}});j.keyDownFn=l;g={id:f,name:this.name||this.command,label:this.label,title:this.title,cls:this.className||"",titleJs:g.gecko&&g.version>=10900&&!g.hc?"":(this.title||"").replace("'",""),keydownFn:l,mousedownFn:o,focusFn:m,clickFn:i};d.output(g,b);if(this.onRender)this.onRender();return j},createPanel:function(a){if(!this._.panel){var b=this._.panelDefinition,d=this._.panelDefinition.block,g=b.parent||CKEDITOR.document.getBody(),f="cke_combopanel__"+this.name,i= +f.panel.showBlock(c.id,new CKEDITOR.dom.element(b),4)}}},clickFn:i};a.on("mode",h,this);!this.readOnly&&a.on("readOnly",h,this);var k=CKEDITOR.tools.addFunction(function(a,b){var a=new CKEDITOR.dom.event(a),c=a.getKeystroke();switch(c){case 13:case 32:case 40:CKEDITOR.tools.callFunction(i,b);break;default:j.onkey(j,c)}a.preventDefault()}),l=CKEDITOR.tools.addFunction(function(){j.onfocus&&j.onfocus()}),n=0,o=CKEDITOR.tools.addFunction(function(){if(CKEDITOR.env.opera){var b=a.editable();if(b.isInline()&& +b.hasFocus){a.lockSelection();n=1}}});j.keyDownFn=k;g={id:f,name:this.name||this.command,label:this.label,title:this.title,cls:this.className||"",titleJs:g.gecko&&g.version>=10900&&!g.hc?"":(this.title||"").replace("'",""),keydownFn:k,mousedownFn:o,focusFn:l,clickFn:i};d.output(g,b);if(this.onRender)this.onRender();return j},createPanel:function(a){if(!this._.panel){var b=this._.panelDefinition,d=this._.panelDefinition.block,g=b.parent||CKEDITOR.document.getBody(),f="cke_combopanel__"+this.name,i= new CKEDITOR.ui.floatPanel(a,g,b),c=i.addListBlock(this.id,d),j=this;i.onShow=function(){this.element.addClass(f);j.setState(CKEDITOR.TRISTATE_ON);c.focus(!c.multiSelect&&j.getValue());j._.on=1;j.editorFocus&&a.focus();if(j.onOpen)j.onOpen()};i.onHide=function(b){this.element.removeClass(f);j.setState(j.modes&&j.modes[a.mode]?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);j._.on=0;if(!b&&j.onClose)j.onClose()};i.onEscape=function(){i.hide(1)};c.onClick=function(a,b){j.onClick&&j.onClick.call(j, a,b);i.hide()};this._.panel=i;this._.list=c;i.getBlock(this.id).onHide=function(){j._.on=0;j.setState(CKEDITOR.TRISTATE_OFF)};this.init&&this.init()}},setValue:function(a,b){this._.value=a;var d=this.document.getById("cke_"+this.id+"_text");if(d){if(!a&&!b){b=this.label;d.addClass("cke_combo_inlinelabel")}else d.removeClass("cke_combo_inlinelabel");d.setText(typeof b!="undefined"?b:a)}},getValue:function(){return this._.value||""},unmarkAll:function(){this._.list.unmarkAll()},mark:function(a){this._.list.mark(a)}, hideItem:function(a){this._.list.hideItem(a)},hideGroup:function(a){this._.list.hideGroup(a)},showAll:function(){this._.list.showAll()},add:function(a,b,d){this._.items[a]=d||a;this._.list.add(a,b,d)},startGroup:function(a){this._.list.startGroup(a)},commit:function(){if(!this._.committed){this._.list.commit();this._.committed=1;CKEDITOR.ui.fire("ready",this)}this._.committed=1},setState:function(a){if(this._.state!=a){var b=this.document.getById("cke_"+this.id);b.setState(a,"cke_combo");a==CKEDITOR.TRISTATE_DISABLED? @@ -685,25 +686,25 @@ new CKEDITOR.dom.range(new CKEDITOR.dom.document(c));a.setStart(new CKEDITOR.dom b.getRanges()[0];f&&(a.getHtml().match(/^<p> <\/p>$/i)&&f.startContainer.equals(a))&&setTimeout(function(){f=d.getSelection().getRanges()[0];if(!f.startContainer.equals("body")){a.getFirst().remove(1);f.moveToElementEditEnd(a);f.select()}},0)})}CKEDITOR.env.gecko&&CKEDITOR.tools.setTimeout(a,0,this,d);try{d.document.$.execCommand("2D-position",false,true)}catch(g){}try{d.document.$.execCommand("enableInlineTableEditing",false,!d.config.disableNativeTableHandles)}catch(h){}if(d.config.disableObjectResizing)try{this.getDocument().$.execCommand("enableObjectResizing", false,false)}catch(n){this.attachListener(this,CKEDITOR.env.ie?"resizestart":"resize",function(a){a.data.preventDefault()})}(CKEDITOR.env.gecko||CKEDITOR.env.ie&&d.document.$.compatMode=="CSS1Compat")&&this.attachListener(this,"keydown",function(a){var b=a.data.getKeystroke();if(b==33||b==34)if(CKEDITOR.env.ie)setTimeout(function(){d.getSelection().scrollIntoView()},0);else if(d.window.$.innerHeight>this.$.offsetHeight){var c=d.createRange();c[b==33?"moveToElementEditStart":"moveToElementEditEnd"](this); c.select();a.data.preventDefault()}});CKEDITOR.env.ie&&this.attachListener(c,"blur",function(){try{c.$.selection.empty()}catch(a){}});d.document.getElementsByTag("title").getItem(0).data("cke-title",d.document.$.title);if(CKEDITOR.env.ie)d.document.$.title=this._.docTitle;CKEDITOR.tools.setTimeout(function(){d.fire("contentDom");if(this._.isPendingFocus){d.focus();this._.isPendingFocus=false}setTimeout(function(){d.fire("dataReady")},0);CKEDITOR.env.ie&&setTimeout(function(){if(d.document){var a= -d.document.$.body;a.runtimeStyle.marginBottom="0px";a.runtimeStyle.marginBottom=""}},1E3)},0,this)}function d(a){a.checkDirty()||setTimeout(function(){a.resetDirty()},0)}function a(a){if(!a.readOnly){var b=a.window,c=a.document,e=c.getBody(),g=e.getFirst(),h=e.getChildren().count();if(!h||h==1&&g.type==CKEDITOR.NODE_ELEMENT&&g.hasAttribute("_moz_editor_bogus_node")){d(a);var g=CKEDITOR.document,n=g.getDocumentElement(),o=n.$.scrollTop,k=n.$.scrollLeft,p=c.$.createEvent("KeyEvents");p.initKeyEvent("keypress", -true,true,b.$,false,false,false,false,0,32);c.$.dispatchEvent(p);(o!=n.$.scrollTop||k!=n.$.scrollLeft)&&g.getWindow().$.scrollTo(k,o);h&&e.getFirst().remove();c.getBody().appendBogus();a=a.createRange();a.setStartAt(e,CKEDITOR.POSITION_AFTER_START);a.select()}}}function e(){var a=[];if(CKEDITOR.document.$.documentMode>=8){a.push("html.CSS1Compat [contenteditable=false]{min-height:0 !important}");var b=[],c;for(c in CKEDITOR.dtd.$removeEmpty)b.push("html.CSS1Compat "+c+"[contenteditable=false]");a.push(b.join(",")+ +d.document.$.body;a.runtimeStyle.marginBottom="0px";a.runtimeStyle.marginBottom=""}},1E3)},0,this)}function d(a){a.checkDirty()||setTimeout(function(){a.resetDirty()},0)}function a(a){if(!a.readOnly){var b=a.window,c=a.document,e=c.getBody(),g=e.getFirst(),h=e.getChildren().count();if(!h||h==1&&g.type==CKEDITOR.NODE_ELEMENT&&g.hasAttribute("_moz_editor_bogus_node")){d(a);var g=CKEDITOR.document,n=g.getDocumentElement(),o=n.$.scrollTop,m=n.$.scrollLeft,p=c.$.createEvent("KeyEvents");p.initKeyEvent("keypress", +true,true,b.$,false,false,false,false,0,32);c.$.dispatchEvent(p);(o!=n.$.scrollTop||m!=n.$.scrollLeft)&&g.getWindow().$.scrollTo(m,o);h&&e.getFirst().remove();c.getBody().appendBogus();a=a.createRange();a.setStartAt(e,CKEDITOR.POSITION_AFTER_START);a.select()}}}function e(){var a=[];if(CKEDITOR.document.$.documentMode>=8){a.push("html.CSS1Compat [contenteditable=false]{min-height:0 !important}");var b=[],c;for(c in CKEDITOR.dtd.$removeEmpty)b.push("html.CSS1Compat "+c+"[contenteditable=false]");a.push(b.join(",")+ "{display:inline-block}")}else if(CKEDITOR.env.gecko){a.push("html{height:100% !important}");a.push("img:-moz-broken{-moz-force-broken-image-icon:1;min-width:24px;min-height:24px}")}a.push("html{cursor:text;*cursor:auto}");a.push("img,input,textarea{cursor:default}");return a.join("\n")}CKEDITOR.plugins.add("wysiwygarea",{init:function(a){a.config.fullPage&&a.addFeature({allowedContent:"html head title; style [media,type]; body (*)[id]; meta link [*]",requiredContent:"body"});a.addMode("wysiwyg", -function(b){function c(c){c&&c.removeListener();a.editable(new g(a,d.$.contentWindow.document.body));a.setData(a.getData(1),b)}var d=CKEDITOR.document.createElement("iframe");d.setStyles({width:"100%",height:"100%"});d.addClass("cke_wysiwyg_frame cke_reset");var e=a.ui.space("contents");e.append(d);var m="document.open();"+(h?'document.domain="'+document.domain+'";':"")+"document.close();",m=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie?"javascript:void(function(){"+encodeURIComponent(m)+ -"}())":"",n=CKEDITOR.env.ie||CKEDITOR.env.gecko;if(n)d.on("load",c);var o=[a.lang.editor,a.name].join(),k=a.lang.common.editorHelp;CKEDITOR.env.ie&&(o=o+(", "+k));var p=CKEDITOR.tools.getNextId(),r=CKEDITOR.dom.element.createFromHtml('<span id="'+p+'" class="cke_voice_label">'+k+"</span>");e.append(r,1);a.on("beforeModeUnload",function(a){a.removeListener();r.remove()});d.setAttributes({frameBorder:0,"aria-describedby":p,title:o,src:m,tabIndex:a.tabIndex,allowTransparency:"true"});!n&&c();if(CKEDITOR.env.webkit){m= -function(){e.setStyle("width","100%");d.hide();d.setSize("width",e.getSize("width"));e.removeStyle("width");d.show()};d.setCustomData("onResize",m);CKEDITOR.document.getWindow().on("resize",m)}a.fire("ariaWidget",d)})}});var h=CKEDITOR.env.isCustomDomain(),g=CKEDITOR.tools.createClass({$:function(a){this.base.apply(this,arguments);this._.frameLoadedHandler=CKEDITOR.tools.addFunction(function(a){CKEDITOR.tools.setTimeout(b,0,this,a)},this);this._.docTitle=this.getWindow().getFrame().getAttribute("title")}, -base:CKEDITOR.editable,proto:{setData:function(a,b){var c=this.editor;if(b)this.setHtml(a);else{this._.isLoadingData=true;c._.dataStore={id:1};var d=c.config,g=d.fullPage,m=d.docType,n=CKEDITOR.tools.buildStyleHtml(e()).replace(/<style>/,'<style data-cke-temp="1">');g||(n=n+CKEDITOR.tools.buildStyleHtml(c.config.contentsCss));var o=d.baseHref?'<base href="'+d.baseHref+'" data-cke-temp="1" />':"";g&&(a=a.replace(/<!DOCTYPE[^>]*>/i,function(a){c.docType=m=a;return""}).replace(/<\?xml\s[^\?]*\?>/i,function(a){c.xmlDeclaration= -a;return""}));c.dataProcessor&&(a=c.dataProcessor.toHtml(a));if(g){/<body[\s|>]/.test(a)||(a="<body>"+a);/<html[\s|>]/.test(a)||(a="<html>"+a+"</html>");/<head[\s|>]/.test(a)?/<title[\s|>]/.test(a)||(a=a.replace(/<head[^>]*>/,"$&<title></title>")):a=a.replace(/<html[^>]*>/,"$&<head><title></title></head>");o&&(a=a.replace(/<head>/,"$&"+o));a=a.replace(/<\/head\s*>/,n+"$&");a=m+a}else a=d.docType+'<html dir="'+d.contentsLangDirection+'" lang="'+(d.contentsLanguage||c.langCode)+'"><head><title>'+this._.docTitle+ +function(b){function c(c){c&&c.removeListener();a.editable(new g(a,d.$.contentWindow.document.body));a.setData(a.getData(1),b)}var d=CKEDITOR.document.createElement("iframe");d.setStyles({width:"100%",height:"100%"});d.addClass("cke_wysiwyg_frame cke_reset");var e=a.ui.space("contents");e.append(d);var l="document.open();"+(h?'document.domain="'+document.domain+'";':"")+"document.close();",l=CKEDITOR.env.air?"javascript:void(0)":CKEDITOR.env.ie?"javascript:void(function(){"+encodeURIComponent(l)+ +"}())":"",n=CKEDITOR.env.ie||CKEDITOR.env.gecko;if(n)d.on("load",c);var o=[a.lang.editor,a.name].join(),m=a.lang.common.editorHelp;CKEDITOR.env.ie&&(o=o+(", "+m));var p=CKEDITOR.tools.getNextId(),q=CKEDITOR.dom.element.createFromHtml('<span id="'+p+'" class="cke_voice_label">'+m+"</span>");e.append(q,1);a.on("beforeModeUnload",function(a){a.removeListener();q.remove()});d.setAttributes({frameBorder:0,"aria-describedby":p,title:o,src:l,tabIndex:a.tabIndex,allowTransparency:"true"});!n&&c();if(CKEDITOR.env.webkit){l= +function(){e.setStyle("width","100%");d.hide();d.setSize("width",e.getSize("width"));e.removeStyle("width");d.show()};d.setCustomData("onResize",l);CKEDITOR.document.getWindow().on("resize",l)}a.fire("ariaWidget",d)})}});var h=CKEDITOR.env.isCustomDomain(),g=CKEDITOR.tools.createClass({$:function(a){this.base.apply(this,arguments);this._.frameLoadedHandler=CKEDITOR.tools.addFunction(function(a){CKEDITOR.tools.setTimeout(b,0,this,a)},this);this._.docTitle=this.getWindow().getFrame().getAttribute("title")}, +base:CKEDITOR.editable,proto:{setData:function(a,b){var c=this.editor;if(b)this.setHtml(a);else{this._.isLoadingData=true;c._.dataStore={id:1};var d=c.config,g=d.fullPage,l=d.docType,n=CKEDITOR.tools.buildStyleHtml(e()).replace(/<style>/,'<style data-cke-temp="1">');g||(n=n+CKEDITOR.tools.buildStyleHtml(c.config.contentsCss));var o=d.baseHref?'<base href="'+d.baseHref+'" data-cke-temp="1" />':"";g&&(a=a.replace(/<!DOCTYPE[^>]*>/i,function(a){c.docType=l=a;return""}).replace(/<\?xml\s[^\?]*\?>/i,function(a){c.xmlDeclaration= +a;return""}));c.dataProcessor&&(a=c.dataProcessor.toHtml(a));if(g){/<body[\s|>]/.test(a)||(a="<body>"+a);/<html[\s|>]/.test(a)||(a="<html>"+a+"</html>");/<head[\s|>]/.test(a)?/<title[\s|>]/.test(a)||(a=a.replace(/<head[^>]*>/,"$&<title></title>")):a=a.replace(/<html[^>]*>/,"$&<head><title></title></head>");o&&(a=a.replace(/<head>/,"$&"+o));a=a.replace(/<\/head\s*>/,n+"$&");a=l+a}else a=d.docType+'<html dir="'+d.contentsLangDirection+'" lang="'+(d.contentsLanguage||c.langCode)+'"><head><title>'+this._.docTitle+ "</title>"+o+n+"</head><body"+(d.bodyId?' id="'+d.bodyId+'"':"")+(d.bodyClass?' class="'+d.bodyClass+'"':"")+">"+a+"</body></html>";if(CKEDITOR.env.gecko){a=a.replace(/<body/,'<body contenteditable="true" ');CKEDITOR.env.version<2E4&&(a=a.replace(/<body[^>]*>/,"$&<\!-- cke-content-start --\>"))}d='<script id="cke_actscrpt" type="text/javascript"'+(CKEDITOR.env.ie?' defer="defer" ':"")+">"+(h?'document.domain="'+document.domain+'";':"")+"var wasLoaded=0;function onload(){if(!wasLoaded)window.parent.CKEDITOR.tools.callFunction("+ this._.frameLoadedHandler+",window);wasLoaded=1;}"+(CKEDITOR.env.ie?"onload();":'document.addEventListener("DOMContentLoaded", onload, false );')+"<\/script>";CKEDITOR.env.ie&&CKEDITOR.env.version<9&&(d=d+'<script id="cke_shimscrpt">(function(){var e="abbr,article,aside,audio,bdi,canvas,data,datalist,details,figcaption,figure,footer,header,hgroup,mark,meter,nav,output,progress,section,summary,time,video".split(","),i=e.length;while(i--){document.createElement(e[i])}})()<\/script>');a=a.replace(/(?=\s*<\/(:?head)>)/, -d);this.clearCustomData();this.clearListeners();c.fire("contentDomUnload");var k=this.getDocument();try{k.write(a)}catch(p){setTimeout(function(){k.write(a)},0)}}},getData:function(a){if(a)return this.getHtml();var a=this.editor,b=a.config.fullPage,c=b&&a.docType,d=b&&a.xmlDeclaration,e=this.getDocument(),b=b?e.getDocumentElement().getOuterHtml():e.getBody().getHtml();CKEDITOR.env.gecko&&(b=b.replace(/<br>(?=\s*(:?$|<\/body>))/,""));a.dataProcessor&&(b=a.dataProcessor.toDataFormat(b));d&&(b=d+"\n"+ +d);this.clearCustomData();this.clearListeners();c.fire("contentDomUnload");var m=this.getDocument();try{m.write(a)}catch(p){setTimeout(function(){m.write(a)},0)}}},getData:function(a){if(a)return this.getHtml();var a=this.editor,b=a.config.fullPage,c=b&&a.docType,d=b&&a.xmlDeclaration,e=this.getDocument(),b=b?e.getDocumentElement().getOuterHtml():e.getBody().getHtml();CKEDITOR.env.gecko&&(b=b.replace(/<br>(?=\s*(:?$|<\/body>))/,""));a.dataProcessor&&(b=a.dataProcessor.toDataFormat(b));d&&(b=d+"\n"+ b);c&&(b=c+"\n"+b);return b},focus:function(){this._.isLoadingData?this._.isPendingFocus=true:g.baseProto.focus.call(this)},detach:function(){var a=this.editor,b=a.document,c=a.window.getFrame();g.baseProto.detach.call(this);this.clearCustomData();b.getDocumentElement().clearCustomData();c.clearCustomData();CKEDITOR.tools.removeFunction(this._.frameLoadedHandler);(b=c.removeCustomData("onResize"))&&b.removeListener();a.fire("contentDomUnload");c.remove()}}})}(),CKEDITOR.config.disableObjectResizing= !1,CKEDITOR.config.disableNativeTableHandles=!0,CKEDITOR.config.disableNativeSpellChecker=!0,CKEDITOR.config.contentsCss=CKEDITOR.basePath+"contents.css",function(){function b(a,b){b||(b=a.getSelection().getSelectedElement());if(b&&b.is("img")&&!b.data("cke-realelement")&&!b.isReadOnly())return b}function d(a){var b=a.getStyle("float");if(b=="inherit"||b=="none")b=0;b||(b=a.getAttribute("align"));return b}CKEDITOR.plugins.add("image",{requires:"dialog",init:function(a){CKEDITOR.dialog.add("image", -this.path+"dialogs/image.js");var d="img[alt,!src]{border-style,border-width,height,margin,margin-bottom,margin-left,margin-right,margin-top,width}";CKEDITOR.dialog.isTabEnabled(a,"image","advanced")&&(d="img[alt,dir,id,lang,longdesc,!src,title]{*}(*)");CKEDITOR.dialog.isTabEnabled(a,"image","link")&&(d=d+";a[!href]");a.addCommand("image",new CKEDITOR.dialogCommand("image",{allowedContent:d,requiredContent:"img[alt,src]",contentTransformations:[["img{width}: sizeToStyle","img[width]: sizeToAttribute"]]})); +this.path+"dialogs/image.js");var d="img[alt,!src]{border-style,border-width,float,height,margin,margin-bottom,margin-left,margin-right,margin-top,width}";CKEDITOR.dialog.isTabEnabled(a,"image","advanced")&&(d="img[alt,dir,id,lang,longdesc,!src,title]{*}(*)");a.addCommand("image",new CKEDITOR.dialogCommand("image",{allowedContent:d,requiredContent:"img[alt,src]",contentTransformations:[["img{width}: sizeToStyle","img[width]: sizeToAttribute"],["img{float}: alignmentToStyle","img[align]: alignmentToAttribute"]]})); a.ui.addButton&&a.ui.addButton("Image",{label:a.lang.common.image,command:"image",toolbar:"insert,10"});a.on("doubleclick",function(a){var b=a.data.element;if(b.is("img")&&!b.data("cke-realelement")&&!b.isReadOnly())a.data.dialog="image"});a.addMenuItems&&a.addMenuItems({image:{label:a.lang.image.menu,command:"image",group:"image"}});a.contextMenu&&a.contextMenu.addListener(function(d){if(b(a,d))return{image:CKEDITOR.TRISTATE_OFF}})},afterInit:function(a){function e(e){var g=a.getCommand("justify"+ e);if(g){if(e=="left"||e=="right")g.on("exec",function(f){var g=b(a),c;if(g){c=d(g);if(c==e){g.removeStyle("float");e==d(g)&&g.removeAttribute("align")}else g.setStyle("float",e);f.cancel()}});g.on("refresh",function(f){var g=b(a);if(g){g=d(g);this.setState(g==e?CKEDITOR.TRISTATE_ON:e=="right"||e=="left"?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);f.cancel()}})}}e("left");e("right");e("center");e("block")}})}(),CKEDITOR.config.image_removeLinkByEmptyURL=!0,function(){function b(a,b){var c=e.exec(a), d=e.exec(b);if(c){if(!c[2]&&d[2]=="px")return d[1];if(c[2]=="px"&&!d[2])return d[1]+"px"}return b}var d=CKEDITOR.htmlParser.cssStyle,a=CKEDITOR.tools.cssLength,e=/^((?:\d*(?:\.\d+))|(?:\d+))(.*)?$/i,h={elements:{$:function(a){var e=a.attributes;if((e=(e=(e=e&&e["data-cke-realelement"])&&new CKEDITOR.htmlParser.fragment.fromHtml(decodeURIComponent(e)))&&e.children[0])&&a.attributes["data-cke-resizable"]){var c=(new d(a)).rules,a=e.attributes,g=c.width,c=c.height;g&&(a.width=b(a.width,g));c&&(a.height= -b(a.height,c))}return e}}},g=CKEDITOR.plugins.add("fakeobjects",{afterInit:function(a){(a=(a=a.dataProcessor)&&a.htmlFilter)&&a.addRules(h)}});CKEDITOR.editor.prototype.createFakeElement=function(b,e,c,h){var l=this.lang.fakeobjects,l=l[c]||l.unknown,e={"class":e,"data-cke-realelement":encodeURIComponent(b.getOuterHtml()),"data-cke-real-node-type":b.type,alt:l,title:l,align:b.getAttribute("align")||""};if(!CKEDITOR.env.hc)e.src=CKEDITOR.getUrl(g.path+"images/spacer.gif");c&&(e["data-cke-real-element-type"]= -c);if(h){e["data-cke-resizable"]=h;c=new d;h=b.getAttribute("width");b=b.getAttribute("height");h&&(c.rules.width=a(h));b&&(c.rules.height=a(b));c.populate(e)}return this.document.createElement("img",{attributes:e})};CKEDITOR.editor.prototype.createFakeParserElement=function(b,e,c,h){var l=this.lang.fakeobjects,l=l[c]||l.unknown,m;m=new CKEDITOR.htmlParser.basicWriter;b.writeHtml(m);m=m.getHtml();e={"class":e,"data-cke-realelement":encodeURIComponent(m),"data-cke-real-node-type":b.type,alt:l,title:l, +b(a.height,c))}return e}}},g=CKEDITOR.plugins.add("fakeobjects",{afterInit:function(a){(a=(a=a.dataProcessor)&&a.htmlFilter)&&a.addRules(h)}});CKEDITOR.editor.prototype.createFakeElement=function(b,e,c,h){var k=this.lang.fakeobjects,k=k[c]||k.unknown,e={"class":e,"data-cke-realelement":encodeURIComponent(b.getOuterHtml()),"data-cke-real-node-type":b.type,alt:k,title:k,align:b.getAttribute("align")||""};if(!CKEDITOR.env.hc)e.src=CKEDITOR.getUrl(g.path+"images/spacer.gif");c&&(e["data-cke-real-element-type"]= +c);if(h){e["data-cke-resizable"]=h;c=new d;h=b.getAttribute("width");b=b.getAttribute("height");h&&(c.rules.width=a(h));b&&(c.rules.height=a(b));c.populate(e)}return this.document.createElement("img",{attributes:e})};CKEDITOR.editor.prototype.createFakeParserElement=function(b,e,c,h){var k=this.lang.fakeobjects,k=k[c]||k.unknown,l;l=new CKEDITOR.htmlParser.basicWriter;b.writeHtml(l);l=l.getHtml();e={"class":e,"data-cke-realelement":encodeURIComponent(l),"data-cke-real-node-type":b.type,alt:k,title:k, align:b.attributes.align||""};if(!CKEDITOR.env.hc)e.src=CKEDITOR.getUrl(g.path+"images/spacer.gif");c&&(e["data-cke-real-element-type"]=c);if(h){e["data-cke-resizable"]=h;h=b.attributes;b=new d;c=h.width;h=h.height;c!=void 0&&(b.rules.width=a(c));h!=void 0&&(b.rules.height=a(h));b.populate(e)}return new CKEDITOR.htmlParser.element("img",e)};CKEDITOR.editor.prototype.restoreRealElement=function(a){if(a.data("cke-real-node-type")!=CKEDITOR.NODE_ELEMENT)return null;var d=CKEDITOR.dom.element.createFromHtml(decodeURIComponent(a.data("cke-realelement")), this.document);if(a.data("cke-resizable")){var c=a.getStyle("width"),a=a.getStyle("height");c&&d.setAttribute("width",b(d.getAttribute("width"),c));a&&d.setAttribute("height",b(d.getAttribute("height"),a))}return d}}(),CKEDITOR.plugins.add("link",{requires:"dialog,fakeobjects",onLoad:function(){function b(b){return a.replace(/%1/g,b=="rtl"?"right":"left").replace(/%2/g,"cke_contents_"+b)}var d="background:url("+CKEDITOR.getUrl(this.path+"images/anchor.png")+") no-repeat %1 center;border:1px dotted #00f;", a=".%2 a.cke_anchor,.%2 a.cke_anchor_empty,.cke_editable.%2 a[name],.cke_editable.%2 a[data-cke-saved-name]{"+d+"padding-%1:18px;cursor:auto;}"+(CKEDITOR.env.ie?"a.cke_anchor_empty{display:inline-block;}":"")+".%2 img.cke_anchor{"+d+"width:16px;min-height:15px;height:1.15em;vertical-align:"+(CKEDITOR.env.opera?"middle":"text-bottom")+";}";CKEDITOR.addCss(b("ltr")+b("rtl"))},init:function(b){var d="a[!href]";CKEDITOR.dialog.isTabEnabled(b,"link","advanced")&&(d=d.replace("]",",accesskey,charset,dir,id,lang,name,rel,tabindex,title,type]{*}(*)")); @@ -716,48 +717,48 @@ d&&d.addRules({elements:{a:function(a){delete a.attributes.contenteditable}}});e fakeAnchor:CKEDITOR.env.opera||CKEDITOR.env.webkit,synAnchorSelector:CKEDITOR.env.ie,emptyAnchorFix:CKEDITOR.env.ie&&8>CKEDITOR.env.version,tryRestoreFakeAnchor:function(b,d){if(d&&d.data("cke-real-element-type")&&d.data("cke-real-element-type")=="anchor"){var a=b.restoreRealElement(d);if(a.data("cke-saved-name"))return a}}},CKEDITOR.unlinkCommand=function(){},CKEDITOR.unlinkCommand.prototype={exec:function(b){var d=new CKEDITOR.style({element:"a",type:CKEDITOR.STYLE_INLINE,alwaysRemoveElement:1}); b.removeStyle(d)},refresh:function(b,d){var a=d.lastElement&&d.lastElement.getAscendant("a",true);a&&a.getName()=="a"&&a.getAttribute("href")&&a.getChildCount()?this.setState(CKEDITOR.TRISTATE_OFF):this.setState(CKEDITOR.TRISTATE_DISABLED)},contextSensitive:1,startDisabled:1,requiredContent:"a[href]"},CKEDITOR.removeAnchorCommand=function(){},CKEDITOR.removeAnchorCommand.prototype={exec:function(b){var d=b.getSelection(),a=d.createBookmarks(),e;if(d&&(e=d.getSelectedElement())&&(CKEDITOR.plugins.link.fakeAnchor&& !e.getChildCount()?CKEDITOR.plugins.link.tryRestoreFakeAnchor(b,e):e.is("a")))e.remove(1);else if(e=CKEDITOR.plugins.link.getSelectedLink(b))if(e.hasAttribute("href")){e.removeAttributes({name:1,"data-cke-saved-name":1});e.removeClass("cke_anchor")}else e.remove(1);d.selectBookmarks(a)},requiredContent:"a[name]"},CKEDITOR.tools.extend(CKEDITOR.config,{linkShowAdvancedTab:!0,linkShowTargetTab:!0}),"use strict",function(){function b(a,b,c){return j(b)&&j(c)&&c.equals(b.getNext(function(a){return!(T(a)|| -V(a)||l(a))}))}function d(a){this.upper=a[0];this.lower=a[1];this.set.apply(this,a.slice(2))}function a(a){var b=a.element,c;return b&&j(b)?(c=b.getAscendant(a.triggers,true))&&!c.contains(a.editable)&&!c.equals(a.editable)?c:null:null}function e(a,b,c){q(a,b);q(a,c);a=b.size.bottom;c=c.size.top;return a&&c?0|(a+c)/2:a||c}function h(a,b,d){return b=b[d?"getPrevious":"getNext"](function(b){return b&&b.type==CKEDITOR.NODE_TEXT&&!T(b)||j(b)&&!l(b)&&!c(a,b)})}function g(a){var b=a.doc,c=s('<span contenteditable="false" style="'+ +V(a)||k(a))}))}function d(a){this.upper=a[0];this.lower=a[1];this.set.apply(this,a.slice(2))}function a(a){var b=a.element,c;return b&&j(b)?(c=b.getAscendant(a.triggers,true))&&!c.contains(a.editable)&&!c.equals(a.editable)?c:null:null}function e(a,b,c){r(a,b);r(a,c);a=b.size.bottom;c=c.size.top;return a&&c?0|(a+c)/2:a||c}function h(a,b,d){return b=b[d?"getPrevious":"getNext"](function(b){return b&&b.type==CKEDITOR.NODE_TEXT&&!T(b)||j(b)&&!k(b)&&!c(a,b)})}function g(a){var b=a.doc,c=s('<span contenteditable="false" style="'+ Q+"position:absolute;border-top:1px dashed "+a.boxColor+'"></span>',b);u(c,{attach:function(){this.wrap.getParent()||this.wrap.appendTo(a.editable,true);return this},lineChildren:[u(s('<span title="'+a.editor.lang.magicline.title+'" contenteditable="false">↵</span>',b),{base:Q+"height:17px;width:17px;"+(a.rtl?"left":"right")+":17px;background:url("+this.path+"images/icon.png) center no-repeat "+a.boxColor+";cursor:pointer;"+(v.hc?"font-size: 15px;line-height:14px;border:1px solid #fff;text-align:center;": -""),looks:["top:-8px;"+CKEDITOR.tools.cssVendorPrefix("border-radius","2px",1),"top:-17px;"+CKEDITOR.tools.cssVendorPrefix("border-radius","2px 2px 0px 0px",1),"top:-1px;"+CKEDITOR.tools.cssVendorPrefix("border-radius","0px 0px 2px 2px",1)]}),u(s(N,b),{base:R+"left:0px;border-left-color:"+a.boxColor+";",looks:["border-width:8px 0 8px 8px;top:-8px","border-width:8px 0 0 8px;top:-8px","border-width:0 0 8px 8px;top:0px"]}),u(s(N,b),{base:R+"right:0px;border-right-color:"+a.boxColor+";",looks:["border-width:8px 8px 8px 0;top:-8px", -"border-width:8px 8px 0 0;top:-8px","border-width:0 8px 8px 0;top:0px"]})],detach:function(){this.wrap.getParent()&&this.wrap.remove();return this},mouseNear:function(){q(a,this);var b=a.holdDistance,c=this.size;return c&&a.mouse.y>c.top-b&&a.mouse.y<c.bottom+b&&a.mouse.x>c.left-b&&a.mouse.x<c.right+b?true:false},place:function(){var b=a.view,c=a.editable,d=a.trigger,e=d.upper,f=d.lower,g=e||f,h=g.getParent(),i={};this.trigger=d;e&&q(a,e,true);f&&q(a,f,true);q(a,h,true);a.inInlineMode&&t(a,true); +""),looks:["top:-8px;"+CKEDITOR.tools.cssVendorPrefix("border-radius","2px",1),"top:-17px;"+CKEDITOR.tools.cssVendorPrefix("border-radius","2px 2px 0px 0px",1),"top:-1px;"+CKEDITOR.tools.cssVendorPrefix("border-radius","0px 0px 2px 2px",1)]}),u(s(O,b),{base:R+"left:0px;border-left-color:"+a.boxColor+";",looks:["border-width:8px 0 8px 8px;top:-8px","border-width:8px 0 0 8px;top:-8px","border-width:0 0 8px 8px;top:0px"]}),u(s(O,b),{base:R+"right:0px;border-right-color:"+a.boxColor+";",looks:["border-width:8px 8px 8px 0;top:-8px", +"border-width:8px 8px 0 0;top:-8px","border-width:0 8px 8px 0;top:0px"]})],detach:function(){this.wrap.getParent()&&this.wrap.remove();return this},mouseNear:function(){r(a,this);var b=a.holdDistance,c=this.size;return c&&a.mouse.y>c.top-b&&a.mouse.y<c.bottom+b&&a.mouse.x>c.left-b&&a.mouse.x<c.right+b?true:false},place:function(){var b=a.view,c=a.editable,d=a.trigger,e=d.upper,f=d.lower,g=e||f,h=g.getParent(),i={};this.trigger=d;e&&r(a,e,true);f&&r(a,f,true);r(a,h,true);a.inInlineMode&&t(a,true); if(h.equals(c)){i.left=b.scroll.x;i.right=-b.scroll.x;i.width=""}else{i.left=g.size.left-g.size.margin.left+b.scroll.x-(a.inInlineMode?b.editable.left+b.editable.border.left:0);i.width=g.size.outerWidth+g.size.margin.left+g.size.margin.right+b.scroll.x;i.right=""}if(e&&f)i.top=e.size.margin.bottom===f.size.margin.top?0|e.size.bottom+e.size.margin.bottom/2:e.size.margin.bottom<f.size.margin.top?e.size.bottom+e.size.margin.bottom:e.size.bottom+e.size.margin.bottom-f.size.margin.top;else if(e){if(!f)i.top= e.size.bottom+e.size.margin.bottom}else i.top=f.size.top-f.size.margin.top;if(d.is(E)||i.top>b.scroll.y-15&&i.top<b.scroll.y+5){i.top=a.inInlineMode?0:b.scroll.y;this.look(E)}else if(d.is(K)||i.top>b.pane.bottom-5&&i.top<b.pane.bottom+15){i.top=a.inInlineMode?b.editable.height+b.editable.padding.top+b.editable.padding.bottom:b.pane.bottom-1;this.look(K)}else{if(a.inInlineMode)i.top=i.top-(b.editable.top+b.editable.border.top);this.look(I)}if(a.inInlineMode){i.top--;i.top=i.top+b.editable.scroll.top; i.left=i.left+b.editable.scroll.left}for(var j in i)i[j]=CKEDITOR.tools.cssLength(i[j]);this.setStyles(i)},look:function(a){if(this.oldLook!=a){for(var b=this.lineChildren.length,c;b--;)(c=this.lineChildren[b]).setAttribute("style",c.base+c.looks[0|a/2]);this.oldLook=a}},wrap:new w("span",a.doc)});for(b=c.lineChildren.length;b--;)c.lineChildren[b].appendTo(c);c.look(I);c.appendTo(c.wrap);c.unselectable();c.lineChildren[0].on("mouseup",function(b){c.detach();f(a,function(b){var c=a.line.trigger;b[c.is(B)? "insertBefore":"insertAfter"](c.is(B)?c.lower:c.upper)},true);a.editor.focus();!v.ie&&a.enterMode!=CKEDITOR.ENTER_BR&&a.hotNode.scrollIntoView();b.data.preventDefault(true)});c.on("mousedown",function(a){a.data.preventDefault(true)});a.line=c}function f(a,b,c){var d=new CKEDITOR.dom.range(a.doc),e=a.editor,f;if(v.ie&&a.enterMode==CKEDITOR.ENTER_BR)f=a.doc.createText(G);else{f=new w(a.enterBehavior,a.doc);a.enterMode!=CKEDITOR.ENTER_BR&&a.doc.createText(G).appendTo(f)}c&&e.fire("saveSnapshot");b(f); d.moveToPosition(f,CKEDITOR.POSITION_AFTER_START);e.getSelection().selectRanges([d]);a.hotNode=f;c&&e.fire("saveSnapshot")}function i(b,c){return{canUndo:true,modes:{wysiwyg:1},exec:function(){function d(a){var e=v.ie&&v.version<9?" ":G,g=b.hotNode&&b.hotNode.getText()==e&&b.element.equals(b.hotNode)&&b.lastCmdDirection===!!c;f(b,function(d){g&&b.hotNode&&b.hotNode.remove();d[c?"insertAfter":"insertBefore"](a);d.setAttributes({"data-cke-magicline-hot":1,"data-cke-magicline-dir":!!c});b.lastCmdDirection= !!c});!v.ie&&b.enterMode!=CKEDITOR.ENTER_BR&&b.hotNode.scrollIntoView();b.line.detach()}return function(e){e=e.getSelection().getStartElement();if((e=e.getAscendant(P,1))&&!e.equals(b.editable)&&!e.contains(b.editable)){b.element=e;var f=h(b,e,!c),g;if(j(f)&&f.is(b.triggers)&&f.is(J)&&(!h(b,f,!c)||(g=h(b,f,!c))&&j(g)&&g.is(b.triggers)))d(f);else{g=a(b,e);if(j(g))if(h(b,g,!c))(e=h(b,g,!c))&&(j(e)&&e.is(b.triggers))&&d(g);else d(g)}}}}()}}function c(a,b){if(!b||!(b.type==CKEDITOR.NODE_ELEMENT&&b.$))return false; -var c=a.line;return c.wrap.equals(b)||c.wrap.contains(b)}function j(a){return a&&a.type==CKEDITOR.NODE_ELEMENT&&a.$}function l(a){if(!j(a))return false;var b;if(!(b=m(a)))if(j(a)){b={left:1,right:1,center:1};b=!(!b[a.getComputedStyle("float")]&&!b[a.getAttribute("align")])}else b=false;return b}function m(a){return!!{absolute:1,fixed:1,relative:1}[a.getComputedStyle("position")]}function n(a,b){return j(b)?b.is(a.triggers):null}function o(a,b,c){b=b[c?"getLast":"getFirst"](function(b){return a.isRelevant(b)&& -!b.is(L)});if(!b)return false;q(a,b);return c?b.size.top>a.mouse.y:b.size.bottom<a.mouse.y}function k(a){var b=a.editable,e=a.mouse,f=a.view,g=a.triggerOffset;t(a);var h=e.y>(a.inInlineMode?f.editable.top+f.editable.height/2:Math.min(f.editable.height,f.pane.height)/2),b=b[h?"getLast":"getFirst"](function(a){return!(T(a)||V(a))});if(!b)return null;c(a,b)&&(b=a.line.wrap[h?"getPrevious":"getNext"](function(a){return!(T(a)||V(a))}));if(!j(b)||l(b)||!n(a,b))return null;q(a,b);if(!h&&b.size.top>=0&&e.y> -0&&e.y<b.size.top+g){a=a.inInlineMode||f.scroll.y===0?E:I;return new d([null,b,B,D,a])}if(h&&b.size.bottom<=f.pane.height&&e.y>b.size.bottom-g&&e.y<f.pane.height){a=a.inInlineMode||b.size.bottom>f.pane.height-g&&b.size.bottom<f.pane.height?K:I;return new d([b,null,y,D,a])}return null}function p(b){var c=b.mouse,e=b.view,f=b.triggerOffset,g=a(b);if(!g)return null;q(b,g);var f=Math.min(f,0|g.size.outerHeight/2),i=[],k,p;if(c.y>g.size.top-1&&c.y<g.size.top+f)p=false;else if(c.y>g.size.bottom-f&&c.y< -g.size.bottom+1)p=true;else return null;if(l(g)||o(b,g,p)||g.getParent().is(H))return null;var m=h(b,g,!p);if(m){if(m&&m.type==CKEDITOR.NODE_TEXT)return null;if(j(m)){if(l(m)||!n(b,m)||m.getParent().is(H))return null;i=[m,g][p?"reverse":"concat"]().concat([C,D])}}else{if(g.equals(b.editable[p?"getLast":"getFirst"](b.isRelevant))){t(b);p&&c.y>g.size.bottom-f&&c.y<e.pane.height&&g.size.bottom>e.pane.height-f&&g.size.bottom<e.pane.height?k=K:c.y>0&&c.y<g.size.top+f&&(k=E)}else k=I;i=[null,g][p?"reverse": -"concat"]().concat([p?y:B,D,k,g.equals(b.editable[p?"getLast":"getFirst"](b.isRelevant))?p?K:E:I])}return 0 in i?new d(i):null}function r(a,b,c,d){for(var e=function(){var c=v.ie?b.$.currentStyle:a.win.$.getComputedStyle(b.$,"");return v.ie?function(a){return c[CKEDITOR.tools.cssStyleToDomStyle(a)]}:function(a){return c.getPropertyValue(a)}}(),f=b.getDocumentPosition(),g={},h={},i={},j={},k=S.length;k--;){g[S[k]]=parseInt(e("border-"+S[k]+"-width"),10)||0;i[S[k]]=parseInt(e("padding-"+S[k]),10)|| -0;h[S[k]]=parseInt(e("margin-"+S[k]),10)||0}(!c||d)&&z(a,d);j.top=f.y-(c?0:a.view.scroll.y);j.left=f.x-(c?0:a.view.scroll.x);j.outerWidth=b.$.offsetWidth;j.outerHeight=b.$.offsetHeight;j.height=j.outerHeight-(i.top+i.bottom+g.top+g.bottom);j.width=j.outerWidth-(i.left+i.right+g.left+g.right);j.bottom=j.top+j.outerHeight;j.right=j.left+j.outerWidth;if(a.inInlineMode)j.scroll={top:b.$.scrollTop,left:b.$.scrollLeft};return u({border:g,padding:i,margin:h,ignoreScroll:c},j,true)}function q(a,b,c){if(!j(b))return b.size= -null;if(b.size){if(b.size.ignoreScroll==c&&b.size.date>new Date-M)return null}else b.size={};return u(b.size,r(a,b,c),{date:+new Date},true)}function t(a,b){a.view.editable=r(a,a.editable,b,true)}function z(a,b){if(!a.view)a.view={};var c=a.view;if(b||!(c&&c.date>new Date-M)){var d=a.win,c=d.getScrollPosition(),d=d.getViewPaneSize();u(a.view,{scroll:{x:c.x,y:c.y,width:a.doc.$.documentElement.scrollWidth-d.width,height:a.doc.$.documentElement.scrollHeight-d.height},pane:{width:d.width,height:d.height, -bottom:d.height+c.y},date:+new Date},true)}}function x(a,b,c,e){for(var f=e,g=e,h=0,i=false,j=false,k=a.view.pane.height,l=a.mouse;l.y+h<k&&l.y-h>0;){i||(i=b(f,e));j||(j=b(g,e));!i&&l.y-h>0&&(f=c(a,{x:l.x,y:l.y-h}));!j&&l.y+h<k&&(g=c(a,{x:l.x,y:l.y+h}));if(i&&j)break;h=h+2}return new d([f,g,null,null])}CKEDITOR.plugins.add("magicline",{init:function(b){var e={};e[CKEDITOR.ENTER_BR]="br";e[CKEDITOR.ENTER_P]="p";e[CKEDITOR.ENTER_DIV]="div";var q=b.config,o=q.magicline_triggerOffset||30,n=q.enterMode, -s={editor:b,enterBehavior:e[n],enterMode:n,triggerOffset:o,holdDistance:0|o*(q.magicline_holdDistance||0.5),boxColor:q.magicline_color||"#ff0000",rtl:q.contentsLangDirection=="rtl",triggers:q.magicline_everywhere?P:{table:1,hr:1,div:1,ul:1,ol:1,dl:1,form:1,blockquote:1}},x,w,y;s.isRelevant=function(a){return j(a)&&!c(s,a)&&!l(a)};b.on("contentDom",function(){var e=b.editable(),j=b.document,l=b.window;u(s,{editable:e,inInlineMode:e.isInline(),doc:j,win:l},true);s.boundary=s.inInlineMode?s.editable: -s.doc.getDocumentElement();if(!e.is(A.$inline)){s.inInlineMode&&!m(e)&&e.setStyles({position:"relative",top:null,left:null});g.call(this,s);z(s);e.attachListener(b,"beforeUndoImage",function(){s.line.detach()});e.attachListener(b,"beforeGetData",function(){if(s.line.wrap.getParent()){s.line.detach();b.once("getData",function(){s.line.attach()},null,null,1E3)}},null,null,0);e.attachListener(s.inInlineMode?j:j.getWindow().getFrame(),"mouseout",function(a){if(b.mode=="wysiwyg")if(s.inInlineMode){var c= +var c=a.line;return c.wrap.equals(b)||c.wrap.contains(b)}function j(a){return a&&a.type==CKEDITOR.NODE_ELEMENT&&a.$}function k(a){if(!j(a))return false;var b;if(!(b=l(a)))if(j(a)){b={left:1,right:1,center:1};b=!(!b[a.getComputedStyle("float")]&&!b[a.getAttribute("align")])}else b=false;return b}function l(a){return!!{absolute:1,fixed:1,relative:1}[a.getComputedStyle("position")]}function n(a,b){return j(b)?b.is(a.triggers):null}function o(a,b,c){b=b[c?"getLast":"getFirst"](function(b){return a.isRelevant(b)&& +!b.is(L)});if(!b)return false;r(a,b);return c?b.size.top>a.mouse.y:b.size.bottom<a.mouse.y}function m(a){var b=a.editable,e=a.mouse,f=a.view,g=a.triggerOffset;t(a);var h=e.y>(a.inInlineMode?f.editable.top+f.editable.height/2:Math.min(f.editable.height,f.pane.height)/2),b=b[h?"getLast":"getFirst"](function(a){return!(T(a)||V(a))});if(!b)return null;c(a,b)&&(b=a.line.wrap[h?"getPrevious":"getNext"](function(a){return!(T(a)||V(a))}));if(!j(b)||k(b)||!n(a,b))return null;r(a,b);if(!h&&b.size.top>=0&&e.y> +0&&e.y<b.size.top+g){a=a.inInlineMode||f.scroll.y===0?E:I;return new d([null,b,B,D,a])}if(h&&b.size.bottom<=f.pane.height&&e.y>b.size.bottom-g&&e.y<f.pane.height){a=a.inInlineMode||b.size.bottom>f.pane.height-g&&b.size.bottom<f.pane.height?K:I;return new d([b,null,y,D,a])}return null}function p(b){var c=b.mouse,e=b.view,f=b.triggerOffset,g=a(b);if(!g)return null;r(b,g);var f=Math.min(f,0|g.size.outerHeight/2),i=[],m,p;if(c.y>g.size.top-1&&c.y<g.size.top+f)p=false;else if(c.y>g.size.bottom-f&&c.y< +g.size.bottom+1)p=true;else return null;if(k(g)||o(b,g,p)||g.getParent().is(H))return null;var l=h(b,g,!p);if(l){if(l&&l.type==CKEDITOR.NODE_TEXT)return null;if(j(l)){if(k(l)||!n(b,l)||l.getParent().is(H))return null;i=[l,g][p?"reverse":"concat"]().concat([C,D])}}else{if(g.equals(b.editable[p?"getLast":"getFirst"](b.isRelevant))){t(b);p&&c.y>g.size.bottom-f&&c.y<e.pane.height&&g.size.bottom>e.pane.height-f&&g.size.bottom<e.pane.height?m=K:c.y>0&&c.y<g.size.top+f&&(m=E)}else m=I;i=[null,g][p?"reverse": +"concat"]().concat([p?y:B,D,m,g.equals(b.editable[p?"getLast":"getFirst"](b.isRelevant))?p?K:E:I])}return 0 in i?new d(i):null}function q(a,b,c,d){for(var e=function(){var c=v.ie?b.$.currentStyle:a.win.$.getComputedStyle(b.$,"");return v.ie?function(a){return c[CKEDITOR.tools.cssStyleToDomStyle(a)]}:function(a){return c.getPropertyValue(a)}}(),f=b.getDocumentPosition(),g={},h={},i={},j={},m=S.length;m--;){g[S[m]]=parseInt(e("border-"+S[m]+"-width"),10)||0;i[S[m]]=parseInt(e("padding-"+S[m]),10)|| +0;h[S[m]]=parseInt(e("margin-"+S[m]),10)||0}(!c||d)&&z(a,d);j.top=f.y-(c?0:a.view.scroll.y);j.left=f.x-(c?0:a.view.scroll.x);j.outerWidth=b.$.offsetWidth;j.outerHeight=b.$.offsetHeight;j.height=j.outerHeight-(i.top+i.bottom+g.top+g.bottom);j.width=j.outerWidth-(i.left+i.right+g.left+g.right);j.bottom=j.top+j.outerHeight;j.right=j.left+j.outerWidth;if(a.inInlineMode)j.scroll={top:b.$.scrollTop,left:b.$.scrollLeft};return u({border:g,padding:i,margin:h,ignoreScroll:c},j,true)}function r(a,b,c){if(!j(b))return b.size= +null;if(b.size){if(b.size.ignoreScroll==c&&b.size.date>new Date-N)return null}else b.size={};return u(b.size,q(a,b,c),{date:+new Date},true)}function t(a,b){a.view.editable=q(a,a.editable,b,true)}function z(a,b){if(!a.view)a.view={};var c=a.view;if(b||!(c&&c.date>new Date-N)){var d=a.win,c=d.getScrollPosition(),d=d.getViewPaneSize();u(a.view,{scroll:{x:c.x,y:c.y,width:a.doc.$.documentElement.scrollWidth-d.width,height:a.doc.$.documentElement.scrollHeight-d.height},pane:{width:d.width,height:d.height, +bottom:d.height+c.y},date:+new Date},true)}}function x(a,b,c,e){for(var f=e,g=e,h=0,i=false,j=false,m=a.view.pane.height,k=a.mouse;k.y+h<m&&k.y-h>0;){i||(i=b(f,e));j||(j=b(g,e));!i&&k.y-h>0&&(f=c(a,{x:k.x,y:k.y-h}));!j&&k.y+h<m&&(g=c(a,{x:k.x,y:k.y+h}));if(i&&j)break;h=h+2}return new d([f,g,null,null])}CKEDITOR.plugins.add("magicline",{init:function(b){var e={};e[CKEDITOR.ENTER_BR]="br";e[CKEDITOR.ENTER_P]="p";e[CKEDITOR.ENTER_DIV]="div";var r=b.config,o=r.magicline_triggerOffset||30,n=r.enterMode, +s={editor:b,enterBehavior:e[n],enterMode:n,triggerOffset:o,holdDistance:0|o*(r.magicline_holdDistance||0.5),boxColor:r.magicline_color||"#ff0000",rtl:r.contentsLangDirection=="rtl",triggers:r.magicline_everywhere?P:{table:1,hr:1,div:1,ul:1,ol:1,dl:1,form:1,blockquote:1}},w,x,y;s.isRelevant=function(a){return j(a)&&!c(s,a)&&!k(a)};b.on("contentDom",function(){var e=b.editable(),j=b.document,k=b.window;u(s,{editable:e,inInlineMode:e.isInline(),doc:j,win:k},true);s.boundary=s.inInlineMode?s.editable: +s.doc.getDocumentElement();if(!e.is(A.$inline)){s.inInlineMode&&!l(e)&&e.setStyles({position:"relative",top:null,left:null});g.call(this,s);z(s);e.attachListener(b,"beforeUndoImage",function(){s.line.detach()});e.attachListener(b,"beforeGetData",function(){if(s.line.wrap.getParent()){s.line.detach();b.once("getData",function(){s.line.attach()},null,null,1E3)}},null,null,0);e.attachListener(s.inInlineMode?j:j.getWindow().getFrame(),"mouseout",function(a){if(b.mode=="wysiwyg")if(s.inInlineMode){var c= a.data.$.clientX,a=a.data.$.clientY;z(s);t(s,true);var d=s.view.editable,e=s.view.scroll;if(!(c>d.left-e.x&&c<d.right-e.x)||!(a>d.top-e.y&&a<d.bottom-e.y)){clearTimeout(y);y=null;s.line.detach()}}else{clearTimeout(y);y=null;s.line.detach()}});e.attachListener(e,"keyup",function(){s.hiddenMode=0});e.attachListener(e,"keydown",function(a){if(b.mode=="wysiwyg"){a=a.data.getKeystroke();b.getSelection().getStartElement();switch(a){case 2228240:case 16:s.hiddenMode=1;s.line.detach()}}});e.attachListener(s.inInlineMode? -e:j,"mousemove",function(a){w=true;if(!(b.mode!="wysiwyg"||b.readOnly||y)){var c={x:a.data.$.clientX,y:a.data.$.clientY};y=setTimeout(function(){s.mouse=c;y=s.trigger=null;z(s);if(w&&!s.hiddenMode&&b.focusManager.hasFocus&&!s.line.mouseNear()&&(s.element=U(s,true))){if(s.trigger=k(s)||p(s)||W(s))s.line.attach().place();else{s.trigger=null;s.line.detach()}w=false}},30)}});e.attachListener(l,"scroll",function(){if(b.mode=="wysiwyg"){s.line.detach();if(v.webkit){s.hiddenMode=1;clearTimeout(x);x=setTimeout(function(){s.hiddenMode= -0},50)}}});e.attachListener(l,"mousedown",function(){if(b.mode=="wysiwyg"){s.line.detach();s.hiddenMode=1}});e.attachListener(l,"mouseup",function(){s.hiddenMode=0});b.addCommand("accessPreviousSpace",i(s));b.addCommand("accessNextSpace",i(s,true));b.setKeystroke([[q.magicline_keystrokePrevious,"accessPreviousSpace"],[q.magicline_keystrokeNext,"accessNextSpace"]]);b.on("loadSnapshot",function(){for(var a=j.getElementsByTag(s.enterBehavior),b,c=a.count();c--;)if((b=a.getItem(c)).hasAttribute("data-cke-magicline-hot")){s.hotNode= -b;s.lastCmdDirection=b.getAttribute("data-cke-magicline-dir")==="true"?true:false;break}});this.backdoor={accessFocusSpace:f,boxTrigger:d,isLine:c,getAscendantTrigger:a,getNonEmptyNeighbour:h,getSize:r,that:s,triggerEdge:p,triggerEditable:k,triggerExpand:W}}},this)}});var u=CKEDITOR.tools.extend,w=CKEDITOR.dom.element,s=w.createFromHtml,v=CKEDITOR.env,A=CKEDITOR.dtd,B=128,y=64,C=32,D=16,F=8,E=4,K=2,I=1,G=" ",H=A.$listItem,L=A.$tableContent,J=u({},A.$nonEditable,A.$empty),P=A.$block,M=100,Q="width:0px;height:0px;padding:0px;margin:0px;display:block;z-index:9999;color:#fff;position:absolute;font-size: 0px;line-height:0px;", -R=Q+"border-color:transparent;display:block;border-style:solid;",N="<span>"+G+"</span>";d.prototype={set:function(a,b,c){this.properties=a+b+(c||I);return this},is:function(a){return(this.properties&a)==a}};var U=function(){return function(a,b,d){if(!a.mouse)return null;var e=a.doc,f=a.line.wrap,d=d||a.mouse,g=new CKEDITOR.dom.element(e.$.elementFromPoint(d.x,d.y));if(b&&c(a,g)){f.hide();g=new CKEDITOR.dom.element(e.$.elementFromPoint(d.x,d.y));f.show()}return!g||!(g.type==CKEDITOR.NODE_ELEMENT&& +e:j,"mousemove",function(a){x=true;if(!(b.mode!="wysiwyg"||b.readOnly||y)){var c={x:a.data.$.clientX,y:a.data.$.clientY};y=setTimeout(function(){s.mouse=c;y=s.trigger=null;z(s);if(x&&!s.hiddenMode&&b.focusManager.hasFocus&&!s.line.mouseNear()&&(s.element=U(s,true))){if(s.trigger=m(s)||p(s)||W(s))s.line.attach().place();else{s.trigger=null;s.line.detach()}x=false}},30)}});e.attachListener(k,"scroll",function(){if(b.mode=="wysiwyg"){s.line.detach();if(v.webkit){s.hiddenMode=1;clearTimeout(w);w=setTimeout(function(){s.hiddenMode= +0},50)}}});e.attachListener(k,"mousedown",function(){if(b.mode=="wysiwyg"){s.line.detach();s.hiddenMode=1}});e.attachListener(k,"mouseup",function(){s.hiddenMode=0});b.addCommand("accessPreviousSpace",i(s));b.addCommand("accessNextSpace",i(s,true));b.setKeystroke([[r.magicline_keystrokePrevious,"accessPreviousSpace"],[r.magicline_keystrokeNext,"accessNextSpace"]]);b.on("loadSnapshot",function(){for(var a=b.document.getElementsByTag(s.enterBehavior),c,d=a.count();d--;)if((c=a.getItem(d)).hasAttribute("data-cke-magicline-hot")){s.hotNode= +c;s.lastCmdDirection=c.getAttribute("data-cke-magicline-dir")==="true"?true:false;break}});this.backdoor={accessFocusSpace:f,boxTrigger:d,isLine:c,getAscendantTrigger:a,getNonEmptyNeighbour:h,getSize:q,that:s,triggerEdge:p,triggerEditable:m,triggerExpand:W}}},this)}});var u=CKEDITOR.tools.extend,w=CKEDITOR.dom.element,s=w.createFromHtml,v=CKEDITOR.env,A=CKEDITOR.dtd,B=128,y=64,C=32,D=16,F=8,E=4,K=2,I=1,G=" ",H=A.$listItem,L=A.$tableContent,J=u({},A.$nonEditable,A.$empty),P=A.$block,N=100,Q="width:0px;height:0px;padding:0px;margin:0px;display:block;z-index:9999;color:#fff;position:absolute;font-size: 0px;line-height:0px;", +R=Q+"border-color:transparent;display:block;border-style:solid;",O="<span>"+G+"</span>";d.prototype={set:function(a,b,c){this.properties=a+b+(c||I);return this},is:function(a){return(this.properties&a)==a}};var U=function(){return function(a,b,d){if(!a.mouse)return null;var e=a.doc,f=a.line.wrap,d=d||a.mouse,g=new CKEDITOR.dom.element(e.$.elementFromPoint(d.x,d.y));if(b&&c(a,g)){f.hide();g=new CKEDITOR.dom.element(e.$.elementFromPoint(d.x,d.y));f.show()}return!g||!(g.type==CKEDITOR.NODE_ELEMENT&& g.$)||v.ie&&v.version<9&&!a.boundary.equals(g)&&!a.boundary.contains(g)?null:g}}(),T=CKEDITOR.dom.walker.whitespaces(),V=CKEDITOR.dom.walker.nodeType(CKEDITOR.NODE_COMMENT),W=function(){function a(c){var f=c.element,g,h,i;if(!j(f)||f.contains(c.editable))return null;i=x(c,function(a,b){return!b.equals(a)},function(a,b){return U(a,true,b)},f);g=i.upper;h=i.lower;if(b(c,g,h))return i.set(C,F);if(g&&f.contains(g))for(;!g.getParent().equals(f);)g=g.getParent();else g=f.getFirst(function(a){return d(c, -a)});if(h&&f.contains(h))for(;!h.getParent().equals(f);)h=h.getParent();else h=f.getLast(function(a){return d(c,a)});if(!g||!h)return null;q(c,g);q(c,h);if(!(c.mouse.y>g.size.top&&c.mouse.y<h.size.bottom))return null;for(var f=Number.MAX_VALUE,k,l,p,o;h&&!h.equals(g);){if(!(l=g.getNext(c.isRelevant)))break;k=Math.abs(e(c,g,l)-c.mouse.y);if(k<f){f=k;p=g;o=l}g=l;q(c,g)}if(!p||!o||!(c.mouse.y>p.size.top&&c.mouse.y<o.size.bottom))return null;i.upper=p;i.lower=o;return i.set(C,F)}function d(a,b){return!(b&& -b.type==CKEDITOR.NODE_TEXT||V(b)||l(b)||c(a,b)||b.type==CKEDITOR.NODE_ELEMENT&&b.$&&b.is("br"))}return function(c){var d=a(c),e;if(e=d){e=d.upper;var f=d.lower;e=!e||!f||l(f)||l(e)||f.equals(e)||e.equals(f)||f.contains(e)||e.contains(f)?false:n(c,e)&&n(c,f)&&b(c,e,f)?true:false}return e?d:null}}(),S=["top","left","right","bottom"]}(),CKEDITOR.config.magicline_keystrokePrevious=CKEDITOR.CTRL+CKEDITOR.SHIFT+219,CKEDITOR.config.magicline_keystrokeNext=CKEDITOR.CTRL+CKEDITOR.SHIFT+221,function(){function b(a){if(!a|| +a)});if(h&&f.contains(h))for(;!h.getParent().equals(f);)h=h.getParent();else h=f.getLast(function(a){return d(c,a)});if(!g||!h)return null;r(c,g);r(c,h);if(!(c.mouse.y>g.size.top&&c.mouse.y<h.size.bottom))return null;for(var f=Number.MAX_VALUE,m,k,p,o;h&&!h.equals(g);){if(!(k=g.getNext(c.isRelevant)))break;m=Math.abs(e(c,g,k)-c.mouse.y);if(m<f){f=m;p=g;o=k}g=k;r(c,g)}if(!p||!o||!(c.mouse.y>p.size.top&&c.mouse.y<o.size.bottom))return null;i.upper=p;i.lower=o;return i.set(C,F)}function d(a,b){return!(b&& +b.type==CKEDITOR.NODE_TEXT||V(b)||k(b)||c(a,b)||b.type==CKEDITOR.NODE_ELEMENT&&b.$&&b.is("br"))}return function(c){var d=a(c),e;if(e=d){e=d.upper;var f=d.lower;e=!e||!f||k(f)||k(e)||f.equals(e)||e.equals(f)||f.contains(e)||e.contains(f)?false:n(c,e)&&n(c,f)&&b(c,e,f)?true:false}return e?d:null}}(),S=["top","left","right","bottom"]}(),CKEDITOR.config.magicline_keystrokePrevious=CKEDITOR.CTRL+CKEDITOR.SHIFT+219,CKEDITOR.config.magicline_keystrokeNext=CKEDITOR.CTRL+CKEDITOR.SHIFT+221,function(){function b(a){if(!a|| a.type!=CKEDITOR.NODE_ELEMENT||a.getName()!="form")return[];for(var b=[],d=["style","className"],c=0;c<d.length;c++){var e=a.$.elements.namedItem(d[c]);if(e){e=new CKEDITOR.dom.element(e);b.push([e,e.nextSibling]);e.remove()}}return b}function d(a,b){if(a&&!(a.type!=CKEDITOR.NODE_ELEMENT||a.getName()!="form")&&b.length>0)for(var d=b.length-1;d>=0;d--){var c=b[d][0],e=b[d][1];e?c.insertBefore(e):c.appendTo(a)}}function a(a,e){var h=b(a),c={},j=a.$;if(!e){c["class"]=j.className||"";j.className=""}c.inline= j.style.cssText||"";if(!e)j.style.cssText="position: static; overflow: visible";d(h);return c}function e(a,e){var h=b(a),c=a.$;if("class"in e)c.className=e["class"];if("inline"in e)c.style.cssText=e.inline;d(h)}function h(a){if(!a.editable().isInline()){var b=CKEDITOR.instances,d;for(d in b){var c=b[d];if(c.mode=="wysiwyg"&&!c.readOnly){c=c.document.getBody();c.setAttribute("contentEditable",false);c.setAttribute("contentEditable",true)}}if(a.editable().hasFocus){a.toolbox.focus();a.focus()}}}CKEDITOR.plugins.add("maximize", -{init:function(b){function d(){var a=j.getViewPaneSize();b.resize(a.width,a.height,null,true)}if(b.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var i=b.lang,c=CKEDITOR.document,j=c.getWindow(),l,m,n,o=CKEDITOR.TRISTATE_OFF;b.addCommand("maximize",{modes:{wysiwyg:!CKEDITOR.env.iOS,source:!CKEDITOR.env.iOS},readOnly:1,editorFocus:false,exec:function(){var k=b.container.getChild(1),p=b.ui.space("contents");if(b.mode=="wysiwyg"){var r=b.getSelection();l=r&&r.getRanges();m=j.getScrollPosition()}else{var q= -b.editable().$;l=!CKEDITOR.env.ie&&[q.selectionStart,q.selectionEnd];m=[q.scrollLeft,q.scrollTop]}if(this.state==CKEDITOR.TRISTATE_OFF){j.on("resize",d);n=j.getScrollPosition();for(r=b.container;r=r.getParent();){r.setCustomData("maximize_saved_styles",a(r));r.setStyle("z-index",b.config.baseFloatZIndex-5)}p.setCustomData("maximize_saved_styles",a(p,true));k.setCustomData("maximize_saved_styles",a(k,true));p={overflow:CKEDITOR.env.webkit?"":"hidden",width:0,height:0};c.getDocumentElement().setStyles(p); -!CKEDITOR.env.gecko&&c.getDocumentElement().setStyle("position","fixed");(!CKEDITOR.env.gecko||!CKEDITOR.env.quirks)&&c.getBody().setStyles(p);CKEDITOR.env.ie?setTimeout(function(){j.$.scrollTo(0,0)},0):j.$.scrollTo(0,0);k.setStyle("position",CKEDITOR.env.gecko&&CKEDITOR.env.quirks?"fixed":"absolute");k.$.offsetLeft;k.setStyles({"z-index":b.config.baseFloatZIndex-5,left:"0px",top:"0px"});k.addClass("cke_maximized");d();p=k.getDocumentPosition();k.setStyles({left:-1*p.x+"px",top:-1*p.y+"px"});CKEDITOR.env.gecko&& -h(b)}else if(this.state==CKEDITOR.TRISTATE_ON){j.removeListener("resize",d);p=[p,k];for(r=0;r<p.length;r++){e(p[r],p[r].getCustomData("maximize_saved_styles"));p[r].removeCustomData("maximize_saved_styles")}for(r=b.container;r=r.getParent();){e(r,r.getCustomData("maximize_saved_styles"));r.removeCustomData("maximize_saved_styles")}CKEDITOR.env.ie?setTimeout(function(){j.$.scrollTo(n.x,n.y)},0):j.$.scrollTo(n.x,n.y);k.removeClass("cke_maximized");if(CKEDITOR.env.webkit){k.setStyle("display","inline"); -setTimeout(function(){k.setStyle("display","block")},0)}b.fire("resize")}this.toggleState();if(r=this.uiItems[0]){p=this.state==CKEDITOR.TRISTATE_OFF?i.maximize.maximize:i.maximize.minimize;r=CKEDITOR.document.getById(r._.id);r.getChild(1).setHtml(p);r.setAttribute("title",p);r.setAttribute("href",'javascript:void("'+p+'");')}if(b.mode=="wysiwyg")if(l){CKEDITOR.env.gecko&&h(b);b.getSelection().selectRanges(l);(q=b.getSelection().getStartElement())&&q.scrollIntoView(true)}else j.$.scrollTo(m.x,m.y); -else{if(l){q.selectionStart=l[0];q.selectionEnd=l[1]}q.scrollLeft=m[0];q.scrollTop=m[1]}l=m=null;o=this.state;b.fire("maximize",this.state)},canUndo:false});b.ui.addButton&&b.ui.addButton("Maximize",{label:i.maximize.maximize,command:"maximize",toolbar:"tools,10"});b.on("mode",function(){var a=b.getCommand("maximize");a.setState(a.state==CKEDITOR.TRISTATE_DISABLED?CKEDITOR.TRISTATE_DISABLED:o)},null,null,100)}}})}(),function(){var b={canUndo:false,async:true,exec:function(d){d.getClipboardData({title:d.lang.pastetext.title}, +{init:function(b){function d(){var a=j.getViewPaneSize();b.resize(a.width,a.height,null,true)}if(b.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var i=b.lang,c=CKEDITOR.document,j=c.getWindow(),k,l,n,o=CKEDITOR.TRISTATE_OFF;b.addCommand("maximize",{modes:{wysiwyg:!CKEDITOR.env.iOS,source:!CKEDITOR.env.iOS},readOnly:1,editorFocus:false,exec:function(){var m=b.container.getChild(1),p=b.ui.space("contents");if(b.mode=="wysiwyg"){var q=b.getSelection();k=q&&q.getRanges();l=j.getScrollPosition()}else{var r= +b.editable().$;k=!CKEDITOR.env.ie&&[r.selectionStart,r.selectionEnd];l=[r.scrollLeft,r.scrollTop]}if(this.state==CKEDITOR.TRISTATE_OFF){j.on("resize",d);n=j.getScrollPosition();for(q=b.container;q=q.getParent();){q.setCustomData("maximize_saved_styles",a(q));q.setStyle("z-index",b.config.baseFloatZIndex-5)}p.setCustomData("maximize_saved_styles",a(p,true));m.setCustomData("maximize_saved_styles",a(m,true));p={overflow:CKEDITOR.env.webkit?"":"hidden",width:0,height:0};c.getDocumentElement().setStyles(p); +!CKEDITOR.env.gecko&&c.getDocumentElement().setStyle("position","fixed");(!CKEDITOR.env.gecko||!CKEDITOR.env.quirks)&&c.getBody().setStyles(p);CKEDITOR.env.ie?setTimeout(function(){j.$.scrollTo(0,0)},0):j.$.scrollTo(0,0);m.setStyle("position",CKEDITOR.env.gecko&&CKEDITOR.env.quirks?"fixed":"absolute");m.$.offsetLeft;m.setStyles({"z-index":b.config.baseFloatZIndex-5,left:"0px",top:"0px"});m.addClass("cke_maximized");d();p=m.getDocumentPosition();m.setStyles({left:-1*p.x+"px",top:-1*p.y+"px"});CKEDITOR.env.gecko&& +h(b)}else if(this.state==CKEDITOR.TRISTATE_ON){j.removeListener("resize",d);p=[p,m];for(q=0;q<p.length;q++){e(p[q],p[q].getCustomData("maximize_saved_styles"));p[q].removeCustomData("maximize_saved_styles")}for(q=b.container;q=q.getParent();){e(q,q.getCustomData("maximize_saved_styles"));q.removeCustomData("maximize_saved_styles")}CKEDITOR.env.ie?setTimeout(function(){j.$.scrollTo(n.x,n.y)},0):j.$.scrollTo(n.x,n.y);m.removeClass("cke_maximized");if(CKEDITOR.env.webkit){m.setStyle("display","inline"); +setTimeout(function(){m.setStyle("display","block")},0)}b.fire("resize")}this.toggleState();if(q=this.uiItems[0]){p=this.state==CKEDITOR.TRISTATE_OFF?i.maximize.maximize:i.maximize.minimize;q=CKEDITOR.document.getById(q._.id);q.getChild(1).setHtml(p);q.setAttribute("title",p);q.setAttribute("href",'javascript:void("'+p+'");')}if(b.mode=="wysiwyg")if(k){CKEDITOR.env.gecko&&h(b);b.getSelection().selectRanges(k);(r=b.getSelection().getStartElement())&&r.scrollIntoView(true)}else j.$.scrollTo(l.x,l.y); +else{if(k){r.selectionStart=k[0];r.selectionEnd=k[1]}r.scrollLeft=l[0];r.scrollTop=l[1]}k=l=null;o=this.state;b.fire("maximize",this.state)},canUndo:false});b.ui.addButton&&b.ui.addButton("Maximize",{label:i.maximize.maximize,command:"maximize",toolbar:"tools,10"});b.on("mode",function(){var a=b.getCommand("maximize");a.setState(a.state==CKEDITOR.TRISTATE_DISABLED?CKEDITOR.TRISTATE_DISABLED:o)},null,null,100)}}})}(),function(){var b={canUndo:false,async:true,exec:function(d){d.getClipboardData({title:d.lang.pastetext.title}, function(a){a&&d.fire("paste",{type:"text",dataValue:a.dataValue});d.fire("afterCommandExec",{name:"pastetext",command:b,returnValue:!!a})})}};CKEDITOR.plugins.add("pastetext",{requires:"clipboard",init:function(d){d.addCommand("pastetext",b);d.ui.addButton&&d.ui.addButton("PasteText",{label:d.lang.pastetext.button,command:"pastetext",toolbar:"clipboard,40"});if(d.config.forcePasteAsPlainText)d.on("beforePaste",function(a){if(a.data.type!="html")a.data.type="text"});d.on("pasteState",function(a){d.getCommand("pastetext").setState(a.data)})}})}(), function(){function b(a,b,d){var g=CKEDITOR.cleanWord;if(g)d();else{a=CKEDITOR.getUrl(a.config.pasteFromWordCleanupFile||b+"filter/default.js");CKEDITOR.scriptLoader.load(a,d,null,true)}return!g}function d(a){a.data.type="html"}CKEDITOR.plugins.add("pastefromword",{requires:"clipboard",init:function(a){var e=0,h=this.path;a.addCommand("pastefromword",{canUndo:false,async:true,exec:function(a){var b=this;e=1;a.once("beforePaste",d);a.getClipboardData({title:a.lang.pastefromword.title},function(d){d&& a.fire("paste",{type:"html",dataValue:d.dataValue});a.fire("afterCommandExec",{name:"pastefromword",command:b,returnValue:!!d})})}});a.ui.addButton&&a.ui.addButton("PasteFromWord",{label:a.lang.pastefromword.toolbar,command:"pastefromword",toolbar:"clipboard,50"});a.on("pasteState",function(b){a.getCommand("pastefromword").setState(b.data)});a.on("paste",function(d){var f=d.data,i=f.dataValue;if(i&&(e||/(class=\"?Mso|style=\"[^\"]*\bmso\-|w:WordDocument)/.test(i))){var c=b(a,h,function(){if(c)a.fire("paste", f);else if(!a.config.pasteFromWordPromptCleanup||e||confirm(a.lang.pastefromword.confirmCleanup))f.dataValue=CKEDITOR.cleanWord(i,a)});c&&d.cancel()}},null,null,3)}})}(),CKEDITOR.plugins.add("removeformat",{init:function(b){b.addCommand("removeFormat",CKEDITOR.plugins.removeformat.commands.removeformat);b.ui.addButton&&b.ui.addButton("RemoveFormat",{label:b.lang.removeformat.toolbar,command:"removeFormat",toolbar:"cleanup,10"})}}),CKEDITOR.plugins.removeformat={commands:{removeformat:{exec:function(b){for(var d= -b._.removeFormatRegex||(b._.removeFormatRegex=RegExp("^(?:"+b.config.removeFormatTags.replace(/,/g,"|")+")$","i")),a=b._.removeAttributes||(b._.removeAttributes=b.config.removeFormatAttributes.split(",")),e=CKEDITOR.plugins.removeformat.filter,h=b.getSelection().getRanges(1),g=h.createIterator(),f;f=g.getNextRange();){f.collapsed||f.enlarge(CKEDITOR.ENLARGE_ELEMENT);var i=f.createBookmark(),c=i.startNode,j=i.endNode,l=function(a){for(var c=b.elementPath(a),f=c.elements,g=1,h;h=f[g];g++){if(h.equals(c.block)|| -h.equals(c.blockLimit))break;d.test(h.getName())&&e(b,h)&&a.breakParent(h)}};l(c);if(j){l(j);for(c=c.getNextSourceNode(true,CKEDITOR.NODE_ELEMENT);c;){if(c.equals(j))break;l=c.getNextSourceNode(false,CKEDITOR.NODE_ELEMENT);if(!(c.getName()=="img"&&c.data("cke-realelement"))&&e(b,c))if(d.test(c.getName()))c.remove(1);else{c.removeAttributes(a);b.fire("removeFormatCleanup",c)}c=l}}f.moveToBookmark(i)}b.forceNextSelectionCheck();b.getSelection().selectRanges(h)}}},filter:function(b,d){for(var a=b._.removeFormatFilters|| +b._.removeFormatRegex||(b._.removeFormatRegex=RegExp("^(?:"+b.config.removeFormatTags.replace(/,/g,"|")+")$","i")),a=b._.removeAttributes||(b._.removeAttributes=b.config.removeFormatAttributes.split(",")),e=CKEDITOR.plugins.removeformat.filter,h=b.getSelection().getRanges(1),g=h.createIterator(),f;f=g.getNextRange();){f.collapsed||f.enlarge(CKEDITOR.ENLARGE_ELEMENT);var i=f.createBookmark(),c=i.startNode,j=i.endNode,k=function(a){for(var c=b.elementPath(a),f=c.elements,g=1,h;h=f[g];g++){if(h.equals(c.block)|| +h.equals(c.blockLimit))break;d.test(h.getName())&&e(b,h)&&a.breakParent(h)}};k(c);if(j){k(j);for(c=c.getNextSourceNode(true,CKEDITOR.NODE_ELEMENT);c;){if(c.equals(j))break;k=c.getNextSourceNode(false,CKEDITOR.NODE_ELEMENT);if(!(c.getName()=="img"&&c.data("cke-realelement"))&&e(b,c))if(d.test(c.getName()))c.remove(1);else{c.removeAttributes(a);b.fire("removeFormatCleanup",c)}c=k}}f.moveToBookmark(i)}b.forceNextSelectionCheck();b.getSelection().selectRanges(h)}}},filter:function(b,d){for(var a=b._.removeFormatFilters|| [],e=0;e<a.length;e++)if(a[e](d)===false)return false;return true}},CKEDITOR.editor.prototype.addRemoveFormatFilter=function(b){if(!this._.removeFormatFilters)this._.removeFormatFilters=[];this._.removeFormatFilters.push(b)},CKEDITOR.config.removeFormatTags="b,big,code,del,dfn,em,font,i,ins,kbd,q,samp,small,span,strike,strong,sub,sup,tt,u,var",CKEDITOR.config.removeFormatAttributes="class,style,lang,width,height,align,hspace,valign",function(){CKEDITOR.plugins.add("sourcearea",{init:function(d){function a(){this.hide(); this.setStyle("height",this.getParent().$.clientHeight+"px");this.setStyle("width",this.getParent().$.clientWidth+"px");this.show()}if(d.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE){var e=CKEDITOR.plugins.sourcearea;d.addMode("source",function(e){var g=d.ui.space("contents").getDocument().createElement("textarea");g.setStyles(CKEDITOR.tools.extend({width:CKEDITOR.env.ie7Compat?"99%":"100%",height:"100%",resize:"none",outline:"none","text-align":"left"},CKEDITOR.tools.cssVendorPrefix("tab-size",d.config.sourceAreaTabSize|| 4)));g.setAttribute("dir","ltr");g.addClass("cke_source cke_reset cke_enable_context_menu");d.ui.space("contents").append(g);g=d.editable(new b(d,g));g.setData(d.getData(1));if(CKEDITOR.env.ie){g.attachListener(d,"resize",a,g);g.attachListener(CKEDITOR.document.getWindow(),"resize",a,g);CKEDITOR.tools.setTimeout(a,0,g)}d.fire("ariaWidget",this);e()});d.addCommand("source",e.commands.source);d.ui.addButton&&d.ui.addButton("Source",{label:d.lang.sourcearea.toolbar,command:"source",toolbar:"mode,10"}); @@ -765,12 +766,12 @@ d.on("mode",function(){d.getCommand("source").setState(d.mode=="source"?CKEDITOR this.clearCustomData();this.remove()}}})}(),CKEDITOR.plugins.sourcearea={commands:{source:{modes:{wysiwyg:1,source:1},editorFocus:!1,readOnly:1,exec:function(b){b.mode=="wysiwyg"&&b.fire("saveSnapshot");b.getCommand("source").setState(CKEDITOR.TRISTATE_DISABLED);b.setMode(b.mode=="source"?"wysiwyg":"source")},canUndo:!1}}},CKEDITOR.plugins.add("specialchar",{availableLangs:{ca:1,cs:1,cy:1,de:1,en:1,eo:1,et:1,fa:1,fi:1,fr:1,he:1,hr:1,it:1,ku:1,lv:1,nb:1,nl:1,no:1,pl:1,"pt-br":1,sk:1,sv:1,th:1,tr:1, ug:1,"zh-cn":1},requires:"dialog",init:function(b){var d=this;CKEDITOR.dialog.add("specialchar",this.path+"dialogs/specialchar.js");b.addCommand("specialchar",{exec:function(){var a=b.langCode,a=d.availableLangs[a]?a:d.availableLangs[a.replace(/-.*/,"")]?a.replace(/-.*/,""):"en";CKEDITOR.scriptLoader.load(CKEDITOR.getUrl(d.path+"dialogs/lang/"+a+".js"),function(){CKEDITOR.tools.extend(b.lang.specialchar,d.langEntries[a]);b.openDialog("specialchar")})},modes:{wysiwyg:1},canUndo:false});b.ui.addButton&& b.ui.addButton("SpecialChar",{label:b.lang.specialchar.toolbar,command:"specialchar",toolbar:"insert,50"})}}),CKEDITOR.config.specialChars="! " # $ % & ' ( ) * + - . / 0 1 2 3 4 5 6 7 8 9 : ; < = > ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ ] ^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ € ‘ ’ “ ” – — ¡ ¢ £ ¤ ¥ ¦ § ¨ © ª « ¬ ® ¯ ° ² ³ ´ µ ¶ · ¸ ¹ º » ¼ ½ ¾ ¿ À Á Â Ã Ä Å Æ Ç È É Ê Ë Ì Í Î Ï Ð Ñ Ò Ó Ô Õ Ö × Ø Ù Ú Û Ü Ý Þ ß à á â ã ä å æ ç è é ê ë ì í î ï ð ñ ò ó ô õ ö ÷ ø ù ú û ü ý þ ÿ Œ œ Ŵ Ŷ ŵ ŷ ‚ ‛ „ … ™ ► • → ⇒ ⇔ ♦ ≈".split(" "), -function(){CKEDITOR.plugins.add("stylescombo",{requires:"richcombo",init:function(b){var d=b.config,a=b.lang.stylescombo,e={},h=[],g=[];b.on("stylesSet",function(a){if(a=a.data.styles){for(var i,c,j=0,l=a.length;j<l;j++){i=a[j];if(!(b.blockless&&i.element in CKEDITOR.dtd.$block)){c=i.name;i=new CKEDITOR.style(i);if(!b.filter.customConfig||b.filter.check(i)){i._name=c;i._.enterMode=d.enterMode;i._.weight=j+(i.type==CKEDITOR.STYLE_OBJECT?1:i.type==CKEDITOR.STYLE_BLOCK?2:3)*1E3;e[c]=i;h.push(i);g.push(i)}}}h.sort(function(a, -b){return a._.weight-b._.weight})}});b.ui.addRichCombo("Styles",{label:a.label,title:a.panelTitle,toolbar:"styles,10",allowedContent:g,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(d.contentsCss),multiSelect:true,attributes:{"aria-label":a.panelTitle}},init:function(){var b,d,c,e,g,m;g=0;for(m=h.length;g<m;g++){b=h[g];d=b._name;e=b.type;if(e!=c){this.startGroup(a["panelTitle"+e]);c=e}this.add(d,b.type==CKEDITOR.STYLE_OBJECT?d:b.buildPreview(),d)}this.commit()},onClick:function(a){b.focus(); +function(){CKEDITOR.plugins.add("stylescombo",{requires:"richcombo",init:function(b){var d=b.config,a=b.lang.stylescombo,e={},h=[],g=[];b.on("stylesSet",function(a){if(a=a.data.styles){for(var i,c,j=0,k=a.length;j<k;j++){i=a[j];if(!(b.blockless&&i.element in CKEDITOR.dtd.$block)){c=i.name;i=new CKEDITOR.style(i);if(!b.filter.customConfig||b.filter.check(i)){i._name=c;i._.enterMode=d.enterMode;i._.weight=j+(i.type==CKEDITOR.STYLE_OBJECT?1:i.type==CKEDITOR.STYLE_BLOCK?2:3)*1E3;e[c]=i;h.push(i);g.push(i)}}}h.sort(function(a, +b){return a._.weight-b._.weight})}});b.ui.addRichCombo("Styles",{label:a.label,title:a.panelTitle,toolbar:"styles,10",allowedContent:g,panel:{css:[CKEDITOR.skin.getPath("editor")].concat(d.contentsCss),multiSelect:true,attributes:{"aria-label":a.panelTitle}},init:function(){var b,d,c,e,g,l;g=0;for(l=h.length;g<l;g++){b=h[g];d=b._name;e=b.type;if(e!=c){this.startGroup(a["panelTitle"+e]);c=e}this.add(d,b.type==CKEDITOR.STYLE_OBJECT?d:b.buildPreview(),d)}this.commit()},onClick:function(a){b.focus(); b.fire("saveSnapshot");var a=e[a],d=b.elementPath();b[a.checkActive(d)?"removeStyle":"applyStyle"](a);b.fire("saveSnapshot")},onRender:function(){b.on("selectionChange",function(a){for(var b=this.getValue(),a=a.data.path.elements,c=0,d=a.length,g;c<d;c++){g=a[c];for(var h in e)if(e[h].checkElementRemovable(g,true)){h!=b&&this.setValue(h);return}}this.setValue("")},this)},onOpen:function(){var d=b.getSelection().getSelectedElement(),d=b.elementPath(d),g=[0,0,0,0];this.showAll();this.unmarkAll();for(var c in e){var h= -e[c],l=h.type;if(l==CKEDITOR.STYLE_BLOCK&&!d.isContextFor(h.element))this.hideItem(c);else{if(h.checkActive(d))this.mark(c);else if(l==CKEDITOR.STYLE_OBJECT&&!h.checkApplicable(d)){this.hideItem(c);g[l]--}g[l]++}}g[CKEDITOR.STYLE_BLOCK]||this.hideGroup(a["panelTitle"+CKEDITOR.STYLE_BLOCK]);g[CKEDITOR.STYLE_INLINE]||this.hideGroup(a["panelTitle"+CKEDITOR.STYLE_INLINE]);g[CKEDITOR.STYLE_OBJECT]||this.hideGroup(a["panelTitle"+CKEDITOR.STYLE_OBJECT])},reset:function(){e={};h=[]}})}})}(),function(){function b(a){return{editorFocus:false, +e[c],k=h.type;if(k==CKEDITOR.STYLE_BLOCK&&!d.isContextFor(h.element))this.hideItem(c);else{if(h.checkActive(d))this.mark(c);else if(k==CKEDITOR.STYLE_OBJECT&&!h.checkApplicable(d)){this.hideItem(c);g[k]--}g[k]++}}g[CKEDITOR.STYLE_BLOCK]||this.hideGroup(a["panelTitle"+CKEDITOR.STYLE_BLOCK]);g[CKEDITOR.STYLE_INLINE]||this.hideGroup(a["panelTitle"+CKEDITOR.STYLE_INLINE]);g[CKEDITOR.STYLE_OBJECT]||this.hideGroup(a["panelTitle"+CKEDITOR.STYLE_OBJECT])},reset:function(){e={};h=[]}})}})}(),function(){function b(a){return{editorFocus:false, canUndo:false,modes:{wysiwyg:1},exec:function(b){if(b.editable().hasFocus){var d=b.getSelection(),e;if(e=(new CKEDITOR.dom.elementPath(d.getCommonAncestor(),d.root)).contains({td:1,th:1},1)){var d=b.createRange(),c=CKEDITOR.tools.tryThese(function(){var b=e.getParent().$.cells[e.$.cellIndex+(a?-1:1)];b.parentNode.parentNode;return b},function(){var b=e.getParent(),b=b.getAscendant("table").$.rows[b.$.rowIndex+(a?-1:1)];return b.cells[a?b.cells.length-1:0]});if(!c&&!a){for(var j=e.getAscendant("table").$, -c=e.getParent().$.cells,j=new CKEDITOR.dom.element(j.insertRow(-1),b.document),l=0,m=c.length;l<m;l++){var n=j.append((new CKEDITOR.dom.element(c[l],b.document)).clone(false,false));!CKEDITOR.env.ie&&n.appendBogus()}d.moveToElementEditStart(j)}else if(c){c=new CKEDITOR.dom.element(c);d.moveToElementEditStart(c);(!d.checkStartOfBlock()||!d.checkEndOfBlock())&&d.selectNodeContents(c)}else return true;d.select(true);return true}}return false}}}var d={editorFocus:false,modes:{wysiwyg:1,source:1}},a={exec:function(a){a.container.focusNext(true, +c=e.getParent().$.cells,j=new CKEDITOR.dom.element(j.insertRow(-1),b.document),k=0,l=c.length;k<l;k++){var n=j.append((new CKEDITOR.dom.element(c[k],b.document)).clone(false,false));!CKEDITOR.env.ie&&n.appendBogus()}d.moveToElementEditStart(j)}else if(c){c=new CKEDITOR.dom.element(c);d.moveToElementEditStart(c);(!d.checkStartOfBlock()||!d.checkEndOfBlock())&&d.selectNodeContents(c)}else return true;d.select(true);return true}}return false}}}var d={editorFocus:false,modes:{wysiwyg:1,source:1}},a={exec:function(a){a.container.focusNext(true, a.tabIndex)}},e={exec:function(a){a.container.focusPrevious(true,a.tabIndex)}};CKEDITOR.plugins.add("tab",{init:function(h){for(var g=h.config.enableTabKeyTools!==false,f=h.config.tabSpaces||0,i="";f--;)i=i+" ";if(i)h.on("key",function(a){if(a.data.keyCode==9){h.insertHtml(i);a.cancel()}});if(g)h.on("key",function(a){(a.data.keyCode==9&&h.execCommand("selectNextCell")||a.data.keyCode==CKEDITOR.SHIFT+9&&h.execCommand("selectPreviousCell"))&&a.cancel()});h.addCommand("blur",CKEDITOR.tools.extend(a, d));h.addCommand("blurBack",CKEDITOR.tools.extend(e,d));h.addCommand("selectNextCell",b());h.addCommand("selectPreviousCell",b(true))}})}(),CKEDITOR.dom.element.prototype.focusNext=function(b,d){var a=d===void 0?this.getTabIndex():d,e,h,g,f,i,c;if(a<=0)for(i=this.getNextSourceNode(b,CKEDITOR.NODE_ELEMENT);i;){if(i.isVisible()&&i.getTabIndex()===0){g=i;break}i=i.getNextSourceNode(false,CKEDITOR.NODE_ELEMENT)}else for(i=this.getDocument().getBody().getFirst();i=i.getNextSourceNode(false,CKEDITOR.NODE_ELEMENT);){if(!e)if(!h&& i.equals(this)){h=true;if(b){if(!(i=i.getNextSourceNode(true,CKEDITOR.NODE_ELEMENT)))break;e=1}}else h&&!this.contains(i)&&(e=1);if(i.isVisible()&&!((c=i.getTabIndex())<0)){if(e&&c==a){g=i;break}if(c>a&&(!g||!f||c<f)){g=i;f=c}else if(!g&&c===0){g=i;f=c}}}g&&g.focus()},CKEDITOR.dom.element.prototype.focusPrevious=function(b,d){for(var a=d===void 0?this.getTabIndex():d,e,h,g,f=0,i,c=this.getDocument().getBody().getLast();c=c.getPreviousSourceNode(false,CKEDITOR.NODE_ELEMENT);){if(!e)if(!h&&c.equals(this)){h= @@ -780,63 +781,63 @@ d()));b.addCommand("tableDelete",d({exec:function(a){var b=a.elementPath().conta b.addMenuItems({table:{label:a.menu,command:"tableProperties",group:"table",order:5},tabledelete:{label:a.deleteTable,command:"tableDelete",group:"table",order:1}});b.on("doubleclick",function(a){if(a.data.element.is("table"))a.data.dialog="tableProperties"});b.contextMenu&&b.contextMenu.addListener(function(){return{tabledelete:CKEDITOR.TRISTATE_OFF,table:CKEDITOR.TRISTATE_OFF}})}}}),function(){function b(a){function b(a){if(!(c.length>0)&&a.type==CKEDITOR.NODE_ELEMENT&&n.test(a.getName())&&!a.getCustomData("selected_cell")){CKEDITOR.dom.element.setMarker(d, a,"selected_cell",true);c.push(a)}}for(var a=a.getRanges(),c=[],d={},e=0;e<a.length;e++){var f=a[e];if(f.collapsed){f=f.getCommonAncestor();(f=f.getAscendant("td",true)||f.getAscendant("th",true))&&c.push(f)}else{var f=new CKEDITOR.dom.walker(f),g;for(f.guard=b;g=f.next();)if(g.type!=CKEDITOR.NODE_ELEMENT||!g.is(CKEDITOR.dtd.table))if((g=g.getAscendant("td",true)||g.getAscendant("th",true))&&!g.getCustomData("selected_cell")){CKEDITOR.dom.element.setMarker(d,g,"selected_cell",true);c.push(g)}}}CKEDITOR.dom.element.clearAllMarkers(d); return c}function d(a,c){for(var d=b(a),e=d[0],f=e.getAscendant("table"),e=e.getDocument(),g=d[0].getParent(),h=g.$.rowIndex,d=d[d.length-1],i=d.getParent().$.rowIndex+d.$.rowSpan-1,d=new CKEDITOR.dom.element(f.$.rows[i]),h=c?h:i,g=c?g:d,d=CKEDITOR.tools.buildTableMap(f),f=d[h],h=c?d[h-1]:d[h+1],d=d[0].length,e=e.createElement("tr"),i=0;f[i]&&i<d;i++){var j;if(f[i].rowSpan>1&&h&&f[i]==h[i]){j=f[i];j.rowSpan=j.rowSpan+1}else{j=(new CKEDITOR.dom.element(f[i])).clone();j.removeAttribute("rowSpan");!CKEDITOR.env.ie&& -j.appendBogus();e.append(j);j=j.$}i=i+(j.colSpan-1)}c?e.insertBefore(g):e.insertAfter(g)}function a(c){if(c instanceof CKEDITOR.dom.selection){for(var d=b(c),e=d[0].getAscendant("table"),f=CKEDITOR.tools.buildTableMap(e),c=d[0].getParent().$.rowIndex,d=d[d.length-1],g=d.getParent().$.rowIndex+d.$.rowSpan-1,d=[],h=c;h<=g;h++){for(var i=f[h],j=new CKEDITOR.dom.element(e.$.rows[h]),l=0;l<i.length;l++){var m=new CKEDITOR.dom.element(i[l]),n=m.getParent().$.rowIndex;if(m.$.rowSpan==1)m.remove();else{m.$.rowSpan= -m.$.rowSpan-1;if(n==h){n=f[h+1];n[l-1]?m.insertAfter(new CKEDITOR.dom.element(n[l-1])):(new CKEDITOR.dom.element(e.$.rows[h+1])).append(m,1)}}l=l+(m.$.colSpan-1)}d.push(j)}f=e.$.rows;e=new CKEDITOR.dom.element(f[g+1]||(c>0?f[c-1]:null)||e.$.parentNode);for(h=d.length;h>=0;h--)a(d[h]);return e}if(c instanceof CKEDITOR.dom.element){e=c.getAscendant("table");e.$.rows.length==1?e.remove():c.remove()}return null}function e(a,b){for(var c=b?Infinity:0,d=0;d<a.length;d++){var e;e=a[d];for(var f=b,g=e.getParent().$.cells, +j.appendBogus();e.append(j);j=j.$}i=i+(j.colSpan-1)}c?e.insertBefore(g):e.insertAfter(g)}function a(c){if(c instanceof CKEDITOR.dom.selection){for(var d=b(c),e=d[0].getAscendant("table"),f=CKEDITOR.tools.buildTableMap(e),c=d[0].getParent().$.rowIndex,d=d[d.length-1],g=d.getParent().$.rowIndex+d.$.rowSpan-1,d=[],h=c;h<=g;h++){for(var i=f[h],j=new CKEDITOR.dom.element(e.$.rows[h]),k=0;k<i.length;k++){var l=new CKEDITOR.dom.element(i[k]),n=l.getParent().$.rowIndex;if(l.$.rowSpan==1)l.remove();else{l.$.rowSpan= +l.$.rowSpan-1;if(n==h){n=f[h+1];n[k-1]?l.insertAfter(new CKEDITOR.dom.element(n[k-1])):(new CKEDITOR.dom.element(e.$.rows[h+1])).append(l,1)}}k=k+(l.$.colSpan-1)}d.push(j)}f=e.$.rows;e=new CKEDITOR.dom.element(f[g+1]||(c>0?f[c-1]:null)||e.$.parentNode);for(h=d.length;h>=0;h--)a(d[h]);return e}if(c instanceof CKEDITOR.dom.element){e=c.getAscendant("table");e.$.rows.length==1?e.remove():c.remove()}return null}function e(a,b){for(var c=b?Infinity:0,d=0;d<a.length;d++){var e;e=a[d];for(var f=b,g=e.getParent().$.cells, h=0,i=0;i<g.length;i++){var j=g[i],h=h+(f?1:j.colSpan);if(j==e.$)break}e=h-1;if(b?e<c:e>c)c=e}return c}function h(a,c){for(var d=b(a),f=d[0].getAscendant("table"),g=e(d,1),d=e(d),g=c?g:d,h=CKEDITOR.tools.buildTableMap(f),f=[],d=[],i=h.length,j=0;j<i;j++){f.push(h[j][g]);d.push(c?h[j][g-1]:h[j][g+1])}for(j=0;j<i;j++)if(f[j]){if(f[j].colSpan>1&&d[j]==f[j]){g=f[j];g.colSpan=g.colSpan+1}else{g=(new CKEDITOR.dom.element(f[j])).clone();g.removeAttribute("colSpan");!CKEDITOR.env.ie&&g.appendBogus();g[c? "insertBefore":"insertAfter"].call(g,new CKEDITOR.dom.element(f[j]));g=g.$}j=j+(g.rowSpan-1)}}function g(a,b){var c=a.getStartElement();if(c=c.getAscendant("td",1)||c.getAscendant("th",1)){var d=c.clone();CKEDITOR.env.ie||d.appendBogus();b?d.insertBefore(c):d.insertAfter(c)}}function f(a){if(a instanceof CKEDITOR.dom.selection){var a=b(a),c=a[0]&&a[0].getAscendant("table"),d;a:{var e=0;d=a.length-1;for(var g={},h,j;h=a[e++];)CKEDITOR.dom.element.setMarker(g,h,"delete_cell",true);for(e=0;h=a[e++];)if((j= h.getPrevious())&&!j.getCustomData("delete_cell")||(j=h.getNext())&&!j.getCustomData("delete_cell")){CKEDITOR.dom.element.clearAllMarkers(g);d=j;break a}CKEDITOR.dom.element.clearAllMarkers(g);j=a[0].getParent();if(j=j.getPrevious())d=j.getLast();else{j=a[d].getParent();d=(j=j.getNext())?j.getChild(0):null}}for(j=a.length-1;j>=0;j--)f(a[j]);d?i(d,true):c&&c.remove()}else if(a instanceof CKEDITOR.dom.element){c=a.getParent();c.getChildCount()==1?c.remove():a.remove()}}function i(a,b){var c=new CKEDITOR.dom.range(a.getDocument()); if(!c["moveToElementEdit"+(b?"End":"Start")](a)){c.selectNodeContents(a);c.collapse(b?false:true)}c.select(true)}function c(a,b,c){a=a[b];if(typeof c=="undefined")return a;for(b=0;a&&b<a.length;b++){if(c.is&&a[b]==c.$)return b;if(b==c)return new CKEDITOR.dom.element(a[b])}return c.is?-1:null}function j(a,d,e){var f=b(a),g;if((d?f.length!=1:f.length<2)||(g=a.getCommonAncestor())&&g.type==CKEDITOR.NODE_ELEMENT&&g.is("table"))return false;var h,a=f[0];g=a.getAscendant("table");var i=CKEDITOR.tools.buildTableMap(g), -j=i.length,l=i[0].length,m=a.getParent().$.rowIndex,n=c(i,m,a);if(d){var v;try{var A=parseInt(a.getAttribute("rowspan"),10)||1;h=parseInt(a.getAttribute("colspan"),10)||1;v=i[d=="up"?m-A:d=="down"?m+A:m][d=="left"?n-h:d=="right"?n+h:n]}catch(B){return false}if(!v||a.$==v)return false;f[d=="up"||d=="left"?"unshift":"push"](new CKEDITOR.dom.element(v))}for(var d=a.getDocument(),y=m,A=v=0,C=!e&&new CKEDITOR.dom.documentFragment(d),D=0,d=0;d<f.length;d++){h=f[d];var F=h.getParent(),E=h.getFirst(),K=h.$.colSpan, -I=h.$.rowSpan,F=F.$.rowIndex,G=c(i,F,h),D=D+K*I,A=Math.max(A,G-n+K);v=Math.max(v,F-m+I);if(!e){K=h;(I=K.getBogus())&&I.remove();K.trim();if(h.getChildren().count()){if(F!=y&&E&&(!E.isBlockBoundary||!E.isBlockBoundary({br:1})))(y=C.getLast(CKEDITOR.dom.walker.whitespaces(true)))&&(!y.is||!y.is("br"))&&C.append("br");h.moveChildren(C)}d?h.remove():h.setHtml("")}y=F}if(e)return v*A==D;C.moveChildren(a);CKEDITOR.env.ie||a.appendBogus();A>=l?a.removeAttribute("rowSpan"):a.$.rowSpan=v;v>=j?a.removeAttribute("colSpan"): -a.$.colSpan=A;e=new CKEDITOR.dom.nodeList(g.$.rows);f=e.count();for(d=f-1;d>=0;d--){g=e.getItem(d);if(!g.$.cells.length){g.remove();f++}}return a}function l(a,d){var e=b(a);if(e.length>1)return false;if(d)return true;var e=e[0],f=e.getParent(),g=f.getAscendant("table"),h=CKEDITOR.tools.buildTableMap(g),i=f.$.rowIndex,j=c(h,i,e),l=e.$.rowSpan,m;if(l>1){m=Math.ceil(l/2);for(var l=Math.floor(l/2),f=i+m,g=new CKEDITOR.dom.element(g.$.rows[f]),h=c(h,f),n,f=e.clone(),i=0;i<h.length;i++){n=h[i];if(n.parentNode== -g.$&&i>j){f.insertBefore(new CKEDITOR.dom.element(n));break}else n=null}n||g.append(f,true)}else{l=m=1;g=f.clone();g.insertAfter(f);g.append(f=e.clone());n=c(h,i);for(j=0;j<n.length;j++)n[j].rowSpan++}CKEDITOR.env.ie||f.appendBogus();e.$.rowSpan=m;f.$.rowSpan=l;m==1&&e.removeAttribute("rowSpan");l==1&&f.removeAttribute("rowSpan");return f}function m(a,d){var e=b(a);if(e.length>1)return false;if(d)return true;var e=e[0],f=e.getParent(),g=f.getAscendant("table"),g=CKEDITOR.tools.buildTableMap(g),h= -c(g,f.$.rowIndex,e),i=e.$.colSpan;if(i>1){f=Math.ceil(i/2);i=Math.floor(i/2)}else{for(var i=f=1,j=[],l=0;l<g.length;l++){var m=g[l];j.push(m[h]);m[h].rowSpan>1&&(l=l+(m[h].rowSpan-1))}for(g=0;g<j.length;g++)j[g].colSpan++}g=e.clone();g.insertAfter(e);CKEDITOR.env.ie||g.appendBogus();e.$.colSpan=f;g.$.colSpan=i;f==1&&e.removeAttribute("colSpan");i==1&&g.removeAttribute("colSpan");return g}var n=/^(?:td|th)$/;CKEDITOR.plugins.tabletools={requires:"table,dialog,contextmenu",init:function(c){function e(a){return CKEDITOR.tools.extend(a|| -{},{contextSensitive:1,refresh:function(a,b){this.setState(b.contains({td:1,th:1},1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}function n(a,b){var d=c.addCommand(a,b);c.addFeature(d)}var r=c.lang.table;n("cellProperties",new CKEDITOR.dialogCommand("cellProperties",e({allowedContent:"td th{width,height,border-color,background-color,white-space,vertical-align,text-align}[colspan,rowspan]",requiredContent:"table"})));CKEDITOR.dialog.add("cellProperties",this.path+"dialogs/tableCell.js");n("rowDelete", -e({requiredContent:"table",exec:function(b){b=b.getSelection();i(a(b))}}));n("rowInsertBefore",e({requiredContent:"table",exec:function(a){a=a.getSelection();d(a,true)}}));n("rowInsertAfter",e({requiredContent:"table",exec:function(a){a=a.getSelection();d(a)}}));n("columnDelete",e({requiredContent:"table",exec:function(a){for(var a=a.getSelection(),a=b(a),c=a[0],d=a[a.length-1],a=c.getAscendant("table"),e=CKEDITOR.tools.buildTableMap(a),f,g,h=[],j=0,l=e.length;j<l;j++)for(var k=0,m=e[j].length;k< -m;k++){e[j][k]==c.$&&(f=k);e[j][k]==d.$&&(g=k)}for(j=f;j<=g;j++)for(k=0;k<e.length;k++){d=e[k];c=new CKEDITOR.dom.element(a.$.rows[k]);d=new CKEDITOR.dom.element(d[j]);if(d.$){d.$.colSpan==1?d.remove():d.$.colSpan=d.$.colSpan-1;k=k+(d.$.rowSpan-1);c.$.cells.length||h.push(c)}}g=a.$.rows[0]&&a.$.rows[0].cells;f=new CKEDITOR.dom.element(g[f]||(f?g[f-1]:a.$.parentNode));h.length==l&&a.remove();f&&i(f,true)}}));n("columnInsertBefore",e({requiredContent:"table",exec:function(a){a=a.getSelection();h(a, +j=i.length,k=i[0].length,l=a.getParent().$.rowIndex,n=c(i,l,a);if(d){var v;try{var A=parseInt(a.getAttribute("rowspan"),10)||1;h=parseInt(a.getAttribute("colspan"),10)||1;v=i[d=="up"?l-A:d=="down"?l+A:l][d=="left"?n-h:d=="right"?n+h:n]}catch(B){return false}if(!v||a.$==v)return false;f[d=="up"||d=="left"?"unshift":"push"](new CKEDITOR.dom.element(v))}for(var d=a.getDocument(),y=l,A=v=0,C=!e&&new CKEDITOR.dom.documentFragment(d),D=0,d=0;d<f.length;d++){h=f[d];var F=h.getParent(),E=h.getFirst(),K=h.$.colSpan, +I=h.$.rowSpan,F=F.$.rowIndex,G=c(i,F,h),D=D+K*I,A=Math.max(A,G-n+K);v=Math.max(v,F-l+I);if(!e){K=h;(I=K.getBogus())&&I.remove();K.trim();if(h.getChildren().count()){if(F!=y&&E&&(!E.isBlockBoundary||!E.isBlockBoundary({br:1})))(y=C.getLast(CKEDITOR.dom.walker.whitespaces(true)))&&(!y.is||!y.is("br"))&&C.append("br");h.moveChildren(C)}d?h.remove():h.setHtml("")}y=F}if(e)return v*A==D;C.moveChildren(a);CKEDITOR.env.ie||a.appendBogus();A>=k?a.removeAttribute("rowSpan"):a.$.rowSpan=v;v>=j?a.removeAttribute("colSpan"): +a.$.colSpan=A;e=new CKEDITOR.dom.nodeList(g.$.rows);f=e.count();for(d=f-1;d>=0;d--){g=e.getItem(d);if(!g.$.cells.length){g.remove();f++}}return a}function k(a,d){var e=b(a);if(e.length>1)return false;if(d)return true;var e=e[0],f=e.getParent(),g=f.getAscendant("table"),h=CKEDITOR.tools.buildTableMap(g),i=f.$.rowIndex,j=c(h,i,e),k=e.$.rowSpan,l;if(k>1){l=Math.ceil(k/2);for(var k=Math.floor(k/2),f=i+l,g=new CKEDITOR.dom.element(g.$.rows[f]),h=c(h,f),n,f=e.clone(),i=0;i<h.length;i++){n=h[i];if(n.parentNode== +g.$&&i>j){f.insertBefore(new CKEDITOR.dom.element(n));break}else n=null}n||g.append(f,true)}else{k=l=1;g=f.clone();g.insertAfter(f);g.append(f=e.clone());n=c(h,i);for(j=0;j<n.length;j++)n[j].rowSpan++}CKEDITOR.env.ie||f.appendBogus();e.$.rowSpan=l;f.$.rowSpan=k;l==1&&e.removeAttribute("rowSpan");k==1&&f.removeAttribute("rowSpan");return f}function l(a,d){var e=b(a);if(e.length>1)return false;if(d)return true;var e=e[0],f=e.getParent(),g=f.getAscendant("table"),g=CKEDITOR.tools.buildTableMap(g),h= +c(g,f.$.rowIndex,e),i=e.$.colSpan;if(i>1){f=Math.ceil(i/2);i=Math.floor(i/2)}else{for(var i=f=1,j=[],k=0;k<g.length;k++){var l=g[k];j.push(l[h]);l[h].rowSpan>1&&(k=k+(l[h].rowSpan-1))}for(g=0;g<j.length;g++)j[g].colSpan++}g=e.clone();g.insertAfter(e);CKEDITOR.env.ie||g.appendBogus();e.$.colSpan=f;g.$.colSpan=i;f==1&&e.removeAttribute("colSpan");i==1&&g.removeAttribute("colSpan");return g}var n=/^(?:td|th)$/;CKEDITOR.plugins.tabletools={requires:"table,dialog,contextmenu",init:function(c){function e(a){return CKEDITOR.tools.extend(a|| +{},{contextSensitive:1,refresh:function(a,b){this.setState(b.contains({td:1,th:1},1)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)}})}function n(a,b){var d=c.addCommand(a,b);c.addFeature(d)}var q=c.lang.table;n("cellProperties",new CKEDITOR.dialogCommand("cellProperties",e({allowedContent:"td th{width,height,border-color,background-color,white-space,vertical-align,text-align}[colspan,rowspan]",requiredContent:"table"})));CKEDITOR.dialog.add("cellProperties",this.path+"dialogs/tableCell.js");n("rowDelete", +e({requiredContent:"table",exec:function(b){b=b.getSelection();i(a(b))}}));n("rowInsertBefore",e({requiredContent:"table",exec:function(a){a=a.getSelection();d(a,true)}}));n("rowInsertAfter",e({requiredContent:"table",exec:function(a){a=a.getSelection();d(a)}}));n("columnDelete",e({requiredContent:"table",exec:function(a){for(var a=a.getSelection(),a=b(a),c=a[0],d=a[a.length-1],a=c.getAscendant("table"),e=CKEDITOR.tools.buildTableMap(a),f,g,h=[],j=0,k=e.length;j<k;j++)for(var l=0,m=e[j].length;l< +m;l++){e[j][l]==c.$&&(f=l);e[j][l]==d.$&&(g=l)}for(j=f;j<=g;j++)for(l=0;l<e.length;l++){d=e[l];c=new CKEDITOR.dom.element(a.$.rows[l]);d=new CKEDITOR.dom.element(d[j]);if(d.$){d.$.colSpan==1?d.remove():d.$.colSpan=d.$.colSpan-1;l=l+(d.$.rowSpan-1);c.$.cells.length||h.push(c)}}g=a.$.rows[0]&&a.$.rows[0].cells;f=new CKEDITOR.dom.element(g[f]||(f?g[f-1]:a.$.parentNode));h.length==k&&a.remove();f&&i(f,true)}}));n("columnInsertBefore",e({requiredContent:"table",exec:function(a){a=a.getSelection();h(a, true)}}));n("columnInsertAfter",e({requiredContent:"table",exec:function(a){a=a.getSelection();h(a)}}));n("cellDelete",e({requiredContent:"table",exec:function(a){a=a.getSelection();f(a)}}));n("cellMerge",e({allowedContent:"td[colspan,rowspan]",requiredContent:"td[colspan,rowspan]",exec:function(a){i(j(a.getSelection()),true)}}));n("cellMergeRight",e({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(a){i(j(a.getSelection(),"right"),true)}}));n("cellMergeDown",e({allowedContent:"td[rowspan]", -requiredContent:"td[rowspan]",exec:function(a){i(j(a.getSelection(),"down"),true)}}));n("cellVerticalSplit",e({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",exec:function(a){i(l(a.getSelection()))}}));n("cellHorizontalSplit",e({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(a){i(m(a.getSelection()))}}));n("cellInsertBefore",e({requiredContent:"table",exec:function(a){a=a.getSelection();g(a,true)}}));n("cellInsertAfter",e({requiredContent:"table",exec:function(a){a= -a.getSelection();g(a)}}));c.addMenuItems&&c.addMenuItems({tablecell:{label:r.cell.menu,group:"tablecell",order:1,getItems:function(){var a=c.getSelection(),d=b(a);return{tablecell_insertBefore:CKEDITOR.TRISTATE_OFF,tablecell_insertAfter:CKEDITOR.TRISTATE_OFF,tablecell_delete:CKEDITOR.TRISTATE_OFF,tablecell_merge:j(a,null,true)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_right:j(a,"right",true)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_down:j(a,"down",true)? -CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_vertical:l(a,true)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_horizontal:m(a,true)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_properties:d.length>0?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED}}},tablecell_insertBefore:{label:r.cell.insertBefore,group:"tablecell",command:"cellInsertBefore",order:5},tablecell_insertAfter:{label:r.cell.insertAfter,group:"tablecell",command:"cellInsertAfter",order:10}, -tablecell_delete:{label:r.cell.deleteCell,group:"tablecell",command:"cellDelete",order:15},tablecell_merge:{label:r.cell.merge,group:"tablecell",command:"cellMerge",order:16},tablecell_merge_right:{label:r.cell.mergeRight,group:"tablecell",command:"cellMergeRight",order:17},tablecell_merge_down:{label:r.cell.mergeDown,group:"tablecell",command:"cellMergeDown",order:18},tablecell_split_horizontal:{label:r.cell.splitHorizontal,group:"tablecell",command:"cellHorizontalSplit",order:19},tablecell_split_vertical:{label:r.cell.splitVertical, -group:"tablecell",command:"cellVerticalSplit",order:20},tablecell_properties:{label:r.cell.title,group:"tablecellproperties",command:"cellProperties",order:21},tablerow:{label:r.row.menu,group:"tablerow",order:1,getItems:function(){return{tablerow_insertBefore:CKEDITOR.TRISTATE_OFF,tablerow_insertAfter:CKEDITOR.TRISTATE_OFF,tablerow_delete:CKEDITOR.TRISTATE_OFF}}},tablerow_insertBefore:{label:r.row.insertBefore,group:"tablerow",command:"rowInsertBefore",order:5},tablerow_insertAfter:{label:r.row.insertAfter, -group:"tablerow",command:"rowInsertAfter",order:10},tablerow_delete:{label:r.row.deleteRow,group:"tablerow",command:"rowDelete",order:15},tablecolumn:{label:r.column.menu,group:"tablecolumn",order:1,getItems:function(){return{tablecolumn_insertBefore:CKEDITOR.TRISTATE_OFF,tablecolumn_insertAfter:CKEDITOR.TRISTATE_OFF,tablecolumn_delete:CKEDITOR.TRISTATE_OFF}}},tablecolumn_insertBefore:{label:r.column.insertBefore,group:"tablecolumn",command:"columnInsertBefore",order:5},tablecolumn_insertAfter:{label:r.column.insertAfter, -group:"tablecolumn",command:"columnInsertAfter",order:10},tablecolumn_delete:{label:r.column.deleteColumn,group:"tablecolumn",command:"columnDelete",order:15}});c.contextMenu&&c.contextMenu.addListener(function(a,b,c){return(a=c.contains({td:1,th:1},1))&&!a.isReadOnly()?{tablecell:CKEDITOR.TRISTATE_OFF,tablerow:CKEDITOR.TRISTATE_OFF,tablecolumn:CKEDITOR.TRISTATE_OFF}:null})},getSelectedCells:b};CKEDITOR.plugins.add("tabletools",CKEDITOR.plugins.tabletools)}(),CKEDITOR.tools.buildTableMap=function(b){for(var b= +requiredContent:"td[rowspan]",exec:function(a){i(j(a.getSelection(),"down"),true)}}));n("cellVerticalSplit",e({allowedContent:"td[rowspan]",requiredContent:"td[rowspan]",exec:function(a){i(k(a.getSelection()))}}));n("cellHorizontalSplit",e({allowedContent:"td[colspan]",requiredContent:"td[colspan]",exec:function(a){i(l(a.getSelection()))}}));n("cellInsertBefore",e({requiredContent:"table",exec:function(a){a=a.getSelection();g(a,true)}}));n("cellInsertAfter",e({requiredContent:"table",exec:function(a){a= +a.getSelection();g(a)}}));c.addMenuItems&&c.addMenuItems({tablecell:{label:q.cell.menu,group:"tablecell",order:1,getItems:function(){var a=c.getSelection(),d=b(a);return{tablecell_insertBefore:CKEDITOR.TRISTATE_OFF,tablecell_insertAfter:CKEDITOR.TRISTATE_OFF,tablecell_delete:CKEDITOR.TRISTATE_OFF,tablecell_merge:j(a,null,true)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_right:j(a,"right",true)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_merge_down:j(a,"down",true)? +CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_vertical:k(a,true)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_split_horizontal:l(a,true)?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED,tablecell_properties:d.length>0?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED}}},tablecell_insertBefore:{label:q.cell.insertBefore,group:"tablecell",command:"cellInsertBefore",order:5},tablecell_insertAfter:{label:q.cell.insertAfter,group:"tablecell",command:"cellInsertAfter",order:10}, +tablecell_delete:{label:q.cell.deleteCell,group:"tablecell",command:"cellDelete",order:15},tablecell_merge:{label:q.cell.merge,group:"tablecell",command:"cellMerge",order:16},tablecell_merge_right:{label:q.cell.mergeRight,group:"tablecell",command:"cellMergeRight",order:17},tablecell_merge_down:{label:q.cell.mergeDown,group:"tablecell",command:"cellMergeDown",order:18},tablecell_split_horizontal:{label:q.cell.splitHorizontal,group:"tablecell",command:"cellHorizontalSplit",order:19},tablecell_split_vertical:{label:q.cell.splitVertical, +group:"tablecell",command:"cellVerticalSplit",order:20},tablecell_properties:{label:q.cell.title,group:"tablecellproperties",command:"cellProperties",order:21},tablerow:{label:q.row.menu,group:"tablerow",order:1,getItems:function(){return{tablerow_insertBefore:CKEDITOR.TRISTATE_OFF,tablerow_insertAfter:CKEDITOR.TRISTATE_OFF,tablerow_delete:CKEDITOR.TRISTATE_OFF}}},tablerow_insertBefore:{label:q.row.insertBefore,group:"tablerow",command:"rowInsertBefore",order:5},tablerow_insertAfter:{label:q.row.insertAfter, +group:"tablerow",command:"rowInsertAfter",order:10},tablerow_delete:{label:q.row.deleteRow,group:"tablerow",command:"rowDelete",order:15},tablecolumn:{label:q.column.menu,group:"tablecolumn",order:1,getItems:function(){return{tablecolumn_insertBefore:CKEDITOR.TRISTATE_OFF,tablecolumn_insertAfter:CKEDITOR.TRISTATE_OFF,tablecolumn_delete:CKEDITOR.TRISTATE_OFF}}},tablecolumn_insertBefore:{label:q.column.insertBefore,group:"tablecolumn",command:"columnInsertBefore",order:5},tablecolumn_insertAfter:{label:q.column.insertAfter, +group:"tablecolumn",command:"columnInsertAfter",order:10},tablecolumn_delete:{label:q.column.deleteColumn,group:"tablecolumn",command:"columnDelete",order:15}});c.contextMenu&&c.contextMenu.addListener(function(a,b,c){return(a=c.contains({td:1,th:1},1))&&!a.isReadOnly()?{tablecell:CKEDITOR.TRISTATE_OFF,tablerow:CKEDITOR.TRISTATE_OFF,tablecolumn:CKEDITOR.TRISTATE_OFF}:null})},getSelectedCells:b};CKEDITOR.plugins.add("tabletools",CKEDITOR.plugins.tabletools)}(),CKEDITOR.tools.buildTableMap=function(b){for(var b= b.$.rows,d=-1,a=[],e=0;e<b.length;e++){d++;!a[d]&&(a[d]=[]);for(var h=-1,g=0;g<b[e].cells.length;g++){var f=b[e].cells[g];for(h++;a[d][h];)h++;for(var i=isNaN(f.colSpan)?1:f.colSpan,f=isNaN(f.rowSpan)?1:f.rowSpan,c=0;c<f;c++){a[d+c]||(a[d+c]=[]);for(var j=0;j<i;j++)a[d+c][h+j]=b[e].cells[g]}h=h+(i-1)}}return a},function(){function b(a){this.editor=a;this.reset()}CKEDITOR.plugins.add("undo",{init:function(a){function d(a){c.enabled&&a.data.command.canUndo!==false&&c.save()}var c=new b(a),e=a.addCommand("undo", {exec:function(){if(c.undo()){a.selectionChange();this.fire("afterUndo")}},state:CKEDITOR.TRISTATE_DISABLED,canUndo:false}),g=a.addCommand("redo",{exec:function(){if(c.redo()){a.selectionChange();this.fire("afterRedo")}},state:CKEDITOR.TRISTATE_DISABLED,canUndo:false});a.setKeystroke([[CKEDITOR.CTRL+90,"undo"],[CKEDITOR.CTRL+89,"redo"],[CKEDITOR.CTRL+CKEDITOR.SHIFT+90,"redo"]]);c.onChange=function(){e.setState(c.undoable()?CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED);g.setState(c.redoable()? CKEDITOR.TRISTATE_OFF:CKEDITOR.TRISTATE_DISABLED)};a.on("beforeCommandExec",d);a.on("afterCommandExec",d);a.on("saveSnapshot",function(a){c.save(a.data&&a.data.contentOnly)});a.on("contentDom",function(){a.editable().on("keydown",function(a){!a.data.$.ctrlKey&&!a.data.$.metaKey&&c.type(a)})});a.on("beforeModeUnload",function(){a.mode=="wysiwyg"&&c.save(true)});a.on("mode",function(){c.enabled=a.readOnly?false:a.mode=="wysiwyg";c.onChange()});if(a.ui.addButton){a.ui.addButton("Undo",{label:a.lang.undo.undo, command:"undo",toolbar:"undo,10"});a.ui.addButton("Redo",{label:a.lang.undo.redo,command:"redo",toolbar:"undo,20"})}a.resetUndo=function(){c.reset();a.fire("saveSnapshot")};a.on("updateSnapshot",function(){c.currentImage&&c.update()});a.on("lockSnapshot",c.lock,c);a.on("unlockSnapshot",c.unlock,c)}});CKEDITOR.plugins.undo={};var d=CKEDITOR.plugins.undo.Image=function(a){this.editor=a;a.fire("beforeUndoImage");var b=a.getSnapshot(),c=b&&a.getSelection();CKEDITOR.env.ie&&b&&(b=b.replace(/\s+data-cke-expando=".*?"/g, ""));this.contents=b;this.bookmarks=c&&c.createBookmarks2(true);a.fire("afterUndoImage")},a=/\b(?:href|src|name)="[^"]*?"/gi;d.prototype={equals:function(b,d){var c=this.contents,e=b.contents;if(CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.ie6Compat)){c=c.replace(a,"");e=e.replace(a,"")}if(c!=e)return false;if(d)return true;c=this.bookmarks;e=b.bookmarks;if(c||e){if(!c||!e||c.length!=e.length)return false;for(var g=0;g<c.length;g++){var h=c[g],n=e[g];if(h.startOffset!=n.startOffset||h.endOffset!= -n.endOffset||!CKEDITOR.tools.arrayCompare(h.start,n.start)||!CKEDITOR.tools.arrayCompare(h.end,n.end))return false}}return true}};var e={8:1,46:1},h={16:1,17:1,18:1},g={37:1,38:1,39:1,40:1};b.prototype={type:function(a){var a=a&&a.data.getKey(),b=a in e,c=this.lastKeystroke in e,j=b&&a==this.lastKeystroke,l=a in g,m=this.lastKeystroke in g;if(!(a in h||this.typing)||!b&&!l&&(c||m)||b&&!j){var n=new d(this.editor),o=this.snapshots.length;CKEDITOR.tools.setTimeout(function(){var a=this.editor.getSnapshot(); -CKEDITOR.env.ie&&(a=a.replace(/\s+data-cke-expando=".*?"/g,""));if(n.contents!=a&&o==this.snapshots.length){this.typing=true;this.save(false,n,false)||this.snapshots.splice(this.index+1,this.snapshots.length-this.index-1);this.hasUndo=true;this.hasRedo=false;this.modifiersCount=this.typesCount=1;this.onChange()}},0,this)}this.lastKeystroke=a;if(b){this.typesCount=0;this.modifiersCount++;if(this.modifiersCount>25){this.save(false,null,false);this.modifiersCount=1}}else if(!l){this.modifiersCount=0; +n.endOffset||!CKEDITOR.tools.arrayCompare(h.start,n.start)||!CKEDITOR.tools.arrayCompare(h.end,n.end))return false}}return true}};var e={8:1,46:1},h={16:1,17:1,18:1},g={37:1,38:1,39:1,40:1};b.prototype={type:function(a){var a=a&&a.data.getKey(),b=a in e,c=this.lastKeystroke in e,j=b&&a==this.lastKeystroke,k=a in g,l=this.lastKeystroke in g;if(!(a in h||this.typing)||!b&&!k&&(c||l)||b&&!j){var n=new d(this.editor),o=this.snapshots.length;CKEDITOR.tools.setTimeout(function(){var a=this.editor.getSnapshot(); +CKEDITOR.env.ie&&(a=a.replace(/\s+data-cke-expando=".*?"/g,""));if(n.contents!=a&&o==this.snapshots.length){this.typing=true;this.save(false,n,false)||this.snapshots.splice(this.index+1,this.snapshots.length-this.index-1);this.hasUndo=true;this.hasRedo=false;this.modifiersCount=this.typesCount=1;this.onChange()}},0,this)}this.lastKeystroke=a;if(b){this.typesCount=0;this.modifiersCount++;if(this.modifiersCount>25){this.save(false,null,false);this.modifiersCount=1}}else if(!k){this.modifiersCount=0; this.typesCount++;if(this.typesCount>25){this.save(false,null,false);this.typesCount=1}}},reset:function(){this.lastKeystroke=0;this.snapshots=[];this.index=-1;this.limit=this.editor.config.undoStackSize||20;this.currentImage=null;this.hasRedo=this.hasUndo=false;this.locked=null;this.resetType()},resetType:function(){this.typing=false;delete this.lastKeystroke;this.modifiersCount=this.typesCount=0},fireChange:function(){this.hasUndo=!!this.getNextImage(true);this.hasRedo=!!this.getNextImage(false); this.resetType();this.onChange()},save:function(a,b,c){if(this.locked)return false;var e=this.snapshots;b||(b=new d(this.editor));if(b.contents===false||this.currentImage&&b.equals(this.currentImage,a))return false;e.splice(this.index+1,e.length-this.index-1);e.length==this.limit&&e.shift();this.index=e.push(b)-1;this.currentImage=b;c!==false&&this.fireChange();return true},restoreImage:function(a){var b=this.editor,c;if(a.bookmarks){b.focus();c=b.getSelection()}this.locked=1;this.editor.loadSnapshot(a.contents); if(a.bookmarks)c.selectBookmarks(a.bookmarks);else if(CKEDITOR.env.ie){b=this.editor.document.getBody().$.createTextRange();b.collapse(true);b.select()}this.locked=0;this.index=a.index;this.update();this.fireChange()},getNextImage:function(a){var b=this.snapshots,c=this.currentImage,d;if(c)if(a)for(d=this.index-1;d>=0;d--){a=b[d];if(!c.equals(a,true)){a.index=d;return a}}else for(d=this.index+1;d<b.length;d++){a=b[d];if(!c.equals(a,true)){a.index=d;return a}}return null},redoable:function(){return this.enabled&& this.hasRedo},undoable:function(){return this.enabled&&this.hasUndo},undo:function(){if(this.undoable()){this.save(true);var a=this.getNextImage(true);if(a)return this.restoreImage(a),true}return false},redo:function(){if(this.redoable()){this.save(true);if(this.redoable()){var a=this.getNextImage(false);if(a)return this.restoreImage(a),true}}return false},update:function(){if(!this.locked)this.snapshots.splice(this.index,1,this.currentImage=new d(this.editor))},lock:function(){if(!this.locked){var a= this.editor.getSnapshot();this.locked={update:this.currentImage&&a==this.currentImage.contents?a:null}}},unlock:function(){if(this.locked){var a=this.locked.update,b=this.editor.getSnapshot();this.locked=null;typeof a=="string"&&b!=a&&this.update()}}}}(),function(){function b(a,b){var b=b===void 0||b,d;if(b)d=a.getComputedStyle("text-align");else{for(;!a.hasAttribute||!a.hasAttribute("align")&&!a.getStyle("text-align");){d=a.getParent();if(!d)break;a=d}d=a.getStyle("text-align")||a.getAttribute("align")|| -""}d&&(d=d.replace(/(?:-(?:moz|webkit)-)?(?:start|auto)/i,""));!d&&b&&(d=a.getComputedStyle("direction")=="rtl"?"right":"left");return d}function d(a,b,d){this.editor=a;this.name=b;this.value=d;this.context="p";if(a=a.config.justifyClasses){switch(d){case "left":this.cssClassName=a[0];break;case "center":this.cssClassName=a[1];break;case "right":this.cssClassName=a[2];break;case "justify":this.cssClassName=a[3]}this.cssClassRegex=RegExp("(?:^|\\s+)(?:"+a.join("|")+")(?=$|\\s)")}this.allowedContent= -{"caption div h1 h2 h3 h4 h5 h6 p pre td th li":{propertiesOnly:true,styles:this.cssClassName?null:"text-align",classes:this.cssClassName||null}};this.requiredContent="p{text-align}"}function a(a){var b=a.editor,d=b.createRange();d.setStartBefore(a.data.node);d.setEndAfter(a.data.node);for(var f=new CKEDITOR.dom.walker(d),i;i=f.next();)if(i.type==CKEDITOR.NODE_ELEMENT)if(!i.equals(a.data.node)&&i.getDirection()){d.setStartAfter(i);f=new CKEDITOR.dom.walker(d)}else{var c=b.config.justifyClasses;if(c)if(i.hasClass(c[0])){i.removeClass(c[0]); -i.addClass(c[2])}else if(i.hasClass(c[2])){i.removeClass(c[2]);i.addClass(c[0])}c=i.getStyle("text-align");c=="left"?i.setStyle("text-align","right"):c=="right"&&i.setStyle("text-align","left")}}d.prototype={exec:function(a){var d=a.getSelection(),g=a.config.enterMode;if(d){for(var f=d.createBookmarks(),i=d.getRanges(true),c=this.cssClassName,j,l,m=a.config.useComputedState,m=m===void 0||m,n=i.length-1;n>=0;n--){j=i[n].createIterator();for(j.enlargeBr=g!=CKEDITOR.ENTER_BR;l=j.getNextParagraph(g== -CKEDITOR.ENTER_P?"p":"div");){l.removeAttribute("align");l.removeStyle("text-align");var o=c&&(l.$.className=CKEDITOR.tools.ltrim(l.$.className.replace(this.cssClassRegex,""))),k=this.state==CKEDITOR.TRISTATE_OFF&&(!m||b(l,true)!=this.value);c?k?l.addClass(c):o||l.removeAttribute("class"):k&&l.setStyle("text-align",this.value)}}a.focus();a.forceNextSelectionCheck();d.selectBookmarks(f)}},refresh:function(a,d){var g=d.block||d.blockLimit;this.setState(g.getName()!="body"&&b(g,this.editor.config.useComputedState)== -this.value?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)}};CKEDITOR.plugins.add("justify",{init:function(b){if(!b.blockless){var h=new d(b,"justifyleft","left"),g=new d(b,"justifycenter","center"),f=new d(b,"justifyright","right"),i=new d(b,"justifyblock","justify");b.addCommand("justifyleft",h);b.addCommand("justifycenter",g);b.addCommand("justifyright",f);b.addCommand("justifyblock",i);if(b.ui.addButton){b.ui.addButton("JustifyLeft",{label:b.lang.justify.left,command:"justifyleft",toolbar:"align,10"}); -b.ui.addButton("JustifyCenter",{label:b.lang.justify.center,command:"justifycenter",toolbar:"align,20"});b.ui.addButton("JustifyRight",{label:b.lang.justify.right,command:"justifyright",toolbar:"align,30"});b.ui.addButton("JustifyBlock",{label:b.lang.justify.block,command:"justifyblock",toolbar:"align,40"})}b.on("dirChanged",a)}}})}(),function(){var b={readOnly:1,preserveState:true,editorFocus:false,exec:function(b){this.toggleState();this.refresh(b)},refresh:function(b){if(b.document){var a=this.state== -CKEDITOR.TRISTATE_ON&&(b.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE||b.focusManager.hasFocus)?"attachClass":"removeClass";b.editable()[a]("cke_show_blocks")}}};CKEDITOR.plugins.add("showblocks",{onLoad:function(){function b(a){return".%1.%2 p,.%1.%2 div,.%1.%2 pre,.%1.%2 address,.%1.%2 blockquote,.%1.%2 h1,.%1.%2 h2,.%1.%2 h3,.%1.%2 h4,.%1.%2 h5,.%1.%2 h6{background-position: top %3;padding-%3: 8px;}".replace(/%1/g,"cke_show_blocks").replace(/%2/g,"cke_contents_"+a).replace(/%3/g,a=="rtl"?"right": -"left")}CKEDITOR.addCss(".%2 p,.%2 div,.%2 pre,.%2 address,.%2 blockquote,.%2 h1,.%2 h2,.%2 h3,.%2 h4,.%2 h5,.%2 h6{background-repeat: no-repeat;border: 1px dotted gray;padding-top: 8px;}.%2 p{%1p.png);}.%2 div{%1div.png);}.%2 pre{%1pre.png);}.%2 address{%1address.png);}.%2 blockquote{%1blockquote.png);}.%2 h1{%1h1.png);}.%2 h2{%1h2.png);}.%2 h3{%1h3.png);}.%2 h4{%1h4.png);}.%2 h5{%1h5.png);}.%2 h6{%1h6.png);}".replace(/%1/g,"background-image: url("+CKEDITOR.getUrl(this.path)+"images/block_").replace(/%2/g, -"cke_show_blocks ")+b("ltr")+b("rtl"))},init:function(d){if(!d.blockless){var a=d.addCommand("showblocks",b);a.canUndo=false;d.config.startupOutlineBlocks&&a.setState(CKEDITOR.TRISTATE_ON);d.ui.addButton&&d.ui.addButton("ShowBlocks",{label:d.lang.showblocks.toolbar,command:"showblocks",toolbar:"tools,20"});d.on("mode",function(){a.state!=CKEDITOR.TRISTATE_DISABLED&&a.refresh(d)});if(d.elementMode==CKEDITOR.ELEMENT_MODE_INLINE){var e=function(){a.refresh(d)};d.on("focus",e);d.on("blur",e)}d.on("contentDom", -function(){a.state!=CKEDITOR.TRISTATE_DISABLED&&a.refresh(d)})}}})}(),function(){var b={preserveState:true,editorFocus:false,readOnly:1,exec:function(b){this.toggleState();this.refresh(b)},refresh:function(b){if(b.document){var a=this.state==CKEDITOR.TRISTATE_ON?"attachClass":"removeClass";b.editable()[a]("cke_show_borders")}}};CKEDITOR.plugins.add("showborders",{modes:{wysiwyg:1},onLoad:function(){var b;b=(CKEDITOR.env.ie6Compat?[".%1 table.%2,",".%1 table.%2 td, .%1 table.%2 th","{","border : #d3d3d3 1px dotted", -"}"]:[".%1 table.%2,",".%1 table.%2 > tr > td, .%1 table.%2 > tr > th,",".%1 table.%2 > tbody > tr > td, .%1 table.%2 > tbody > tr > th,",".%1 table.%2 > thead > tr > td, .%1 table.%2 > thead > tr > th,",".%1 table.%2 > tfoot > tr > td, .%1 table.%2 > tfoot > tr > th","{","border : #d3d3d3 1px dotted","}"]).join("").replace(/%2/g,"cke_show_border").replace(/%1/g,"cke_show_borders ");CKEDITOR.addCss(b)},init:function(d){var a=d.addCommand("showborders",b);a.canUndo=false;d.config.startupShowBorders!== -false&&a.setState(CKEDITOR.TRISTATE_ON);d.on("mode",function(){a.state!=CKEDITOR.TRISTATE_DISABLED&&a.refresh(d)},null,null,100);d.on("contentDom",function(){a.state!=CKEDITOR.TRISTATE_DISABLED&&a.refresh(d)});d.on("removeFormatCleanup",function(a){a=a.data;d.getCommand("showborders").state==CKEDITOR.TRISTATE_ON&&(a.is("table")&&(!a.hasAttribute("border")||parseInt(a.getAttribute("border"),10)<=0))&&a.addClass("cke_show_border")})},afterInit:function(b){var a=b.dataProcessor,b=a&&a.dataFilter,a=a&& -a.htmlFilter;b&&b.addRules({elements:{table:function(a){var a=a.attributes,b=a["class"],d=parseInt(a.border,10);if((!d||d<=0)&&(!b||b.indexOf("cke_show_border")==-1))a["class"]=(b||"")+" cke_show_border"}}});a&&a.addRules({elements:{table:function(a){var a=a.attributes,b=a["class"];b&&(a["class"]=b.replace("cke_show_border","").replace(/\s{2}/," ").replace(/^\s+|\s+$/,""))}}})}});CKEDITOR.on("dialogDefinition",function(b){var a=b.data.name;if(a=="table"||a=="tableProperties"){b=b.data.definition; -a=b.getContents("info").get("txtBorder");a.commit=CKEDITOR.tools.override(a.commit,function(a){return function(b,d){a.apply(this,arguments);var f=parseInt(this.getValue(),10);d[!f||f<=0?"addClass":"removeClass"]("cke_show_border")}});if(b=(b=b.getContents("advanced"))&&b.get("advCSSClasses")){b.setup=CKEDITOR.tools.override(b.setup,function(a){return function(){a.apply(this,arguments);this.setValue(this.getValue().replace(/cke_show_border/,""))}});b.commit=CKEDITOR.tools.override(b.commit,function(a){return function(b, -d){a.apply(this,arguments);parseInt(d.getAttribute("border"),10)||d.addClass("cke_show_border")}})}}})}(),function(){function b(a){return CKEDITOR.env.ie?a.$.clientWidth:parseInt(a.getComputedStyle("width"),10)}function d(a,b){var d=a.getComputedStyle("border-"+b+"-width"),e={thin:"0px",medium:"1px",thick:"2px"};d.indexOf("px")<0&&(d=d in e&&a.getComputedStyle("border-style")!="none"?e[d]:0);return parseInt(d,10)}function a(a){var b=[],e=-1,f=a.getComputedStyle("direction")=="rtl",g;g=a.$.rows;for(var h= -0,i,p,r,q=0,t=g.length;q<t;q++){r=g[q];i=r.cells.length;if(i>h){h=i;p=r}}g=p;h=new CKEDITOR.dom.element(a.$.tBodies[0]);i=h.getDocumentPosition();p=0;for(r=g.cells.length;p<r;p++){var q=new CKEDITOR.dom.element(g.cells[p]),t=g.cells[p+1]&&new CKEDITOR.dom.element(g.cells[p+1]),e=e+(q.$.colSpan||1),z,x,u=q.getDocumentPosition().x;f?x=u+d(q,"left"):z=u+q.$.offsetWidth-d(q,"right");if(t){u=t.getDocumentPosition().x;f?z=u+t.$.offsetWidth-d(t,"right"):x=u+d(t,"left")}else{u=a.getDocumentPosition().x;f? -z=u:x=u+a.$.offsetWidth}q=Math.max(x-z,3);b.push({table:a,index:e,x:z,y:i.y,width:q,height:h.$.offsetHeight,rtl:f})}return b}function e(a){(a.data||a).preventDefault()}function h(a){function g(){q=0;r.setOpacity(0);z&&h();var a=k.table;setTimeout(function(){a.removeCustomData("_cke_table_pillars")},0);p.removeListener("dragstart",e)}function h(){for(var a=k.rtl,c=a?u.length:x.length,e=0;e<c;e++){var g=x[e],i=u[e],j=k.table;CKEDITOR.tools.setTimeout(function(b,c,d,e,g,h){b&&b.setStyle("width",f(Math.max(c+ -h,0)));d&&d.setStyle("width",f(Math.max(e-h,0)));g&&j.setStyle("width",f(g+h*(a?-1:1)))},0,this,[g,g&&b(g),i,i&&b(i),(!g||!i)&&b(j)+d(j,"left")+d(j,"right"),z])}}function m(a){e(a);for(var a=k.index,c=CKEDITOR.tools.buildTableMap(k.table),d=[],f=[],g=Number.MAX_VALUE,h=g,i=k.rtl,j=0,l=c.length;j<l;j++){var m=c[j],v=m[a+(i?1:0)],m=m[a+(i?0:1)],v=v&&new CKEDITOR.dom.element(v),m=m&&new CKEDITOR.dom.element(m);if(!v||!m||!v.equals(m)){v&&(g=Math.min(g,b(v)));m&&(h=Math.min(h,b(m)));d.push(v);f.push(m)}}x= -d;u=f;w=k.x-g;s=k.x+h;r.setOpacity(0.5);t=parseInt(r.getStyle("left"),10);z=0;q=1;r.on("mousemove",o);p.on("dragstart",e);p.on("mouseup",n,this)}function n(a){a.removeListener();g()}function o(a){v(a.data.getPageOffset().x)}var k,p,r,q,t,z,x,u,w,s;p=a.document;r=CKEDITOR.dom.element.createFromHtml('<div data-cke-temp=1 contenteditable=false unselectable=on style="position:absolute;cursor:col-resize;filter:alpha(opacity=0);opacity:0;padding:0;background-color:#004;background-image:none;border:0px none;z-index:10"></div>', -p);i||p.getDocumentElement().append(r);this.attachTo=function(a){if(!q){if(i){p.getBody().append(r);z=0}k=a;r.setStyles({width:f(a.width),height:f(a.height),left:f(a.x),top:f(a.y)});i&&r.setOpacity(0.25);r.on("mousedown",m,this);p.getBody().setStyle("cursor","col-resize");r.show()}};var v=this.move=function(a){if(!k)return 0;if(!q&&(a<k.x||a>k.x+k.width)){k=null;q=z=0;p.removeListener("mouseup",n);r.removeListener("mousedown",m);r.removeListener("mousemove",o);p.getBody().setStyle("cursor","auto"); -i?r.remove():r.hide();return 0}a=a-Math.round(r.$.offsetWidth/2);if(q){if(a==w||a==s)return 1;a=Math.max(a,w);a=Math.min(a,s);z=a-t}r.setStyle("left",f(a));return 1}}function g(a){var b=a.data.getTarget();if(a.name=="mouseout"){if(!b.is("table"))return;for(var d=new CKEDITOR.dom.element(a.data.$.relatedTarget||a.data.$.toElement);d&&d.$&&!d.equals(b)&&!d.is("body");)d=d.getParent();if(!d||d.equals(b))return}b.getAscendant("table",1).removeCustomData("_cke_table_pillars");a.removeListener()}var f= +""}d&&(d=d.replace(/(?:-(?:moz|webkit)-)?(?:start|auto)/i,""));!d&&b&&(d=a.getComputedStyle("direction")=="rtl"?"right":"left");return d}function d(a,b,d){this.editor=a;this.name=b;this.value=d;this.context="p";if(a=a.config.justifyClasses){switch(d){case "left":this.cssClassName=a[0];break;case "center":this.cssClassName=a[1];break;case "right":this.cssClassName=a[2];break;case "justify":this.cssClassName=a[3]}this.cssClassRegex=RegExp("(?:^|\\s+)(?:"+a.join("|")+")(?=$|\\s)");this.requiredContent= +"p("+this.cssClassName+")"}else this.requiredContent="p{text-align}";this.allowedContent={"caption div h1 h2 h3 h4 h5 h6 p pre td th li":{propertiesOnly:true,styles:this.cssClassName?null:"text-align",classes:this.cssClassName||null}}}function a(a){var b=a.editor,d=b.createRange();d.setStartBefore(a.data.node);d.setEndAfter(a.data.node);for(var f=new CKEDITOR.dom.walker(d),i;i=f.next();)if(i.type==CKEDITOR.NODE_ELEMENT)if(!i.equals(a.data.node)&&i.getDirection()){d.setStartAfter(i);f=new CKEDITOR.dom.walker(d)}else{var c= +b.config.justifyClasses;if(c)if(i.hasClass(c[0])){i.removeClass(c[0]);i.addClass(c[2])}else if(i.hasClass(c[2])){i.removeClass(c[2]);i.addClass(c[0])}c=i.getStyle("text-align");c=="left"?i.setStyle("text-align","right"):c=="right"&&i.setStyle("text-align","left")}}d.prototype={exec:function(a){var d=a.getSelection(),g=a.config.enterMode;if(d){for(var f=d.createBookmarks(),i=d.getRanges(true),c=this.cssClassName,j,k,l=a.config.useComputedState,l=l===void 0||l,n=i.length-1;n>=0;n--){j=i[n].createIterator(); +for(j.enlargeBr=g!=CKEDITOR.ENTER_BR;k=j.getNextParagraph(g==CKEDITOR.ENTER_P?"p":"div");){k.removeAttribute("align");k.removeStyle("text-align");var o=c&&(k.$.className=CKEDITOR.tools.ltrim(k.$.className.replace(this.cssClassRegex,""))),m=this.state==CKEDITOR.TRISTATE_OFF&&(!l||b(k,true)!=this.value);c?m?k.addClass(c):o||k.removeAttribute("class"):m&&k.setStyle("text-align",this.value)}}a.focus();a.forceNextSelectionCheck();d.selectBookmarks(f)}},refresh:function(a,d){var g=d.block||d.blockLimit; +this.setState(g.getName()!="body"&&b(g,this.editor.config.useComputedState)==this.value?CKEDITOR.TRISTATE_ON:CKEDITOR.TRISTATE_OFF)}};CKEDITOR.plugins.add("justify",{init:function(b){if(!b.blockless){var h=new d(b,"justifyleft","left"),g=new d(b,"justifycenter","center"),f=new d(b,"justifyright","right"),i=new d(b,"justifyblock","justify");b.addCommand("justifyleft",h);b.addCommand("justifycenter",g);b.addCommand("justifyright",f);b.addCommand("justifyblock",i);if(b.ui.addButton){b.ui.addButton("JustifyLeft", +{label:b.lang.justify.left,command:"justifyleft",toolbar:"align,10"});b.ui.addButton("JustifyCenter",{label:b.lang.justify.center,command:"justifycenter",toolbar:"align,20"});b.ui.addButton("JustifyRight",{label:b.lang.justify.right,command:"justifyright",toolbar:"align,30"});b.ui.addButton("JustifyBlock",{label:b.lang.justify.block,command:"justifyblock",toolbar:"align,40"})}b.on("dirChanged",a)}}})}(),function(){var b={readOnly:1,preserveState:true,editorFocus:false,exec:function(b){this.toggleState(); +this.refresh(b)},refresh:function(b){if(b.document){var a=this.state==CKEDITOR.TRISTATE_ON&&(b.elementMode!=CKEDITOR.ELEMENT_MODE_INLINE||b.focusManager.hasFocus)?"attachClass":"removeClass";b.editable()[a]("cke_show_blocks")}}};CKEDITOR.plugins.add("showblocks",{onLoad:function(){function b(a){return".%1.%2 p,.%1.%2 div,.%1.%2 pre,.%1.%2 address,.%1.%2 blockquote,.%1.%2 h1,.%1.%2 h2,.%1.%2 h3,.%1.%2 h4,.%1.%2 h5,.%1.%2 h6{background-position: top %3;padding-%3: 8px;}".replace(/%1/g,"cke_show_blocks").replace(/%2/g, +"cke_contents_"+a).replace(/%3/g,a=="rtl"?"right":"left")}CKEDITOR.addCss(".%2 p,.%2 div,.%2 pre,.%2 address,.%2 blockquote,.%2 h1,.%2 h2,.%2 h3,.%2 h4,.%2 h5,.%2 h6{background-repeat: no-repeat;border: 1px dotted gray;padding-top: 8px;}.%2 p{%1p.png);}.%2 div{%1div.png);}.%2 pre{%1pre.png);}.%2 address{%1address.png);}.%2 blockquote{%1blockquote.png);}.%2 h1{%1h1.png);}.%2 h2{%1h2.png);}.%2 h3{%1h3.png);}.%2 h4{%1h4.png);}.%2 h5{%1h5.png);}.%2 h6{%1h6.png);}".replace(/%1/g,"background-image: url("+ +CKEDITOR.getUrl(this.path)+"images/block_").replace(/%2/g,"cke_show_blocks ")+b("ltr")+b("rtl"))},init:function(d){if(!d.blockless){var a=d.addCommand("showblocks",b);a.canUndo=false;d.config.startupOutlineBlocks&&a.setState(CKEDITOR.TRISTATE_ON);d.ui.addButton&&d.ui.addButton("ShowBlocks",{label:d.lang.showblocks.toolbar,command:"showblocks",toolbar:"tools,20"});d.on("mode",function(){a.state!=CKEDITOR.TRISTATE_DISABLED&&a.refresh(d)});if(d.elementMode==CKEDITOR.ELEMENT_MODE_INLINE){var e=function(){a.refresh(d)}; +d.on("focus",e);d.on("blur",e)}d.on("contentDom",function(){a.state!=CKEDITOR.TRISTATE_DISABLED&&a.refresh(d)})}}})}(),function(){var b={preserveState:true,editorFocus:false,readOnly:1,exec:function(b){this.toggleState();this.refresh(b)},refresh:function(b){if(b.document){var a=this.state==CKEDITOR.TRISTATE_ON?"attachClass":"removeClass";b.editable()[a]("cke_show_borders")}}};CKEDITOR.plugins.add("showborders",{modes:{wysiwyg:1},onLoad:function(){var b;b=(CKEDITOR.env.ie6Compat?[".%1 table.%2,",".%1 table.%2 td, .%1 table.%2 th", +"{","border : #d3d3d3 1px dotted","}"]:[".%1 table.%2,",".%1 table.%2 > tr > td, .%1 table.%2 > tr > th,",".%1 table.%2 > tbody > tr > td, .%1 table.%2 > tbody > tr > th,",".%1 table.%2 > thead > tr > td, .%1 table.%2 > thead > tr > th,",".%1 table.%2 > tfoot > tr > td, .%1 table.%2 > tfoot > tr > th","{","border : #d3d3d3 1px dotted","}"]).join("").replace(/%2/g,"cke_show_border").replace(/%1/g,"cke_show_borders ");CKEDITOR.addCss(b)},init:function(d){var a=d.addCommand("showborders",b);a.canUndo= +false;d.config.startupShowBorders!==false&&a.setState(CKEDITOR.TRISTATE_ON);d.on("mode",function(){a.state!=CKEDITOR.TRISTATE_DISABLED&&a.refresh(d)},null,null,100);d.on("contentDom",function(){a.state!=CKEDITOR.TRISTATE_DISABLED&&a.refresh(d)});d.on("removeFormatCleanup",function(a){a=a.data;d.getCommand("showborders").state==CKEDITOR.TRISTATE_ON&&(a.is("table")&&(!a.hasAttribute("border")||parseInt(a.getAttribute("border"),10)<=0))&&a.addClass("cke_show_border")})},afterInit:function(b){var a=b.dataProcessor, +b=a&&a.dataFilter,a=a&&a.htmlFilter;b&&b.addRules({elements:{table:function(a){var a=a.attributes,b=a["class"],d=parseInt(a.border,10);if((!d||d<=0)&&(!b||b.indexOf("cke_show_border")==-1))a["class"]=(b||"")+" cke_show_border"}}});a&&a.addRules({elements:{table:function(a){var a=a.attributes,b=a["class"];b&&(a["class"]=b.replace("cke_show_border","").replace(/\s{2}/," ").replace(/^\s+|\s+$/,""))}}})}});CKEDITOR.on("dialogDefinition",function(b){var a=b.data.name;if(a=="table"||a=="tableProperties"){b= +b.data.definition;a=b.getContents("info").get("txtBorder");a.commit=CKEDITOR.tools.override(a.commit,function(a){return function(b,d){a.apply(this,arguments);var f=parseInt(this.getValue(),10);d[!f||f<=0?"addClass":"removeClass"]("cke_show_border")}});if(b=(b=b.getContents("advanced"))&&b.get("advCSSClasses")){b.setup=CKEDITOR.tools.override(b.setup,function(a){return function(){a.apply(this,arguments);this.setValue(this.getValue().replace(/cke_show_border/,""))}});b.commit=CKEDITOR.tools.override(b.commit, +function(a){return function(b,d){a.apply(this,arguments);parseInt(d.getAttribute("border"),10)||d.addClass("cke_show_border")}})}}})}(),function(){function b(a){return CKEDITOR.env.ie?a.$.clientWidth:parseInt(a.getComputedStyle("width"),10)}function d(a,b){var d=a.getComputedStyle("border-"+b+"-width"),e={thin:"0px",medium:"1px",thick:"2px"};d.indexOf("px")<0&&(d=d in e&&a.getComputedStyle("border-style")!="none"?e[d]:0);return parseInt(d,10)}function a(a){var b=[],e=-1,f=a.getComputedStyle("direction")== +"rtl",g;g=a.$.rows;for(var h=0,i,p,q,r=0,t=g.length;r<t;r++){q=g[r];i=q.cells.length;if(i>h){h=i;p=q}}g=p;h=new CKEDITOR.dom.element(a.$.tBodies[0]);i=h.getDocumentPosition();p=0;for(q=g.cells.length;p<q;p++){var r=new CKEDITOR.dom.element(g.cells[p]),t=g.cells[p+1]&&new CKEDITOR.dom.element(g.cells[p+1]),e=e+(r.$.colSpan||1),z,x,u=r.getDocumentPosition().x;f?x=u+d(r,"left"):z=u+r.$.offsetWidth-d(r,"right");if(t){u=t.getDocumentPosition().x;f?z=u+t.$.offsetWidth-d(t,"right"):x=u+d(t,"left")}else{u= +a.getDocumentPosition().x;f?z=u:x=u+a.$.offsetWidth}r=Math.max(x-z,3);b.push({table:a,index:e,x:z,y:i.y,width:r,height:h.$.offsetHeight,rtl:f})}return b}function e(a){(a.data||a).preventDefault()}function h(a){function g(){r=0;q.setOpacity(0);z&&h();var a=m.table;setTimeout(function(){a.removeCustomData("_cke_table_pillars")},0);p.removeListener("dragstart",e)}function h(){for(var a=m.rtl,c=a?u.length:x.length,e=0;e<c;e++){var g=x[e],i=u[e],j=m.table;CKEDITOR.tools.setTimeout(function(b,c,d,e,g,h){b&& +b.setStyle("width",f(Math.max(c+h,0)));d&&d.setStyle("width",f(Math.max(e-h,0)));g&&j.setStyle("width",f(g+h*(a?-1:1)))},0,this,[g,g&&b(g),i,i&&b(i),(!g||!i)&&b(j)+d(j,"left")+d(j,"right"),z])}}function l(a){e(a);for(var a=m.index,c=CKEDITOR.tools.buildTableMap(m.table),d=[],f=[],g=Number.MAX_VALUE,h=g,i=m.rtl,j=0,k=c.length;j<k;j++){var l=c[j],v=l[a+(i?1:0)],l=l[a+(i?0:1)],v=v&&new CKEDITOR.dom.element(v),l=l&&new CKEDITOR.dom.element(l);if(!v||!l||!v.equals(l)){v&&(g=Math.min(g,b(v)));l&&(h=Math.min(h, +b(l)));d.push(v);f.push(l)}}x=d;u=f;w=m.x-g;s=m.x+h;q.setOpacity(0.5);t=parseInt(q.getStyle("left"),10);z=0;r=1;q.on("mousemove",o);p.on("dragstart",e);p.on("mouseup",n,this)}function n(a){a.removeListener();g()}function o(a){v(a.data.getPageOffset().x)}var m,p,q,r,t,z,x,u,w,s;p=a.document;q=CKEDITOR.dom.element.createFromHtml('<div data-cke-temp=1 contenteditable=false unselectable=on style="position:absolute;cursor:col-resize;filter:alpha(opacity=0);opacity:0;padding:0;background-color:#004;background-image:none;border:0px none;z-index:10"></div>', +p);i||p.getDocumentElement().append(q);this.attachTo=function(a){if(!r){if(i){p.getBody().append(q);z=0}m=a;q.setStyles({width:f(a.width),height:f(a.height),left:f(a.x),top:f(a.y)});i&&q.setOpacity(0.25);q.on("mousedown",l,this);p.getBody().setStyle("cursor","col-resize");q.show()}};var v=this.move=function(a){if(!m)return 0;if(!r&&(a<m.x||a>m.x+m.width)){m=null;r=z=0;p.removeListener("mouseup",n);q.removeListener("mousedown",l);q.removeListener("mousemove",o);p.getBody().setStyle("cursor","auto"); +i?q.remove():q.hide();return 0}a=a-Math.round(q.$.offsetWidth/2);if(r){if(a==w||a==s)return 1;a=Math.max(a,w);a=Math.min(a,s);z=a-t}q.setStyle("left",f(a));return 1}}function g(a){var b=a.data.getTarget();if(a.name=="mouseout"){if(!b.is("table"))return;for(var d=new CKEDITOR.dom.element(a.data.$.relatedTarget||a.data.$.toElement);d&&d.$&&!d.equals(b)&&!d.is("body");)d=d.getParent();if(!d||d.equals(b))return}b.getAscendant("table",1).removeCustomData("_cke_table_pillars");a.removeListener()}var f= CKEDITOR.tools.cssLength,i=CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks);CKEDITOR.plugins.add("tableresize",{requires:"tabletools",init:function(b){b.on("contentDom",function(){var d;b.document.getBody().on("mousemove",function(f){var f=f.data,i=f.getPageOffset().x;if(d&&d.move(i))e(f);else{var f=f.getTarget(),n;if(f.is("table")||f.getAscendant("tbody",1)){n=f.getAscendant("table",1);if(!(f=n.getCustomData("_cke_table_pillars"))){n.setCustomData("_cke_table_pillars",f=a(n));n.on("mouseout", -g);n.on("mousedown",g)}a:{n=0;for(var o=f.length;n<o;n++){var k=f[n];if(i>=k.x&&i<=k.x+k.width){i=k;break a}}i=null}if(i){!d&&(d=new h(b));d.attachTo(i)}}}})})}})}(),function(){function b(a,b,h){var g=CKEDITOR.document.getById(h),f;if(g)if(h=a.fire("uiSpace",{space:b,html:""}).html){a.on("uiSpace",function(a){a.data.space==b&&a.cancel()},null,null,1);f=g.append(CKEDITOR.dom.element.createFromHtml(d.output({id:a.id,name:a.name,langDir:a.lang.dir,langCode:a.langCode,space:b,spaceId:a.ui.spaceId(b), +g);n.on("mousedown",g)}a:{n=0;for(var o=f.length;n<o;n++){var m=f[n];if(i>=m.x&&i<=m.x+m.width){i=m;break a}}i=null}if(i){!d&&(d=new h(b));d.attachTo(i)}}}})})}})}(),function(){function b(a,b,h){var g=CKEDITOR.document.getById(h),f;if(g)if(h=a.fire("uiSpace",{space:b,html:""}).html){a.on("uiSpace",function(a){a.data.space==b&&a.cancel()},null,null,1);f=g.append(CKEDITOR.dom.element.createFromHtml(d.output({id:a.id,name:a.name,langDir:a.lang.dir,langCode:a.langCode,space:b,spaceId:a.ui.spaceId(b), content:h})));g.getCustomData("cke_hasshared")?f.hide():g.setCustomData("cke_hasshared",1);f.unselectable();f.on("mousedown",function(a){a=a.data;a.getTarget().hasAscendant("a",1)||a.preventDefault()});a.focusManager.add(f,1);a.on("focus",function(){for(var a=0,b,d=g.getChildren();b=d.getItem(a);a++)b.type==CKEDITOR.NODE_ELEMENT&&(!b.equals(f)&&b.hasClass("cke_shared"))&&b.hide();f.show()});a.on("destroy",function(){f.remove()})}}var d=CKEDITOR.addTemplate("sharedcontainer",'<div id="cke_{name}" class="cke {id} cke_reset_all cke_chrome cke_editor_{name} cke_shared cke_detached cke_{langDir} '+ CKEDITOR.env.cssClass+'" dir="{langDir}" title="'+(CKEDITOR.env.gecko?" ":"")+'" lang="{langCode}" role="presentation"><div class="cke_inner"><div id="{spaceId}" class="cke_{space}" role="presentation">{content}</div></div></div>');CKEDITOR.plugins.add("sharedspace",{afterInit:function(a){var d=a.config.sharedSpaces;if(d)for(var h in d)b(a,h,d[h])}})}(),CKEDITOR.plugins.add("sourcedialog",{init:function(b){b.addCommand("sourcedialog",new CKEDITOR.dialogCommand("sourcedialog"));CKEDITOR.dialog.add("sourcedialog", this.path+"dialogs/sourcedialog.js");b.ui.addButton&&b.ui.addButton("Sourcedialog",{label:b.lang.sourcedialog.toolbar,command:"sourcedialog",toolbar:"mode,10"})}}),CKEDITOR.config.plugins="dialogui,dialog,about,a11yhelp,basicstyles,blockquote,clipboard,panel,floatpanel,menu,contextmenu,resize,button,toolbar,elementspath,list,indent,enterkey,entities,popup,filebrowser,floatingspace,listblock,richcombo,format,htmlwriter,horizontalrule,wysiwygarea,image,fakeobjects,link,magicline,maximize,pastetext,pastefromword,removeformat,sourcearea,specialchar,stylescombo,tab,table,tabletools,undo,justify,showblocks,showborders,tableresize,sharedspace,sourcedialog", diff --git a/core/misc/ckeditor/plugins/a11yhelp/dialogs/lang/km.js b/core/misc/ckeditor/plugins/a11yhelp/dialogs/lang/km.js new file mode 100644 index 000000000000..0af2f59a3ae5 --- /dev/null +++ b/core/misc/ckeditor/plugins/a11yhelp/dialogs/lang/km.js @@ -0,0 +1,9 @@ +/* + Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. + For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang("a11yhelp","km",{title:"Accessibility Instructions",contents:"Help Contents. To close this dialog press ESC.",legend:[{name:"ទូទៅ",items:[{name:"Editor Toolbar",legend:"Press ${toolbarFocus} to navigate to the toolbar. Move to the next and previous toolbar group with TAB and SHIFT-TAB. Move to the next and previous toolbar button with RIGHT ARROW or LEFT ARROW. Press SPACE or ENTER to activate the toolbar button."},{name:"Editor Dialog",legend:"Inside a dialog, press TAB to navigate to next dialog field, press SHIFT + TAB to move to previous field, press ENTER to submit dialog, press ESC to cancel dialog. For dialogs that have multiple tab pages, press ALT + F10 to navigate to tab-list. Then move to next tab with TAB OR RIGTH ARROW. Move to previous tab with SHIFT + TAB or LEFT ARROW. Press SPACE or ENTER to select the tab page."}, +{name:"Editor Context Menu",legend:"Press ${contextMenu} or APPLICATION KEY to open context-menu. Then move to next menu option with TAB or DOWN ARROW. Move to previous option with SHIFT+TAB or UP ARROW. Press SPACE or ENTER to select the menu option. Open sub-menu of current option with SPACE or ENTER or RIGHT ARROW. Go back to parent menu item with ESC or LEFT ARROW. Close context menu with ESC."},{name:"Editor List Box",legend:"Inside a list-box, move to next list item with TAB OR DOWN ARROW. Move to previous list item with SHIFT + TAB or UP ARROW. Press SPACE or ENTER to select the list option. Press ESC to close the list-box."}, +{name:"Editor Element Path Bar",legend:"Press ${elementsPathFocus} to navigate to the elements path bar. Move to next element button with TAB or RIGHT ARROW. Move to previous button with SHIFT+TAB or LEFT ARROW. Press SPACE or ENTER to select the element in editor."}]},{name:"Commands",items:[{name:" Undo command",legend:"Press ${undo}"},{name:" Redo command",legend:"Press ${redo}"},{name:" Bold command",legend:"Press ${bold}"},{name:" Italic command",legend:"Press ${italic}"},{name:" Underline command", +legend:"Press ${underline}"},{name:" Link command",legend:"Press ${link}"},{name:" Toolbar Collapse command",legend:"Press ${toolbarCollapse}"},{name:" Access previous focus space command",legend:"Press ${accessPreviousSpace} to access the closest unreachable focus space before the caret, for example: two adjacent HR elements. Repeat the key combination to reach distant focus spaces."},{name:" Access next focus space command",legend:"Press ${accessNextSpace} to access the closest unreachable focus space after the caret, for example: two adjacent HR elements. Repeat the key combination to reach distant focus spaces."}, +{name:" Accessibility Help",legend:"Press ${a11yHelp}"}]}]}); \ No newline at end of file diff --git a/core/misc/ckeditor/plugins/a11yhelp/dialogs/lang/th.js b/core/misc/ckeditor/plugins/a11yhelp/dialogs/lang/th.js new file mode 100644 index 000000000000..afb8239b31d6 --- /dev/null +++ b/core/misc/ckeditor/plugins/a11yhelp/dialogs/lang/th.js @@ -0,0 +1,9 @@ +/* + Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. + For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang("a11yhelp","th",{title:"Accessibility Instructions",contents:"Help Contents. To close this dialog press ESC.",legend:[{name:"ทั่วไป",items:[{name:"à¹à¸–บเครื่à¸à¸‡à¸¡à¸·à¸à¸ªà¸³à¸«à¸£à¸±à¸šà¹€à¸„รื่à¸à¸‡à¸¡à¸·à¸à¸Šà¹ˆà¸§à¸¢à¸žà¸´à¸¡à¸žà¹Œ",legend:"Press ${toolbarFocus} to navigate to the toolbar. Move to the next and previous toolbar group with TAB and SHIFT-TAB. Move to the next and previous toolbar button with RIGHT ARROW or LEFT ARROW. Press SPACE or ENTER to activate the toolbar button."},{name:"Editor Dialog",legend:"Inside a dialog, press TAB to navigate to next dialog field, press SHIFT + TAB to move to previous field, press ENTER to submit dialog, press ESC to cancel dialog. For dialogs that have multiple tab pages, press ALT + F10 to navigate to tab-list. Then move to next tab with TAB OR RIGTH ARROW. Move to previous tab with SHIFT + TAB or LEFT ARROW. Press SPACE or ENTER to select the tab page."}, +{name:"Editor Context Menu",legend:"Press ${contextMenu} or APPLICATION KEY to open context-menu. Then move to next menu option with TAB or DOWN ARROW. Move to previous option with SHIFT+TAB or UP ARROW. Press SPACE or ENTER to select the menu option. Open sub-menu of current option with SPACE or ENTER or RIGHT ARROW. Go back to parent menu item with ESC or LEFT ARROW. Close context menu with ESC."},{name:"Editor List Box",legend:"Inside a list-box, move to next list item with TAB OR DOWN ARROW. Move to previous list item with SHIFT + TAB or UP ARROW. Press SPACE or ENTER to select the list option. Press ESC to close the list-box."}, +{name:"Editor Element Path Bar",legend:"Press ${elementsPathFocus} to navigate to the elements path bar. Move to next element button with TAB or RIGHT ARROW. Move to previous button with SHIFT+TAB or LEFT ARROW. Press SPACE or ENTER to select the element in editor."}]},{name:"คำสั่ง",items:[{name:"เลิà¸à¸—ำคำสั่ง",legend:"วาง ${undo}"},{name:"คำสั่งสำหรับทำซ้ำ",legend:"วาง ${redo}"},{name:"คำสั่งสำหรับตัวหนา",legend:"วาง ${bold}"},{name:"คำสั่งสำหรับตัวเà¸à¸µà¸¢à¸‡",legend:"วาง ${italic}"},{name:"คำสั่งสำหรับขีดเส้นใต้", +legend:"วาง ${underline}"},{name:"คำสั่งสำหรับลิงà¸à¹Œ",legend:"วาง ${link}"},{name:" Toolbar Collapse command",legend:"Press ${toolbarCollapse}"},{name:" Access previous focus space command",legend:"Press ${accessPreviousSpace} to access the closest unreachable focus space before the caret, for example: two adjacent HR elements. Repeat the key combination to reach distant focus spaces."},{name:" Access next focus space command",legend:"Press ${accessNextSpace} to access the closest unreachable focus space after the caret, for example: two adjacent HR elements. Repeat the key combination to reach distant focus spaces."}, +{name:" Accessibility Help",legend:"Press ${a11yHelp}"}]}]}); \ No newline at end of file diff --git a/core/misc/ckeditor/plugins/image/dialogs/image.js b/core/misc/ckeditor/plugins/image/dialogs/image.js index bb15bf6e83d1..65e770d33be2 100644 --- a/core/misc/ckeditor/plugins/image/dialogs/image.js +++ b/core/misc/ckeditor/plugins/image/dialogs/image.js @@ -33,7 +33,7 @@ label:c.lang.common.align,"default":"",items:[[c.lang.common.notSet,""],[c.lang. a==f)switch(e=(b.getAttribute("align")||"").toLowerCase(),e){case "left":case "right":b.removeAttribute("align")}}else 8==a&&b.removeStyle("float")}}]}]},{type:"vbox",height:"250px",children:[{type:"html",id:"htmlPreview",style:"width:95%;",html:"<div>"+CKEDITOR.tools.htmlEncode(c.lang.common.preview)+'<br><div id="'+m+'" class="ImagePreviewLoader" style="display:none"><div class="loading"> </div></div><div class="ImagePreviewBox"><table><tr><td><a href="javascript:void(0)" target="_blank" onclick="return false;" id="'+ A+'"><img id="'+z+'" alt="" /></a>'+(c.config.image_previewText||"Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Maecenas feugiat consequat diam. Maecenas metus. Vivamus diam purus, cursus a, commodo non, facilisis vitae, nulla. Aenean dictum lacinia tortor. Nunc iaculis, nibh non iaculis aliquam, orci felis euismod neque, sed ornare massa mauris sed velit. Nulla pretium mi et risus. Fusce mi pede, tempor id, cursus ac, ullamcorper nec, enim. Sed tortor. Curabitur molestie. Duis velit augue, condimentum at, ultrices a, luctus ut, orci. Donec pellentesque egestas eros. Integer cursus, augue in cursus faucibus, eros pede bibendum sem, in tempus tellus justo quis ligula. Etiam eget tortor. Vestibulum rutrum, est ut placerat elementum, lectus nisl aliquam velit, tempor aliquam eros nunc nonummy metus. In eros metus, gravida a, gravida sed, lobortis id, turpis. Ut ultrices, ipsum at venenatis fringilla, sem nulla lacinia tellus, eget aliquet turpis mauris non enim. Nam turpis. Suspendisse lacinia. Curabitur ac tortor ut ipsum egestas elementum. Nunc imperdiet gravida mauris.")+ "</td></tr></table></div></div>"}]}]}]},{id:"Link",requiredContent:"a[href]",label:c.lang.image.linkTab,padding:0,elements:[{id:"txtUrl",type:"text",label:c.lang.common.url,style:"width: 100%","default":"",setup:function(a,b){if(2==a){var c=b.data("cke-saved-href");c||(c=b.getAttribute("href"));this.setValue(c)}},commit:function(a,b){if(2==a&&(this.getValue()||this.isChanged())){var d=decodeURI(this.getValue());b.data("cke-saved-href",d);b.setAttribute("href",d);if(this.getValue()||!c.config.image_removeLinkByEmptyURL)this.getDialog().addLink= -!0}}},{type:"button",id:"browse",filebrowser:{action:"Browse",target:"Link:txtUrl",url:c.config.filebrowserImageBrowseLinkUrl},style:"float:right",hidden:!0,label:c.lang.common.browseServer},{id:"cmbTarget",type:"select",label:c.lang.common.target,"default":"",items:[[c.lang.common.notSet,""],[c.lang.common.targetNew,"_blank"],[c.lang.common.targetTop,"_top"],[c.lang.common.targetSelf,"_self"],[c.lang.common.targetParent,"_parent"]],setup:function(a,b){2==a&&this.setValue(b.getAttribute("target")|| +!0}}},{type:"button",id:"browse",filebrowser:{action:"Browse",target:"Link:txtUrl",url:c.config.filebrowserImageBrowseLinkUrl},style:"float:right",hidden:!0,label:c.lang.common.browseServer},{id:"cmbTarget",type:"select",requiredContent:"a[target]",label:c.lang.common.target,"default":"",items:[[c.lang.common.notSet,""],[c.lang.common.targetNew,"_blank"],[c.lang.common.targetTop,"_top"],[c.lang.common.targetSelf,"_self"],[c.lang.common.targetParent,"_parent"]],setup:function(a,b){2==a&&this.setValue(b.getAttribute("target")|| "")},commit:function(a,b){2==a&&(this.getValue()||this.isChanged())&&b.setAttribute("target",this.getValue())}}]},{id:"Upload",hidden:!0,filebrowser:"uploadButton",label:c.lang.image.upload,elements:[{type:"file",id:"upload",label:c.lang.image.btnUpload,style:"height:40px",size:38},{type:"fileButton",id:"uploadButton",filebrowser:"info:txtUrl",label:c.lang.image.btnUpload,"for":["Upload","upload"]}]},{id:"advanced",label:c.lang.common.advancedTab,elements:[{type:"hbox",widths:["50%","25%","25%"], children:[{type:"text",id:"linkId",requiredContent:"img[id]",label:c.lang.common.id,setup:function(a,b){a==f&&this.setValue(b.getAttribute("id"))},commit:function(a,b){a==f&&(this.getValue()||this.isChanged())&&b.setAttribute("id",this.getValue())}},{id:"cmbLangDir",type:"select",requiredContent:"img[dir]",style:"width : 100px;",label:c.lang.common.langDir,"default":"",items:[[c.lang.common.notSet,""],[c.lang.common.langDirLtr,"ltr"],[c.lang.common.langDirRtl,"rtl"]],setup:function(a,b){a==f&&this.setValue(b.getAttribute("dir"))}, commit:function(a,b){a==f&&(this.getValue()||this.isChanged())&&b.setAttribute("dir",this.getValue())}},{type:"text",id:"txtLangCode",requiredContent:"img[lang]",label:c.lang.common.langCode,"default":"",setup:function(a,b){a==f&&this.setValue(b.getAttribute("lang"))},commit:function(a,b){a==f&&(this.getValue()||this.isChanged())&&b.setAttribute("lang",this.getValue())}}]},{type:"text",id:"txtGenLongDescr",requiredContent:"img[longdesc]",label:c.lang.common.longDescr,setup:function(a,b){a==f&&this.setValue(b.getAttribute("longDesc"))}, diff --git a/core/misc/ckeditor/plugins/sourcedialog/dialogs/sourcedialog.js b/core/misc/ckeditor/plugins/sourcedialog/dialogs/sourcedialog.js new file mode 100644 index 000000000000..5f46ee239cd0 --- /dev/null +++ b/core/misc/ckeditor/plugins/sourcedialog/dialogs/sourcedialog.js @@ -0,0 +1,6 @@ +/* + Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. + For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.dialog.add("sourcedialog",function(a){var b=CKEDITOR.document.getWindow().getViewPaneSize(),d=Math.min(b.width-70,800),b=b.height/1.5,c;return{title:a.lang.sourcedialog.title,minWidth:100,minHeight:100,onShow:function(){this.setValueOf("main","data",c=a.getData())},onOk:function(){function b(e){var c=this;a.setData(e,function(){c.hide();var b=a.createRange();b.moveToElementEditStart(a.editable());b.select()})}return function(){var a=this.getValueOf("main","data").replace(/\r/g,"");if(a=== +c)return!0;CKEDITOR.env.ie?CKEDITOR.tools.setTimeout(b,0,this,a):b.call(this,a);return!1}}(),contents:[{id:"main",label:a.lang.sourcedialog.title,elements:[{type:"textarea",type:"textarea",id:"data",dir:"ltr",inputStyle:"cursor:auto;width:"+d+"px;height:"+b+"px;tab-size:4;text-align:left;","class":"cke_source"}]}]}}); \ No newline at end of file diff --git a/core/misc/ckeditor/plugins/specialchar/dialogs/lang/pl.js b/core/misc/ckeditor/plugins/specialchar/dialogs/lang/pl.js new file mode 100644 index 000000000000..5cdc41d706a4 --- /dev/null +++ b/core/misc/ckeditor/plugins/specialchar/dialogs/lang/pl.js @@ -0,0 +1,12 @@ +/* + Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. + For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang("specialchar","pl",{euro:"Znak euro",lsquo:"Cudzysłów pojedyÅ„czy otwierajÄ…cy",rsquo:"Cudzysłów pojedyÅ„czy zamykajÄ…cy",ldquo:"Cudzysłów apostrofowy otwierajÄ…cy",rdquo:"Cudzysłów apostrofowy zamykajÄ…cy",ndash:"Półpauza",mdash:"Pauza",iexcl:"Odwrócony wykrzyknik",cent:"Znak centa",pound:"Znak funta",curren:"Znak waluty",yen:"Znak jena",brvbar:"Przerwana pionowa kreska",sect:"Paragraf",uml:"Direza",copy:"Znak praw autorskich",ordf:"Wskaźnik rodzaju żeÅ„skiego liczebnika porzÄ…dkowego", +laquo:"Lewy cudzysłów kÄ…towy",not:"Znak negacji",reg:"Zastrzeżony znak towarowy",macr:"NadkreÅ›lnik",deg:"Znak stopni",sup2:"PotÄ™ga druga",sup3:"PotÄ™ga trzecia",acute:"Akcent ostry",micro:"Znak mikro",para:"Znacznik akapitu",middot:"Kropka Å›rodkowa",cedil:"Cedylla",sup1:"Pierwsza potÄ™ga",ordm:"Wskaźnik rodzaju mÄ™skiego liczebnika porzÄ…dkowego",raquo:"Prawy cudzysłów kÄ…towy",frac14:"UÅ‚amek zwykÅ‚y jedna czwarta",frac12:"UÅ‚amek zwykÅ‚y jedna druga",frac34:"UÅ‚amek zwykÅ‚y trzy czwarte",iquest:"Odwrócony znak zapytania", +Agrave:"Wielka litera A z akcentem ciężkim",Aacute:"Wielka litera A z akcentem ostrym",Acirc:"Wielka litera A z akcentem przeciÄ…gÅ‚ym",Atilde:"Wielka litera A z tyldÄ…",Auml:"Wielka litera A z direzÄ…",Aring:"Wielka litera A z kółkiem",AElig:"Wielka ligatura Æ",Ccedil:"Wielka litera C z cedyllÄ…",Egrave:"Wielka litera E z akcentem ciężkim",Eacute:"Wielka litera E z akcentem ostrym",Ecirc:"Wielka litera E z akcentem przeciÄ…gÅ‚ym",Euml:"Wielka litera E z direzÄ…",Igrave:"Wielka litera I z akcentem ciężkim", +Iacute:"Wielka litera I z akcentem ostrym",Icirc:"Wielka litera I z akcentem przeciÄ…gÅ‚ym",Iuml:"Wielka litera I z direzÄ…",ETH:"Wielka litera Eth",Ntilde:"Wielka litera N z tyldÄ…",Ograve:"Wielka litera O z akcentem ciężkim",Oacute:"Wielka litera O z akcentem ostrym",Ocirc:"Wielka litera O z akcentem przeciÄ…gÅ‚ym",Otilde:"Wielka litera O z tyldÄ…",Ouml:"Wielka litera O z direzÄ…",times:"Znak mnożenia wektorowego",Oslash:"Wielka litera O z przekreÅ›leniem",Ugrave:"Wielka litera U z akcentem ciężkim",Uacute:"Wielka litera U z akcentem ostrym", +Ucirc:"Wielka litera U z akcentem przeciÄ…gÅ‚ym",Uuml:"Wielka litera U z direzÄ…",Yacute:"Wielka litera Y z akcentem ostrym",THORN:"Wielka litera Thorn",szlig:"MaÅ‚a litera ostre s (eszet)",agrave:"MaÅ‚a litera a z akcentem ciężkim",aacute:"MaÅ‚a litera a z akcentem ostrym",acirc:"MaÅ‚a litera a z akcentem przeciÄ…gÅ‚ym",atilde:"MaÅ‚a litera a z tyldÄ…",auml:"MaÅ‚a litera a z direzÄ…",aring:"MaÅ‚a litera a z kółkiem",aelig:"MaÅ‚a ligatura æ",ccedil:"MaÅ‚a litera c z cedyllÄ…",egrave:"MaÅ‚a litera e z akcentem ciężkim", +eacute:"MaÅ‚a litera e z akcentem ostrym",ecirc:"MaÅ‚a litera e z akcentem przeciÄ…gÅ‚ym",euml:"MaÅ‚a litera e z direzÄ…",igrave:"MaÅ‚a litera i z akcentem ciężkim",iacute:"MaÅ‚a litera i z akcentem ostrym",icirc:"MaÅ‚a litera i z akcentem przeciÄ…gÅ‚ym",iuml:"MaÅ‚a litera i z direzÄ…",eth:"MaÅ‚a litera eth",ntilde:"MaÅ‚a litera n z tyldÄ…",ograve:"MaÅ‚a litera o z akcentem ciężkim",oacute:"MaÅ‚a litera o z akcentem ostrym",ocirc:"MaÅ‚a litera o z akcentem przeciÄ…gÅ‚ym",otilde:"MaÅ‚a litera o z tyldÄ…",ouml:"MaÅ‚a litera o z direzÄ…", +divide:"Anglosaski znak dzielenia",oslash:"MaÅ‚a litera o z przekreÅ›leniem",ugrave:"MaÅ‚a litera u z akcentem ciężkim",uacute:"MaÅ‚a litera u z akcentem ostrym",ucirc:"MaÅ‚a litera u z akcentem przeciÄ…gÅ‚ym",uuml:"MaÅ‚a litera u z direzÄ…",yacute:"MaÅ‚a litera y z akcentem ostrym",thorn:"MaÅ‚a litera thorn",yuml:"MaÅ‚a litera y z direzÄ…",OElig:"Wielka ligatura OE",oelig:"MaÅ‚a ligatura oe",372:"Wielka litera W z akcentem przeciÄ…gÅ‚ym",374:"Wielka litera Y z akcentem przeciÄ…gÅ‚ym",373:"MaÅ‚a litera w z akcentem przeciÄ…gÅ‚ym", +375:"MaÅ‚a litera y z akcentem przeciÄ…gÅ‚ym",sbquo:"PojedyÅ„czy apostrof dolny",8219:"PojedyÅ„czy apostrof górny",bdquo:"Podwójny apostrof dolny",hellip:"Wielokropek",trade:"Znak towarowy",9658:"Czarny wskaźnik wskazujÄ…cy w prawo",bull:"Punkt",rarr:"StrzaÅ‚ka w prawo",rArr:"Podwójna strzaÅ‚ka w prawo",hArr:"Podwójna strzaÅ‚ka w lewo",diams:"Czarny znak karo",asymp:"Znak prawie równe"}); \ No newline at end of file diff --git a/core/misc/ckeditor/plugins/specialchar/dialogs/lang/th.js b/core/misc/ckeditor/plugins/specialchar/dialogs/lang/th.js new file mode 100644 index 000000000000..3754ee922cfe --- /dev/null +++ b/core/misc/ckeditor/plugins/specialchar/dialogs/lang/th.js @@ -0,0 +1,13 @@ +/* + Copyright (c) 2003-2013, CKSource - Frederico Knabben. All rights reserved. + For licensing, see LICENSE.html or http://ckeditor.com/license +*/ +CKEDITOR.plugins.setLang("specialchar","th",{euro:"Euro sign",lsquo:"Left single quotation mark",rsquo:"Right single quotation mark",ldquo:"Left double quotation mark",rdquo:"Right double quotation mark",ndash:"En dash",mdash:"Em dash",iexcl:"Inverted exclamation mark",cent:"Cent sign",pound:"Pound sign",curren:"สัà¸à¸¥à¸±à¸à¸©à¸“์สà¸à¸¸à¸¥à¹€à¸‡à¸´à¸™",yen:"สัà¸à¸¥à¸±à¸à¸©à¸“์เงินเยน",brvbar:"Broken bar",sect:"Section sign",uml:"Diaeresis",copy:"Copyright sign",ordf:"Feminine ordinal indicator",laquo:"Left-pointing double angle quotation mark", +not:"Not sign",reg:"Registered sign",macr:"Macron",deg:"Degree sign",sup2:"Superscript two",sup3:"Superscript three",acute:"Acute accent",micro:"Micro sign",para:"Pilcrow sign",middot:"Middle dot",cedil:"Cedilla",sup1:"Superscript one",ordm:"Masculine ordinal indicator",raquo:"Right-pointing double angle quotation mark",frac14:"Vulgar fraction one quarter",frac12:"Vulgar fraction one half",frac34:"Vulgar fraction three quarters",iquest:"Inverted question mark",Agrave:"Latin capital letter A with grave accent", +Aacute:"Latin capital letter A with acute accent",Acirc:"Latin capital letter A with circumflex",Atilde:"Latin capital letter A with tilde",Auml:"Latin capital letter A with diaeresis",Aring:"Latin capital letter A with ring above",AElig:"Latin Capital letter Æ",Ccedil:"Latin capital letter C with cedilla",Egrave:"Latin capital letter E with grave accent",Eacute:"Latin capital letter E with acute accent",Ecirc:"Latin capital letter E with circumflex",Euml:"Latin capital letter E with diaeresis",Igrave:"Latin capital letter I with grave accent", +Iacute:"Latin capital letter I with acute accent",Icirc:"Latin capital letter I with circumflex",Iuml:"Latin capital letter I with diaeresis",ETH:"Latin capital letter Eth",Ntilde:"Latin capital letter N with tilde",Ograve:"Latin capital letter O with grave accent",Oacute:"Latin capital letter O with acute accent",Ocirc:"Latin capital letter O with circumflex",Otilde:"Latin capital letter O with tilde",Ouml:"Latin capital letter O with diaeresis",times:"Multiplication sign",Oslash:"Latin capital letter O with stroke", +Ugrave:"Latin capital letter U with grave accent",Uacute:"Latin capital letter U with acute accent",Ucirc:"Latin capital letter U with circumflex",Uuml:"Latin capital letter U with diaeresis",Yacute:"Latin capital letter Y with acute accent",THORN:"Latin capital letter Thorn",szlig:"Latin small letter sharp s",agrave:"Latin small letter a with grave accent",aacute:"Latin small letter a with acute accent",acirc:"Latin small letter a with circumflex",atilde:"Latin small letter a with tilde",auml:"Latin small letter a with diaeresis", +aring:"Latin small letter a with ring above",aelig:"Latin small letter æ",ccedil:"Latin small letter c with cedilla",egrave:"Latin small letter e with grave accent",eacute:"Latin small letter e with acute accent",ecirc:"Latin small letter e with circumflex",euml:"Latin small letter e with diaeresis",igrave:"Latin small letter i with grave accent",iacute:"Latin small letter i with acute accent",icirc:"Latin small letter i with circumflex",iuml:"Latin small letter i with diaeresis",eth:"Latin small letter eth", +ntilde:"Latin small letter n with tilde",ograve:"Latin small letter o with grave accent",oacute:"Latin small letter o with acute accent",ocirc:"Latin small letter o with circumflex",otilde:"Latin small letter o with tilde",ouml:"Latin small letter o with diaeresis",divide:"Division sign",oslash:"Latin small letter o with stroke",ugrave:"Latin small letter u with grave accent",uacute:"Latin small letter u with acute accent",ucirc:"Latin small letter u with circumflex",uuml:"Latin small letter u with diaeresis", +yacute:"Latin small letter y with acute accent",thorn:"Latin small letter thorn",yuml:"Latin small letter y with diaeresis",OElig:"Latin capital ligature OE",oelig:"Latin small ligature oe",372:"Latin capital letter W with circumflex",374:"Latin capital letter Y with circumflex",373:"Latin small letter w with circumflex",375:"Latin small letter y with circumflex",sbquo:"Single low-9 quotation mark",8219:"Single high-reversed-9 quotation mark",bdquo:"Double low-9 quotation mark",hellip:"Horizontal ellipsis", +trade:"Trade mark sign",9658:"Black right-pointing pointer",bull:"สัà¸à¸¥à¸±à¸à¸©à¸“์หัวข้à¸à¸¢à¹ˆà¸à¸¢",rarr:"Rightwards arrow",rArr:"Rightwards double arrow",hArr:"Left right double arrow",diams:"Black diamond suit",asymp:"Almost equal to"}); \ No newline at end of file diff --git a/core/modules/ckeditor/ckeditor.module b/core/modules/ckeditor/ckeditor.module index 2b1358f8dc3b..506585daab9a 100644 --- a/core/modules/ckeditor/ckeditor.module +++ b/core/modules/ckeditor/ckeditor.module @@ -63,7 +63,7 @@ function ckeditor_library_info() { ); $libraries['ckeditor'] = array( 'title' => 'Loads the main CKEditor library.', - 'version' => '4.0.1', + 'version' => '4.1', 'js' => array( 'core/misc/ckeditor/ckeditor.js' => array(), ), -- GitLab