mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 03:01:34 +00:00
Update web components
This commit is contained in:
+3
-3
@@ -12,10 +12,10 @@
|
||||
"package-update": "ncu -u -x pnotify,laravel-mix"
|
||||
},
|
||||
"devDependencies": {
|
||||
"axios": "^0.22.0",
|
||||
"axios": "^0.24.0",
|
||||
"cross-env": "^7.0.3",
|
||||
"jquery": "3.6.0",
|
||||
"laravel-mix": "^6.0.31",
|
||||
"laravel-mix": "^6.0.37",
|
||||
"lodash": "^4.17.21",
|
||||
"popper.js": "^1.16.1",
|
||||
"prettier": "^2.4.1",
|
||||
@@ -41,6 +41,6 @@
|
||||
"normalize.css": "^8.0.1",
|
||||
"pace-js": "^1.2.4",
|
||||
"pnotify": "^4.0.1",
|
||||
"tinymce": "^5.9.2"
|
||||
"tinymce": "^5.10.0"
|
||||
}
|
||||
}
|
||||
|
||||
File diff suppressed because one or more lines are too long
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
+1
-1
@@ -4,6 +4,6 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
!function(){"use strict";function f(t,e,n){t.execCommand("UL"===e?"InsertUnorderedList":"InsertOrderedList",!1,!1===n?null:{"list-style-type":n})}function i(t){return function(){return t}}function t(t){return t}function e(){return s}var n=tinymce.util.Tools.resolve("tinymce.PluginManager"),g=tinymce.util.Tools.resolve("tinymce.util.Tools"),u=i(!1),l=i(!0),s={fold:function(t,e){return t()},isSome:u,isNone:l,getOr:t,getOrThunk:r,getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:i(null),getOrUndefined:i(void 0),or:t,orThunk:r,map:e,each:function(){},bind:e,exists:u,forall:l,filter:function(){return s},toArray:function(){return[]},toString:i("none()")};function r(t){return t()}function d(t){return t&&/^(TH|TD)$/.test(t.nodeName)}function m(c,a){return function(s){function t(t){var e,n,r,o,i,u,l;s.setActive((e=c,r=a,i=-1!==(o=function(t,e){for(var n=0;n<t.length;n++)if(e(t[n]))return n;return-1}((n=t).parents,d))?n.parents.slice(0,o):n.parents,0<(u=g.grep(i,(l=e,function(t){return t&&/^(OL|UL|DL)$/.test(t.nodeName)&&(e=t,l.$.contains(l.getBody(),e));var e}))).length&&u[0].nodeName===r))}return c.on("NodeChange",t),function(){return c.off("NodeChange",t)}}}function c(t,e,n,r,o,i){var u,l,s,c,a,d;1<i.length?(c=r,a=o,d=i,(s=t).ui.registry.addSplitButton(e,{tooltip:n,icon:"OL"===a?"ordered-list":"unordered-list",presets:"listpreview",columns:3,fetch:function(t){t(g.map(d,function(t){return{type:"choiceitem",value:"default"===t?"":t,icon:"list-"+("OL"===a?"num":"bull")+"-"+("disc"===t||"decimal"===t?"default":t),text:t.replace(/\-/g," ").replace(/\b\w/g,function(t){return t.toUpperCase()})}}))},onAction:function(){return s.execCommand(c)},onItemAction:function(t,e){f(s,a,e)},select:function(e){var t,n=(t=s).dom.getParent(t.selection.getNode(),"ol,ul"),r=t.dom.getStyle(n,"listStyleType");return p(r).map(function(t){return e===t}).getOr(!1)},onSetup:m(s,a)})):(l=r,(u=t).ui.registry.addToggleButton(e,{active:!1,tooltip:n,icon:"OL"===o?"ordered-list":"unordered-list",onSetup:m(u,o),onAction:function(){return u.execCommand(l)}}))}var a=function(n){function t(){return o}function e(t){return t(n)}var r=i(n),o={fold:function(t,e){return e(n)},isSome:l,isNone:u,getOr:r,getOrThunk:r,getOrDie:r,getOrNull:r,getOrUndefined:r,or:t,orThunk:t,map:function(t){return a(t(n))},each:function(t){t(n)},bind:e,exists:e,forall:e,filter:function(t){return t(n)?o:s},toArray:function(){return[n]},toString:function(){return"some("+n+")"}};return o},p=function(t){return null==t?s:a(t)};n.add("advlist",function(t){var n,e,r,o;t.hasPlugin("lists")?(c(e=t,"numlist","Numbered list","InsertOrderedList","OL",(r=e.getParam("advlist_number_styles","default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman"))?r.split(/[ ,]/):[]),c(e,"bullist","Bullet list","InsertUnorderedList","UL",(o=e.getParam("advlist_bullet_styles","default,circle,square"))?o.split(/[ ,]/):[]),(n=t).addCommand("ApplyUnorderedListStyle",function(t,e){f(n,"UL",e["list-style-type"])}),n.addCommand("ApplyOrderedListStyle",function(t,e){f(n,"OL",e["list-style-type"])})):console.error("Please use the Lists plugin together with the Advanced List plugin.")})}();
|
||||
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
+1
-1
@@ -4,6 +4,6 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
!function(){"use strict";function a(e){return e.getAttribute("id")||e.getAttribute("name")||""}function c(e){return e&&"a"===e.nodeName.toLowerCase()&&!e.getAttribute("href")&&""!==a(e)}function d(e){return e.dom.getParent(e.selection.getStart(),l)}function r(e,t){var o,a,n,r,i,l=d(e);l?(n=e,r=t,(i=l).removeAttribute("name"),i.id=r,n.addVisual(),n.undoManager.add()):(a=t,(o=e).undoManager.transact(function(){var e,n;o.getParam("allow_html_in_named_anchor",!1,"boolean")||o.selection.collapse(!0),o.selection.isCollapsed()?o.insertContent(o.dom.createHTML("a",{id:a})):(n=(e=o).dom,u(n).walk(e.selection.getRng(),function(e){s.each(e,function(e){var t;c(t=e)&&!t.firstChild&&n.remove(e,!1)})}),o.formatter.remove("namedAnchor",null,null,!0),o.formatter.apply("namedAnchor",{value:a}),o.addVisual())})),e.focus()}function i(r){return function(e){for(var t,n=0;n<e.length;n++){var o=e[n],a=void 0;!(a=t=o)||a.attr("href")||!a.attr("id")&&!a.attr("name")||t.firstChild||o.attr("contenteditable",r)}}}var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),u=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),s=tinymce.util.Tools.resolve("tinymce.util.Tools"),l="a:not([href])";e.add("anchor",function(e){var t,n,o;(t=e).on("PreInit",function(){t.parser.addNodeFilter("a",i("false")),t.serializer.addNodeFilter("a",i(null))}),(n=e).addCommand("mceAnchor",function(){var o,e,t;t=(e=d(o=n))?a(e):"",o.windowManager.open({title:"Anchor",size:"normal",body:{type:"panel",items:[{name:"id",type:"input",label:"ID",placeholder:"example"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{id:t},onSubmit:function(e){var t=o,n=e.getData().id;(/^[A-Za-z][A-Za-z0-9\-:._]*$/.test(n)?(r(t,n),0):(t.windowManager.alert("Id should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores."),1))||e.close()}})}),(o=e).ui.registry.addToggleButton("anchor",{icon:"bookmark",tooltip:"Anchor",onAction:function(){return o.execCommand("mceAnchor")},onSetup:function(e){return o.selection.selectorChangedWithUnbind("a:not([href])",e.setActive).unbind}}),o.ui.registry.addMenuItem("anchor",{icon:"bookmark",text:"Anchor...",onAction:function(){return o.execCommand("mceAnchor")}}),e.on("PreInit",function(){e.formatter.register("namedAnchor",{inline:"a",selector:l,remove:"all",split:!0,deep:!0,attributes:{id:"%value"},onmatch:c})})})}();
|
||||
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
+1
-1
@@ -4,6 +4,6 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
!function(){"use strict";function o(e,t){var n;return t<0&&(t=0),3!==e.nodeType||(n=e.data.length)<t&&(t=n),t}function p(e,t,n){1!==t.nodeType||t.hasChildNodes()?e.setStart(t,o(t,n)):e.setStartBefore(t)}function A(e,t,n){1!==t.nodeType||t.hasChildNodes()?e.setEnd(t,o(t,n)):e.setEndAfter(t)}function i(e,t,n){var o,i,r,a,d,s,l=e.getParam("autolink_pattern",v),f=e.getParam("default_link_target",!1);if("A"!==e.selection.getNode().tagName){var c=e.selection.getRng().cloneRange();if(c.startOffset<5){if(!(a=c.endContainer.previousSibling)){if(!c.endContainer.firstChild||!c.endContainer.firstChild.nextSibling)return;a=c.endContainer.firstChild.nextSibling}if(p(c,a,d=a.length),A(c,a,d),c.endOffset<5)return;o=c.endOffset,i=a}else{if(3!==(i=c.endContainer).nodeType&&i.firstChild){for(;3!==i.nodeType&&i.firstChild;)i=i.firstChild;3===i.nodeType&&(p(c,i,0),A(c,i,i.nodeValue.length))}o=1===c.endOffset?2:c.endOffset-1-t}for(var g,u=o;p(c,i,2<=o?o-2:0),A(c,i,1<=o?o-1:0),--o," "!==(s=c.toString())&&""!==s&&160!==s.charCodeAt(0)&&0<=o-2&&s!==n;);(g=c.toString())===n||" "===g||160===g.charCodeAt(0)?(p(c,i,o),A(c,i,u),o+=1):(0===c.startOffset?p(c,i,0):p(c,i,o),A(c,i,u)),h=c.toString(),/[?!,.;:]/.test(h.charAt(h.length-1))&&A(c,i,u-1);var h,C,m,y,k=(h=c.toString().trim()).match(l),w=e.getParam("link_default_protocol","http","string");k&&((m=C=k[0]).length>=(y="www.").length&&m.substr(0,0+y.length)===y?C=w+"://"+C:-1===C.indexOf("@")||/^([A-Za-z][A-Za-z\d.+-]*:\/\/)|mailto:/.test(C)||(C="mailto:"+C),r=e.selection.getBookmark(),e.selection.setRng(c),e.execCommand("createlink",!1,C),!1!==f&&e.dom.setAttrib(e.selection.getNode(),"target",f),e.selection.moveToBookmark(r),e.nodeChanged())}}var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),r=tinymce.util.Tools.resolve("tinymce.Env"),v=new RegExp("^"+/(?:[A-Za-z][A-Za-z\d.+-]{0,14}:\/\/(?:[-.~*+=!&;:'%@?^${}(),\w]+@)?|www\.|[-;:&=+$,.\w]+@)[A-Za-z\d-]+(?:\.[A-Za-z\d-]+)*(?::\d+)?(?:\/(?:[-+~=.,%()\/\w]*[-+~=%()\/\w])?)?(?:\?(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?(?:#(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?/g.source+"$","i");e.add("autolink",function(e){var t,n;(t=e).on("keydown",function(e){13===e.keyCode&&i(t,-1,"")}),r.browser.isIE()?t.on("focus",function(){if(!n){n=!0;try{t.execCommand("AutoUrlDetect",!1,!0)}catch(e){}}}):(t.on("keypress",function(e){41===e.keyCode&&i(t,-1,"(")}),t.on("keyup",function(e){32===e.keyCode&&i(t,0,"")}))})}();
|
||||
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
@@ -80,7 +80,15 @@
|
||||
var value = parseInt(dom.getStyle(elm, name, computed), 10);
|
||||
return isNaN(value) ? 0 : value;
|
||||
};
|
||||
var resize = function (editor, oldSize) {
|
||||
var shouldScrollIntoView = function (trigger) {
|
||||
if ((trigger === null || trigger === void 0 ? void 0 : trigger.type.toLowerCase()) === 'setcontent') {
|
||||
var setContentEvent = trigger;
|
||||
return setContentEvent.selection === true || setContentEvent.paste === true;
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
};
|
||||
var resize = function (editor, oldSize, trigger) {
|
||||
var dom = editor.dom;
|
||||
var doc = editor.getDoc();
|
||||
if (!doc) {
|
||||
@@ -121,11 +129,11 @@
|
||||
var win = editor.getWin();
|
||||
win.scrollTo(win.pageXOffset, win.pageYOffset);
|
||||
}
|
||||
if (editor.hasFocus()) {
|
||||
editor.selection.scrollIntoView(editor.selection.getNode());
|
||||
if (editor.hasFocus() && shouldScrollIntoView(trigger)) {
|
||||
editor.selection.scrollIntoView();
|
||||
}
|
||||
if (global$1.webkit && deltaSize < 0) {
|
||||
resize(editor, oldSize);
|
||||
resize(editor, oldSize, trigger);
|
||||
}
|
||||
}
|
||||
};
|
||||
@@ -140,8 +148,8 @@
|
||||
'min-height': 0
|
||||
});
|
||||
});
|
||||
editor.on('NodeChange SetContent keyup FullscreenStateChanged ResizeContent', function () {
|
||||
resize(editor, oldSize);
|
||||
editor.on('NodeChange SetContent keyup FullscreenStateChanged ResizeContent', function (e) {
|
||||
resize(editor, oldSize, e);
|
||||
});
|
||||
if (shouldAutoResizeOnInit(editor)) {
|
||||
editor.on('init', function () {
|
||||
|
||||
+2
-2
@@ -4,6 +4,6 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
!function(){"use strict";function d(e){return e.getParam("min_height",e.getElement().offsetHeight,"number")}function h(e,t){var n=e.getBody();n&&(n.style.overflowY=t?"":"hidden",t||(n.scrollTop=0))}function y(e,t,n,i){var o=parseInt(e.getStyle(t,n,i),10);return isNaN(o)?0:o}var g=Object.hasOwnProperty,e=tinymce.util.Tools.resolve("tinymce.PluginManager"),p=tinymce.util.Tools.resolve("tinymce.Env"),r=tinymce.util.Tools.resolve("tinymce.util.Delay"),u=function(e,t,n,i,o){r.setEditorTimeout(e,function(){v(e,t),n--?u(e,t,n,i,o):o&&o()},i)},v=function(e,t){var n,i,o,r,s,a,g,u,l,c,m=e.dom,f=e.getDoc();f&&(e.plugins.fullscreen&&e.plugins.fullscreen.isFullscreen()?h(e,!0):(n=f.documentElement,i=e.getParam("autoresize_bottom_margin",50,"number"),o=d(e),r=y(m,n,"margin-top",!0),s=y(m,n,"margin-bottom",!0),(a=(a=n.offsetHeight+r+s+i)<0?0:a)+(g=e.getContainer().offsetHeight-e.getContentAreaContainer().offsetHeight)>d(e)&&(o=a+g),(u=e.getParam("max_height",0,"number"))&&u<o?(o=u,h(e,!0)):h(e,!1),o!==t.get()&&(l=o-t.get(),m.setStyle(e.getContainer(),"height",o+"px"),t.set(o),e.fire("ResizeEditor"),p.browser.isSafari()&&p.mac&&(c=e.getWin()).scrollTo(c.pageXOffset,c.pageYOffset),e.hasFocus()&&e.selection.scrollIntoView(e.selection.getNode()),p.webkit&&l<0&&v(e,t))))};e.add("autoresize",function(e){var t,n,i,o,r,s,a=e.settings;g.call(a,"resize")||(e.settings.resize=!1),e.inline||(s=0,r=t={get:function(){return s},set:function(e){s=e}},(o=e).addCommand("mceAutoResize",function(){v(o,r)}),i=t,(n=e).on("init",function(){var e=n.getParam("autoresize_overflow_padding",1,"number"),t=n.dom;t.setStyles(n.getDoc().documentElement,{height:"auto"}),t.setStyles(n.getBody(),{paddingLeft:e,paddingRight:e,"min-height":0})}),n.on("NodeChange SetContent keyup FullscreenStateChanged ResizeContent",function(){v(n,i)}),n.getParam("autoresize_on_init",!0,"boolean")&&n.on("init",function(){u(n,i,20,100,function(){u(n,i,5,1e3)})}))})}();
|
||||
!function(){"use strict";function y(e){return e.getParam("min_height",e.getElement().offsetHeight,"number")}function p(e,t){var n=e.getBody();n&&(n.style.overflowY=t?"":"hidden",t||(n.scrollTop=0))}function v(e,t,n,i){var o=parseInt(e.getStyle(t,n,i),10);return isNaN(o)?0:o}var l=Object.hasOwnProperty,e=tinymce.util.Tools.resolve("tinymce.PluginManager"),b=tinymce.util.Tools.resolve("tinymce.Env"),r=tinymce.util.Tools.resolve("tinymce.util.Delay"),u=function(e,t,n,i,o){r.setEditorTimeout(e,function(){C(e,t),n--?u(e,t,n,i,o):o&&o()},i)},C=function(e,t,n){var i,o,r,s,a,l,u,g,c,m,f,d=e.dom,h=e.getDoc();h&&(e.plugins.fullscreen&&e.plugins.fullscreen.isFullscreen()?p(e,!0):(i=h.documentElement,o=e.getParam("autoresize_bottom_margin",50,"number"),r=y(e),s=v(d,i,"margin-top",!0),a=v(d,i,"margin-bottom",!0),(l=(l=i.offsetHeight+s+a+o)<0?0:l)+(u=e.getContainer().offsetHeight-e.getContentAreaContainer().offsetHeight)>y(e)&&(r=l+u),(g=e.getParam("max_height",0,"number"))&&g<r?(r=g,p(e,!0)):p(e,!1),r!==t.get()&&(c=r-t.get(),d.setStyle(e.getContainer(),"height",r+"px"),t.set(r),e.fire("ResizeEditor"),b.browser.isSafari()&&b.mac&&(m=e.getWin()).scrollTo(m.pageXOffset,m.pageYOffset),!e.hasFocus()||"setcontent"!==(null==(f=n)?void 0:f.type.toLowerCase())||!0!==f.selection&&!0!==f.paste||e.selection.scrollIntoView(),b.webkit&&c<0&&C(e,t,n))))};e.add("autoresize",function(e){var t,n,i,o,r,s,a=e.settings;l.call(a,"resize")||(e.settings.resize=!1),e.inline||(s=0,r=t={get:function(){return s},set:function(e){s=e}},(o=e).addCommand("mceAutoResize",function(){C(o,r)}),i=t,(n=e).on("init",function(){var e=n.getParam("autoresize_overflow_padding",1,"number"),t=n.dom;t.setStyles(n.getDoc().documentElement,{height:"auto"}),t.setStyles(n.getBody(),{paddingLeft:e,paddingRight:e,"min-height":0})}),n.on("NodeChange SetContent keyup FullscreenStateChanged ResizeContent",function(e){C(n,i,e)}),n.getParam("autoresize_on_init",!0,"boolean")&&n.on("init",function(){u(n,i,20,100,function(){u(n,i,5,1e3)})}))})}();
|
||||
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
+1
-1
@@ -4,6 +4,6 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
!function(){"use strict";function o(t,e){var r=t||e,n=/^(\d+)([ms]?)$/.exec(""+r);return(n[2]?{s:1e3,m:6e4}[n[2]]:1)*parseInt(r,10)}function n(t){var e=document.location;return t.getParam("autosave_prefix","tinymce-autosave-{path}{query}{hash}-{id}-").replace(/{path}/g,e.pathname).replace(/{query}/g,e.search).replace(/{hash}/g,e.hash).replace(/{id}/g,t.id)}function i(t,e){if(a(e))return t.dom.isEmpty(t.getBody());var r=d.trim(e);if(""===r)return!0;var n=(new DOMParser).parseFromString(r,"text/html");return t.dom.isEmpty(n)}function u(t){var e=parseInt(v.getItem(n(t)+"time"),10)||0;return!((new Date).getTime()-e>o(t.getParam("autosave_retention"),"20m")&&(g(t,!1),1))}function s(t){var e=n(t);!i(t)&&t.isDirty()&&(v.setItem(e+"draft",t.getContent({format:"raw",no_events:!0})),v.setItem(e+"time",(new Date).getTime().toString()),t.fire("StoreDraft"))}function f(t){var e=n(t);u(t)&&(t.setContent(v.getItem(e+"draft"),{format:"raw"}),t.fire("RestoreDraft"))}function c(t){t.undoManager.transact(function(){f(t),g(t)}),t.focus()}function m(r){return function(t){function e(){return t.setDisabled(!u(r))}return t.setDisabled(!u(r)),r.on("StoreDraft RestoreDraft RemoveDraft",e),function(){return r.off("StoreDraft RestoreDraft RemoveDraft",e)}}}var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),a=function(t){return void 0===t},l=tinymce.util.Tools.resolve("tinymce.util.Delay"),v=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),d=tinymce.util.Tools.resolve("tinymce.util.Tools"),g=function(t,e){var r=n(t);v.removeItem(r+"draft"),v.removeItem(r+"time"),!1!==e&&t.fire("RemoveDraft")},y=tinymce.util.Tools.resolve("tinymce.EditorManager");t.add("autosave",function(t){var e,r,n,a;return t.editorManager.on("BeforeUnload",function(t){var e;d.each(y.get(),function(t){t.plugins.autosave&&t.plugins.autosave.storeDraft(),!e&&t.isDirty()&&t.getParam("autosave_ask_before_unload",!0)&&(e=t.translate("You have unsaved changes are you sure you want to navigate away?"))}),e&&(t.preventDefault(),t.returnValue=e)}),n=e=t,a=o(n.getParam("autosave_interval"),"30s"),l.setEditorInterval(n,function(){s(n)},a),e.ui.registry.addButton("restoredraft",{tooltip:"Restore last draft",icon:"restore-draft",onAction:function(){c(e)},onSetup:m(e)}),e.ui.registry.addMenuItem("restoredraft",{text:"Restore last draft",icon:"restore-draft",onAction:function(){c(e)},onSetup:m(e)}),t.on("init",function(){t.getParam("autosave_restore_when_empty",!1)&&t.dom.isEmpty(t.getBody())&&f(t)}),r=t,{hasDraft:function(){return u(r)},storeDraft:function(){return s(r)},restoreDraft:function(){return f(r)},removeDraft:function(t){return g(r,t)},isEmpty:function(t){return i(r,t)}}})}();
|
||||
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
@@ -80,7 +80,6 @@
|
||||
|
||||
function Plugin () {
|
||||
global$1.add('bbcode', function (editor) {
|
||||
console.warn('The bbcode plugin has been deprecated and marked for removal in TinyMCE 6.0');
|
||||
editor.on('BeforeSetContent', function (e) {
|
||||
e.content = bbcode2html(e.content);
|
||||
});
|
||||
|
||||
+2
-2
@@ -4,6 +4,6 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
!function(){"use strict";function i(t){function o(o,e){t=t.replace(o,e)}return t=n.trim(t),o(/\n/gi,"<br />"),o(/\[b\]/gi,"<strong>"),o(/\[\/b\]/gi,"</strong>"),o(/\[i\]/gi,"<em>"),o(/\[\/i\]/gi,"</em>"),o(/\[u\]/gi,"<u>"),o(/\[\/u\]/gi,"</u>"),o(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,'<a href="$1">$2</a>'),o(/\[url\](.*?)\[\/url\]/gi,'<a href="$1">$1</a>'),o(/\[img\](.*?)\[\/img\]/gi,'<img src="$1" />'),o(/\[color=(.*?)\](.*?)\[\/color\]/gi,'<font color="$1">$2</font>'),o(/\[code\](.*?)\[\/code\]/gi,'<span class="codeStyle">$1</span> '),o(/\[quote.*?\](.*?)\[\/quote\]/gi,'<span class="quoteStyle">$1</span> '),t}var o=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=tinymce.util.Tools.resolve("tinymce.util.Tools");o.add("bbcode",function(o){console.warn("The bbcode plugin has been deprecated and marked for removal in TinyMCE 6.0"),o.on("BeforeSetContent",function(o){o.content=i(o.content)}),o.on("PostProcess",function(o){function e(o,e){t=t.replace(o,e)}var t;o.set&&(o.content=i(o.content)),o.get&&(o.content=(t=o.content,t=n.trim(t),e(/<a.*?href=\"(.*?)\".*?>(.*?)<\/a>/gi,"[url=$1]$2[/url]"),e(/<font.*?color=\"(.*?)\".*?class=\"codeStyle\".*?>(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"),e(/<font.*?color=\"(.*?)\".*?class=\"quoteStyle\".*?>(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"),e(/<font.*?class=\"codeStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"),e(/<font.*?class=\"quoteStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"),e(/<span style=\"color: ?(.*?);\">(.*?)<\/span>/gi,"[color=$1]$2[/color]"),e(/<font.*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[color=$1]$2[/color]"),e(/<span style=\"font-size:(.*?);\">(.*?)<\/span>/gi,"[size=$1]$2[/size]"),e(/<font>(.*?)<\/font>/gi,"$1"),e(/<img.*?src=\"(.*?)\".*?\/>/gi,"[img]$1[/img]"),e(/<span class=\"codeStyle\">(.*?)<\/span>/gi,"[code]$1[/code]"),e(/<span class=\"quoteStyle\">(.*?)<\/span>/gi,"[quote]$1[/quote]"),e(/<strong class=\"codeStyle\">(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]"),e(/<strong class=\"quoteStyle\">(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]"),e(/<em class=\"codeStyle\">(.*?)<\/em>/gi,"[code][i]$1[/i][/code]"),e(/<em class=\"quoteStyle\">(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]"),e(/<u class=\"codeStyle\">(.*?)<\/u>/gi,"[code][u]$1[/u][/code]"),e(/<u class=\"quoteStyle\">(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]"),e(/<\/(strong|b)>/gi,"[/b]"),e(/<(strong|b)>/gi,"[b]"),e(/<\/(em|i)>/gi,"[/i]"),e(/<(em|i)>/gi,"[i]"),e(/<\/u>/gi,"[/u]"),e(/<span style=\"text-decoration: ?underline;\">(.*?)<\/span>/gi,"[u]$1[/u]"),e(/<u>/gi,"[u]"),e(/<blockquote[^>]*>/gi,"[quote]"),e(/<\/blockquote>/gi,"[/quote]"),e(/<br \/>/gi,"\n"),e(/<br\/>/gi,"\n"),e(/<br>/gi,"\n"),e(/<p>/gi,""),e(/<\/p>/gi,"\n"),e(/ |\u00a0/gi," "),e(/"/gi,'"'),e(/</gi,"<"),e(/>/gi,">"),e(/&/gi,"&"),t))})})}();
|
||||
!function(){"use strict";function i(t){function o(o,e){t=t.replace(o,e)}return t=n.trim(t),o(/\n/gi,"<br />"),o(/\[b\]/gi,"<strong>"),o(/\[\/b\]/gi,"</strong>"),o(/\[i\]/gi,"<em>"),o(/\[\/i\]/gi,"</em>"),o(/\[u\]/gi,"<u>"),o(/\[\/u\]/gi,"</u>"),o(/\[url=([^\]]+)\](.*?)\[\/url\]/gi,'<a href="$1">$2</a>'),o(/\[url\](.*?)\[\/url\]/gi,'<a href="$1">$1</a>'),o(/\[img\](.*?)\[\/img\]/gi,'<img src="$1" />'),o(/\[color=(.*?)\](.*?)\[\/color\]/gi,'<font color="$1">$2</font>'),o(/\[code\](.*?)\[\/code\]/gi,'<span class="codeStyle">$1</span> '),o(/\[quote.*?\](.*?)\[\/quote\]/gi,'<span class="quoteStyle">$1</span> '),t}var o=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=tinymce.util.Tools.resolve("tinymce.util.Tools");o.add("bbcode",function(o){o.on("BeforeSetContent",function(o){o.content=i(o.content)}),o.on("PostProcess",function(o){function e(o,e){t=t.replace(o,e)}var t;o.set&&(o.content=i(o.content)),o.get&&(o.content=(t=o.content,t=n.trim(t),e(/<a.*?href=\"(.*?)\".*?>(.*?)<\/a>/gi,"[url=$1]$2[/url]"),e(/<font.*?color=\"(.*?)\".*?class=\"codeStyle\".*?>(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"),e(/<font.*?color=\"(.*?)\".*?class=\"quoteStyle\".*?>(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"),e(/<font.*?class=\"codeStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"),e(/<font.*?class=\"quoteStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"),e(/<span style=\"color: ?(.*?);\">(.*?)<\/span>/gi,"[color=$1]$2[/color]"),e(/<font.*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[color=$1]$2[/color]"),e(/<span style=\"font-size:(.*?);\">(.*?)<\/span>/gi,"[size=$1]$2[/size]"),e(/<font>(.*?)<\/font>/gi,"$1"),e(/<img.*?src=\"(.*?)\".*?\/>/gi,"[img]$1[/img]"),e(/<span class=\"codeStyle\">(.*?)<\/span>/gi,"[code]$1[/code]"),e(/<span class=\"quoteStyle\">(.*?)<\/span>/gi,"[quote]$1[/quote]"),e(/<strong class=\"codeStyle\">(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]"),e(/<strong class=\"quoteStyle\">(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]"),e(/<em class=\"codeStyle\">(.*?)<\/em>/gi,"[code][i]$1[/i][/code]"),e(/<em class=\"quoteStyle\">(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]"),e(/<u class=\"codeStyle\">(.*?)<\/u>/gi,"[code][u]$1[/u][/code]"),e(/<u class=\"quoteStyle\">(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]"),e(/<\/(strong|b)>/gi,"[/b]"),e(/<(strong|b)>/gi,"[b]"),e(/<\/(em|i)>/gi,"[/i]"),e(/<(em|i)>/gi,"[i]"),e(/<\/u>/gi,"[/u]"),e(/<span style=\"text-decoration: ?underline;\">(.*?)<\/span>/gi,"[u]$1[/u]"),e(/<u>/gi,"[u]"),e(/<blockquote[^>]*>/gi,"[quote]"),e(/<\/blockquote>/gi,"[/quote]"),e(/<br \/>/gi,"\n"),e(/<br\/>/gi,"\n"),e(/<br>/gi,"\n"),e(/<p>/gi,""),e(/<\/p>/gi,"\n"),e(/ |\u00a0/gi," "),e(/"/gi,'"'),e(/</gi,"<"),e(/>/gi,">"),e(/&/gi,"&"),t))})})}();
|
||||
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
+1
-1
@@ -4,6 +4,6 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
!function(){"use strict";tinymce.util.Tools.resolve("tinymce.PluginManager").add("code",function(e){var t,o;function n(){return o.execCommand("mceCodeEditor")}return(t=e).addCommand("mceCodeEditor",function(){var n,e;e=(n=t).getContent({source_view:!0}),n.windowManager.open({title:"Source Code",size:"large",body:{type:"panel",items:[{type:"textarea",name:"code"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{code:e},onSubmit:function(e){var t=n,o=e.getData().code;t.focus(),t.undoManager.transact(function(){t.setContent(o)}),t.selection.setCursorLocation(),t.nodeChanged(),e.close()}})}),(o=e).ui.registry.addButton("code",{icon:"sourcecode",tooltip:"Source code",onAction:n}),o.ui.registry.addMenuItem("code",{icon:"sourcecode",text:"Source code",onAction:n}),{}})}();
|
||||
File diff suppressed because it is too large
Load Diff
+2
-2
File diff suppressed because one or more lines are too long
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
@@ -13,7 +13,6 @@
|
||||
|
||||
function Plugin () {
|
||||
global.add('colorpicker', function () {
|
||||
console.warn('Color picker plugin is now built in to the core editor, please remove it from your editor configuration');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -4,6 +4,6 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
!function(){"use strict";tinymce.util.Tools.resolve("tinymce.PluginManager").add("colorpicker",function(){console.warn("Color picker plugin is now built in to the core editor, please remove it from your editor configuration")})}();
|
||||
!function(){"use strict";tinymce.util.Tools.resolve("tinymce.PluginManager").add("colorpicker",function(){})}();
|
||||
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
@@ -13,7 +13,6 @@
|
||||
|
||||
function Plugin () {
|
||||
global.add('contextmenu', function () {
|
||||
console.warn('Context menu plugin is now built in to the core editor, please remove it from your editor configuration');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -4,6 +4,6 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
!function(){"use strict";tinymce.util.Tools.resolve("tinymce.PluginManager").add("contextmenu",function(){console.warn("Context menu plugin is now built in to the core editor, please remove it from your editor configuration")})}();
|
||||
!function(){"use strict";tinymce.util.Tools.resolve("tinymce.PluginManager").add("contextmenu",function(){})}();
|
||||
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
@@ -532,7 +532,6 @@
|
||||
|
||||
function Plugin () {
|
||||
global$4.add('fullpage', function (editor) {
|
||||
console.warn('The fullpage plugin has been deprecated and marked for removal in TinyMCE 6.0');
|
||||
var headState = Cell(''), footState = Cell('');
|
||||
register$1(editor, headState);
|
||||
register(editor);
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
@@ -275,6 +275,20 @@
|
||||
}
|
||||
return r;
|
||||
};
|
||||
var findUntil = function (xs, pred, until) {
|
||||
for (var i = 0, len = xs.length; i < len; i++) {
|
||||
var x = xs[i];
|
||||
if (pred(x, i)) {
|
||||
return Optional.some(x);
|
||||
} else if (until(x, i)) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return Optional.none();
|
||||
};
|
||||
var find$1 = function (xs, pred) {
|
||||
return findUntil(xs, pred, never);
|
||||
};
|
||||
var flatten = function (xs) {
|
||||
var r = [];
|
||||
for (var i = 0, len = xs.length; i < len; ++i) {
|
||||
@@ -294,6 +308,15 @@
|
||||
var head = function (xs) {
|
||||
return get$4(xs, 0);
|
||||
};
|
||||
var findMap = function (arr, f) {
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
var r = f(arr[i], i);
|
||||
if (r.isSome()) {
|
||||
return r;
|
||||
}
|
||||
}
|
||||
return Optional.none();
|
||||
};
|
||||
|
||||
var keys = Object.keys;
|
||||
var each = function (obj, f) {
|
||||
@@ -305,6 +328,10 @@
|
||||
}
|
||||
};
|
||||
|
||||
var contains = function (str, substr) {
|
||||
return str.indexOf(substr) !== -1;
|
||||
};
|
||||
|
||||
var isSupported$1 = function (dom) {
|
||||
return dom.style !== undefined && isFunction(dom.style.getPropertyValue);
|
||||
};
|
||||
@@ -366,6 +393,358 @@
|
||||
var isDocument = isType(DOCUMENT);
|
||||
var isDocumentFragment = isType(DOCUMENT_FRAGMENT);
|
||||
|
||||
var cached = function (f) {
|
||||
var called = false;
|
||||
var r;
|
||||
return function () {
|
||||
var args = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
args[_i] = arguments[_i];
|
||||
}
|
||||
if (!called) {
|
||||
called = true;
|
||||
r = f.apply(null, args);
|
||||
}
|
||||
return r;
|
||||
};
|
||||
};
|
||||
|
||||
var DeviceType = function (os, browser, userAgent, mediaMatch) {
|
||||
var isiPad = os.isiOS() && /ipad/i.test(userAgent) === true;
|
||||
var isiPhone = os.isiOS() && !isiPad;
|
||||
var isMobile = os.isiOS() || os.isAndroid();
|
||||
var isTouch = isMobile || mediaMatch('(pointer:coarse)');
|
||||
var isTablet = isiPad || !isiPhone && isMobile && mediaMatch('(min-device-width:768px)');
|
||||
var isPhone = isiPhone || isMobile && !isTablet;
|
||||
var iOSwebview = browser.isSafari() && os.isiOS() && /safari/i.test(userAgent) === false;
|
||||
var isDesktop = !isPhone && !isTablet && !iOSwebview;
|
||||
return {
|
||||
isiPad: constant(isiPad),
|
||||
isiPhone: constant(isiPhone),
|
||||
isTablet: constant(isTablet),
|
||||
isPhone: constant(isPhone),
|
||||
isTouch: constant(isTouch),
|
||||
isAndroid: os.isAndroid,
|
||||
isiOS: os.isiOS,
|
||||
isWebView: constant(iOSwebview),
|
||||
isDesktop: constant(isDesktop)
|
||||
};
|
||||
};
|
||||
|
||||
var firstMatch = function (regexes, s) {
|
||||
for (var i = 0; i < regexes.length; i++) {
|
||||
var x = regexes[i];
|
||||
if (x.test(s)) {
|
||||
return x;
|
||||
}
|
||||
}
|
||||
return undefined;
|
||||
};
|
||||
var find = function (regexes, agent) {
|
||||
var r = firstMatch(regexes, agent);
|
||||
if (!r) {
|
||||
return {
|
||||
major: 0,
|
||||
minor: 0
|
||||
};
|
||||
}
|
||||
var group = function (i) {
|
||||
return Number(agent.replace(r, '$' + i));
|
||||
};
|
||||
return nu$2(group(1), group(2));
|
||||
};
|
||||
var detect$3 = function (versionRegexes, agent) {
|
||||
var cleanedAgent = String(agent).toLowerCase();
|
||||
if (versionRegexes.length === 0) {
|
||||
return unknown$2();
|
||||
}
|
||||
return find(versionRegexes, cleanedAgent);
|
||||
};
|
||||
var unknown$2 = function () {
|
||||
return nu$2(0, 0);
|
||||
};
|
||||
var nu$2 = function (major, minor) {
|
||||
return {
|
||||
major: major,
|
||||
minor: minor
|
||||
};
|
||||
};
|
||||
var Version = {
|
||||
nu: nu$2,
|
||||
detect: detect$3,
|
||||
unknown: unknown$2
|
||||
};
|
||||
|
||||
var detectBrowser$1 = function (browsers, userAgentData) {
|
||||
return findMap(userAgentData.brands, function (uaBrand) {
|
||||
var lcBrand = uaBrand.brand.toLowerCase();
|
||||
return find$1(browsers, function (browser) {
|
||||
var _a;
|
||||
return lcBrand === ((_a = browser.brand) === null || _a === void 0 ? void 0 : _a.toLowerCase());
|
||||
}).map(function (info) {
|
||||
return {
|
||||
current: info.name,
|
||||
version: Version.nu(parseInt(uaBrand.version, 10), 0)
|
||||
};
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
var detect$2 = function (candidates, userAgent) {
|
||||
var agent = String(userAgent).toLowerCase();
|
||||
return find$1(candidates, function (candidate) {
|
||||
return candidate.search(agent);
|
||||
});
|
||||
};
|
||||
var detectBrowser = function (browsers, userAgent) {
|
||||
return detect$2(browsers, userAgent).map(function (browser) {
|
||||
var version = Version.detect(browser.versionRegexes, userAgent);
|
||||
return {
|
||||
current: browser.name,
|
||||
version: version
|
||||
};
|
||||
});
|
||||
};
|
||||
var detectOs = function (oses, userAgent) {
|
||||
return detect$2(oses, userAgent).map(function (os) {
|
||||
var version = Version.detect(os.versionRegexes, userAgent);
|
||||
return {
|
||||
current: os.name,
|
||||
version: version
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
var normalVersionRegex = /.*?version\/\ ?([0-9]+)\.([0-9]+).*/;
|
||||
var checkContains = function (target) {
|
||||
return function (uastring) {
|
||||
return contains(uastring, target);
|
||||
};
|
||||
};
|
||||
var browsers = [
|
||||
{
|
||||
name: 'Edge',
|
||||
versionRegexes: [/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],
|
||||
search: function (uastring) {
|
||||
return contains(uastring, 'edge/') && contains(uastring, 'chrome') && contains(uastring, 'safari') && contains(uastring, 'applewebkit');
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'Chrome',
|
||||
brand: 'Chromium',
|
||||
versionRegexes: [
|
||||
/.*?chrome\/([0-9]+)\.([0-9]+).*/,
|
||||
normalVersionRegex
|
||||
],
|
||||
search: function (uastring) {
|
||||
return contains(uastring, 'chrome') && !contains(uastring, 'chromeframe');
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'IE',
|
||||
versionRegexes: [
|
||||
/.*?msie\ ?([0-9]+)\.([0-9]+).*/,
|
||||
/.*?rv:([0-9]+)\.([0-9]+).*/
|
||||
],
|
||||
search: function (uastring) {
|
||||
return contains(uastring, 'msie') || contains(uastring, 'trident');
|
||||
}
|
||||
},
|
||||
{
|
||||
name: 'Opera',
|
||||
versionRegexes: [
|
||||
normalVersionRegex,
|
||||
/.*?opera\/([0-9]+)\.([0-9]+).*/
|
||||
],
|
||||
search: checkContains('opera')
|
||||
},
|
||||
{
|
||||
name: 'Firefox',
|
||||
versionRegexes: [/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],
|
||||
search: checkContains('firefox')
|
||||
},
|
||||
{
|
||||
name: 'Safari',
|
||||
versionRegexes: [
|
||||
normalVersionRegex,
|
||||
/.*?cpu os ([0-9]+)_([0-9]+).*/
|
||||
],
|
||||
search: function (uastring) {
|
||||
return (contains(uastring, 'safari') || contains(uastring, 'mobile/')) && contains(uastring, 'applewebkit');
|
||||
}
|
||||
}
|
||||
];
|
||||
var oses = [
|
||||
{
|
||||
name: 'Windows',
|
||||
search: checkContains('win'),
|
||||
versionRegexes: [/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]
|
||||
},
|
||||
{
|
||||
name: 'iOS',
|
||||
search: function (uastring) {
|
||||
return contains(uastring, 'iphone') || contains(uastring, 'ipad');
|
||||
},
|
||||
versionRegexes: [
|
||||
/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,
|
||||
/.*cpu os ([0-9]+)_([0-9]+).*/,
|
||||
/.*cpu iphone os ([0-9]+)_([0-9]+).*/
|
||||
]
|
||||
},
|
||||
{
|
||||
name: 'Android',
|
||||
search: checkContains('android'),
|
||||
versionRegexes: [/.*?android\ ?([0-9]+)\.([0-9]+).*/]
|
||||
},
|
||||
{
|
||||
name: 'OSX',
|
||||
search: checkContains('mac os x'),
|
||||
versionRegexes: [/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]
|
||||
},
|
||||
{
|
||||
name: 'Linux',
|
||||
search: checkContains('linux'),
|
||||
versionRegexes: []
|
||||
},
|
||||
{
|
||||
name: 'Solaris',
|
||||
search: checkContains('sunos'),
|
||||
versionRegexes: []
|
||||
},
|
||||
{
|
||||
name: 'FreeBSD',
|
||||
search: checkContains('freebsd'),
|
||||
versionRegexes: []
|
||||
},
|
||||
{
|
||||
name: 'ChromeOS',
|
||||
search: checkContains('cros'),
|
||||
versionRegexes: [/.*?chrome\/([0-9]+)\.([0-9]+).*/]
|
||||
}
|
||||
];
|
||||
var PlatformInfo = {
|
||||
browsers: constant(browsers),
|
||||
oses: constant(oses)
|
||||
};
|
||||
|
||||
var edge = 'Edge';
|
||||
var chrome = 'Chrome';
|
||||
var ie = 'IE';
|
||||
var opera = 'Opera';
|
||||
var firefox = 'Firefox';
|
||||
var safari = 'Safari';
|
||||
var unknown$1 = function () {
|
||||
return nu$1({
|
||||
current: undefined,
|
||||
version: Version.unknown()
|
||||
});
|
||||
};
|
||||
var nu$1 = function (info) {
|
||||
var current = info.current;
|
||||
var version = info.version;
|
||||
var isBrowser = function (name) {
|
||||
return function () {
|
||||
return current === name;
|
||||
};
|
||||
};
|
||||
return {
|
||||
current: current,
|
||||
version: version,
|
||||
isEdge: isBrowser(edge),
|
||||
isChrome: isBrowser(chrome),
|
||||
isIE: isBrowser(ie),
|
||||
isOpera: isBrowser(opera),
|
||||
isFirefox: isBrowser(firefox),
|
||||
isSafari: isBrowser(safari)
|
||||
};
|
||||
};
|
||||
var Browser = {
|
||||
unknown: unknown$1,
|
||||
nu: nu$1,
|
||||
edge: constant(edge),
|
||||
chrome: constant(chrome),
|
||||
ie: constant(ie),
|
||||
opera: constant(opera),
|
||||
firefox: constant(firefox),
|
||||
safari: constant(safari)
|
||||
};
|
||||
|
||||
var windows = 'Windows';
|
||||
var ios = 'iOS';
|
||||
var android = 'Android';
|
||||
var linux = 'Linux';
|
||||
var osx = 'OSX';
|
||||
var solaris = 'Solaris';
|
||||
var freebsd = 'FreeBSD';
|
||||
var chromeos = 'ChromeOS';
|
||||
var unknown = function () {
|
||||
return nu({
|
||||
current: undefined,
|
||||
version: Version.unknown()
|
||||
});
|
||||
};
|
||||
var nu = function (info) {
|
||||
var current = info.current;
|
||||
var version = info.version;
|
||||
var isOS = function (name) {
|
||||
return function () {
|
||||
return current === name;
|
||||
};
|
||||
};
|
||||
return {
|
||||
current: current,
|
||||
version: version,
|
||||
isWindows: isOS(windows),
|
||||
isiOS: isOS(ios),
|
||||
isAndroid: isOS(android),
|
||||
isOSX: isOS(osx),
|
||||
isLinux: isOS(linux),
|
||||
isSolaris: isOS(solaris),
|
||||
isFreeBSD: isOS(freebsd),
|
||||
isChromeOS: isOS(chromeos)
|
||||
};
|
||||
};
|
||||
var OperatingSystem = {
|
||||
unknown: unknown,
|
||||
nu: nu,
|
||||
windows: constant(windows),
|
||||
ios: constant(ios),
|
||||
android: constant(android),
|
||||
linux: constant(linux),
|
||||
osx: constant(osx),
|
||||
solaris: constant(solaris),
|
||||
freebsd: constant(freebsd),
|
||||
chromeos: constant(chromeos)
|
||||
};
|
||||
|
||||
var detect$1 = function (userAgent, userAgentDataOpt, mediaMatch) {
|
||||
var browsers = PlatformInfo.browsers();
|
||||
var oses = PlatformInfo.oses();
|
||||
var browser = userAgentDataOpt.bind(function (userAgentData) {
|
||||
return detectBrowser$1(browsers, userAgentData);
|
||||
}).orThunk(function () {
|
||||
return detectBrowser(browsers, userAgent);
|
||||
}).fold(Browser.unknown, Browser.nu);
|
||||
var os = detectOs(oses, userAgent).fold(OperatingSystem.unknown, OperatingSystem.nu);
|
||||
var deviceType = DeviceType(os, browser, userAgent, mediaMatch);
|
||||
return {
|
||||
browser: browser,
|
||||
os: os,
|
||||
deviceType: deviceType
|
||||
};
|
||||
};
|
||||
var PlatformDetection = { detect: detect$1 };
|
||||
|
||||
var mediaMatch = function (query) {
|
||||
return window.matchMedia(query).matches;
|
||||
};
|
||||
var platform = cached(function () {
|
||||
return PlatformDetection.detect(navigator.userAgent, Optional.from(navigator.userAgentData), mediaMatch);
|
||||
});
|
||||
var detect = function () {
|
||||
return platform();
|
||||
};
|
||||
|
||||
var is = function (element, selector) {
|
||||
var dom = element.dom;
|
||||
if (dom.nodeType !== ELEMENT) {
|
||||
@@ -596,7 +975,11 @@
|
||||
|
||||
var get = function (_win) {
|
||||
var win = _win === undefined ? window : _win;
|
||||
return Optional.from(win['visualViewport']);
|
||||
if (detect().browser.isFirefox()) {
|
||||
return Optional.none();
|
||||
} else {
|
||||
return Optional.from(win['visualViewport']);
|
||||
}
|
||||
};
|
||||
var bounds = function (x, y, width, height) {
|
||||
return {
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
@@ -403,8 +403,6 @@
|
||||
|
||||
var global$1 = tinymce.util.Tools.resolve('tinymce.util.I18n');
|
||||
|
||||
var premiumType = 'premium';
|
||||
var openSourceType = 'opensource';
|
||||
var urls = map([
|
||||
{
|
||||
key: 'advlist',
|
||||
@@ -526,6 +524,10 @@
|
||||
key: 'print',
|
||||
name: 'Print'
|
||||
},
|
||||
{
|
||||
key: 'quickbars',
|
||||
name: 'Quick Toolbars'
|
||||
},
|
||||
{
|
||||
key: 'save',
|
||||
name: 'Save'
|
||||
@@ -574,122 +576,112 @@
|
||||
key: 'wordcount',
|
||||
name: 'Word Count'
|
||||
},
|
||||
{
|
||||
key: 'advcode',
|
||||
name: 'Advanced Code Editor*',
|
||||
type: premiumType
|
||||
},
|
||||
{
|
||||
key: 'formatpainter',
|
||||
name: 'Format Painter*',
|
||||
type: premiumType
|
||||
},
|
||||
{
|
||||
key: 'powerpaste',
|
||||
name: 'PowerPaste*',
|
||||
type: premiumType
|
||||
},
|
||||
{
|
||||
key: 'tinydrive',
|
||||
name: 'Tiny Drive*',
|
||||
type: premiumType
|
||||
},
|
||||
{
|
||||
key: 'tinymcespellchecker',
|
||||
name: 'Spell Checker Pro*',
|
||||
type: premiumType
|
||||
},
|
||||
{
|
||||
key: 'a11ychecker',
|
||||
name: 'Accessibility Checker*',
|
||||
type: premiumType
|
||||
name: 'Accessibility Checker',
|
||||
type: 'premium'
|
||||
},
|
||||
{
|
||||
key: 'linkchecker',
|
||||
name: 'Link Checker*',
|
||||
type: premiumType
|
||||
},
|
||||
{
|
||||
key: 'mentions',
|
||||
name: 'Mentions*',
|
||||
type: premiumType
|
||||
},
|
||||
{
|
||||
key: 'mediaembed',
|
||||
name: 'Enhanced Media Embed*',
|
||||
type: premiumType
|
||||
},
|
||||
{
|
||||
key: 'checklist',
|
||||
name: 'Checklist*',
|
||||
type: premiumType
|
||||
},
|
||||
{
|
||||
key: 'casechange',
|
||||
name: 'Case Change*',
|
||||
type: premiumType
|
||||
},
|
||||
{
|
||||
key: 'permanentpen',
|
||||
name: 'Permanent Pen*',
|
||||
type: premiumType
|
||||
},
|
||||
{
|
||||
key: 'pageembed',
|
||||
name: 'Page Embed*',
|
||||
type: premiumType
|
||||
},
|
||||
{
|
||||
key: 'tinycomments',
|
||||
name: 'Tiny Comments*',
|
||||
type: premiumType,
|
||||
slug: 'comments'
|
||||
key: 'advcode',
|
||||
name: 'Advanced Code Editor',
|
||||
type: 'premium'
|
||||
},
|
||||
{
|
||||
key: 'advtable',
|
||||
name: 'Advanced Tables*',
|
||||
type: premiumType
|
||||
name: 'Advanced Tables',
|
||||
type: 'premium'
|
||||
},
|
||||
{
|
||||
key: 'autocorrect',
|
||||
name: 'Autocorrect*',
|
||||
type: premiumType
|
||||
name: 'Autocorrect',
|
||||
type: 'premium'
|
||||
},
|
||||
{
|
||||
key: 'casechange',
|
||||
name: 'Case Change',
|
||||
type: 'premium'
|
||||
},
|
||||
{
|
||||
key: 'checklist',
|
||||
name: 'Checklist',
|
||||
type: 'premium'
|
||||
},
|
||||
{
|
||||
key: 'export',
|
||||
name: 'Export*',
|
||||
type: premiumType
|
||||
name: 'Export',
|
||||
type: 'premium'
|
||||
},
|
||||
{
|
||||
key: 'mediaembed',
|
||||
name: 'Enhanced Media Embed',
|
||||
type: 'premium'
|
||||
},
|
||||
{
|
||||
key: 'formatpainter',
|
||||
name: 'Format Painter',
|
||||
type: 'premium'
|
||||
},
|
||||
{
|
||||
key: 'linkchecker',
|
||||
name: 'Link Checker',
|
||||
type: 'premium'
|
||||
},
|
||||
{
|
||||
key: 'mentions',
|
||||
name: 'Mentions',
|
||||
type: 'premium'
|
||||
},
|
||||
{
|
||||
key: 'pageembed',
|
||||
name: 'Page Embed',
|
||||
type: 'premium'
|
||||
},
|
||||
{
|
||||
key: 'permanentpen',
|
||||
name: 'Permanent Pen',
|
||||
type: 'premium'
|
||||
},
|
||||
{
|
||||
key: 'powerpaste',
|
||||
name: 'PowerPaste',
|
||||
type: 'premium'
|
||||
},
|
||||
{
|
||||
key: 'rtc',
|
||||
name: 'Real-Time Collaboration',
|
||||
type: 'premium'
|
||||
},
|
||||
{
|
||||
key: 'tinymcespellchecker',
|
||||
name: 'Spell Checker Pro',
|
||||
type: 'premium'
|
||||
},
|
||||
{
|
||||
key: 'tinycomments',
|
||||
name: 'Tiny Comments',
|
||||
type: 'premium',
|
||||
slug: 'comments'
|
||||
},
|
||||
{
|
||||
key: 'tinydrive',
|
||||
name: 'Tiny Drive',
|
||||
type: 'premium'
|
||||
}
|
||||
], function (item) {
|
||||
return __assign(__assign({}, item), {
|
||||
type: item.type || openSourceType,
|
||||
type: item.type || 'opensource',
|
||||
slug: item.slug || item.key
|
||||
});
|
||||
});
|
||||
|
||||
var tab$1 = function (editor) {
|
||||
var availablePlugins = function () {
|
||||
var premiumPlugins = [
|
||||
'Accessibility Checker',
|
||||
'Advanced Code Editor',
|
||||
'Advanced Tables',
|
||||
'Case Change',
|
||||
'Checklist',
|
||||
'Export',
|
||||
'Tiny Comments',
|
||||
'Tiny Drive',
|
||||
'Enhanced Media Embed',
|
||||
'Format Painter',
|
||||
'Link Checker',
|
||||
'Mentions',
|
||||
'MoxieManager',
|
||||
'Page Embed',
|
||||
'Permanent Pen',
|
||||
'PowerPaste',
|
||||
'Spell Checker Pro'
|
||||
];
|
||||
var premiumPlugins = filter(urls, function (_a) {
|
||||
var key = _a.key, type = _a.type;
|
||||
return key !== 'autocorrect' && type === 'premium';
|
||||
});
|
||||
var premiumPluginList = map(premiumPlugins, function (plugin) {
|
||||
return '<li>' + global$1.translate(plugin) + '</li>';
|
||||
return '<li>' + global$1.translate(plugin.name) + '</li>';
|
||||
}).join('');
|
||||
return '<div data-mce-tabstop="1" tabindex="-1">' + '<p><b>' + global$1.translate('Premium plugins:') + '</b></p>' + '<ul>' + premiumPluginList + '<li class="tox-help__more-link" "><a href="https://www.tiny.cloud/pricing/?utm_campaign=editor_referral&utm_medium=help_dialog&utm_source=tinymce" target="_blank">' + global$1.translate('Learn more...') + '</a></li>' + '</ul>' + '</div>';
|
||||
};
|
||||
@@ -703,8 +695,9 @@
|
||||
var getMetadata = editor.plugins[key].getMetadata;
|
||||
return typeof getMetadata === 'function' ? makeLink(getMetadata()) : key;
|
||||
}, function (x) {
|
||||
var name = x.type === 'premium' ? x.name + '*' : x.name;
|
||||
return makeLink({
|
||||
name: x.name,
|
||||
name: name,
|
||||
url: 'https://www.tiny.cloud/docs/plugins/' + x.type + '/' + x.slug
|
||||
});
|
||||
});
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
+1
-1
@@ -4,6 +4,6 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
!function(){"use strict";tinymce.util.Tools.resolve("tinymce.PluginManager").add("hr",function(n){var o,t;function e(){return t.execCommand("InsertHorizontalRule")}(o=n).addCommand("InsertHorizontalRule",function(){o.execCommand("mceInsertContent",!1,"<hr />")}),(t=n).ui.registry.addButton("hr",{icon:"horizontal-rule",tooltip:"Horizontal line",onAction:e}),t.ui.registry.addMenuItem("hr",{icon:"horizontal-rule",text:"Horizontal line",onAction:e})})}();
|
||||
@@ -4,12 +4,12 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
var global$5 = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
||||
var global$6 = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
||||
|
||||
var __assign = function () {
|
||||
__assign = Object.assign || function __assign(t) {
|
||||
@@ -282,9 +282,11 @@
|
||||
fromPoint: fromPoint
|
||||
};
|
||||
|
||||
var global$4 = tinymce.util.Tools.resolve('tinymce.dom.DOMUtils');
|
||||
var global$5 = tinymce.util.Tools.resolve('tinymce.dom.DOMUtils');
|
||||
|
||||
var global$3 = tinymce.util.Tools.resolve('tinymce.util.Promise');
|
||||
var global$4 = tinymce.util.Tools.resolve('tinymce.util.Promise');
|
||||
|
||||
var global$3 = tinymce.util.Tools.resolve('tinymce.util.URI');
|
||||
|
||||
var global$2 = tinymce.util.Tools.resolve('tinymce.util.XHR');
|
||||
|
||||
@@ -332,7 +334,7 @@
|
||||
return Math.max(parseInt(val1, 10), parseInt(val2, 10));
|
||||
};
|
||||
var getImageSize = function (url) {
|
||||
return new global$3(function (callback) {
|
||||
return new global$4(function (callback) {
|
||||
var img = document.createElement('img');
|
||||
var done = function (dimensions) {
|
||||
img.onload = img.onerror = null;
|
||||
@@ -348,10 +350,10 @@
|
||||
width: width,
|
||||
height: height
|
||||
};
|
||||
done(global$3.resolve(dimensions));
|
||||
done(global$4.resolve(dimensions));
|
||||
};
|
||||
img.onerror = function () {
|
||||
done(global$3.reject('Failed to get image dimensions for: ' + url));
|
||||
done(global$4.reject('Failed to get image dimensions for: ' + url));
|
||||
};
|
||||
var style = img.style;
|
||||
style.visibility = 'hidden';
|
||||
@@ -441,7 +443,7 @@
|
||||
imgElm.onerror = selectImage;
|
||||
};
|
||||
var blobToDataUri = function (blob) {
|
||||
return new global$3(function (resolve, reject) {
|
||||
return new global$4(function (resolve, reject) {
|
||||
var reader = new FileReader();
|
||||
reader.onload = function () {
|
||||
resolve(reader.result);
|
||||
@@ -455,8 +457,11 @@
|
||||
var isPlaceholderImage = function (imgElm) {
|
||||
return imgElm.nodeName === 'IMG' && (imgElm.hasAttribute('data-mce-object') || imgElm.hasAttribute('data-mce-placeholder'));
|
||||
};
|
||||
var isSafeImageUrl = function (editor, src) {
|
||||
return global$3.isDomSafe(src, 'img', editor.settings);
|
||||
};
|
||||
|
||||
var DOM = global$4.DOM;
|
||||
var DOM = global$5.DOM;
|
||||
var getHspace = function (image) {
|
||||
if (image.style.marginLeft && image.style.marginRight && image.style.marginLeft === image.style.marginRight) {
|
||||
return removePixelSuffix(image.style.marginLeft);
|
||||
@@ -782,6 +787,10 @@
|
||||
waitLoadImage(editor, data, image);
|
||||
}
|
||||
};
|
||||
var sanitizeImageData = function (editor, data) {
|
||||
var src = data.src;
|
||||
return __assign(__assign({}, data), { src: isSafeImageUrl(editor, src) ? src : '' });
|
||||
};
|
||||
var insertOrUpdateImage = function (editor, partialData) {
|
||||
var image = getSelectedImage(editor);
|
||||
if (image) {
|
||||
@@ -789,8 +798,9 @@
|
||||
return normalizeCss$1(editor, css);
|
||||
}, image);
|
||||
var data = __assign(__assign({}, selectedImageData), partialData);
|
||||
var sanitizedData = sanitizeImageData(editor, data);
|
||||
if (data.src) {
|
||||
writeImageDataToSelection(editor, data);
|
||||
writeImageDataToSelection(editor, sanitizedData);
|
||||
} else {
|
||||
deleteImage(editor, image);
|
||||
}
|
||||
@@ -1002,7 +1012,7 @@
|
||||
var urlListSanitizer = ListUtils.sanitizer(function (item) {
|
||||
return editor.convertURL(item.value || item.url, 'src');
|
||||
});
|
||||
var futureImageList = new global$3(function (completer) {
|
||||
var futureImageList = new global$4(function (completer) {
|
||||
createImageList(editor, function (imageList) {
|
||||
completer(urlListSanitizer(imageList).map(function (items) {
|
||||
return flatten([
|
||||
@@ -1504,12 +1514,19 @@
|
||||
};
|
||||
var imageSize = function (editor) {
|
||||
return function (url) {
|
||||
return getImageSize(editor.documentBaseURI.toAbsolute(url)).then(function (dimensions) {
|
||||
return {
|
||||
width: String(dimensions.width),
|
||||
height: String(dimensions.height)
|
||||
};
|
||||
});
|
||||
if (!isSafeImageUrl(editor, url)) {
|
||||
return global$4.resolve({
|
||||
width: '',
|
||||
height: ''
|
||||
});
|
||||
} else {
|
||||
return getImageSize(editor.documentBaseURI.toAbsolute(url)).then(function (dimensions) {
|
||||
return {
|
||||
width: String(dimensions.width),
|
||||
height: String(dimensions.height)
|
||||
};
|
||||
});
|
||||
}
|
||||
};
|
||||
};
|
||||
var createBlobCache = function (editor) {
|
||||
@@ -1552,9 +1569,9 @@
|
||||
return function (blobInfo) {
|
||||
return global$1(editor).upload([blobInfo], false).then(function (results) {
|
||||
if (results.length === 0) {
|
||||
return global$3.reject('Failed to upload image');
|
||||
return global$4.reject('Failed to upload image');
|
||||
} else if (results[0].status === false) {
|
||||
return global$3.reject(results[0].error.message);
|
||||
return global$4.reject(results[0].error.message);
|
||||
} else {
|
||||
return results[0];
|
||||
}
|
||||
@@ -1620,6 +1637,7 @@
|
||||
tooltip: 'Insert/edit image',
|
||||
onAction: Dialog(editor).open,
|
||||
onSetup: function (buttonApi) {
|
||||
buttonApi.setActive(isNonNullable(getSelectedImage(editor)));
|
||||
return editor.selection.selectorChangedWithUnbind('img:not([data-mce-object],[data-mce-placeholder]),figure.image', buttonApi.setActive).unbind;
|
||||
}
|
||||
});
|
||||
@@ -1636,7 +1654,7 @@
|
||||
};
|
||||
|
||||
function Plugin () {
|
||||
global$5.add('image', function (editor) {
|
||||
global$6.add('image', function (editor) {
|
||||
setup(editor);
|
||||
register(editor);
|
||||
register$1(editor);
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
@@ -23,9 +23,9 @@
|
||||
};
|
||||
};
|
||||
|
||||
var global$4 = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
||||
var global$5 = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
||||
|
||||
var global$3 = tinymce.util.Tools.resolve('tinymce.util.Tools');
|
||||
var global$4 = tinymce.util.Tools.resolve('tinymce.util.Tools');
|
||||
|
||||
var typeOf = function (x) {
|
||||
var t = typeof x;
|
||||
@@ -160,6 +160,221 @@
|
||||
from: from
|
||||
};
|
||||
|
||||
var exports$1 = {}, module = { exports: exports$1 };
|
||||
(function (define, exports, module, require) {
|
||||
(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof define === 'function' && define.amd ? define(factory) : (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.EphoxContactWrapper = factory());
|
||||
}(this, function () {
|
||||
var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof window !== 'undefined' ? window : typeof global !== 'undefined' ? global : typeof self !== 'undefined' ? self : {};
|
||||
var promise = { exports: {} };
|
||||
(function (module) {
|
||||
(function (root) {
|
||||
var setTimeoutFunc = setTimeout;
|
||||
function noop() {
|
||||
}
|
||||
function bind(fn, thisArg) {
|
||||
return function () {
|
||||
fn.apply(thisArg, arguments);
|
||||
};
|
||||
}
|
||||
function Promise(fn) {
|
||||
if (typeof this !== 'object')
|
||||
throw new TypeError('Promises must be constructed via new');
|
||||
if (typeof fn !== 'function')
|
||||
throw new TypeError('not a function');
|
||||
this._state = 0;
|
||||
this._handled = false;
|
||||
this._value = undefined;
|
||||
this._deferreds = [];
|
||||
doResolve(fn, this);
|
||||
}
|
||||
function handle(self, deferred) {
|
||||
while (self._state === 3) {
|
||||
self = self._value;
|
||||
}
|
||||
if (self._state === 0) {
|
||||
self._deferreds.push(deferred);
|
||||
return;
|
||||
}
|
||||
self._handled = true;
|
||||
Promise._immediateFn(function () {
|
||||
var cb = self._state === 1 ? deferred.onFulfilled : deferred.onRejected;
|
||||
if (cb === null) {
|
||||
(self._state === 1 ? resolve : reject)(deferred.promise, self._value);
|
||||
return;
|
||||
}
|
||||
var ret;
|
||||
try {
|
||||
ret = cb(self._value);
|
||||
} catch (e) {
|
||||
reject(deferred.promise, e);
|
||||
return;
|
||||
}
|
||||
resolve(deferred.promise, ret);
|
||||
});
|
||||
}
|
||||
function resolve(self, newValue) {
|
||||
try {
|
||||
if (newValue === self)
|
||||
throw new TypeError('A promise cannot be resolved with itself.');
|
||||
if (newValue && (typeof newValue === 'object' || typeof newValue === 'function')) {
|
||||
var then = newValue.then;
|
||||
if (newValue instanceof Promise) {
|
||||
self._state = 3;
|
||||
self._value = newValue;
|
||||
finale(self);
|
||||
return;
|
||||
} else if (typeof then === 'function') {
|
||||
doResolve(bind(then, newValue), self);
|
||||
return;
|
||||
}
|
||||
}
|
||||
self._state = 1;
|
||||
self._value = newValue;
|
||||
finale(self);
|
||||
} catch (e) {
|
||||
reject(self, e);
|
||||
}
|
||||
}
|
||||
function reject(self, newValue) {
|
||||
self._state = 2;
|
||||
self._value = newValue;
|
||||
finale(self);
|
||||
}
|
||||
function finale(self) {
|
||||
if (self._state === 2 && self._deferreds.length === 0) {
|
||||
Promise._immediateFn(function () {
|
||||
if (!self._handled) {
|
||||
Promise._unhandledRejectionFn(self._value);
|
||||
}
|
||||
});
|
||||
}
|
||||
for (var i = 0, len = self._deferreds.length; i < len; i++) {
|
||||
handle(self, self._deferreds[i]);
|
||||
}
|
||||
self._deferreds = null;
|
||||
}
|
||||
function Handler(onFulfilled, onRejected, promise) {
|
||||
this.onFulfilled = typeof onFulfilled === 'function' ? onFulfilled : null;
|
||||
this.onRejected = typeof onRejected === 'function' ? onRejected : null;
|
||||
this.promise = promise;
|
||||
}
|
||||
function doResolve(fn, self) {
|
||||
var done = false;
|
||||
try {
|
||||
fn(function (value) {
|
||||
if (done)
|
||||
return;
|
||||
done = true;
|
||||
resolve(self, value);
|
||||
}, function (reason) {
|
||||
if (done)
|
||||
return;
|
||||
done = true;
|
||||
reject(self, reason);
|
||||
});
|
||||
} catch (ex) {
|
||||
if (done)
|
||||
return;
|
||||
done = true;
|
||||
reject(self, ex);
|
||||
}
|
||||
}
|
||||
Promise.prototype['catch'] = function (onRejected) {
|
||||
return this.then(null, onRejected);
|
||||
};
|
||||
Promise.prototype.then = function (onFulfilled, onRejected) {
|
||||
var prom = new this.constructor(noop);
|
||||
handle(this, new Handler(onFulfilled, onRejected, prom));
|
||||
return prom;
|
||||
};
|
||||
Promise.all = function (arr) {
|
||||
var args = Array.prototype.slice.call(arr);
|
||||
return new Promise(function (resolve, reject) {
|
||||
if (args.length === 0)
|
||||
return resolve([]);
|
||||
var remaining = args.length;
|
||||
function res(i, val) {
|
||||
try {
|
||||
if (val && (typeof val === 'object' || typeof val === 'function')) {
|
||||
var then = val.then;
|
||||
if (typeof then === 'function') {
|
||||
then.call(val, function (val) {
|
||||
res(i, val);
|
||||
}, reject);
|
||||
return;
|
||||
}
|
||||
}
|
||||
args[i] = val;
|
||||
if (--remaining === 0) {
|
||||
resolve(args);
|
||||
}
|
||||
} catch (ex) {
|
||||
reject(ex);
|
||||
}
|
||||
}
|
||||
for (var i = 0; i < args.length; i++) {
|
||||
res(i, args[i]);
|
||||
}
|
||||
});
|
||||
};
|
||||
Promise.resolve = function (value) {
|
||||
if (value && typeof value === 'object' && value.constructor === Promise) {
|
||||
return value;
|
||||
}
|
||||
return new Promise(function (resolve) {
|
||||
resolve(value);
|
||||
});
|
||||
};
|
||||
Promise.reject = function (value) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
reject(value);
|
||||
});
|
||||
};
|
||||
Promise.race = function (values) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
for (var i = 0, len = values.length; i < len; i++) {
|
||||
values[i].then(resolve, reject);
|
||||
}
|
||||
});
|
||||
};
|
||||
Promise._immediateFn = typeof setImmediate === 'function' ? function (fn) {
|
||||
setImmediate(fn);
|
||||
} : function (fn) {
|
||||
setTimeoutFunc(fn, 0);
|
||||
};
|
||||
Promise._unhandledRejectionFn = function _unhandledRejectionFn(err) {
|
||||
if (typeof console !== 'undefined' && console) {
|
||||
console.warn('Possible Unhandled Promise Rejection:', err);
|
||||
}
|
||||
};
|
||||
Promise._setImmediateFn = function _setImmediateFn(fn) {
|
||||
Promise._immediateFn = fn;
|
||||
};
|
||||
Promise._setUnhandledRejectionFn = function _setUnhandledRejectionFn(fn) {
|
||||
Promise._unhandledRejectionFn = fn;
|
||||
};
|
||||
if (module.exports) {
|
||||
module.exports = Promise;
|
||||
} else if (!root.Promise) {
|
||||
root.Promise = Promise;
|
||||
}
|
||||
}(commonjsGlobal));
|
||||
}(promise));
|
||||
var promisePolyfill = promise.exports;
|
||||
var Global = function () {
|
||||
if (typeof window !== 'undefined') {
|
||||
return window;
|
||||
} else {
|
||||
return Function('return this;')();
|
||||
}
|
||||
}();
|
||||
var promisePolyfill_1 = { boltExport: Global.Promise || promisePolyfill };
|
||||
return promisePolyfill_1;
|
||||
}));
|
||||
}(undefined, exports$1, module));
|
||||
var Promise$1 = module.exports.boltExport;
|
||||
|
||||
var create$1 = function (width, height) {
|
||||
return resize(document.createElement('canvas'), width, height);
|
||||
};
|
||||
@@ -185,187 +400,6 @@
|
||||
return image.naturalHeight || image.height;
|
||||
};
|
||||
|
||||
var promise = function () {
|
||||
var Promise = function (fn) {
|
||||
if (typeof this !== 'object') {
|
||||
throw new TypeError('Promises must be constructed via new');
|
||||
}
|
||||
if (typeof fn !== 'function') {
|
||||
throw new TypeError('not a function');
|
||||
}
|
||||
this._state = null;
|
||||
this._value = null;
|
||||
this._deferreds = [];
|
||||
doResolve(fn, bind(resolve, this), bind(reject, this));
|
||||
};
|
||||
var anyWindow = window;
|
||||
var asap = Promise.immediateFn || typeof anyWindow.setImmediate === 'function' && anyWindow.setImmediate || function (fn) {
|
||||
return setTimeout(fn, 1);
|
||||
};
|
||||
var bind = function (fn, thisArg) {
|
||||
return function () {
|
||||
var args = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
args[_i] = arguments[_i];
|
||||
}
|
||||
return fn.apply(thisArg, args);
|
||||
};
|
||||
};
|
||||
var isArray = Array.isArray || function (value) {
|
||||
return Object.prototype.toString.call(value) === '[object Array]';
|
||||
};
|
||||
function handle(deferred) {
|
||||
var me = this;
|
||||
if (this._state === null) {
|
||||
this._deferreds.push(deferred);
|
||||
return;
|
||||
}
|
||||
asap(function () {
|
||||
var cb = me._state ? deferred.onFulfilled : deferred.onRejected;
|
||||
if (cb === null) {
|
||||
(me._state ? deferred.resolve : deferred.reject)(me._value);
|
||||
return;
|
||||
}
|
||||
var ret;
|
||||
try {
|
||||
ret = cb(me._value);
|
||||
} catch (e) {
|
||||
deferred.reject(e);
|
||||
return;
|
||||
}
|
||||
deferred.resolve(ret);
|
||||
});
|
||||
}
|
||||
function resolve(newValue) {
|
||||
try {
|
||||
if (newValue === this) {
|
||||
throw new TypeError('A promise cannot be resolved with itself.');
|
||||
}
|
||||
if (newValue && (typeof newValue === 'object' || typeof newValue === 'function')) {
|
||||
var then = newValue.then;
|
||||
if (typeof then === 'function') {
|
||||
doResolve(bind(then, newValue), bind(resolve, this), bind(reject, this));
|
||||
return;
|
||||
}
|
||||
}
|
||||
this._state = true;
|
||||
this._value = newValue;
|
||||
finale.call(this);
|
||||
} catch (e) {
|
||||
reject.call(this, e);
|
||||
}
|
||||
}
|
||||
function reject(newValue) {
|
||||
this._state = false;
|
||||
this._value = newValue;
|
||||
finale.call(this);
|
||||
}
|
||||
function finale() {
|
||||
for (var _i = 0, _a = this._deferreds; _i < _a.length; _i++) {
|
||||
var deferred = _a[_i];
|
||||
handle.call(this, deferred);
|
||||
}
|
||||
this._deferreds = [];
|
||||
}
|
||||
function Handler(onFulfilled, onRejected, resolve, reject) {
|
||||
this.onFulfilled = typeof onFulfilled === 'function' ? onFulfilled : null;
|
||||
this.onRejected = typeof onRejected === 'function' ? onRejected : null;
|
||||
this.resolve = resolve;
|
||||
this.reject = reject;
|
||||
}
|
||||
var doResolve = function (fn, onFulfilled, onRejected) {
|
||||
var done = false;
|
||||
try {
|
||||
fn(function (value) {
|
||||
if (done) {
|
||||
return;
|
||||
}
|
||||
done = true;
|
||||
onFulfilled(value);
|
||||
}, function (reason) {
|
||||
if (done) {
|
||||
return;
|
||||
}
|
||||
done = true;
|
||||
onRejected(reason);
|
||||
});
|
||||
} catch (ex) {
|
||||
if (done) {
|
||||
return;
|
||||
}
|
||||
done = true;
|
||||
onRejected(ex);
|
||||
}
|
||||
};
|
||||
Promise.prototype.catch = function (onRejected) {
|
||||
return this.then(null, onRejected);
|
||||
};
|
||||
Promise.prototype.then = function (onFulfilled, onRejected) {
|
||||
var me = this;
|
||||
return new Promise(function (resolve, reject) {
|
||||
handle.call(me, new Handler(onFulfilled, onRejected, resolve, reject));
|
||||
});
|
||||
};
|
||||
Promise.all = function () {
|
||||
var values = [];
|
||||
for (var _i = 0; _i < arguments.length; _i++) {
|
||||
values[_i] = arguments[_i];
|
||||
}
|
||||
var args = Array.prototype.slice.call(values.length === 1 && isArray(values[0]) ? values[0] : values);
|
||||
return new Promise(function (resolve, reject) {
|
||||
if (args.length === 0) {
|
||||
return resolve([]);
|
||||
}
|
||||
var remaining = args.length;
|
||||
var res = function (i, val) {
|
||||
try {
|
||||
if (val && (typeof val === 'object' || typeof val === 'function')) {
|
||||
var then = val.then;
|
||||
if (typeof then === 'function') {
|
||||
then.call(val, function (val) {
|
||||
res(i, val);
|
||||
}, reject);
|
||||
return;
|
||||
}
|
||||
}
|
||||
args[i] = val;
|
||||
if (--remaining === 0) {
|
||||
resolve(args);
|
||||
}
|
||||
} catch (ex) {
|
||||
reject(ex);
|
||||
}
|
||||
};
|
||||
for (var i = 0; i < args.length; i++) {
|
||||
res(i, args[i]);
|
||||
}
|
||||
});
|
||||
};
|
||||
Promise.resolve = function (value) {
|
||||
if (value && typeof value === 'object' && value.constructor === Promise) {
|
||||
return value;
|
||||
}
|
||||
return new Promise(function (resolve) {
|
||||
resolve(value);
|
||||
});
|
||||
};
|
||||
Promise.reject = function (reason) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
reject(reason);
|
||||
});
|
||||
};
|
||||
Promise.race = function (values) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
for (var _i = 0, values_1 = values; _i < values_1.length; _i++) {
|
||||
var value = values_1[_i];
|
||||
value.then(resolve, reject);
|
||||
}
|
||||
});
|
||||
};
|
||||
return Promise;
|
||||
};
|
||||
var Promise$1 = window.Promise ? window.Promise : promise();
|
||||
|
||||
var imageToBlob$2 = function (image) {
|
||||
var src = image.src;
|
||||
if (src.indexOf('data:') === 0) {
|
||||
@@ -1004,11 +1038,11 @@
|
||||
});
|
||||
};
|
||||
|
||||
var global$2 = tinymce.util.Tools.resolve('tinymce.util.Delay');
|
||||
var global$3 = tinymce.util.Tools.resolve('tinymce.util.Delay');
|
||||
|
||||
var global$1 = tinymce.util.Tools.resolve('tinymce.util.Promise');
|
||||
var global$2 = tinymce.util.Tools.resolve('tinymce.util.Promise');
|
||||
|
||||
var global = tinymce.util.Tools.resolve('tinymce.util.URI');
|
||||
var global$1 = tinymce.util.Tools.resolve('tinymce.util.URI');
|
||||
|
||||
var getToolbarItems = function (editor) {
|
||||
return editor.getParam('imagetools_toolbar', 'rotateleft rotateright flipv fliph editimage imageoptions');
|
||||
@@ -1134,13 +1168,13 @@
|
||||
};
|
||||
var isLocalImage = function (editor, img) {
|
||||
var url = img.src;
|
||||
return url.indexOf('data:') === 0 || url.indexOf('blob:') === 0 || new global(url).host === editor.documentBaseURI.host;
|
||||
return url.indexOf('data:') === 0 || url.indexOf('blob:') === 0 || new global$1(url).host === editor.documentBaseURI.host;
|
||||
};
|
||||
var isCorsImage = function (editor, img) {
|
||||
return global$3.inArray(getCorsHosts(editor), new global(img.src).host) !== -1;
|
||||
return global$4.inArray(getCorsHosts(editor), new global$1(img.src).host) !== -1;
|
||||
};
|
||||
var isCorsWithCredentialsImage = function (editor, img) {
|
||||
return global$3.inArray(getCredentialsHosts(editor), new global(img.src).host) !== -1;
|
||||
return global$4.inArray(getCredentialsHosts(editor), new global$1(img.src).host) !== -1;
|
||||
};
|
||||
var defaultFetchImage = function (editor, img) {
|
||||
if (isCorsImage(editor, img)) {
|
||||
@@ -1164,18 +1198,18 @@
|
||||
var findBlob = function (editor, img) {
|
||||
var blobInfo = editor.editorUpload.blobCache.getByUri(img.src);
|
||||
if (blobInfo) {
|
||||
return global$1.resolve(blobInfo.blob());
|
||||
return global$2.resolve(blobInfo.blob());
|
||||
}
|
||||
return imageToBlob(editor, img);
|
||||
};
|
||||
var startTimedUpload = function (editor, imageUploadTimerState) {
|
||||
var imageUploadTimer = global$2.setEditorTimeout(editor, function () {
|
||||
var imageUploadTimer = global$3.setEditorTimeout(editor, function () {
|
||||
editor.editorUpload.uploadImagesAuto();
|
||||
}, getUploadTimeout(editor));
|
||||
imageUploadTimerState.set(imageUploadTimer);
|
||||
};
|
||||
var cancelTimedUpload = function (imageUploadTimerState) {
|
||||
global$2.clearTimeout(imageUploadTimerState.get());
|
||||
global$3.clearTimeout(imageUploadTimerState.get());
|
||||
};
|
||||
var updateSelectedImage = function (editor, origBlob, ir, uploadImmediately, imageUploadTimerState, selectedImage, size) {
|
||||
return ir.toBlob().then(function (blob) {
|
||||
@@ -1366,7 +1400,7 @@
|
||||
};
|
||||
|
||||
var register$2 = function (editor, imageUploadTimerState) {
|
||||
global$3.each({
|
||||
global$4.each({
|
||||
mceImageRotateLeft: rotate(editor, imageUploadTimerState, -90),
|
||||
mceImageRotateRight: rotate(editor, imageUploadTimerState, 90),
|
||||
mceImageFlipVertical: flip(editor, imageUploadTimerState, 'v'),
|
||||
@@ -1482,7 +1516,7 @@
|
||||
};
|
||||
|
||||
function Plugin () {
|
||||
global$4.add('imagetools', function (editor) {
|
||||
global$5.add('imagetools', function (editor) {
|
||||
var imageUploadTimerState = Cell(0);
|
||||
var lastSelectedImageState = Cell(null);
|
||||
register$2(editor, imageUploadTimerState);
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
+1
-1
@@ -4,6 +4,6 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
!function(){"use strict";function t(n){return function(t){return r=typeof(e=t),(null===e?"null":"object"==r&&(Array.prototype.isPrototypeOf(e)||e.constructor&&"Array"===e.constructor.name)?"array":"object"==r&&(String.prototype.isPrototypeOf(e)||e.constructor&&"String"===e.constructor.name)?"string":r)===n;var e,r}}function y(t){return t.getParam("importcss_selector_converter")}function u(e){return l(e)?function(t){return-1!==t.indexOf(e)}:e instanceof RegExp?function(t){return e.test(t)}:e}function h(t,e){var r,n=/^(?:([a-z0-9\-_]+))?(\.[a-z0-9_\-\.]+)$/i.exec(e);if(n){var o=n[1],i=n[2].substr(1).split(".").join(" "),c=x.makeMap("a,img");return n[1]?(r={title:e},t.schema.getTextBlockElements()[o]?r.block=o:t.schema.getBlockElements()[o]||c[o.toLowerCase()]?r.selector=o:r.inline=o):n[2]&&(r={inline:"span",title:e.substr(1),classes:i}),!1!==t.getParam("importcss_merge_classes")?r.classes=i:r.attributes={class:i},r}}function d(t,e){return null===e||!1!==t.getParam("importcss_exclusive")}function r(v){v.on("init",function(){function o(t,e){if(f=t,p=g,!(d(v,m=e)?f in p:f in m.selectors)){a=t,l=g,d(v,u=e)?l[a]=!0:u.selectors[a]=!0;var r=(i=(o=v).plugins.importcss,c=t,((s=e)&&s.selector_converter?s.selector_converter:y(o)?y(o):function(){return h(o,c)}).call(i,c,s));if(r){var n=r.name||_.DOM.uniqueId();return v.formatter.register(n,r),{title:r.title,format:n}}}var o,i,c,s,a,u,l,f,m,p;return null}var e,r,n,t,i=(e=[],r=[],n={},{addItemToGroup:function(t,e){n[t]?n[t].push(e):(r.push(t),n[t]=[e])},addItem:function(t){e.push(t)},toFormats:function(){return function(t){for(var e=[],r=0,n=t.length;r<n;++r){if(!f(t[r]))throw new Error("Arr.flatten item "+r+" was not an array, input: "+t);P.apply(e,t[r])}return e}(function(t,e){for(var r=t.length,n=new Array(r),o=0;o<r;o++){var i=t[o];n[o]=e(i,o)}return n}(r,function(t){var e=n[t];return 0===e.length?[]:[{title:t,items:e}]})).concat(e)}}),g={},c=u(v.getParam("importcss_selector_filter")),s=(t=v.getParam("importcss_groups"),x.map(t,function(t){return x.extend({},t,{original:t,selectors:{},filter:u(t.filter)})}));x.each(function(c,t,s){var a=[],r={},u=function(t,e){var r,n,o=n=t.href,i=p.cacheSuffix;if((n=o=l(o)?o.replace("?"+i,"").replace("&"+i,""):o)&&s(n,e)&&!function(t,e){var r,n=!1!==(r=t.getParam("skin"))&&(r||"oxide");if(n){var o=t.getParam("skin_url"),i=o?t.documentBaseURI.toAbsolute(o):m.baseURL+"/skins/ui/"+n,c=m.baseURL+"/skins/content/";return e===i+"/content"+(t.inline?".inline":"")+".min.css"||-1!==e.indexOf(c)}}(c,n)){x.each(t.imports,function(t){u(t,!0)});try{r=t.cssRules||t.rules}catch(t){}x.each(r,function(t){t.styleSheet?u(t.styleSheet,!0):t.selectorText&&x.each(t.selectorText.split(","),function(t){a.push(x.trim(t))})})}};x.each(c.contentCSS,function(t){r[t]=!0}),s=s||function(t,e){return e||r[t]};try{x.each(t.styleSheets,function(t){u(t)})}catch(t){}return a}(v,v.getDoc(),u(v.getParam("importcss_file_filter"))),function(r){var t,e,n;-1===r.indexOf(".mce-")&&(c&&!c(r)||(n=r,0<(t=x.grep(s,function(t){return!t.filter||t.filter(n)})).length?x.each(t,function(t){var e=o(r,t);e&&i.addItemToGroup(t.title,e)}):(e=o(r,null))&&i.addItem(e)))});var a=i.toFormats();v.fire("addStyleModifications",{items:a,replace:!v.getParam("importcss_append")})})}var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),l=t("string"),f=t("array"),_=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),m=tinymce.util.Tools.resolve("tinymce.EditorManager"),p=tinymce.util.Tools.resolve("tinymce.Env"),x=tinymce.util.Tools.resolve("tinymce.util.Tools"),P=Array.prototype.push;e.add("importcss",function(t){return r(t),e=t,{convertSelectorToFormat:function(t){return h(e,t)}};var e})}();
|
||||
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
@@ -96,11 +96,11 @@
|
||||
};
|
||||
|
||||
var register$1 = function (editor) {
|
||||
editor.addCommand('mceInsertDate', function () {
|
||||
insertDateTime(editor, getDateFormat(editor));
|
||||
editor.addCommand('mceInsertDate', function (_ui, value) {
|
||||
insertDateTime(editor, value !== null && value !== void 0 ? value : getDateFormat(editor));
|
||||
});
|
||||
editor.addCommand('mceInsertTime', function () {
|
||||
insertDateTime(editor, getTimeFormat(editor));
|
||||
editor.addCommand('mceInsertTime', function (_ui, value) {
|
||||
insertDateTime(editor, value !== null && value !== void 0 ? value : getTimeFormat(editor));
|
||||
});
|
||||
};
|
||||
|
||||
@@ -123,6 +123,9 @@
|
||||
var register = function (editor) {
|
||||
var formats = getFormats(editor);
|
||||
var defaultFormat = Cell(getDefaultDateTime(editor));
|
||||
var insertDateTime = function (format) {
|
||||
return editor.execCommand('mceInsertDate', false, format);
|
||||
};
|
||||
editor.ui.registry.addSplitButton('insertdatetime', {
|
||||
icon: 'insert-time',
|
||||
tooltip: 'Insert date/time',
|
||||
@@ -139,17 +142,17 @@
|
||||
}));
|
||||
},
|
||||
onAction: function (_api) {
|
||||
insertDateTime(editor, defaultFormat.get());
|
||||
insertDateTime(defaultFormat.get());
|
||||
},
|
||||
onItemAction: function (_api, value) {
|
||||
defaultFormat.set(value);
|
||||
insertDateTime(editor, value);
|
||||
insertDateTime(value);
|
||||
}
|
||||
});
|
||||
var makeMenuItemHandler = function (format) {
|
||||
return function () {
|
||||
defaultFormat.set(format);
|
||||
insertDateTime(editor, format);
|
||||
insertDateTime(format);
|
||||
};
|
||||
};
|
||||
editor.ui.registry.addNestedMenuItem('insertdatetime', {
|
||||
|
||||
+2
-2
@@ -4,6 +4,6 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
!function(){"use strict";function m(e){return e.getParam("insertdatetime_timeformat",e.translate("%H:%M:%S"))}function s(e){return e.getParam("insertdatetime_formats",["%H:%M:%S","%Y-%m-%d","%I:%M:%S %p","%D"])}function r(e,t){if((e=""+e).length<t)for(var n=0;n<t-e.length;n++)e="0"+e;return e}function l(e,t,n){return void 0===n&&(n=new Date),(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace("%D","%m/%d/%Y")).replace("%r","%I:%M:%S %p")).replace("%Y",""+n.getFullYear())).replace("%y",""+n.getYear())).replace("%m",r(n.getMonth()+1,2))).replace("%d",r(n.getDate(),2))).replace("%H",""+r(n.getHours(),2))).replace("%M",""+r(n.getMinutes(),2))).replace("%S",""+r(n.getSeconds(),2))).replace("%I",""+((n.getHours()+11)%12+1))).replace("%p",n.getHours()<12?"AM":"PM")).replace("%B",""+e.translate(u[n.getMonth()]))).replace("%b",""+e.translate(o[n.getMonth()]))).replace("%A",""+e.translate(i[n.getDay()]))).replace("%a",""+e.translate(a[n.getDay()]))).replace("%%","%")}function d(e,t){var n,r,a,i,o,u;e.getParam("insertdatetime_element",!1)?(n=l(e,t),r=/%[HMSIp]/.test(t)?l(e,"%Y-%m-%dT%H:%M"):l(e,"%Y-%m-%d"),(a=e.dom.getParent(e.selection.getStart(),"time"))?(o=a,u=(i=e).dom.create("time",{datetime:r},n),o.parentNode.insertBefore(u,o),i.dom.remove(o),i.selection.select(u,!0),i.selection.collapse(!1)):e.insertContent('<time datetime="'+r+'">'+n+"</time>")):e.insertContent(l(e,t))}var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),a="Sun Mon Tue Wed Thu Fri Sat Sun".split(" "),i="Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),o="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),u="January February March April May June July August September October November December".split(" "),p=tinymce.util.Tools.resolve("tinymce.util.Tools");e.add("insertdatetime",function(e){var t,n,r,a,i,o,u,c;(t=e).addCommand("mceInsertDate",function(){d(t,t.getParam("insertdatetime_dateformat",t.translate("%Y-%m-%d")))}),t.addCommand("mceInsertTime",function(){d(t,m(t))}),u=s(n=e),r=0<(o=s(i=n)).length?o[0]:m(i),a=r,c={get:function(){return a},set:function(e){a=e}},n.ui.registry.addSplitButton("insertdatetime",{icon:"insert-time",tooltip:"Insert date/time",select:function(e){return e===c.get()},fetch:function(e){e(p.map(u,function(e){return{type:"choiceitem",text:l(n,e),value:e}}))},onAction:function(e){d(n,c.get())},onItemAction:function(e,t){c.set(t),d(n,t)}}),n.ui.registry.addNestedMenuItem("insertdatetime",{icon:"insert-time",text:"Date/time",getSubmenuItems:function(){return p.map(u,function(e){return{type:"menuitem",text:l(n,e),onAction:(t=e,function(){c.set(t),d(n,t)})};var t})}})})}();
|
||||
!function(){"use strict";function l(e){return e.getParam("insertdatetime_timeformat",e.translate("%H:%M:%S"))}function s(e){return e.getParam("insertdatetime_formats",["%H:%M:%S","%Y-%m-%d","%I:%M:%S %p","%D"])}function r(e,t){if((e=""+e).length<t)for(var n=0;n<t-e.length;n++)e="0"+e;return e}function d(e,t,n){return void 0===n&&(n=new Date),(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=(t=t.replace("%D","%m/%d/%Y")).replace("%r","%I:%M:%S %p")).replace("%Y",""+n.getFullYear())).replace("%y",""+n.getYear())).replace("%m",r(n.getMonth()+1,2))).replace("%d",r(n.getDate(),2))).replace("%H",""+r(n.getHours(),2))).replace("%M",""+r(n.getMinutes(),2))).replace("%S",""+r(n.getSeconds(),2))).replace("%I",""+((n.getHours()+11)%12+1))).replace("%p",n.getHours()<12?"AM":"PM")).replace("%B",""+e.translate(u[n.getMonth()]))).replace("%b",""+e.translate(o[n.getMonth()]))).replace("%A",""+e.translate(i[n.getDay()]))).replace("%a",""+e.translate(a[n.getDay()]))).replace("%%","%")}function p(e,t){var n,r,a,i,o,u;e.getParam("insertdatetime_element",!1)?(n=d(e,t),r=/%[HMSIp]/.test(t)?d(e,"%Y-%m-%dT%H:%M"):d(e,"%Y-%m-%d"),(a=e.dom.getParent(e.selection.getStart(),"time"))?(o=a,u=(i=e).dom.create("time",{datetime:r},n),o.parentNode.insertBefore(u,o),i.dom.remove(o),i.selection.select(u,!0),i.selection.collapse(!1)):e.insertContent('<time datetime="'+r+'">'+n+"</time>")):e.insertContent(d(e,t))}var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),a="Sun Mon Tue Wed Thu Fri Sat Sun".split(" "),i="Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),o="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),u="January February March April May June July August September October November December".split(" "),g=tinymce.util.Tools.resolve("tinymce.util.Tools");e.add("insertdatetime",function(e){var n,r,t,a,i,o,u,c;function m(e){return r.execCommand("mceInsertDate",!1,e)}(n=e).addCommand("mceInsertDate",function(e,t){p(n,null!=t?t:n.getParam("insertdatetime_dateformat",n.translate("%Y-%m-%d")))}),n.addCommand("mceInsertTime",function(e,t){p(n,null!=t?t:l(n))}),u=s(r=e),t=0<(o=s(i=r)).length?o[0]:l(i),a=t,c={get:function(){return a},set:function(e){a=e}},r.ui.registry.addSplitButton("insertdatetime",{icon:"insert-time",tooltip:"Insert date/time",select:function(e){return e===c.get()},fetch:function(e){e(g.map(u,function(e){return{type:"choiceitem",text:d(r,e),value:e}}))},onAction:function(e){m(c.get())},onItemAction:function(e,t){c.set(t),m(t)}}),r.ui.registry.addNestedMenuItem("insertdatetime",{icon:"insert-time",text:"Date/time",getSubmenuItems:function(){return g.map(u,function(e){return{type:"menuitem",text:d(r,e),onAction:(t=e,function(){c.set(t),m(t)})};var t})}})})}();
|
||||
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
@@ -190,7 +190,6 @@
|
||||
|
||||
function Plugin () {
|
||||
global$1.add('legacyoutput', function (editor) {
|
||||
console.warn('The legacyoutput plugin has been deprecated and marked for removal in TinyMCE 6.0');
|
||||
setup(editor);
|
||||
});
|
||||
}
|
||||
|
||||
+2
-2
@@ -4,6 +4,6 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),l=tinymce.util.Tools.resolve("tinymce.util.Tools");e.add("legacyoutput",function(e){var s,t;console.warn("The legacyoutput plugin has been deprecated and marked for removal in TinyMCE 6.0"),(t=s=e).settings.inline_styles=!1,t.getParam("fontsize_formats")||(t.settings.fontsize_formats="8pt=1 10pt=2 12pt=3 14pt=4 18pt=5 24pt=6 36pt=7"),t.getParam("font_formats")||(t.settings.font_formats="Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats"),s.on("PreInit",function(){var e=s,t="p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table",i=l.explode(e.getParam("font_size_style_values","xx-small,x-small,small,medium,large,x-large,xx-large")),a=e.schema;e.formatter.register({alignleft:{selector:t,attributes:{align:"left"}},aligncenter:{selector:t,attributes:{align:"center"}},alignright:{selector:t,attributes:{align:"right"}},alignjustify:{selector:t,attributes:{align:"justify"}},bold:[{inline:"b",remove:"all",preserve_attributes:["class","style"]},{inline:"strong",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontWeight:"bold"}}],italic:[{inline:"i",remove:"all",preserve_attributes:["class","style"]},{inline:"em",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontStyle:"italic"}}],underline:[{inline:"u",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{textDecoration:"underline"},exact:!0}],strikethrough:[{inline:"strike",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{textDecoration:"line-through"},exact:!0}],fontname:{inline:"font",toggle:!1,attributes:{face:"%value"}},fontsize:{inline:"font",toggle:!1,attributes:{size:function(e){return String(l.inArray(i,e.value)+1)}}},forecolor:{inline:"font",attributes:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"font",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0}}),l.each("b,i,u,strike".split(","),function(e){a.addValidElements(e+"[*]")}),a.getElementRule("font")||a.addValidElements("font[face|size|color|style]"),l.each(t.split(","),function(e){var t=a.getElementRule(e);t&&(t.attributes.align||(t.attributes.align={},t.attributesOrder.push("align")))})})})}();
|
||||
!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),l=tinymce.util.Tools.resolve("tinymce.util.Tools");e.add("legacyoutput",function(e){var s,t;(t=s=e).settings.inline_styles=!1,t.getParam("fontsize_formats")||(t.settings.fontsize_formats="8pt=1 10pt=2 12pt=3 14pt=4 18pt=5 24pt=6 36pt=7"),t.getParam("font_formats")||(t.settings.font_formats="Andale Mono=andale mono,monospace;Arial=arial,helvetica,sans-serif;Arial Black=arial black,sans-serif;Book Antiqua=book antiqua,palatino,serif;Comic Sans MS=comic sans ms,sans-serif;Courier New=courier new,courier,monospace;Georgia=georgia,palatino,serif;Helvetica=helvetica,arial,sans-serif;Impact=impact,sans-serif;Symbol=symbol;Tahoma=tahoma,arial,helvetica,sans-serif;Terminal=terminal,monaco,monospace;Times New Roman=times new roman,times,serif;Trebuchet MS=trebuchet ms,geneva,sans-serif;Verdana=verdana,geneva,sans-serif;Webdings=webdings;Wingdings=wingdings,zapf dingbats"),s.on("PreInit",function(){var e=s,t="p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table",i=l.explode(e.getParam("font_size_style_values","xx-small,x-small,small,medium,large,x-large,xx-large")),a=e.schema;e.formatter.register({alignleft:{selector:t,attributes:{align:"left"}},aligncenter:{selector:t,attributes:{align:"center"}},alignright:{selector:t,attributes:{align:"right"}},alignjustify:{selector:t,attributes:{align:"justify"}},bold:[{inline:"b",remove:"all",preserve_attributes:["class","style"]},{inline:"strong",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontWeight:"bold"}}],italic:[{inline:"i",remove:"all",preserve_attributes:["class","style"]},{inline:"em",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{fontStyle:"italic"}}],underline:[{inline:"u",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{textDecoration:"underline"},exact:!0}],strikethrough:[{inline:"strike",remove:"all",preserve_attributes:["class","style"]},{inline:"span",styles:{textDecoration:"line-through"},exact:!0}],fontname:{inline:"font",toggle:!1,attributes:{face:"%value"}},fontsize:{inline:"font",toggle:!1,attributes:{size:function(e){return String(l.inArray(i,e.value)+1)}}},forecolor:{inline:"font",attributes:{color:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0},hilitecolor:{inline:"font",styles:{backgroundColor:"%value"},links:!0,remove_similar:!0,clear_child_styles:!0}}),l.each("b,i,u,strike".split(","),function(e){a.addValidElements(e+"[*]")}),a.getElementRule("font")||a.addValidElements("font[face|size|color|style]"),l.each(t.split(","),function(e){var t=a.getElementRule(e);t&&(t.attributes.align||(t.attributes.align={},t.attributesOrder.push("align")))})})})}();
|
||||
@@ -4,14 +4,14 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
var global$6 = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
||||
var global$7 = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
||||
|
||||
var global$5 = tinymce.util.Tools.resolve('tinymce.util.VK');
|
||||
var global$6 = tinymce.util.Tools.resolve('tinymce.util.VK');
|
||||
|
||||
var typeOf = function (x) {
|
||||
var t = typeof x;
|
||||
@@ -265,7 +265,7 @@
|
||||
return editor.getParam('link_default_protocol', 'http', 'string');
|
||||
};
|
||||
|
||||
var global$4 = tinymce.util.Tools.resolve('tinymce.util.Tools');
|
||||
var global$5 = tinymce.util.Tools.resolve('tinymce.util.Tools');
|
||||
|
||||
var getValue = function (item) {
|
||||
return isString(item.value) ? item.value : '';
|
||||
@@ -281,7 +281,7 @@
|
||||
};
|
||||
var sanitizeList = function (list, extractValue) {
|
||||
var out = [];
|
||||
global$4.each(list, function (item) {
|
||||
global$5.each(list, function (item) {
|
||||
var text = getText(item);
|
||||
if (item.menu !== undefined) {
|
||||
var items = sanitizeList(item.menu, extractValue);
|
||||
@@ -376,7 +376,9 @@
|
||||
return has(obj, key) && obj[key] !== undefined && obj[key] !== null;
|
||||
};
|
||||
|
||||
var global$3 = tinymce.util.Tools.resolve('tinymce.dom.TreeWalker');
|
||||
var global$4 = tinymce.util.Tools.resolve('tinymce.dom.TreeWalker');
|
||||
|
||||
var global$3 = tinymce.util.Tools.resolve('tinymce.util.URI');
|
||||
|
||||
var isAnchor = function (elm) {
|
||||
return elm && elm.nodeName.toLowerCase() === 'a';
|
||||
@@ -389,7 +391,7 @@
|
||||
return [];
|
||||
} else {
|
||||
var contents = rng.cloneContents();
|
||||
var walker = new global$3(contents.firstChild, contents);
|
||||
var walker = new global$4(contents.firstChild, contents);
|
||||
var elements = [];
|
||||
var current = contents.firstChild;
|
||||
do {
|
||||
@@ -411,7 +413,7 @@
|
||||
var rules = ['noopener'];
|
||||
var rels = rel ? rel.split(/\s+/) : [];
|
||||
var toString = function (rels) {
|
||||
return global$4.trim(rels.sort().join(' '));
|
||||
return global$5.trim(rels.sort().join(' '));
|
||||
};
|
||||
var addTargetRules = function (rels) {
|
||||
rels = removeTargetRules(rels);
|
||||
@@ -419,7 +421,7 @@
|
||||
};
|
||||
var removeTargetRules = function (rels) {
|
||||
return rels.filter(function (val) {
|
||||
return global$4.inArray(rules, val) === -1;
|
||||
return global$5.inArray(rules, val) === -1;
|
||||
});
|
||||
};
|
||||
var newRels = isUnsafe ? addTargetRules(rels) : removeTargetRules(rels);
|
||||
@@ -441,7 +443,7 @@
|
||||
return trimCaretContainers(text);
|
||||
};
|
||||
var hasLinks = function (elements) {
|
||||
return global$4.grep(elements, isLink).length > 0;
|
||||
return global$5.grep(elements, isLink).length > 0;
|
||||
};
|
||||
var hasLinksInSelection = function (rng) {
|
||||
return collectNodesInRange(rng, isLink).length > 0;
|
||||
@@ -567,8 +569,13 @@
|
||||
return isNull(v) === false;
|
||||
});
|
||||
};
|
||||
var sanitizeData = function (editor, data) {
|
||||
var href = data.href;
|
||||
return __assign(__assign({}, data), { href: global$3.isDomSafe(href, 'a', editor.settings) ? href : '' });
|
||||
};
|
||||
var link = function (editor, attachState, data) {
|
||||
editor.hasPlugin('rtc', true) ? editor.execCommand('createlink', false, unwrapOptions(data)) : linkDomMutation(editor, attachState, data);
|
||||
var sanitizedData = sanitizeData(editor, data);
|
||||
editor.hasPlugin('rtc', true) ? editor.execCommand('createlink', false, unwrapOptions(sanitizedData)) : linkDomMutation(editor, attachState, sanitizedData);
|
||||
};
|
||||
var unlink = function (editor) {
|
||||
editor.hasPlugin('rtc', true) ? editor.execCommand('unlink') : unlinkDomMutation(editor);
|
||||
@@ -1062,7 +1069,7 @@
|
||||
var setupGotoLinks = function (editor) {
|
||||
editor.on('click', function (e) {
|
||||
var link = getLink(editor, e.target);
|
||||
if (link && global$5.metaKeyPressed(e)) {
|
||||
if (link && global$6.metaKeyPressed(e)) {
|
||||
e.preventDefault();
|
||||
gotoLink(editor, link);
|
||||
}
|
||||
@@ -1270,7 +1277,7 @@
|
||||
};
|
||||
|
||||
function Plugin () {
|
||||
global$6.add('link', function (editor) {
|
||||
global$7.add('link', function (editor) {
|
||||
setupButtons(editor);
|
||||
setupMenuItems(editor);
|
||||
setupContextMenu(editor);
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
@@ -1763,7 +1763,7 @@
|
||||
} else {
|
||||
applyList(editor, listName, detail);
|
||||
var bookmark = createBookmark(editor.selection.getRng());
|
||||
var allLists = parentIsList ? __spreadArray([parentList], lists) : lists;
|
||||
var allLists = parentIsList ? __spreadArray([parentList], lists, true) : lists;
|
||||
global$2.each(allLists, function (elm) {
|
||||
updateList$1(editor, elm, listName, detail);
|
||||
});
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
@@ -665,6 +665,39 @@
|
||||
}
|
||||
};
|
||||
|
||||
var isMediaElement = function (element) {
|
||||
return element.hasAttribute('data-mce-object') || element.hasAttribute('data-ephox-embed-iri');
|
||||
};
|
||||
var setup$2 = function (editor) {
|
||||
editor.on('click keyup touchend', function () {
|
||||
var selectedNode = editor.selection.getNode();
|
||||
if (selectedNode && editor.dom.hasClass(selectedNode, 'mce-preview-object')) {
|
||||
if (editor.dom.getAttrib(selectedNode, 'data-mce-selected')) {
|
||||
selectedNode.setAttribute('data-mce-selected', '2');
|
||||
}
|
||||
}
|
||||
});
|
||||
editor.on('ObjectSelected', function (e) {
|
||||
var objectType = e.target.getAttribute('data-mce-object');
|
||||
if (objectType === 'script') {
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
editor.on('ObjectResized', function (e) {
|
||||
var target = e.target;
|
||||
if (target.getAttribute('data-mce-object')) {
|
||||
var html = target.getAttribute('data-mce-html');
|
||||
if (html) {
|
||||
html = unescape(html);
|
||||
target.setAttribute('data-mce-html', escape(updateHtml(html, {
|
||||
width: String(e.width),
|
||||
height: String(e.height)
|
||||
})));
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
var global$3 = tinymce.util.Tools.resolve('tinymce.util.Promise');
|
||||
|
||||
var cache = {};
|
||||
@@ -792,9 +825,6 @@
|
||||
var snippetToData = function (editor, embedSnippet) {
|
||||
return htmlToData(getScripts(editor), embedSnippet);
|
||||
};
|
||||
var isMediaElement = function (element) {
|
||||
return element.hasAttribute('data-mce-object') || element.hasAttribute('data-ephox-embed-iri');
|
||||
};
|
||||
var getEditorData = function (editor) {
|
||||
var element = editor.selection.getNode();
|
||||
var snippet = isMediaElement(element) ? editor.serializer.serialize(element, { selection: true }) : '';
|
||||
@@ -1128,7 +1158,7 @@
|
||||
});
|
||||
var sanitizedHtml = previewWrapper.attr('data-mce-html');
|
||||
if (isNonNullable(sanitizedHtml)) {
|
||||
appendNodeContent(editor, name, previewNode, sanitizedHtml);
|
||||
appendNodeContent(editor, name, previewNode, unescape(sanitizedHtml));
|
||||
}
|
||||
}
|
||||
var shimNode = new global$2('span', 1);
|
||||
@@ -1208,7 +1238,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
var setup$2 = function (editor) {
|
||||
var setup$1 = function (editor) {
|
||||
editor.on('preInit', function () {
|
||||
var specialElements = editor.schema.getSpecialElements();
|
||||
global$8.each('video audio iframe object'.split(' '), function (name) {
|
||||
@@ -1283,7 +1313,7 @@
|
||||
});
|
||||
};
|
||||
|
||||
var setup$1 = function (editor) {
|
||||
var setup = function (editor) {
|
||||
editor.on('ResolveName', function (e) {
|
||||
var name;
|
||||
if (e.target.nodeType === 1 && (name = e.target.getAttribute('data-mce-object'))) {
|
||||
@@ -1292,41 +1322,6 @@
|
||||
});
|
||||
};
|
||||
|
||||
var setup = function (editor) {
|
||||
editor.on('click keyup touchend', function () {
|
||||
var selectedNode = editor.selection.getNode();
|
||||
if (selectedNode && editor.dom.hasClass(selectedNode, 'mce-preview-object')) {
|
||||
if (editor.dom.getAttrib(selectedNode, 'data-mce-selected')) {
|
||||
selectedNode.setAttribute('data-mce-selected', '2');
|
||||
}
|
||||
}
|
||||
});
|
||||
editor.on('ObjectSelected', function (e) {
|
||||
var objectType = e.target.getAttribute('data-mce-object');
|
||||
if (objectType === 'script') {
|
||||
e.preventDefault();
|
||||
}
|
||||
});
|
||||
editor.on('ObjectResized', function (e) {
|
||||
var target = e.target;
|
||||
if (target.getAttribute('data-mce-object')) {
|
||||
var html = target.getAttribute('data-mce-html');
|
||||
if (html) {
|
||||
html = unescape(html);
|
||||
target.setAttribute('data-mce-html', escape(updateHtml(html, {
|
||||
width: String(e.width),
|
||||
height: String(e.height)
|
||||
})));
|
||||
}
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
var stateSelectorAdapter = function (editor, selector) {
|
||||
return function (buttonApi) {
|
||||
return editor.selection.selectorChangedWithUnbind(selector.join(','), buttonApi.setActive).unbind;
|
||||
};
|
||||
};
|
||||
var register = function (editor) {
|
||||
var onAction = function () {
|
||||
return editor.execCommand('mceMedia');
|
||||
@@ -1335,11 +1330,11 @@
|
||||
tooltip: 'Insert/edit media',
|
||||
icon: 'embed',
|
||||
onAction: onAction,
|
||||
onSetup: stateSelectorAdapter(editor, [
|
||||
'img[data-mce-object]',
|
||||
'span[data-mce-object]',
|
||||
'div[data-ephox-embed-iri]'
|
||||
])
|
||||
onSetup: function (buttonApi) {
|
||||
var selection = editor.selection;
|
||||
buttonApi.setActive(isMediaElement(selection.getNode()));
|
||||
return selection.selectorChangedWithUnbind('img[data-mce-object],span[data-mce-object],div[data-ephox-embed-iri]', buttonApi.setActive).unbind;
|
||||
}
|
||||
});
|
||||
editor.ui.registry.addMenuItem('media', {
|
||||
icon: 'embed',
|
||||
@@ -1352,9 +1347,9 @@
|
||||
global$9.add('media', function (editor) {
|
||||
register$1(editor);
|
||||
register(editor);
|
||||
setup(editor);
|
||||
setup$1(editor);
|
||||
setup$2(editor);
|
||||
setup(editor);
|
||||
return get(editor);
|
||||
});
|
||||
}
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
+1
-1
@@ -4,6 +4,6 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
!function(){"use strict";function o(n,e){for(var a="",o=0;o<e;o++)a+=n;return a}function s(n,e){var a=n.getParam("nonbreaking_wrap",!0,"boolean")||n.plugins.visualchars?'<span class="'+(n.plugins.visualchars&&n.plugins.visualchars.isEnabled()?"mce-nbsp-wrap mce-nbsp":"mce-nbsp-wrap")+'" contenteditable="false">'+o(" ",e)+"</span>":o(" ",e);n.undoManager.transact(function(){return n.insertContent(a)})}var n=tinymce.util.Tools.resolve("tinymce.PluginManager"),c=tinymce.util.Tools.resolve("tinymce.util.VK");n.add("nonbreaking",function(n){var e,a,o,t,i;function r(){return a.execCommand("mceNonBreaking")}(e=n).addCommand("mceNonBreaking",function(){s(e,1)}),(a=n).ui.registry.addButton("nonbreaking",{icon:"non-breaking",tooltip:"Nonbreaking space",onAction:r}),a.ui.registry.addMenuItem("nonbreaking",{icon:"non-breaking",text:"Nonbreaking space",onAction:r}),0<(i="boolean"==typeof(t=(o=n).getParam("nonbreaking_force_tab",0))?!0===t?3:0:t)&&o.on("keydown",function(n){n.keyCode!==c.TAB||n.isDefaultPrevented()||n.shiftKey||(n.preventDefault(),n.stopImmediatePropagation(),s(o,i))})})}();
|
||||
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
+1
-1
@@ -4,6 +4,6 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
!function(){"use strict";function l(t){return t.getParam("noneditable_noneditable_class","mceNonEditable")}function u(e){return function(t){return-1!==(" "+t.attr("class")+" ").indexOf(e)}}function e(e){var t,r="contenteditable",n=" "+f.trim(e.getParam("noneditable_editable_class","mceEditable"))+" ",a=" "+f.trim(l(e))+" ",i=u(n),o=u(a),c=(t=e.getParam("noneditable_regexp",[]))&&t.constructor===RegExp?[t]:t;e.on("PreInit",function(){0<c.length&&e.on("BeforeSetContent",function(t){!function(t,e,n){var r=e.length,a=n.content;if("raw"!==n.format){for(;r--;)a=a.replace(e[r],function(i,o,c){return function(t){var e=arguments,n=e[e.length-2],r=0<n?o.charAt(n-1):"";if('"'===r)return t;if(">"===r){var a=o.lastIndexOf("<",n);if(-1!==a&&-1!==o.substring(a,n).indexOf('contenteditable="false"'))return t}return'<span class="'+c+'" data-mce-content="'+i.dom.encode(e[0])+'">'+i.dom.encode("string"==typeof e[1]?e[1]:e[0])+"</span>"}}(t,a,l(t)));n.content=a}}(e,c,t)}),e.parser.addAttributeFilter("class",function(t){for(var e,n=t.length;n--;)e=t[n],i(e)?e.attr(r,"true"):o(e)&&e.attr(r,"false")}),e.serializer.addAttributeFilter(r,function(t){for(var e,n=t.length;n--;)e=t[n],(i(e)||o(e))&&(0<c.length&&e.attr("data-mce-content")?(e.name="#text",e.type=3,e.raw=!0,e.value=e.attr("data-mce-content")):e.attr(r,null))})})}var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),f=tinymce.util.Tools.resolve("tinymce.util.Tools");t.add("noneditable",function(t){e(t)})}();
|
||||
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
+1
-1
@@ -4,6 +4,6 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
!function(){"use strict";function u(e){return e.getParam("pagebreak_split_block",!1)}function l(e){var a='<img src="'+n.transparentSrc+'" class="'+m+'" data-mce-resize="false" data-mce-placeholder />';return e?"<p>"+a+"</p>":a}var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=tinymce.util.Tools.resolve("tinymce.Env"),m="mce-pagebreak";e.add("pagebreak",function(e){var a,n,o,i,t,r;function c(){return n.execCommand("mcePageBreak")}function g(){return u(o)}(a=e).addCommand("mcePageBreak",function(){a.insertContent(l(u(a)))}),(n=e).ui.registry.addButton("pagebreak",{icon:"page-break",tooltip:"Page break",onAction:c}),n.ui.registry.addMenuItem("pagebreak",{text:"Page break",icon:"page-break",onAction:c}),i=(o=e).getParam("pagebreak_separator","\x3c!-- pagebreak --\x3e"),t=new RegExp(i.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g,function(e){return"\\"+e}),"gi"),o.on("BeforeSetContent",function(e){e.content=e.content.replace(t,l(g()))}),o.on("PreInit",function(){o.serializer.addNodeFilter("img",function(e){for(var a,n,t,r=e.length;r--;)(t=(n=e[r]).attr("class"))&&-1!==t.indexOf(m)&&(a=n.parent,o.schema.getBlockElements()[a.name]&&g()?(a.type=3,a.value=i,a.raw=!0,n.remove()):(n.type=3,n.value=i,n.raw=!0))})}),(r=e).on("ResolveName",function(e){"IMG"===e.target.nodeName&&r.dom.hasClass(e.target,m)&&(e.name="pagebreak")})})}();
|
||||
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
@@ -40,11 +40,29 @@
|
||||
return { clipboard: clipboard };
|
||||
};
|
||||
|
||||
var typeOf = function (x) {
|
||||
var t = typeof x;
|
||||
if (x === null) {
|
||||
return 'null';
|
||||
} else if (t === 'object' && (Array.prototype.isPrototypeOf(x) || x.constructor && x.constructor.name === 'Array')) {
|
||||
return 'array';
|
||||
} else if (t === 'object' && (String.prototype.isPrototypeOf(x) || x.constructor && x.constructor.name === 'String')) {
|
||||
return 'string';
|
||||
} else {
|
||||
return t;
|
||||
}
|
||||
};
|
||||
var isType = function (type) {
|
||||
return function (value) {
|
||||
return typeOf(value) === type;
|
||||
};
|
||||
};
|
||||
var isSimpleType = function (type) {
|
||||
return function (value) {
|
||||
return typeof value === type;
|
||||
};
|
||||
};
|
||||
var isArray = isType('array');
|
||||
var isNullable = function (a) {
|
||||
return a === null || a === undefined;
|
||||
};
|
||||
@@ -156,6 +174,7 @@
|
||||
};
|
||||
|
||||
var nativeSlice = Array.prototype.slice;
|
||||
var nativePush = Array.prototype.push;
|
||||
var exists = function (xs, pred) {
|
||||
for (var i = 0, len = xs.length; i < len; i++) {
|
||||
var x = xs[i];
|
||||
@@ -196,6 +215,19 @@
|
||||
});
|
||||
return acc;
|
||||
};
|
||||
var flatten = function (xs) {
|
||||
var r = [];
|
||||
for (var i = 0, len = xs.length; i < len; ++i) {
|
||||
if (!isArray(xs[i])) {
|
||||
throw new Error('Arr.flatten item ' + i + ' was not an array, input: ' + xs);
|
||||
}
|
||||
nativePush.apply(r, xs[i]);
|
||||
}
|
||||
return r;
|
||||
};
|
||||
var bind = function (xs, f) {
|
||||
return flatten(map(xs, f));
|
||||
};
|
||||
var from = isFunction(Array.from) ? Array.from : function (x) {
|
||||
return nativeSlice.call(x);
|
||||
};
|
||||
@@ -1100,8 +1132,8 @@
|
||||
};
|
||||
};
|
||||
var getImagesFromDataTransfer = function (editor, dataTransfer) {
|
||||
var items = dataTransfer.items ? map(from(dataTransfer.items), function (item) {
|
||||
return item.getAsFile();
|
||||
var items = dataTransfer.items ? bind(from(dataTransfer.items), function (item) {
|
||||
return item.kind === 'file' ? [item.getAsFile()] : [];
|
||||
}) : [];
|
||||
var files = dataTransfer.files ? from(dataTransfer.files) : [];
|
||||
return filter$1(items.length > 0 ? items : files, isImage(editor));
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
+1
-1
@@ -4,6 +4,6 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),f=tinymce.util.Tools.resolve("tinymce.Env"),w=tinymce.util.Tools.resolve("tinymce.util.Tools");e.add("preview",function(e){var n,t;function i(){return t.execCommand("mcePreview")}(n=e).addCommand("mcePreview",function(){var e,t;t=function(t){var n="",i=t.dom.encode,e=t.getParam("content_style","","string");n+='<base href="'+i(t.documentBaseURI.getURI())+'">';var o=t.getParam("content_css_cors",!1,"boolean")?' crossorigin="anonymous"':"";w.each(t.contentCSS,function(e){n+='<link type="text/css" rel="stylesheet" href="'+i(t.documentBaseURI.toAbsolute(e))+'"'+o+">"}),e&&(n+='<style type="text/css">'+e+"</style>");var a,r,s,c,d,l,m,y=-1===(c=(a=t).getParam("body_id","tinymce","string")).indexOf("=")?c:(s=(r=a).getParam("body_id","","hash"))[r.id]||s,u=-1===(m=(d=t).getParam("body_class","","string")).indexOf("=")?m:(l=d).getParam("body_class","","hash")[l.id]||"",v='<script>document.addEventListener && document.addEventListener("click", function(e) {for (var elm = e.target; elm; elm = elm.parentNode) {if (elm.nodeName === "A" && !('+(f.mac?"e.metaKey":"e.ctrlKey && !e.altKey")+")) {e.preventDefault();}}}, false);<\/script> ",g=t.getBody().dir,p=g?' dir="'+i(g)+'"':"";return"<!DOCTYPE html><html><head>"+n+'</head><body id="'+i(y)+'" class="mce-content-body '+i(u)+'"'+p+">"+t.getContent()+v+"</body></html>"}(e=n),e.windowManager.open({title:"Preview",size:"large",body:{type:"panel",items:[{name:"preview",type:"iframe",sandboxed:!0}]},buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}],initialData:{preview:t}}).focus("close")}),(t=e).ui.registry.addButton("preview",{icon:"preview",tooltip:"Preview",onAction:i}),t.ui.registry.addMenuItem("preview",{icon:"preview",text:"Preview",onAction:i})})}();
|
||||
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
+1
-1
@@ -4,6 +4,6 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
!function(){"use strict";var n=tinymce.util.Tools.resolve("tinymce.PluginManager"),r=tinymce.util.Tools.resolve("tinymce.Env");n.add("print",function(n){var t,i;function e(){return i.execCommand("mcePrint")}(t=n).addCommand("mcePrint",function(){r.browser.isIE()?t.getDoc().execCommand("print",!1,null):t.getWin().print()}),(i=n).ui.registry.addButton("print",{icon:"print",tooltip:"Print",onAction:e}),i.ui.registry.addMenuItem("print",{text:"Print...",icon:"print",onAction:e}),n.addShortcut("Meta+P","","mcePrint")})}();
|
||||
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
+1
-1
@@ -4,6 +4,6 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
!function(){"use strict";function o(e){return e.getParam("save_enablewhendirty",!0)}function a(e,n){e.notificationManager.open({text:n,type:"error"})}function t(t){t.addCommand("mceSave",function(){!function(e){var n=c.DOM.getParent(e.id,"form");if(!o(e)||e.isDirty()){if(e.save(),e.getParam("save_onsavecallback"))return e.execCallback("save_onsavecallback",e),e.nodeChanged();n?(e.setDirty(!1),n.onsubmit&&!n.onsubmit()||("function"==typeof n.submit?n.submit():a(e,"Error: Form submit field collision.")),e.nodeChanged()):a(e,"Error: No form element found.")}}(t)}),t.addCommand("mceCancel",function(){var e=t,n=r.trim(e.startContent);e.getParam("save_oncancelcallback")?e.execCallback("save_oncancelcallback",e):e.resetContent(n)})}function i(t){return function(e){function n(){e.setDisabled(o(t)&&!t.isDirty())}return n(),t.on("NodeChange dirty",n),function(){return t.off("NodeChange dirty",n)}}}var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),c=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),r=tinymce.util.Tools.resolve("tinymce.util.Tools");e.add("save",function(e){var n;(n=e).ui.registry.addButton("save",{icon:"save",tooltip:"Save",disabled:!0,onAction:function(){return n.execCommand("mceSave")},onSetup:i(n)}),n.ui.registry.addButton("cancel",{icon:"cancel",tooltip:"Cancel",disabled:!0,onAction:function(){return n.execCommand("mceCancel")},onSetup:i(n)}),n.addShortcut("Meta+S","","mceSave"),t(e)})}();
|
||||
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
@@ -713,7 +713,6 @@
|
||||
function Plugin () {
|
||||
global$3.add('spellchecker', function (editor, pluginUrl) {
|
||||
if (hasProPlugin(editor) === false) {
|
||||
console.warn('The spellchecker plugin has been deprecated and marked for removal in TinyMCE 6.0');
|
||||
var startedState = Cell(false);
|
||||
var currentLanguageState = Cell(getLanguage(editor));
|
||||
var textMatcherState = Cell(null);
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
+1
-1
@@ -4,6 +4,6 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
!function(){"use strict";function n(e){e.keyCode!==y.TAB||e.ctrlKey||e.altKey||e.metaKey||e.preventDefault()}var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),s=tinymce.util.Tools.resolve("tinymce.EditorManager"),o=tinymce.util.Tools.resolve("tinymce.Env"),a=tinymce.util.Tools.resolve("tinymce.util.Delay"),c=tinymce.util.Tools.resolve("tinymce.util.Tools"),y=tinymce.util.Tools.resolve("tinymce.util.VK"),d=t.DOM;e.add("tabfocus",function(e){function t(l){var r,e,t,n,i;l.keyCode!==y.TAB||l.ctrlKey||l.altKey||l.metaKey||l.isDefaultPrevented()||(e=function(e){function t(e){return/INPUT|TEXTAREA|BUTTON/.test(e.tagName)&&s.get(l.id)&&-1!==e.tabIndex&&i(e)}var n=d.select(":input:enabled,*[tabindex]:not(iframe)"),i=function(e){return"BODY"===e.nodeName||"hidden"!==e.type&&"none"!==e.style.display&&"hidden"!==e.style.visibility&&i(e.parentNode)};if(c.each(n,function(e,t){if(e.id===u.id)return r=t,!1}),0<e){for(var o=r+1;o<n.length;o++)if(t(n[o]))return n[o]}else for(o=r-1;0<=o;o--)if(t(n[o]))return n[o];return null},1===(t=c.explode(u.getParam("tab_focus",u.getParam("tabfocus_elements",":prev,:next")))).length&&(t[1]=t[0],t[0]=":prev"),(n=l.shiftKey?":prev"===t[0]?e(-1):d.get(t[0]):":next"===t[1]?e(1):d.get(t[1]))&&(i=s.get(n.id||n.name),n.id&&i?i.focus():a.setTimeout(function(){o.webkit||window.focus(),n.focus()},10),l.preventDefault()))}var u;(u=e).on("init",function(){u.inline&&d.setAttrib(u.getBody(),"tabIndex",null),u.on("keyup",n),o.gecko?u.on("keypress keydown",t):u.on("keydown",t)})})}();
|
||||
File diff suppressed because it is too large
Load Diff
+2
-2
File diff suppressed because one or more lines are too long
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
@@ -13,7 +13,6 @@
|
||||
|
||||
function Plugin () {
|
||||
global.add('textcolor', function () {
|
||||
console.warn('Text color plugin is now built in to the core editor, please remove it from your editor configuration');
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
+2
-2
@@ -4,6 +4,6 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
!function(){"use strict";tinymce.util.Tools.resolve("tinymce.PluginManager").add("textcolor",function(){console.warn("Text color plugin is now built in to the core editor, please remove it from your editor configuration")})}();
|
||||
!function(){"use strict";tinymce.util.Tools.resolve("tinymce.PluginManager").add("textcolor",function(){})}();
|
||||
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
@@ -649,7 +649,7 @@
|
||||
patternsState.set(createPatternSet(normalized.values));
|
||||
};
|
||||
var getPatterns = function () {
|
||||
return __spreadArray(__spreadArray([], map(patternsState.get().inlinePatterns, denormalizePattern)), map(patternsState.get().blockPatterns, denormalizePattern));
|
||||
return __spreadArray(__spreadArray([], map(patternsState.get().inlinePatterns, denormalizePattern), true), map(patternsState.get().blockPatterns, denormalizePattern), true);
|
||||
};
|
||||
return {
|
||||
setPatterns: setPatterns,
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
+1
-1
@@ -4,6 +4,6 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
!function(){"use strict";function a(t){return t.getParam("toc_class","mce-toc")}function s(t){var e=t.getParam("toc_header","h2");return/^h[1-6]$/.test(e)?e:"h2"}function u(n){return function(t){function e(){return t.setDisabled(n.mode.isReadOnly()||!(0<g(n).length))}return e(),n.on("LoadContent SetContent change",e),function(){return n.on("LoadContent SetContent change",e)}}}function d(t){var e,n,o,r="",i=g(t),c=function(t){for(var e=9,n=0;n<t.length;n++)if(1===(e=t[n].level<e?t[n].level:e))return e;return e}(i)-1;if(!i.length)return"";r+=(e=s(t),n=v.translate("Table of Contents"),o="</"+e+">","<"+e+' contenteditable="true">'+m.DOM.encode(n)+o);for(var l=0;l<i.length;l++){var a=i[l];a.element.id=a.id;var u=i[l+1]&&i[l+1].level;if(c===a.level)r+="<li>";else for(var d=c;d<a.level;d++)r+="<ul><li>";if(r+='<a href="#'+a.id+'">'+a.title+"</a>",u!==a.level&&u)for(d=a.level;u<d;d--)r+="</li></ul><li>";else r+="</li>",u||(r+="</ul>");c=a.level}return r}function f(t){var e=a(t),n=t.$("."+e);n.length&&t.undoManager.transact(function(){n.html(d(t))})}var t,e=tinymce.util.Tools.resolve("tinymce.PluginManager"),m=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),v=tinymce.util.Tools.resolve("tinymce.util.I18n"),c=tinymce.util.Tools.resolve("tinymce.util.Tools"),l=(t=0,function(){return"mcetoc_"+(new Date).getTime().toString(32)+(t++).toString(32)}),g=function(n){var t,o=a(n),e=s(n),r=function(t){for(var e=[],n=1;n<=t;n++)e.push("h"+n);return e.join(",")}(1<=(t=parseInt(n.getParam("toc_depth","3"),10))&&t<=9?t:3),i=n.$(r);return i.length&&/^h[1-9]$/i.test(e)&&(i=i.filter(function(t,e){return!n.dom.hasClass(e.parentNode,o)})),c.map(i,function(t){return{id:t.id||l(),level:parseInt(t.nodeName.replace(/^H/i,""),10),title:n.$.text(t),element:t}})};e.add("toc",function(t){var c,e,n,o,r,i;function l(){return r.execCommand("mceInsertToc")}(c=t).addCommand("mceInsertToc",function(){var t,e,n,o,r,i;o=a(t=c),r=t.$("."+o),i=t,!r.length||0<i.dom.getParents(r[0],".mce-offscreen-selection").length?t.insertContent((n=d(e=t),'<div class="'+e.dom.encode(a(e))+'" contenteditable="false">'+n+"</div>")):f(t)}),c.addCommand("mceUpdateToc",function(){f(c)}),(r=t).ui.registry.addButton("toc",{icon:"toc",tooltip:"Table of contents",onAction:l,onSetup:u(r)}),r.ui.registry.addButton("tocupdate",{icon:"reload",tooltip:"Update",onAction:function(){return r.execCommand("mceUpdateToc")}}),r.ui.registry.addMenuItem("toc",{icon:"toc",text:"Table of contents",onAction:l,onSetup:u(r)}),r.ui.registry.addContextToolbar("toc",{items:"tocupdate",predicate:(i=r,function(t){return t&&i.dom.is(t,"."+a(i))&&i.getBody().contains(t)}),scope:"node",position:"node"}),n=(e=t).$,o=a(e),e.on("PreProcess",function(t){var e=n("."+o,t.node);e.length&&(e.removeAttr("contentEditable"),e.find("[contenteditable]").removeAttr("contentEditable"))}),e.on("SetContent",function(){var t=n("."+o);t.length&&(t.attr("contentEditable",!1),t.children(":first-child").attr("contentEditable",!0))})})}();
|
||||
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
+1
-1
@@ -4,6 +4,6 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
!function(){"use strict";function f(t,o,e){var n,i;t.dom.toggleClass(t.getBody(),"mce-visualblocks"),e.set(!e.get()),n=t,i=e.get(),n.fire("VisualBlocks",{state:i})}function g(e,n){return function(o){function t(t){return o.setActive(t.state)}return o.setActive(n.get()),e.on("VisualBlocks",t),function(){return e.off("VisualBlocks",t)}}}tinymce.util.Tools.resolve("tinymce.PluginManager").add("visualblocks",function(t,o){var e,n,i,s,c,u,l,a=(e=!1,{get:function(){return e},set:function(t){e=t}});function r(){return s.execCommand("mceVisualBlocks")}i=a,(n=t).addCommand("mceVisualBlocks",function(){f(n,0,i)}),(s=t).ui.registry.addToggleButton("visualblocks",{icon:"visualblocks",tooltip:"Show blocks",onAction:r,onSetup:g(s,c=a)}),s.ui.registry.addToggleMenuItem("visualblocks",{text:"Show blocks",icon:"visualblocks",onAction:r,onSetup:g(s,c)}),l=a,(u=t).on("PreviewFormats AfterPreviewFormats",function(t){l.get()&&u.dom.toggleClass(u.getBody(),"mce-visualblocks","afterpreviewformats"===t.type)}),u.on("init",function(){u.getParam("visualblocks_default_state",!1,"boolean")&&f(u,0,l)})})}();
|
||||
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.9.2 (2021-09-08)
|
||||
* Version: 5.10.0 (2021-10-11)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -305,7 +305,7 @@ pre[class*="language-"] {
|
||||
height: 10px;
|
||||
position: absolute;
|
||||
width: 10px;
|
||||
z-index: 10000;
|
||||
z-index: 1298;
|
||||
}
|
||||
.mce-content-body div.mce-resizehandle:hover {
|
||||
background-color: #4099ff;
|
||||
|
||||
@@ -323,7 +323,7 @@ pre[class*="language-"] {
|
||||
height: 10px;
|
||||
position: absolute;
|
||||
width: 10px;
|
||||
z-index: 10000;
|
||||
z-index: 1298;
|
||||
}
|
||||
.mce-content-body div.mce-resizehandle:hover {
|
||||
background-color: #4099ff;
|
||||
|
||||
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
@@ -1920,26 +1920,26 @@ body.tox-dialog__disable-scroll {
|
||||
.tox-fullscreen {
|
||||
border: 0;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
-ms-scroll-chaining: none;
|
||||
overscroll-behavior: none;
|
||||
padding: 0;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
touch-action: pinch-zoom;
|
||||
width: 100%;
|
||||
}
|
||||
.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle {
|
||||
display: none;
|
||||
}
|
||||
.tox.tox-tinymce.tox-fullscreen {
|
||||
background-color: transparent;
|
||||
.tox.tox-tinymce.tox-fullscreen,
|
||||
.tox-shadowhost.tox-fullscreen {
|
||||
left: 0;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
z-index: 1200;
|
||||
}
|
||||
.tox-shadowhost.tox-fullscreen {
|
||||
z-index: 1200;
|
||||
.tox.tox-tinymce.tox-fullscreen {
|
||||
background-color: transparent;
|
||||
}
|
||||
.tox-fullscreen .tox.tox-tinymce-aux,
|
||||
.tox-fullscreen ~ .tox.tox-tinymce-aux {
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -10,26 +10,26 @@ body.tox-dialog__disable-scroll {
|
||||
.tox-fullscreen {
|
||||
border: 0;
|
||||
height: 100%;
|
||||
left: 0;
|
||||
margin: 0;
|
||||
overflow: hidden;
|
||||
-ms-scroll-chaining: none;
|
||||
overscroll-behavior: none;
|
||||
padding: 0;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
touch-action: pinch-zoom;
|
||||
width: 100%;
|
||||
}
|
||||
.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle {
|
||||
display: none;
|
||||
}
|
||||
.tox.tox-tinymce.tox-fullscreen {
|
||||
background-color: transparent;
|
||||
.tox.tox-tinymce.tox-fullscreen,
|
||||
.tox-shadowhost.tox-fullscreen {
|
||||
left: 0;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
z-index: 1200;
|
||||
}
|
||||
.tox-shadowhost.tox-fullscreen {
|
||||
z-index: 1200;
|
||||
.tox.tox-tinymce.tox-fullscreen {
|
||||
background-color: transparent;
|
||||
}
|
||||
.tox-fullscreen .tox.tox-tinymce-aux,
|
||||
.tox-fullscreen ~ .tox.tox-tinymce-aux {
|
||||
|
||||
@@ -4,4 +4,4 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*/
|
||||
body.tox-dialog__disable-scroll{overflow:hidden}.tox-fullscreen{border:0;height:100%;left:0;margin:0;overflow:hidden;-ms-scroll-chaining:none;overscroll-behavior:none;padding:0;position:fixed;top:0;touch-action:pinch-zoom;width:100%}.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display:none}.tox.tox-tinymce.tox-fullscreen{background-color:transparent;z-index:1200}.tox-shadowhost.tox-fullscreen{z-index:1200}.tox-fullscreen .tox.tox-tinymce-aux,.tox-fullscreen~.tox.tox-tinymce-aux{z-index:1201}
|
||||
body.tox-dialog__disable-scroll{overflow:hidden}.tox-fullscreen{border:0;height:100%;margin:0;overflow:hidden;-ms-scroll-chaining:none;overscroll-behavior:none;padding:0;touch-action:pinch-zoom;width:100%}.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle{display:none}.tox-shadowhost.tox-fullscreen,.tox.tox-tinymce.tox-fullscreen{left:0;position:fixed;top:0;z-index:1200}.tox.tox-tinymce.tox-fullscreen{background-color:transparent}.tox-fullscreen .tox.tox-tinymce-aux,.tox-fullscreen~.tox.tox-tinymce-aux{z-index:1201}
|
||||
|
||||
@@ -323,7 +323,7 @@ pre[class*="language-"] {
|
||||
height: 10px;
|
||||
position: absolute;
|
||||
width: 10px;
|
||||
z-index: 10000;
|
||||
z-index: 1298;
|
||||
}
|
||||
.mce-content-body div.mce-resizehandle:hover {
|
||||
background-color: #4099ff;
|
||||
|
||||
@@ -323,7 +323,7 @@ pre[class*="language-"] {
|
||||
height: 10px;
|
||||
position: absolute;
|
||||
width: 10px;
|
||||
z-index: 10000;
|
||||
z-index: 1298;
|
||||
}
|
||||
.mce-content-body div.mce-resizehandle:hover {
|
||||
background-color: #4099ff;
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user