Laravel version update
Laravel version update
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
/*
|
||||
Copyright (c) 2003-2015, CKSource - Frederico Knabben. All rights reserved.
|
||||
Copyright (c) 2003-2017, CKSource - Frederico Knabben. All rights reserved.
|
||||
For licensing, see LICENSE.md or http://ckeditor.com/license
|
||||
*/
|
||||
(function(){function y(a){return CKEDITOR.env.ie?a.$.clientWidth:parseInt(a.getComputedStyle("width"),10)}function r(a,h){var b=a.getComputedStyle("border-"+h+"-width"),d={thin:"0px",medium:"1px",thick:"2px"};0>b.indexOf("px")&&(b=b in d&&"none"!=a.getComputedStyle("border-style")?d[b]:0);return parseInt(b,10)}function A(a){var h=[],b=-1,d="rtl"==a.getComputedStyle("direction"),f;f=a.$.rows;for(var m=0,g,c,e,k=0,t=f.length;k<t;k++)e=f[k],g=e.cells.length,g>m&&(m=g,c=e);f=c;m=new CKEDITOR.dom.element(a.$.tBodies[0]);
|
||||
g=m.getDocumentPosition();c=0;for(e=f.cells.length;c<e;c++){var k=new CKEDITOR.dom.element(f.cells[c]),t=f.cells[c+1]&&new CKEDITOR.dom.element(f.cells[c+1]),b=b+(k.$.colSpan||1),n,l,p=k.getDocumentPosition().x;d?l=p+r(k,"left"):n=p+k.$.offsetWidth-r(k,"right");t?(p=t.getDocumentPosition().x,d?n=p+t.$.offsetWidth-r(t,"right"):l=p+r(t,"left")):(p=a.getDocumentPosition().x,d?n=p:l=p+a.$.offsetWidth);k=Math.max(l-n,3);h.push({table:a,index:b,x:n,y:g.y,width:k,height:m.$.offsetHeight,rtl:d})}return h}
|
||||
function z(a){(a.data||a).preventDefault()}function E(a){function h(){k=0;e.setOpacity(0);n&&b();var a=g.table;setTimeout(function(){a.removeCustomData("_cke_table_pillars")},0);c.removeListener("dragstart",z)}function b(){for(var w=g.rtl,f=w?p.length:B.length,b=0,c=0;c<f;c++){var e=B[c],d=p[c],k=g.table;CKEDITOR.tools.setTimeout(function(c,e,d,g,h,m){c&&c.setStyle("width",l(Math.max(e+m,1)));d&&d.setStyle("width",l(Math.max(g-m,1)));h&&k.setStyle("width",l(h+m*(w?-1:1)));++b==f&&a.fire("saveSnapshot")},
|
||||
0,this,[e,e&&y(e),d,d&&y(d),(!e||!d)&&y(k)+r(k,"left")+r(k,"right"),n])}}function d(w){z(w);a.fire("saveSnapshot");w=g.index;for(var d=CKEDITOR.tools.buildTableMap(g.table),b=[],h=[],l=Number.MAX_VALUE,r=l,x=g.rtl,v=0,A=d.length;v<A;v++){var q=d[v],u=q[w+(x?1:0)],q=q[w+(x?0:1)],u=u&&new CKEDITOR.dom.element(u),q=q&&new CKEDITOR.dom.element(q);u&&q&&u.equals(q)||(u&&(l=Math.min(l,y(u))),q&&(r=Math.min(r,y(q))),b.push(u),h.push(q))}B=b;p=h;C=g.x-l;D=g.x+r;e.setOpacity(.5);t=parseInt(e.getStyle("left"),
|
||||
10);n=0;k=1;e.on("mousemove",m);c.on("dragstart",z);c.on("mouseup",f,this)}function f(a){a.removeListener();h()}function m(a){v(a.data.getPageOffset().x)}var g,c,e,k,t,n,B,p,C,D;c=a.document;e=CKEDITOR.dom.element.createFromHtml('\x3cdiv data-cke-temp\x3d1 contenteditable\x3dfalse unselectable\x3don style\x3d"position:absolute;cursor:col-resize;filter:alpha(opacity\x3d0);opacity:0;padding:0;background-color:#004;background-image:none;border:0px none;z-index:10"\x3e\x3c/div\x3e',c);a.on("destroy",
|
||||
function(){e.remove()});x||c.getDocumentElement().append(e);this.attachTo=function(a){k||(x&&(c.getBody().append(e),n=0),g=a,e.setStyles({width:l(a.width),height:l(a.height),left:l(a.x),top:l(a.y)}),x&&e.setOpacity(.25),e.on("mousedown",d,this),c.getBody().setStyle("cursor","col-resize"),e.show())};var v=this.move=function(a){if(!g)return 0;if(!k&&(a<g.x||a>g.x+g.width))return g=null,k=n=0,c.removeListener("mouseup",f),e.removeListener("mousedown",d),e.removeListener("mousemove",m),c.getBody().setStyle("cursor",
|
||||
"auto"),x?e.remove():e.hide(),0;a-=Math.round(e.$.offsetWidth/2);if(k){if(a==C||a==D)return 1;a=Math.max(a,C);a=Math.min(a,D);n=a-t}e.setStyle("left",l(a));return 1}}function v(a){var h=a.data.getTarget();if("mouseout"==a.name){if(!h.is("table"))return;for(var b=new CKEDITOR.dom.element(a.data.$.relatedTarget||a.data.$.toElement);b&&b.$&&!b.equals(h)&&!b.is("body");)b=b.getParent();if(!b||b.equals(h))return}h.getAscendant("table",1).removeCustomData("_cke_table_pillars");a.removeListener()}var l=
|
||||
CKEDITOR.tools.cssLength,x=CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks);CKEDITOR.plugins.add("tableresize",{requires:"tabletools",init:function(a){a.on("contentDom",function(){var h,b=a.editable();b.attachListener(b.isInline()?b:a.document,"mousemove",function(d){d=d.data;var f=d.getTarget();if(f.type==CKEDITOR.NODE_ELEMENT){var b=d.getPageOffset().x;if(h&&h.move(b))z(d);else if(f.is("table")||f.getAscendant("tbody",1))if(f=f.getAscendant("table",1),a.editable().contains(f)){(d=
|
||||
f.getCustomData("_cke_table_pillars"))||(f.setCustomData("_cke_table_pillars",d=A(f)),f.on("mouseout",v),f.on("mousedown",v));a:{for(var f=0,g=d.length;f<g;f++){var c=d[f];if(b>=c.x&&b<=c.x+c.width){b=c;break a}}b=null}b&&(!h&&(h=new E(a)),h.attachTo(b))}}})})}})})();
|
||||
(function(){function y(a){return CKEDITOR.env.ie?a.$.clientWidth:parseInt(a.getComputedStyle("width"),10)}function r(a,c){var b=a.getComputedStyle("border-"+c+"-width"),h={thin:"0px",medium:"1px",thick:"2px"};0>b.indexOf("px")&&(b=b in h&&"none"!=a.getComputedStyle("border-style")?h[b]:0);return parseInt(b,10)}function F(a){a=a.$.rows;for(var c=0,b,h,e,k=0,g=a.length;k<g;k++)e=a[k],b=e.cells.length,b>c&&(c=b,h=e);return h}function G(a){function c(a){a&&(a=new CKEDITOR.dom.element(a),e+=a.$.offsetHeight,
|
||||
k||(k=a.getDocumentPosition()))}var b=[],h=-1,e=0,k=null,g="rtl"==a.getComputedStyle("direction"),f=F(a);c(a.$.tHead);c(a.$.tBodies[0]);c(a.$.tFoot);if(f)for(var d=0,n=f.cells.length;d<n;d++){var t=new CKEDITOR.dom.element(f.cells[d]),l=f.cells[d+1]&&new CKEDITOR.dom.element(f.cells[d+1]),h=h+(t.$.colSpan||1),m,u,p=t.getDocumentPosition().x;g?u=p+r(t,"left"):m=p+t.$.offsetWidth-r(t,"right");l?(p=l.getDocumentPosition().x,g?m=p+l.$.offsetWidth-r(l,"right"):u=p+r(l,"left")):(p=a.getDocumentPosition().x,
|
||||
g?m=p:u=p+a.$.offsetWidth);t=Math.max(u-m,3);b.push({table:a,index:h,x:m,y:k.y,width:t,height:e,rtl:g})}return b}function z(a){(a.data||a).preventDefault()}function H(a){function c(){x=0;d.setOpacity(0);l&&b();var a=g.table;setTimeout(function(){a.removeCustomData("_cke_table_pillars")},0);f.removeListener("dragstart",z)}function b(){for(var E=g.rtl,b=E?p.length:u.length,e=0,d=0;d<b;d++){var h=u[d],c=p[d],f=g.table;CKEDITOR.tools.setTimeout(function(d,h,c,g,k,l){d&&d.setStyle("width",n(Math.max(h+
|
||||
l,1)));c&&c.setStyle("width",n(Math.max(g-l,1)));k&&f.setStyle("width",n(k+l*(E?-1:1)));++e==b&&a.fire("saveSnapshot")},0,this,[h,h&&y(h),c,c&&y(c),(!h||!c)&&y(f)+r(f,"left")+r(f,"right"),l])}}function h(b){z(b);a.fire("saveSnapshot");b=g.index;for(var c=CKEDITOR.tools.buildTableMap(g.table),h=[],n=[],m=Number.MAX_VALUE,r=m,w=g.rtl,C=0,A=c.length;C<A;C++){var q=c[C],v=q[b+(w?1:0)],q=q[b+(w?0:1)],v=v&&new CKEDITOR.dom.element(v),q=q&&new CKEDITOR.dom.element(q);v&&q&&v.equals(q)||(v&&(m=Math.min(m,
|
||||
y(v))),q&&(r=Math.min(r,y(q))),h.push(v),n.push(q))}u=h;p=n;B=g.x-m;D=g.x+r;d.setOpacity(.5);t=parseInt(d.getStyle("left"),10);l=0;x=1;d.on("mousemove",k);f.on("dragstart",z);f.on("mouseup",e,this)}function e(a){a.removeListener();c()}function k(a){m(a.data.getPageOffset().x)}var g,f,d,x,t,l,m,u,p,B,D;f=a.document;d=CKEDITOR.dom.element.createFromHtml('\x3cdiv data-cke-temp\x3d1 contenteditable\x3dfalse unselectable\x3don style\x3d"position:absolute;cursor:col-resize;filter:alpha(opacity\x3d0);opacity:0;padding:0;background-color:#004;background-image:none;border:0px none;z-index:10"\x3e\x3c/div\x3e',
|
||||
f);a.on("destroy",function(){d.remove()});w||f.getDocumentElement().append(d);this.attachTo=function(a){x||(w&&(f.getBody().append(d),l=0),g=a,d.setStyles({width:n(a.width),height:n(a.height),left:n(a.x),top:n(a.y)}),w&&d.setOpacity(.25),d.on("mousedown",h,this),f.getBody().setStyle("cursor","col-resize"),d.show())};m=this.move=function(a){if(!g)return 0;if(!x&&(a<g.x||a>g.x+g.width))return g=null,x=l=0,f.removeListener("mouseup",e),d.removeListener("mousedown",h),d.removeListener("mousemove",k),
|
||||
f.getBody().setStyle("cursor","auto"),w?d.remove():d.hide(),0;a-=Math.round(d.$.offsetWidth/2);if(x){if(a==B||a==D)return 1;a=Math.max(a,B);a=Math.min(a,D);l=a-t}d.setStyle("left",n(a));return 1}}function A(a){var c=a.data.getTarget();if("mouseout"==a.name){if(!c.is("table"))return;for(var b=new CKEDITOR.dom.element(a.data.$.relatedTarget||a.data.$.toElement);b&&b.$&&!b.equals(c)&&!b.is("body");)b=b.getParent();if(!b||b.equals(c))return}c.getAscendant("table",1).removeCustomData("_cke_table_pillars");
|
||||
a.removeListener()}var n=CKEDITOR.tools.cssLength,w=CKEDITOR.env.ie&&(CKEDITOR.env.ie7Compat||CKEDITOR.env.quirks);CKEDITOR.plugins.add("tableresize",{requires:"tabletools",init:function(a){a.on("contentDom",function(){var c,b=a.editable();b.attachListener(b.isInline()?b:a.document,"mousemove",function(b){b=b.data;var e=b.getTarget();if(e.type==CKEDITOR.NODE_ELEMENT){var k=b.getPageOffset().x;if(c&&c.move(k))z(b);else if(e.is("table")||e.getAscendant({thead:1,tbody:1,tfoot:1},1))if(e=e.getAscendant("table",
|
||||
1),a.editable().contains(e)){(b=e.getCustomData("_cke_table_pillars"))||(e.setCustomData("_cke_table_pillars",b=G(e)),e.on("mouseout",A),e.on("mousedown",A));a:{for(var e=0,g=b.length;e<g;e++){var f=b[e];if(k>=f.x&&k<=f.x+f.width){k=f;break a}}k=null}k&&(!c&&(c=new H(a)),c.attachTo(k))}}})})}})})();
|
Reference in New Issue
Block a user