1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-07-21 22:29:41 +02:00
documize/gui/public/tinymce/plugins/table/plugin.min.js

1 line
125 KiB
JavaScript
Raw Normal View History

2018-01-19 11:36:38 +00:00
!function(){"use strict";function n(t,e,r,o){if("TD"===e.tagName||"TH"===e.tagName)t.setStyle(e,r,o);else if(e.children)for(var i=0;i<e.children.length;i++)n(t,e.children[i],r,o)}function t(n,t,e){function r(n,t,e){e&&i.setAttrib(n,t,e)}var o,i=n.dom;Ia.updateStyleField(n,e),o=e.control.rootControl.toJSON(),n.undoManager.transact(function(){Na.each(t,function(e){r(e,"scope",o.scope),r(e,"style",o.style),r(e,"class",o["class"]),function(n,t,e){e&&i.setStyle(n,t,e)}(e,"height",xa.addSizeSuffix(o.height)),o.type!==e.parentNode.nodeName.toLowerCase()&&_a(n.dom,e,o.type),1===t.length&&Ba.unApplyAlign(n,e),o.align&&Ba.applyAlign(n,e,o.align)}),n.focus()})}var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),r=function(n){return function(){return n}},o={noop:function(){},noarg:function(n){return function(){return n()}},compose:function(n,t){return function(){return n(t.apply(null,arguments))}},constant:r,identity:function(n){return n},tripleEquals:function(n,t){return n===t},curry:function(n){for(var t=new Array(arguments.length-1),e=1;e<arguments.length;e++)t[e-1]=arguments[e];return function(){for(var e=new Array(arguments.length),r=0;r<e.length;r++)e[r]=arguments[r];var o=t.concat(e);return n.apply(null,o)}},not:function(n){return function(){return!n.apply(null,arguments)}},die:function(n){return function(){throw new Error(n)}},apply:function(n){return n()},call:function(n){n()},never:r(!1),always:r(!0)},i=o.never,u=o.always,a=function(){return c},c=function(){var n=function(n){return n.isNone()},t=function(n){return n()},e=function(n){return n},r={fold:function(n,t){return n()},is:i,isSome:i,isNone:u,getOr:e,getOrThunk:t,getOrDie:function(n){throw new Error(n||"error: getOrDie called on none.")},or:e,orThunk:t,map:a,ap:a,each:function(){},bind:a,flatten:a,exists:i,forall:u,filter:a,equals:n,equals_:n,toArray:function(){return[]},toString:o.constant("none()")};return Object.freeze&&Object.freeze(r),r}(),l=function(n){var t=function(){return n},e=function(){return o},r=function(t){return t(n)},o={fold:function(t,e){return e(n)},is:function(t){return n===t},isSome:u,isNone:i,getOr:t,getOrThunk:t,getOrDie:t,or:e,orThunk:e,map:function(t){return l(t(n))},ap:function(t){return t.fold(a,function(t){return l(t(n))})},each:function(t){t(n)},bind:r,flatten:t,exists:r,forall:r,filter:function(t){return t(n)?o:c},equals:function(t){return t.is(n)},equals_:function(t,e){return t.fold(i,function(t){return e(n,t)})},toArray:function(){return[n]},toString:function(){return"some("+n+")"}};return o},f={some:l,none:a,from:function(n){return null===n||n===undefined?c:l(n)}},s=function(){var n=Array.prototype.indexOf;return n===undefined?function(n,t){return b(n,t)}:function(t,e){return n.call(t,e)}}(),d=function(n,t){return s(n,t)>-1},m=function(n,t){for(var e=n.length,r=new Array(e),o=0;o<e;o++){var i=n[o];r[o]=t(i,o,n)}return r},g=function(n,t){for(var e=0,r=n.length;e<r;e++){t(n[e],e,n)}},p=function(n,t){for(var e=n.length-1;e>=0;e--){t(n[e],e,n)}},h=function(n,t){for(var e=[],r=0,o=n.length;r<o;r++){var i=n[r];t(i,r,n)&&e.push(i)}return e},v=function(n,t){for(var e=0,r=n.length;e<r;e++){if(t(n[e],e,n))return f.some(e)}return f.none()},b=function(n,t){for(var e=0,r=n.length;e<r;++e)if(n[e]===t)return e;return-1},w=Array.prototype.push,y=function(n){for(var t=[],e=0,r=n.length;e<r;++e){if(!Array.prototype.isPrototypeOf(n[e]))throw new Error("Arr.flatten item "+e+" was not an array, input: "+n);w.apply(t,n[e])}return t},x=function(n,t){for(var e=0,r=n.length;e<r;++e){if(!0!==t(n[e],e,n))return!1}return!0},C=Array.prototype.slice,S={map:m,each:g,eachr:p,partition:function(n,t){for(var e=[],r=[],o=0,i=n.length;o<i;o++){var u=n[o];(t(u,o,n)?e:r).push(u)}return{pass:e,fail:r}},filter:h,groupBy:function(n,t){if(0===n.length)return[];for(var e=t(n[0]),r=[],o=[],i=0,u=n.length;i<u;i++){var a=n[i],c=t(a);c!==e&&(r.push(o),o=[]),e=c,o.push(a)}return 0!==o.length&&r.push(o),r},indexOf:function(n,t){var e=s(n,t);return-1===e?f.none():f.some(e)},foldr:function(n,t,e){return p(n,function(n){e=t(e,n)}),e},foldl:function(n,t,e){return g(n,function(n){