diff -r 440e5d8fae8f -r c9c69b13d884 src/myams/resources/js/ext/tinymce/dev/classes/NodeChange.min.js --- a/src/myams/resources/js/ext/tinymce/dev/classes/NodeChange.min.js Wed Jul 15 15:04:38 2020 +0200 +++ b/src/myams/resources/js/ext/tinymce/dev/classes/NodeChange.min.js Wed Jul 15 15:39:56 2020 +0200 @@ -1,1 +1,1 @@ -define("tinymce/NodeChange",["tinymce/dom/RangeUtils","tinymce/Env"],function(b,a){return function(c){var e,d=[];function f(g){var h,j;j=c.$(g).parentsUntil(c.getBody()).add(g);if(j.length===d.length){for(h=j.length;h>=0;h--){if(j[h]!==d[h]){break}}if(h===-1){d=j;return true}}d=j;return false}if(!("onselectionchange" in c.getDoc())){c.on("NodeChange Click MouseUp KeyUp Focus",function(h){var i,g;i=c.selection.getRng();g={startContainer:i.startContainer,startOffset:i.startOffset,endContainer:i.endContainer,endOffset:i.endOffset};if(h.type=="nodechange"||!b.compareRanges(g,e)){c.fire("SelectionChange")}e=g})}c.on("contextmenu",function(){c.fire("SelectionChange")});c.on("SelectionChange",function(){var g=c.selection.getStart(true);if(!a.range&&c.selection.isCollapsed()){return}if(!f(g)&&c.dom.isChildOf(g,c.getBody())){c.nodeChanged({selectionChange:true})}});c.on("MouseUp",function(g){if(!g.isDefaultPrevented()){if(c.selection.getNode().nodeName=="IMG"){setTimeout(function(){c.nodeChanged()},0)}else{c.nodeChanged()}}});this.nodeChanged=function(i){var j=c.selection,k,h,g;if(c.initialized&&j&&!c.settings.disable_nodechange&&!c.settings.readonly){g=c.getBody();k=j.getStart()||g;k=k.ownerDocument!=c.getDoc()?c.getBody():k;if(k.nodeName=="IMG"&&j.isCollapsed()){k=k.parentNode}h=[];c.dom.getParent(k,function(l){if(l===g){return true}h.push(l)});i=i||{};i.element=k;i.parents=h;c.fire("NodeChange",i)}}}}); \ No newline at end of file +define("tinymce/NodeChange",["tinymce/dom/RangeUtils","tinymce/Env"],(function(e,n){return function(t){var o,i=[];"onselectionchange"in t.getDoc()||t.on("NodeChange Click MouseUp KeyUp Focus",(function(n){var i,a;a={startContainer:(i=t.selection.getRng()).startContainer,startOffset:i.startOffset,endContainer:i.endContainer,endOffset:i.endOffset},"nodechange"!=n.type&&e.compareRanges(a,o)||t.fire("SelectionChange"),o=a})),t.on("contextmenu",(function(){t.fire("SelectionChange")})),t.on("SelectionChange",(function(){var e=t.selection.getStart(!0);!n.range&&t.selection.isCollapsed()||!function(e){var n,o;if((o=t.$(e).parentsUntil(t.getBody()).add(e)).length===i.length){for(n=o.length;n>=0&&o[n]===i[n];n--);if(-1===n)return i=o,!0}return i=o,!1}(e)&&t.dom.isChildOf(e,t.getBody())&&t.nodeChanged({selectionChange:!0})})),t.on("MouseUp",(function(e){e.isDefaultPrevented()||("IMG"==t.selection.getNode().nodeName?setTimeout((function(){t.nodeChanged()}),0):t.nodeChanged())})),this.nodeChanged=function(e){var n,o,i,a=t.selection;t.initialized&&a&&!t.settings.disable_nodechange&&!t.settings.readonly&&(i=t.getBody(),"IMG"==(n=(n=a.getStart()||i).ownerDocument!=t.getDoc()?t.getBody():n).nodeName&&a.isCollapsed()&&(n=n.parentNode),o=[],t.dom.getParent(n,(function(e){if(e===i)return!0;o.push(e)})),(e=e||{}).element=n,e.parents=o,t.fire("NodeChange",e))}}}));