diff --git a/src/plone/staticresources/static/plone-tinymce-compiled.js b/src/plone/staticresources/static/plone-tinymce-compiled.js index 469de1aa9..b9495ea6d 100644 --- a/src/plone/staticresources/static/plone-tinymce-compiled.js +++ b/src/plone/staticresources/static/plone-tinymce-compiled.js @@ -27207,7 +27207,7 @@ define('text',['module'], function (module) { define('text!mockup-patterns-tinymce-url/templates/link.xml',[],function () { return '
<%- insertLinkHelp %>
\n <% } %>\n\n<%- insertImageHelp %>
\n <% } %>\n\n<%- insertImageHelp %>
\n <% } %>\n\n').append(u),e.setStartAfter(r[0].firstChild.firstChild),e.setEndAfter(u)):(r.empty().append(" ").append(u).append(" "),e.setStart(r[0].firstChild,1),e.setEnd(r[0].lastChild,0)),r.css({top:m.getPos(n,h.getBody()).y}),r[0].focus(),(o=h.selection.getSel()).removeAllRanges(),o.addRange(e),$.each(nl(cr.fromDom(h.getBody()),"*[data-mce-selected]"),function(e){xr.remove(e,"data-mce-selected")}),n.setAttribute("data-mce-selected","1"),v=n,w(),e)):null)},u=function(){v&&v.removeAttribute("data-mce-selected"),Wd(cr.fromDom(h.getBody()),"#"+y).each(Yc.remove),v=null},w=function(){l.hide()};return Z.ceFalse&&(function(){h.on("mouseup",function(e){var t=o();t.collapsed&&op(h,e.clientX,e.clientY)&&a(ns(h,t,!1))}),h.on("click",function(e){var t;(t=vg(h,e.target))&&(Rg(t)&&(e.preventDefault(),h.focus()),_g(t)&&h.dom.isChildOf(t,h.selection.getNode())&&u())}),h.on("blur NewBlock",function(){u()}),h.on("ResizeWindow FullscreenStateChanged",function(){return l.reposition()});function i(e,t){var n=h.dom.getParent(e,h.dom.isBlock),r=h.dom.getParent(t,h.dom.isBlock);return!(!n||!h.dom.isChildOf(n,r)||!1!==Rg(vg(h,n)))||n&&!function(e,t){return h.dom.getParent(e,h.dom.isBlock)===h.dom.getParent(t,h.dom.isBlock)}(n,r)&&function(e){var t=_c(e);if(!e.firstChild)return!1;var n=as.before(e.firstChild),r=t.next(n);return r&&!Pg(r)&&!Ag(r)}(n)}var n,r;r=!1,(n=h).on("touchstart",function(){r=!1}),n.on("touchmove",function(){r=!0}),n.on("touchend",function(e){var t=vg(n,e.target);Rg(t)&&(r||(e.preventDefault(),c(ts(n,t))))}),h.on("mousedown",function(e){var t,n=e.target;if((n===s||"HTML"===n.nodeName||h.dom.isChildOf(n,s))&&!1!==op(h,e.clientX,e.clientY))if(t=vg(h,n))Rg(t)?(e.preventDefault(),c(ts(h,t))):(u(),_g(t)&&e.shiftKey||Tg(e.clientX,e.clientY,h.selection.getRng())||(w(),h.selection.placeCaretAt(e.clientX,e.clientY)));else if(!1===Ls(n)){u(),w();var r=gg(s,e.clientX,e.clientY);if(r&&!i(e.target,r.node)){e.preventDefault();var o=p(1,r.node,r.before,!1);h.getBody().focus(),a(o)}}}),h.on("keypress",function(e){Ng.modifierPressed(e)||(e.keyCode,Rg(h.selection.getNode())&&e.preventDefault())}),h.on("getSelectionRange",function(e){var t=e.range;if(v){if(!v.parentNode)return void(v=null);(t=t.cloneRange()).selectNode(v),e.range=t}}),h.on("setSelectionRange",function(e){var t;(t=c(e.range,e.forward))&&(e.range=t)}),h.on("AfterSetSelectionRange",function(e){var t=e.range;b(t)||w(),function(e){return h.dom.hasClass(e,"mce-offscreen-selection")}(t.startContainer.parentNode)||u()}),h.on("copy",function(e){var t=e.clipboardData;if(!e.isDefaultPrevented()&&e.clipboardData&&!Z.ie){var n=function(){var e=h.dom.get(y);return e?e.getElementsByTagName("*")[0]:e}();n&&(e.preventDefault(),t.clearData(),t.setData("text/html",n.outerHTML),t.setData("text/plain",n.outerText))}}),ig(h),Eg(h)}(),e=h.contentStyles,n=".mce-content-body",e.push(l.getCss()),e.push(n+" .mce-offscreen-selection {position: absolute;left: -9999999999px;max-width: 1000000px;}"+n+" *[contentEditable=false] {cursor: default;}"+n+" *[contentEditable=true] {cursor: text;}")),{showCaret:p,showBlockCaretContainer:function(e){e.hasAttribute("data-mce-caret")&&($i(e),a(o()),h.selection.scrollIntoView(e[0]))},hideFakeCaret:w,destroy:function(){l.destroy(),v=null}}}function bg(e,t,n){var r,o,i,a,s=1;for(a=e.getShortEndedElements(),(i=/<([!?\/])?([A-Za-z0-9\-_\:\.]+)((?:\s+[^"\'>]+(?:(?:"[^"]*")|(?:\'[^\']*\')|[^>]*))*|\/|\s+)>/g).lastIndex=r=n;o=i.exec(t);){if(r=i.lastIndex,"/"===o[1])s--;else if(!o[1]){if(o[2]in a)continue;s++}if(0===s)break}return r}var wg=f.curry(ag,Zp.Up,Xi,Gi),xg=f.curry(ag,Zp.Down,Gi,Xi),Cg=jo.isContentEditableFalse,Sg=Us,Tg=function(n,r,e){return!e.collapsed&&$.foldl(e.getClientRects(),function(e,t){return e||function(e,t,n){return t>=e.left&&t<=e.right&&n>=e.top&&n<=e.bottom}(t,n,r)},!1)},kg=function(t,n){var r=null;return{cancel:function(){null!==r&&(clearTimeout(r),r=null)},throttle:function(){var e=arguments;null===r&&(r=setTimeout(function(){t.apply(null,e),e=r=null},n))}}},Eg=function(t){var e=kg(function(){if(!t.removed&&t.selection.getRng().collapsed){var e=rs(t,t.selection.getRng(),!1);t.selection.setRng(e)}},0);t.on("focus",function(){e.throttle()}),t.on("blur",function(){e.cancel()})},Ng={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,modifierPressed:function(e){return e.shiftKey||e.ctrlKey||e.altKey||this.metaKeyPressed(e)},metaKeyPressed:function(e){return Z.mac?e.metaKey:e.ctrlKey&&!e.altKey}},_g=jo.isContentEditableTrue,Rg=jo.isContentEditableFalse,Ag=Ul,Pg=zl;function Dg(F,H){void 0===H&&(H=hi());function e(){}!1!==(F=F||{}).fix_self_closing&&(F.fix_self_closing=!0);var z=F.comment?F.comment:e,U=F.cdata?F.cdata:e,W=F.text?F.text:e,$=F.start?F.start:e,j=F.end?F.end:e,q=F.pi?F.pi:e,V=F.doctype?F.doctype:e;return{parse:function(e){function t(e){var t,n;for(t=O.length;t--&&O[t].name!==e;);if(0<=t){for(n=O.length-1;t<=n;n--)(e=O[n]).valid&&j(e.name);O.length=t}}function n(e,t,n,r,o){var i,a;if(n=(t=t.toLowerCase())in m?t:B(n||r||o||""),p&&!u&&!1===function(e){return 0===e.indexOf("data-")||0===e.indexOf("aria-")}(t)){if(!(i=w[t])&&x){for(a=x.length;a--&&!(i=x[a]).pattern.test(t););-1===a&&(i=null)}if(!i)return;if(i.validValues&&!(n in i.validValues))return}if(M[t]&&!F.allow_script_urls){var s=n.replace(/[\s\u0000-\u001F]+/g,"");try{s=decodeURIComponent(s)}catch(e){s=unescape(s)}if(L.test(s))return;if(function(e,t){return!e.allow_html_data_urls&&(/^data:image\//i.test(t)?!1===e.allow_svg_data_urls&&/^data:image\/svg\+xml/i.test(t):/^data:/i.test(t))}(F,s))return}u&&(t in M||0===t.indexOf("on"))||(l.map[t]=n,l.push({name:t,value:n}))}var r,o,i,l,a,s,c,u,f,d,m,h,p,g,v,y,b,w,x,C,S,T,k,E,N,_,R,A,P,D=0,O=[],I=0,B=ri.decode,M=Zt.makeMap("src,href,data,background,formaction,poster,xlink:href"),L=/((java|vb)script|mhtml):/i;for(N=new RegExp("<(?:(?:!--([\\w\\W]*?)--\x3e)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:!DOCTYPE([\\w\\W]*?)>)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)>)|(?:([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)((?:\\s+[^\"'>]+(?:(?:\"[^\"]*\")|(?:'[^']*')|[^>]*))*|\\/|\\s+)>))","g"),_=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,d=H.getShortEndedElements(),E=F.self_closing_elements||H.getSelfClosingElements(),m=H.getBoolAttrs(),p=F.validate,f=F.remove_internals,P=F.fix_self_closing,R=H.getSpecialElements(),k=e+">";r=N.exec(k);){if(D