diff --git a/core/assets/vendor/ckeditor/ckeditor.js b/core/assets/vendor/ckeditor/ckeditor.js index 89c2a80..1feb349 100644 --- a/core/assets/vendor/ckeditor/ckeditor.js +++ b/core/assets/vendor/ckeditor/ckeditor.js @@ -661,7 +661,7 @@ this._.filebrowserSe;c=e.getDialog();if(e=e.filebrowser.target||null){e=e.split( a.data.name,b,c.elements);if(c.hidden&&c.filebrowser)c.hidden=!h(b,c.id,c.filebrowser)}})}(),function(){function b(a){var b=a.config,h=a.fire("uiSpace",{space:"top",html:""}).html,i=function(){function f(a,b,e){g.setStyle(b,c(e));g.setStyle("position",a)}function h(a){var b=j.getDocumentPosition();switch(a){case "top":f("absolute","top",b.y-u-w);break;case "pin":f("fixed","top",r);break;case "bottom":f("absolute","top",b.y+(p.height||p.bottom-p.top)+w)}k=a}var k,j,l,p,s,u,t,A=b.floatSpaceDockedOffsetX|| 0,w=b.floatSpaceDockedOffsetY||0,y=b.floatSpacePinnedOffsetX||0,r=b.floatSpacePinnedOffsetY||0;return function(b){if(j=a.editable()){b&&b.name=="focus"&&g.show();g.removeStyle("left");g.removeStyle("right");l=g.getClientRect();p=j.getClientRect();s=d.getViewPaneSize();u=l.height;t="pageXOffset"in d.$?d.$.pageXOffset:CKEDITOR.document.$.documentElement.scrollLeft;if(k){u+w<=p.top?h("top"):u+w>s.height-p.bottom?h("pin"):h("bottom");var b=s.width/2,b=p.left>0&&p.rightl.width?a.config.contentsLangDirection== "rtl"?"right":"left":b-p.left>p.right-b?"left":"right",e;if(l.width>s.width){b="left";e=0}else{e=b=="left"?p.left>0?p.left:0:p.rights.width){b=b=="left"?"right":"left";e=0}}g.setStyle(b,c((k=="pin"?y:A)+e+(k=="pin"?0:b=="left"?t:-t)))}else{k="pin";h("pin");i(b)}}}}();if(h){var g=CKEDITOR.document.getBody().append(CKEDITOR.dom.element.createFromHtml(f.output({content:h,id:a.id,langDir:a.lang.dir,langCode:a.langCode,name:a.name,style:"display:none;z-index:"+(b.baseFloatZIndex- -1),topId:a.ui.spaceId("top"),voiceLabel:a.lang.editorPanel+", "+a.name}))),k=CKEDITOR.tools.eventsBuffer(500,i),l=CKEDITOR.tools.eventsBuffer(100,i);g.unselectable();g.on("mousedown",function(a){a=a.data;a.getTarget().hasAscendant("a",1)||a.preventDefault()});a.on("focus",function(b){i(b);a.on("change",k.input);d.on("scroll",l.input);d.on("resize",l.input)});a.on("blur",function(){g.hide();a.removeListener("change",k.input);d.removeListener("scroll",l.input);d.removeListener("resize",l.input)});a.on("destroy", +1),topId:a.ui.spaceId("top"),voiceLabel:a.lang.editorPanel}))),k=CKEDITOR.tools.eventsBuffer(500,i),l=CKEDITOR.tools.eventsBuffer(100,i);g.unselectable();g.on("mousedown",function(a){a=a.data;a.getTarget().hasAscendant("a",1)||a.preventDefault()});a.on("focus",function(b){i(b);a.on("change",k.input);d.on("scroll",l.input);d.on("resize",l.input)});a.on("blur",function(){g.hide();a.removeListener("change",k.input);d.removeListener("scroll",l.input);d.removeListener("resize",l.input)});a.on("destroy", function(){d.removeListener("scroll",l.input);d.removeListener("resize",l.input);g.clearCustomData();g.remove()});a.focusManager.hasFocus&&g.show();a.focusManager.add(g,1)}}var f=CKEDITOR.addTemplate("floatcontainer",'
{voiceLabel}
'), d=CKEDITOR.document.getWindow(),c=CKEDITOR.tools.cssLength;CKEDITOR.plugins.add("floatingspace",{init:function(a){a.on("loaded",function(){b(this)},null,null,20)}})}(),CKEDITOR.plugins.add("listblock",{requires:"panel",onLoad:function(){var b=CKEDITOR.addTemplate("panel-list",''),f=CKEDITOR.addTemplate("panel-list-item",''), d=CKEDITOR.addTemplate("panel-list-group",'

{label}

'),c=/\'/g;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||{},c=b.attributes||(b.attributes={});(this.multiSelect=!!b.multiSelect)&&(c["aria-multiselectable"]=true);!c.role&&(c.role="listbox");