mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-28 17:01:16 +00:00
Update jquery migrate and tinyMCE to their latest versions
This commit is contained in:
+3
-3
@@ -18,7 +18,7 @@
|
||||
"lodash": "^4.17.20",
|
||||
"popper.js": "^1.16.1",
|
||||
"resolve-url-loader": "^3.1.2",
|
||||
"prettier": "^2.1.2",
|
||||
"prettier": "^2.2.0",
|
||||
"vue": "^2.6.12"
|
||||
},
|
||||
"dependencies": {
|
||||
@@ -35,11 +35,11 @@
|
||||
"icheck": "^1.0.2",
|
||||
"jquery-colorbox": "^1.6.4",
|
||||
"jquery-goup": "^1.1.3",
|
||||
"jquery-migrate": "3.3.1",
|
||||
"jquery-migrate": "3.3.2",
|
||||
"nonblockjs": "^1.0.8",
|
||||
"normalize.css": "^8.0.1",
|
||||
"pace-js": "^1.0.2",
|
||||
"pnotify": "^4.0.1",
|
||||
"tinymce": "^5.5.1"
|
||||
"tinymce": "^5.6.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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
!function(){"use strict";var n,e,t,r=tinymce.util.Tools.resolve("tinymce.PluginManager"),u=function(n,e,t){var r="UL"===e?"InsertUnorderedList":"InsertOrderedList";n.execCommand(r,!1,!1===t?null:{"list-style-type":t})},l=tinymce.util.Tools.resolve("tinymce.util.Tools"),i=function(n){return function(){return n}},c=i(!1),s=i(!0),o=function(){return a},a=(n=function(n){return n.isNone()},{fold:function(n,e){return n()},is:c,isSome:c,isNone:s,getOr:t=function(n){return n},getOrThunk:e=function(n){return n()},getOrDie:function(n){throw new Error(n||"error: getOrDie called on none.")},getOrNull:i(null),getOrUndefined:i(undefined),or:t,orThunk:e,map:o,each:function(){},bind:o,exists:c,forall:s,filter:o,equals:n,equals_:n,toArray:function(){return[]},toString:i("none()")}),f=function(t){var n=i(t),e=function(){return o},r=function(n){return n(t)},o={fold:function(n,e){return e(t)},is:function(n){return t===n},isSome:s,isNone:c,getOr:n,getOrThunk:n,getOrDie:n,getOrNull:n,getOrUndefined:n,or:e,orThunk:e,map:function(n){return f(n(t))},each:function(n){n(t)},bind:r,exists:r,forall:r,filter:function(n){return n(t)?o:a},toArray:function(){return[t]},toString:function(){return"some("+t+")"},equals:function(n){return n.is(t)},equals_:function(n,e){return n.fold(c,function(n){return e(t,n)})}};return o},d=function(n){return null===n||n===undefined?a:f(n)},g=function(n){return n&&/^(TH|TD)$/.test(n.nodeName)},m=function(r){return function(n){return n&&/^(OL|UL|DL)$/.test(n.nodeName)&&(t=n,(e=r).$.contains(e.getBody(),t));var e,t}},p=function(n,e,t){var r=function(n,e){for(var t=0;t<n.length;t++){if(e(n[t]))return t}return-1}(e.parents,g),o=-1!==r?e.parents.slice(0,r):e.parents,i=l.grep(o,m(n));return 0<i.length&&i[0].nodeName===t},y=function(o,n,e,t,r,i){o.ui.registry.addSplitButton(n,{tooltip:e,icon:"OL"===r?"ordered-list":"unordered-list",presets:"listpreview",columns:3,fetch:function(n){n(l.map(i,function(n){return{type:"choiceitem",value:"default"===n?"":n,icon:"list-"+("OL"===r?"num":"bull")+"-"+("disc"===n||"decimal"===n?"default":n),text:n.replace(/\-/g," ").replace(/\b\w/g,function(n){return n.toUpperCase()})}}))},onAction:function(){return o.execCommand(t)},onItemAction:function(n,e){u(o,r,e)},select:function(e){var n,t,r;return(t=(n=o).dom.getParent(n.selection.getNode(),"ol,ul"),r=n.dom.getStyle(t,"listStyleType"),d(r)).map(function(n){return e===n}).getOr(!1)},onSetup:function(e){var n=function(n){e.setActive(p(o,n,r))};return o.on("NodeChange",n),function(){return o.off("NodeChange",n)}}})},v=function(n,e,t,r,o,i){var u,l,c,s,a;1<i.length?y(n,e,t,r,o,i):(l=e,c=t,s=r,a=o,(u=n).ui.registry.addToggleButton(l,{active:!1,tooltip:c,icon:"OL"===a?"ordered-list":"unordered-list",onSetup:function(e){var n=function(n){e.setActive(p(u,n,a))};return u.on("NodeChange",n),function(){return u.off("NodeChange",n)}},onAction:function(){return u.execCommand(s)}}))};r.add("advlist",function(n){var t,e,r,o;n.hasPlugin("lists")&&(v(e=n,"numlist","Numbered list","InsertOrderedList","OL",(r=e.getParam("advlist_number_styles","default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman"))?r.split(/[ ,]/):[]),v(e,"bullist","Bullet list","InsertUnorderedList","UL",(o=e.getParam("advlist_bullet_styles","default,circle,square"))?o.split(/[ ,]/):[]),(t=n).addCommand("ApplyUnorderedListStyle",function(n,e){u(t,"UL",e["list-style-type"])}),t.addCommand("ApplyOrderedListStyle",function(n,e){u(t,"OL",e["list-style-type"])}))})}();
|
||||
@@ -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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),o=tinymce.util.Tools.resolve("tinymce.util.Tools"),a="a:not([href])",n=function(e){return e.getAttribute("id")||e.getAttribute("name")||""},r=function(e){return(t=e)&&"a"===t.nodeName.toLowerCase()&&!e.getAttribute("href")&&""!==n(e);var t},c=function(e){var n=e.dom;t(n).walk(e.selection.getRng(),function(e){o.each(e,function(e){var t;r(t=e)&&!t.firstChild&&n.remove(e,!1)})})},u=function(e){return e.dom.getParent(e.selection.getStart(),a)},i=function(e,t){var n,o,a,r,i,l=u(e);l?(a=e,r=t,(i=l).removeAttribute("name"),i.id=r,a.addVisual(),a.undoManager.add()):(o=t,(n=e).undoManager.transact(function(){n.getParam("allow_html_in_named_anchor",!1,"boolean")||n.selection.collapse(!0),n.selection.isCollapsed()?n.insertContent(n.dom.createHTML("a",{id:o})):(c(n),n.formatter.remove("namedAnchor",null,null,!0),n.formatter.apply("namedAnchor",{value:o}),n.addVisual())})),e.focus()},l=function(o){var e,t=(e=u(o))?n(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,n;t=o,n=e.getData().id,(/^[A-Za-z][A-Za-z0-9\-:._]*$/.test(n)?(i(t,n),1):(t.windowManager.alert("Id should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores."),0))&&e.close()}})},d=function(r){return function(e){for(var t,n,o=0;o<e.length;o++){var a=e[o];n=void 0,!(n=t=a)||n.attr("href")||!n.attr("id")&&!n.attr("name")||t.firstChild||a.attr("contenteditable",r)}}};e.add("anchor",function(e){var t,n,o;(t=e).on("PreInit",function(){t.parser.addNodeFilter("a",d("false")),t.serializer.addNodeFilter("a",d(null))}),(n=e).addCommand("mceAnchor",function(){l(n)}),(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:a,remove:"all",split:!0,deep:!0,attributes:{id:"%value"},onmatch:function(e,t,n){return r(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),o=tinymce.util.Tools.resolve("tinymce.Env"),i=function(e,t){var n;return t<0&&(t=0),3!==e.nodeType||(n=e.data.length)<t&&(t=n),t},y=function(e,t,n){1!==t.nodeType||t.hasChildNodes()?e.setStart(t,i(t,n)):e.setStartBefore(t)},k=function(e,t,n){1!==t.nodeType||t.hasChildNodes()?e.setEnd(t,i(t,n)):e.setEndAfter(t)},r=function(e,t,n){var o,i,r,a,s,d,f,l=e.getParam("autolink_pattern",/^(https?:\/\/|ssh:\/\/|ftp:\/\/|file:\/|www\.|(?:mailto:)?[A-Z0-9._%+\-]+@(?!.*@))(.+)$/i),c=e.getParam("default_link_target",!1);if("A"!==e.selection.getNode().tagName){var g=e.selection.getRng().cloneRange();if(g.startOffset<5){if(!(s=g.endContainer.previousSibling)){if(!g.endContainer.firstChild||!g.endContainer.firstChild.nextSibling)return;s=g.endContainer.firstChild.nextSibling}if(d=s.length,y(g,s,d),k(g,s,d),g.endOffset<5)return;o=g.endOffset,i=s}else{if(3!==(i=g.endContainer).nodeType&&i.firstChild){for(;3!==i.nodeType&&i.firstChild;)i=i.firstChild;3===i.nodeType&&(y(g,i,0),k(g,i,i.nodeValue.length))}o=1===g.endOffset?2:g.endOffset-1-t}for(var u,h=o;y(g,i,2<=o?o-2:0),k(g,i,1<=o?o-1:0),--o," "!==(f=g.toString())&&""!==f&&160!==f.charCodeAt(0)&&0<=o-2&&f!==n;);(u=g.toString())===n||" "===u||160===u.charCodeAt(0)?(y(g,i,o),k(g,i,h),o+=1):(0===g.startOffset?y(g,i,0):y(g,i,o),k(g,i,h)),"."===(a=g.toString()).charAt(a.length-1)&&k(g,i,h-1);var m=(a=g.toString().trim()).match(l),C=e.getParam("link_default_protocol","http","string");m&&("www."===m[1]?m[1]=C+"://www.":/@$/.test(m[1])&&!/^mailto:/.test(m[1])&&(m[1]="mailto:"+m[1]),r=e.selection.getBookmark(),e.selection.setRng(g),e.execCommand("createlink",!1,m[1]+m[2]),!1!==c&&e.dom.setAttrib(e.selection.getNode(),"target",c),e.selection.moveToBookmark(r),e.nodeChanged())}},t=function(t){var n;t.on("keydown",function(e){13!==e.keyCode||r(t,-1,"")}),o.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||r(t,-1,"(")}),t.on("keyup",function(e){32!==e.keyCode||r(t,0,"")}))};e.add("autolink",function(e){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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),h=tinymce.util.Tools.resolve("tinymce.Env"),r=tinymce.util.Tools.resolve("tinymce.util.Delay"),y=function(e){return e.getParam("min_height",e.getElement().offsetHeight,"number")},a=function(e,t,n,i,o){r.setEditorTimeout(e,function(){b(e,t),n--?a(e,t,n,i,o):o&&o()},i)},p=function(e,t){var n=e.getBody();n&&(n.style.overflowY=t?"":"hidden",t||(n.scrollTop=0))},v=function(e,t,n,i){var o=parseInt(e.getStyle(t,n,i),10);return isNaN(o)?0:o},b=function(e,t){var n,i,o,r,s,a,g,u,l,c,m,f=e.dom,d=e.getDoc();d&&((n=e).plugins.fullscreen&&n.plugins.fullscreen.isFullscreen()?p(e,!0):(i=d.documentElement,o=e.getParam("autoresize_bottom_margin",50,"number"),r=y(e),s=v(f,i,"margin-top",!0),a=v(f,i,"margin-bottom",!0),(g=i.offsetHeight+s+a+o)<0&&(g=0),g+(u=e.getContainer().offsetHeight-e.getContentAreaContainer().offsetHeight)>y(e)&&(r=g+u),(l=e.getParam("max_height",0,"number"))&&l<r?(r=l,p(e,!0)):p(e,!1),r!==t.get()&&(c=r-t.get(),f.setStyle(e.getContainer(),"height",r+"px"),t.set(r),e.fire("ResizeEditor"),h.browser.isSafari()&&h.mac&&(m=e.getWin()).scrollTo(m.pageXOffset,m.pageYOffset),e.hasFocus()&&e.selection.scrollIntoView(e.selection.getNode()),h.webkit&&c<0&&b(e,t))))};e.add("autoresize",function(e){var t,n,i,o,r,s;e.settings.hasOwnProperty("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(){b(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(){b(n,i)}),n.getParam("autoresize_on_init",!0,"boolean")&&n.on("init",function(){a(n,i,20,100,function(){a(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
@@ -110,10 +110,8 @@
|
||||
};
|
||||
var startStoreDraft = function (editor) {
|
||||
var interval = getAutoSaveInterval(editor);
|
||||
global$1.setInterval(function () {
|
||||
if (!editor.removed) {
|
||||
storeDraft(editor);
|
||||
}
|
||||
global$1.setEditorInterval(editor, function () {
|
||||
storeDraft(editor);
|
||||
}, interval);
|
||||
};
|
||||
var restoreLastDraft = function (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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
!function(){"use strict";var e,t=tinymce.util.Tools.resolve("tinymce.PluginManager"),a=(e=undefined,function(t){return e===t}),r=tinymce.util.Tools.resolve("tinymce.util.Delay"),n=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),o=tinymce.util.Tools.resolve("tinymce.util.Tools"),i=function(t,e){var r=t||e,n=/^(\d+)([ms]?)$/.exec(""+r);return(n[2]?{s:1e3,m:6e4}[n[2]]:1)*parseInt(r,10)},u=function(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)},s=function(t,e){if(a(e))return t.dom.isEmpty(t.getBody());var r=o.trim(e);if(""===r)return!0;var n=(new DOMParser).parseFromString(r,"text/html");return t.dom.isEmpty(n)},f=function(t){var e=parseInt(n.getItem(u(t)+"time"),10)||0;return!((new Date).getTime()-e>i(t.getParam("autosave_retention"),"20m"))||(c(t,!1),!1)},c=function(t,e){var r=u(t);n.removeItem(r+"draft"),n.removeItem(r+"time"),!1!==e&&t.fire("RemoveDraft")},m=function(t){var e=u(t);!s(t)&&t.isDirty()&&(n.setItem(e+"draft",t.getContent({format:"raw",no_events:!0})),n.setItem(e+"time",(new Date).getTime().toString()),t.fire("StoreDraft"))},l=function(t){var e=u(t);f(t)&&(t.setContent(n.getItem(e+"draft"),{format:"raw"}),t.fire("RestoreDraft"))},v=function(t){var e=i(t.getParam("autosave_interval"),"30s");r.setInterval(function(){t.removed||m(t)},e)},d=function(t){t.undoManager.transact(function(){l(t),c(t)}),t.focus()},g=tinymce.util.Tools.resolve("tinymce.EditorManager"),y=function(r){return function(t){t.setDisabled(!f(r));var e=function(){return t.setDisabled(!f(r))};return r.on("StoreDraft RestoreDraft RemoveDraft",e),function(){return r.off("StoreDraft RestoreDraft RemoveDraft",e)}}};t.add("autosave",function(t){var e,r;return t.editorManager.on("BeforeUnload",function(t){var e;o.each(g.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)}),v(e=t),e.ui.registry.addButton("restoredraft",{tooltip:"Restore last draft",icon:"restore-draft",onAction:function(){d(e)},onSetup:y(e)}),e.ui.registry.addMenuItem("restoredraft",{text:"Restore last draft",icon:"restore-draft",onAction:function(){d(e)},onSetup:y(e)}),t.on("init",function(){t.getParam("autosave_restore_when_empty",!1)&&t.dom.isEmpty(t.getBody())&&l(t)}),r=t,{hasDraft:function(){return f(r)},storeDraft:function(){return m(r)},restoreDraft:function(){return l(r)},removeDraft:function(t){return c(r,t)},isEmpty:function(t){return s(r,t)}}})}();
|
||||
!function(){"use strict";var e,t=tinymce.util.Tools.resolve("tinymce.PluginManager"),a=(e=undefined,function(t){return e===t}),r=tinymce.util.Tools.resolve("tinymce.util.Delay"),n=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),o=tinymce.util.Tools.resolve("tinymce.util.Tools"),i=function(t,e){var r=t||e,n=/^(\d+)([ms]?)$/.exec(""+r);return(n[2]?{s:1e3,m:6e4}[n[2]]:1)*parseInt(r,10)},u=function(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)},s=function(t,e){if(a(e))return t.dom.isEmpty(t.getBody());var r=o.trim(e);if(""===r)return!0;var n=(new DOMParser).parseFromString(r,"text/html");return t.dom.isEmpty(n)},f=function(t){var e=parseInt(n.getItem(u(t)+"time"),10)||0;return!((new Date).getTime()-e>i(t.getParam("autosave_retention"),"20m"))||(c(t,!1),!1)},c=function(t,e){var r=u(t);n.removeItem(r+"draft"),n.removeItem(r+"time"),!1!==e&&t.fire("RemoveDraft")},m=function(t){var e=u(t);!s(t)&&t.isDirty()&&(n.setItem(e+"draft",t.getContent({format:"raw",no_events:!0})),n.setItem(e+"time",(new Date).getTime().toString()),t.fire("StoreDraft"))},l=function(t){var e=u(t);f(t)&&(t.setContent(n.getItem(e+"draft"),{format:"raw"}),t.fire("RestoreDraft"))},v=function(t){var e=i(t.getParam("autosave_interval"),"30s");r.setEditorInterval(t,function(){m(t)},e)},d=function(t){t.undoManager.transact(function(){l(t),c(t)}),t.focus()},g=tinymce.util.Tools.resolve("tinymce.EditorManager"),y=function(r){return function(t){t.setDisabled(!f(r));var e=function(){return t.setDisabled(!f(r))};return r.on("StoreDraft RestoreDraft RemoveDraft",e),function(){return r.off("StoreDraft RestoreDraft RemoveDraft",e)}}};t.add("autosave",function(t){var e,r;return t.editorManager.on("BeforeUnload",function(t){var e;o.each(g.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)}),v(e=t),e.ui.registry.addButton("restoredraft",{tooltip:"Restore last draft",icon:"restore-draft",onAction:function(){d(e)},onSetup:y(e)}),e.ui.registry.addMenuItem("restoredraft",{text:"Restore last draft",icon:"restore-draft",onAction:function(){d(e)},onSetup:y(e)}),t.on("init",function(){t.getParam("autosave_restore_when_empty",!1)&&t.dom.isEmpty(t.getBody())&&l(t)}),r=t,{hasDraft:function(){return f(r)},storeDraft:function(){return m(r)},restoreDraft:function(){return l(r)},removeDraft:function(t){return c(r,t)},isEmpty:function(t){return s(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
!function(){"use strict";var o=tinymce.util.Tools.resolve("tinymce.PluginManager"),e=tinymce.util.Tools.resolve("tinymce.util.Tools"),t=function(t){t=e.trim(t);var o=function(o,e){t=t.replace(o,e)};return 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};o.add("bbcode",function(o){o.on("BeforeSetContent",function(o){o.content=t(o.content)}),o.on("PostProcess",function(o){o.set&&(o.content=t(o.content)),o.get&&(o.content=function(t){t=e.trim(t);var o=function(o,e){t=t.replace(o,e)};return o(/<a.*?href=\"(.*?)\".*?>(.*?)<\/a>/gi,"[url=$1]$2[/url]"),o(/<font.*?color=\"(.*?)\".*?class=\"codeStyle\".*?>(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"),o(/<font.*?color=\"(.*?)\".*?class=\"quoteStyle\".*?>(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"),o(/<font.*?class=\"codeStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[code][color=$1]$2[/color][/code]"),o(/<font.*?class=\"quoteStyle\".*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[quote][color=$1]$2[/color][/quote]"),o(/<span style=\"color: ?(.*?);\">(.*?)<\/span>/gi,"[color=$1]$2[/color]"),o(/<font.*?color=\"(.*?)\".*?>(.*?)<\/font>/gi,"[color=$1]$2[/color]"),o(/<span style=\"font-size:(.*?);\">(.*?)<\/span>/gi,"[size=$1]$2[/size]"),o(/<font>(.*?)<\/font>/gi,"$1"),o(/<img.*?src=\"(.*?)\".*?\/>/gi,"[img]$1[/img]"),o(/<span class=\"codeStyle\">(.*?)<\/span>/gi,"[code]$1[/code]"),o(/<span class=\"quoteStyle\">(.*?)<\/span>/gi,"[quote]$1[/quote]"),o(/<strong class=\"codeStyle\">(.*?)<\/strong>/gi,"[code][b]$1[/b][/code]"),o(/<strong class=\"quoteStyle\">(.*?)<\/strong>/gi,"[quote][b]$1[/b][/quote]"),o(/<em class=\"codeStyle\">(.*?)<\/em>/gi,"[code][i]$1[/i][/code]"),o(/<em class=\"quoteStyle\">(.*?)<\/em>/gi,"[quote][i]$1[/i][/quote]"),o(/<u class=\"codeStyle\">(.*?)<\/u>/gi,"[code][u]$1[/u][/code]"),o(/<u class=\"quoteStyle\">(.*?)<\/u>/gi,"[quote][u]$1[/u][/quote]"),o(/<\/(strong|b)>/gi,"[/b]"),o(/<(strong|b)>/gi,"[b]"),o(/<\/(em|i)>/gi,"[/i]"),o(/<(em|i)>/gi,"[i]"),o(/<\/u>/gi,"[/u]"),o(/<span style=\"text-decoration: ?underline;\">(.*?)<\/span>/gi,"[u]$1[/u]"),o(/<u>/gi,"[u]"),o(/<blockquote[^>]*>/gi,"[quote]"),o(/<\/blockquote>/gi,"[/quote]"),o(/<br \/>/gi,"\n"),o(/<br\/>/gi,"\n"),o(/<br>/gi,"\n"),o(/<p>/gi,""),o(/<\/p>/gi,"\n"),o(/ |\u00a0/gi," "),o(/"/gi,'"'),o(/</gi,"<"),o(/>/gi,">"),o(/&/gi,"&"),t}(o.content))})})}();
|
||||
@@ -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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),o=function(o){var e=o.getContent({source_view:!0});o.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;t=o,n=e.getData().code,t.focus(),t.undoManager.transact(function(){t.setContent(n)}),t.selection.setCursorLocation(),t.nodeChanged(),e.close()}})};e.add("code",function(e){var t,n;return(t=e).addCommand("mceCodeEditor",function(){o(t)}),(n=e).ui.registry.addButton("code",{icon:"sourcecode",tooltip:"Source code",onAction:function(){return o(n)}}),n.ui.registry.addMenuItem("code",{icon:"sourcecode",text:"Source code",onAction:function(){return o(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
!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")})}();
|
||||
@@ -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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
!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")})}();
|
||||
@@ -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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
!function(){"use strict";var n,t,e,o,r=tinymce.util.Tools.resolve("tinymce.PluginManager"),u=tinymce.util.Tools.resolve("tinymce.util.Tools"),i=function(n,t){var e,o=n.dom,r=n.selection.getSelectedBlocks();r.length&&(e=o.getAttrib(r[0],"dir"),u.each(r,function(n){o.getParent(n.parentNode,'*[dir="'+t+'"]',o.getRoot())||o.setAttrib(n,"dir",e!==t?t:null)}),n.nodeChanged())},c=function(n){return function(){return n}},f=c(!1),d=c(!0),l=function(){return m},m=(n=function(n){return n.isNone()},{fold:function(n,t){return n()},is:f,isSome:f,isNone:d,getOr:e=function(n){return n},getOrThunk:t=function(n){return n()},getOrDie:function(n){throw new Error(n||"error: getOrDie called on none.")},getOrNull:c(null),getOrUndefined:c(undefined),or:e,orThunk:t,map:l,each:function(){},bind:l,exists:f,forall:d,filter:l,equals:n,equals_:n,toArray:function(){return[]},toString:c("none()")}),a=function(e){var n=c(e),t=function(){return r},o=function(n){return n(e)},r={fold:function(n,t){return t(e)},is:function(n){return e===n},isSome:d,isNone:f,getOr:n,getOrThunk:n,getOrDie:n,getOrNull:n,getOrUndefined:n,or:t,orThunk:t,map:function(n){return a(n(e))},each:function(n){n(e)},bind:o,exists:o,forall:o,filter:function(n){return n(e)?r:m},toArray:function(){return[e]},toString:function(){return"some("+e+")"},equals:function(n){return n.is(e)},equals_:function(n,t){return n.fold(f,function(n){return t(e,n)})}};return r},s={some:a,none:l,from:function(n){return null===n||n===undefined?m:a(n)}},g=(o="function",function(n){return typeof n===o}),h=function(n){if(null===n||n===undefined)throw new Error("Node cannot be null or undefined");return{dom:n}},y={fromHtml:function(n,t){var e=(t||document).createElement("div");if(e.innerHTML=n,!e.hasChildNodes()||1<e.childNodes.length)throw console.error("HTML does not have a single root node",n),new Error("HTML must have a single root node");return h(e.childNodes[0])},fromTag:function(n,t){var e=(t||document).createElement(n);return h(e)},fromText:function(n,t){var e=(t||document).createTextNode(n);return h(e)},fromDom:h,fromPoint:function(n,t,e){return s.from(n.dom.elementFromPoint(t,e)).map(h)}},v=("undefined"!=typeof window||Function("return this;")(),function(t){return function(n){return n.dom.nodeType===t}}),p=v(3),T=v(9),N=v(11),D=g(Element.prototype.attachShadow)&&g(Node.prototype.getRootNode)?function(n){return y.fromDom(n.dom.getRootNode())}:function(n){return T(n)?n:(t=n,y.fromDom(t.dom.ownerDocument));var t},w=function(n){var t=D(n);return N(t)?s.some(t):s.none()},O=function(n){return y.fromDom(n.dom.host)},C=function(n){var t=p(n)?n.dom.parentNode:n.dom;if(t===undefined||null===t||null===t.ownerDocument)return!1;var e,o,r=t.ownerDocument;return w(y.fromDom(t)).fold(function(){return r.body.contains(t)},(e=C,o=O,function(n){return e(o(n))}))},S=function(n,t){return(e=n).style!==undefined&&g(e.style.getPropertyValue)?n.style.getPropertyValue(t):"";var e},L=function(n){return"rtl"===(e="direction",o=(t=n).dom,""!==(r=window.getComputedStyle(o).getPropertyValue(e))||C(t)?r:S(o,e))?"rtl":"ltr";var t,e,o,r},R=function(t,o){return function(e){var n=function(n){var t=y.fromDom(n.element);e.setActive(L(t)===o)};return t.on("NodeChange",n),function(){return t.off("NodeChange",n)}}};r.add("directionality",function(n){var t,e;(t=n).addCommand("mceDirectionLTR",function(){i(t,"ltr")}),t.addCommand("mceDirectionRTL",function(){i(t,"rtl")}),(e=n).ui.registry.addToggleButton("ltr",{tooltip:"Left to right",icon:"ltr",onAction:function(){return e.execCommand("mceDirectionLTR")},onSetup:R(e,"ltr")}),e.ui.registry.addToggleButton("rtl",{tooltip:"Right to left",icon:"rtl",onAction:function(){return e.execCommand("mceDirectionRTL")},onSetup:R(e,"rtl")})})}();
|
||||
@@ -1,4 +1,4 @@
|
||||
// NOTE: Source: npm package: emojilib, file:emojis.json
|
||||
// Source: npm package: emojilib, file:emojis.json
|
||||
window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
grinning: {
|
||||
keywords: [ "face", "smile", "happy", "joy", ":D", "grin" ],
|
||||
@@ -30,6 +30,12 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "people"
|
||||
},
|
||||
partying: {
|
||||
keywords: [ "face", "celebration", "woohoo" ],
|
||||
"char": "\ud83e\udd73",
|
||||
fitzpatrick_scale: false,
|
||||
category: "people"
|
||||
},
|
||||
smiley: {
|
||||
keywords: [ "face", "happy", "joy", "haha", ":D", ":)", "smile", "funny" ],
|
||||
"char": "\ud83d\ude03",
|
||||
@@ -108,6 +114,12 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "people"
|
||||
},
|
||||
smiling_face_with_three_hearts: {
|
||||
keywords: [ "face", "love", "like", "affection", "valentines", "infatuation", "crush", "hearts", "adore" ],
|
||||
"char": "\ud83e\udd70",
|
||||
fitzpatrick_scale: false,
|
||||
category: "people"
|
||||
},
|
||||
kissing_heart: {
|
||||
keywords: [ "face", "love", "like", "affection", "valentines", "infatuation", "kiss" ],
|
||||
"char": "\ud83d\ude18",
|
||||
@@ -360,6 +372,12 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "people"
|
||||
},
|
||||
pleading: {
|
||||
keywords: [ "face", "begging", "mercy" ],
|
||||
"char": "\ud83e\udd7a",
|
||||
fitzpatrick_scale: false,
|
||||
category: "people"
|
||||
},
|
||||
triumph: {
|
||||
keywords: [ "face", "gas", "phew", "proud", "pride" ],
|
||||
"char": "\ud83d\ude24",
|
||||
@@ -438,6 +456,18 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "people"
|
||||
},
|
||||
hot: {
|
||||
keywords: [ "face", "feverish", "heat", "red", "sweating" ],
|
||||
"char": "\ud83e\udd75",
|
||||
fitzpatrick_scale: false,
|
||||
category: "people"
|
||||
},
|
||||
cold: {
|
||||
keywords: [ "face", "blue", "freezing", "frozen", "frostbite", "icicles" ],
|
||||
"char": "\ud83e\udd76",
|
||||
fitzpatrick_scale: false,
|
||||
category: "people"
|
||||
},
|
||||
sob: {
|
||||
keywords: [ "face", "cry", "tears", "sad", "upset", "depressed" ],
|
||||
"char": "\ud83d\ude2d",
|
||||
@@ -498,6 +528,12 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "people"
|
||||
},
|
||||
woozy: {
|
||||
keywords: [ "face", "dizzy", "intoxicated", "tipsy", "wavy" ],
|
||||
"char": "\ud83e\udd74",
|
||||
fitzpatrick_scale: false,
|
||||
category: "people"
|
||||
},
|
||||
sleeping: {
|
||||
keywords: [ "face", "tired", "sleepy", "night", "zzz" ],
|
||||
"char": "\ud83d\ude34",
|
||||
@@ -726,6 +762,18 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: true,
|
||||
category: "people"
|
||||
},
|
||||
foot: {
|
||||
keywords: [ "kick", "stomp" ],
|
||||
"char": "\ud83e\uddb6",
|
||||
fitzpatrick_scale: true,
|
||||
category: "people"
|
||||
},
|
||||
leg: {
|
||||
keywords: [ "kick", "limb" ],
|
||||
"char": "\ud83e\uddb5",
|
||||
fitzpatrick_scale: true,
|
||||
category: "people"
|
||||
},
|
||||
handshake: {
|
||||
keywords: [ "agreement", "shake" ],
|
||||
"char": "\ud83e\udd1d",
|
||||
@@ -822,6 +870,12 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "people"
|
||||
},
|
||||
tooth: {
|
||||
keywords: [ "teeth", "dentist" ],
|
||||
"char": "\ud83e\uddb7",
|
||||
fitzpatrick_scale: false,
|
||||
category: "people"
|
||||
},
|
||||
tongue: {
|
||||
keywords: [ "mouth", "playful" ],
|
||||
"char": "\ud83d\udc45",
|
||||
@@ -1218,6 +1272,30 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: true,
|
||||
category: "people"
|
||||
},
|
||||
woman_superhero: {
|
||||
keywords: [ "woman", "female", "good", "heroine", "superpowers" ],
|
||||
"char": "\ud83e\uddb8\u200d\u2640\ufe0f",
|
||||
fitzpatrick_scale: true,
|
||||
category: "people"
|
||||
},
|
||||
man_superhero: {
|
||||
keywords: [ "man", "male", "good", "hero", "superpowers" ],
|
||||
"char": "\ud83e\uddb8\u200d\u2642\ufe0f",
|
||||
fitzpatrick_scale: true,
|
||||
category: "people"
|
||||
},
|
||||
woman_supervillain: {
|
||||
keywords: [ "woman", "female", "evil", "bad", "criminal", "heroine", "superpowers" ],
|
||||
"char": "\ud83e\uddb9\u200d\u2640\ufe0f",
|
||||
fitzpatrick_scale: true,
|
||||
category: "people"
|
||||
},
|
||||
man_supervillain: {
|
||||
keywords: [ "man", "male", "evil", "bad", "criminal", "hero", "superpowers" ],
|
||||
"char": "\ud83e\uddb9\u200d\u2642\ufe0f",
|
||||
fitzpatrick_scale: true,
|
||||
category: "people"
|
||||
},
|
||||
mrs_claus: {
|
||||
keywords: [ "woman", "female", "xmas", "mother christmas" ],
|
||||
"char": "\ud83e\udd36",
|
||||
@@ -1436,7 +1514,7 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
},
|
||||
man_facepalming: {
|
||||
keywords: [ "man", "male", "boy", "disbelief" ],
|
||||
"char": "\ud83e\udd26",
|
||||
"char": "\ud83e\udd26\u200d\u2642\ufe0f",
|
||||
fitzpatrick_scale: true,
|
||||
category: "people"
|
||||
},
|
||||
@@ -1752,12 +1830,30 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "people"
|
||||
},
|
||||
yarn: {
|
||||
keywords: [ "ball", "crochet", "knit" ],
|
||||
"char": "\ud83e\uddf6",
|
||||
fitzpatrick_scale: false,
|
||||
category: "people"
|
||||
},
|
||||
thread: {
|
||||
keywords: [ "needle", "sewing", "spool", "string" ],
|
||||
"char": "\ud83e\uddf5",
|
||||
fitzpatrick_scale: false,
|
||||
category: "people"
|
||||
},
|
||||
coat: {
|
||||
keywords: [ "jacket" ],
|
||||
"char": "\ud83e\udde5",
|
||||
fitzpatrick_scale: false,
|
||||
category: "people"
|
||||
},
|
||||
labcoat: {
|
||||
keywords: [ "doctor", "experiment", "scientist", "chemist" ],
|
||||
"char": "\ud83e\udd7c",
|
||||
fitzpatrick_scale: false,
|
||||
category: "people"
|
||||
},
|
||||
womans_clothes: {
|
||||
keywords: [ "fashion", "shopping_bags", "female" ],
|
||||
"char": "\ud83d\udc5a",
|
||||
@@ -1818,6 +1914,12 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "people"
|
||||
},
|
||||
flat_shoe: {
|
||||
keywords: [ "ballet", "slip-on", "slipper" ],
|
||||
"char": "\ud83e\udd7f",
|
||||
fitzpatrick_scale: false,
|
||||
category: "people"
|
||||
},
|
||||
high_heel: {
|
||||
keywords: [ "fashion", "shoes", "female", "pumps", "stiletto" ],
|
||||
"char": "\ud83d\udc60",
|
||||
@@ -1848,6 +1950,12 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "people"
|
||||
},
|
||||
hiking_boot: {
|
||||
keywords: [ "backpacking", "camping", "hiking" ],
|
||||
"char": "\ud83e\udd7e",
|
||||
fitzpatrick_scale: false,
|
||||
category: "people"
|
||||
},
|
||||
socks: {
|
||||
keywords: [ "stockings", "clothes" ],
|
||||
"char": "\ud83e\udde6",
|
||||
@@ -1908,6 +2016,12 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "people"
|
||||
},
|
||||
luggage: {
|
||||
keywords: [ "packing", "travel" ],
|
||||
"char": "\ud83e\uddf3",
|
||||
fitzpatrick_scale: false,
|
||||
category: "people"
|
||||
},
|
||||
pouch: {
|
||||
keywords: [ "bag", "accessories", "shopping" ],
|
||||
"char": "\ud83d\udc5d",
|
||||
@@ -1944,6 +2058,12 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "people"
|
||||
},
|
||||
goggles: {
|
||||
keywords: [ "eyes", "protection", "safety" ],
|
||||
"char": "\ud83e\udd7d",
|
||||
fitzpatrick_scale: false,
|
||||
category: "people"
|
||||
},
|
||||
ring: {
|
||||
keywords: [ "wedding", "propose", "marriage", "valentines", "diamond", "fashion", "jewelry", "gem", "engagement" ],
|
||||
"char": "\ud83d\udc8d",
|
||||
@@ -2490,6 +2610,66 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "animals_and_nature"
|
||||
},
|
||||
raccoon: {
|
||||
keywords: [ "animal", "nature" ],
|
||||
"char": "\ud83e\udd9d",
|
||||
fitzpatrick_scale: false,
|
||||
category: "animals_and_nature"
|
||||
},
|
||||
llama: {
|
||||
keywords: [ "animal", "nature", "alpaca" ],
|
||||
"char": "\ud83e\udd99",
|
||||
fitzpatrick_scale: false,
|
||||
category: "animals_and_nature"
|
||||
},
|
||||
hippopotamus: {
|
||||
keywords: [ "animal", "nature" ],
|
||||
"char": "\ud83e\udd9b",
|
||||
fitzpatrick_scale: false,
|
||||
category: "animals_and_nature"
|
||||
},
|
||||
kangaroo: {
|
||||
keywords: [ "animal", "nature", "australia", "joey", "hop", "marsupial" ],
|
||||
"char": "\ud83e\udd98",
|
||||
fitzpatrick_scale: false,
|
||||
category: "animals_and_nature"
|
||||
},
|
||||
badger: {
|
||||
keywords: [ "animal", "nature", "honey" ],
|
||||
"char": "\ud83e\udda1",
|
||||
fitzpatrick_scale: false,
|
||||
category: "animals_and_nature"
|
||||
},
|
||||
swan: {
|
||||
keywords: [ "animal", "nature", "bird" ],
|
||||
"char": "\ud83e\udda2",
|
||||
fitzpatrick_scale: false,
|
||||
category: "animals_and_nature"
|
||||
},
|
||||
peacock: {
|
||||
keywords: [ "animal", "nature", "peahen", "bird" ],
|
||||
"char": "\ud83e\udd9a",
|
||||
fitzpatrick_scale: false,
|
||||
category: "animals_and_nature"
|
||||
},
|
||||
parrot: {
|
||||
keywords: [ "animal", "nature", "bird", "pirate", "talk" ],
|
||||
"char": "\ud83e\udd9c",
|
||||
fitzpatrick_scale: false,
|
||||
category: "animals_and_nature"
|
||||
},
|
||||
lobster: {
|
||||
keywords: [ "animal", "nature", "bisque", "claws", "seafood" ],
|
||||
"char": "\ud83e\udd9e",
|
||||
fitzpatrick_scale: false,
|
||||
category: "animals_and_nature"
|
||||
},
|
||||
mosquito: {
|
||||
keywords: [ "animal", "nature", "insect", "malaria" ],
|
||||
"char": "\ud83e\udd9f",
|
||||
fitzpatrick_scale: false,
|
||||
category: "animals_and_nature"
|
||||
},
|
||||
paw_prints: {
|
||||
keywords: [ "animal", "tracking", "footprints", "dog", "cat", "pet", "feet" ],
|
||||
"char": "\ud83d\udc3e",
|
||||
@@ -3048,6 +3228,12 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "food_and_drink"
|
||||
},
|
||||
mango: {
|
||||
keywords: [ "fruit", "food", "tropical" ],
|
||||
"char": "\ud83e\udd6d",
|
||||
fitzpatrick_scale: false,
|
||||
category: "food_and_drink"
|
||||
},
|
||||
avocado: {
|
||||
keywords: [ "fruit", "food" ],
|
||||
"char": "\ud83e\udd51",
|
||||
@@ -3102,6 +3288,12 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "food_and_drink"
|
||||
},
|
||||
leafy_greens: {
|
||||
keywords: [ "food", "vegetable", "plant", "bok choy", "cabbage", "kale", "lettuce" ],
|
||||
"char": "\ud83e\udd6c",
|
||||
fitzpatrick_scale: false,
|
||||
category: "food_and_drink"
|
||||
},
|
||||
sweet_potato: {
|
||||
keywords: [ "food", "nature" ],
|
||||
"char": "\ud83c\udf60",
|
||||
@@ -3138,6 +3330,12 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "food_and_drink"
|
||||
},
|
||||
bagel: {
|
||||
keywords: [ "food", "bread", "bakery", "schmear" ],
|
||||
"char": "\ud83e\udd6f",
|
||||
fitzpatrick_scale: false,
|
||||
category: "food_and_drink"
|
||||
},
|
||||
pretzel: {
|
||||
keywords: [ "food", "bread", "twisted" ],
|
||||
"char": "\ud83e\udd68",
|
||||
@@ -3186,6 +3384,12 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "food_and_drink"
|
||||
},
|
||||
bone: {
|
||||
keywords: [ "skeleton" ],
|
||||
"char": "\ud83e\uddb4",
|
||||
fitzpatrick_scale: false,
|
||||
category: "food_and_drink"
|
||||
},
|
||||
fried_shrimp: {
|
||||
keywords: [ "food", "animal", "appetizer", "summer" ],
|
||||
"char": "\ud83c\udf64",
|
||||
@@ -3372,6 +3576,18 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "food_and_drink"
|
||||
},
|
||||
cupcake: {
|
||||
keywords: [ "food", "dessert", "bakery", "sweet" ],
|
||||
"char": "\ud83e\uddc1",
|
||||
fitzpatrick_scale: false,
|
||||
category: "food_and_drink"
|
||||
},
|
||||
moon_cake: {
|
||||
keywords: [ "food", "autumn" ],
|
||||
"char": "\ud83e\udd6e",
|
||||
fitzpatrick_scale: false,
|
||||
category: "food_and_drink"
|
||||
},
|
||||
birthday: {
|
||||
keywords: [ "food", "dessert", "cake" ],
|
||||
"char": "\ud83c\udf82",
|
||||
@@ -3510,6 +3726,12 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "food_and_drink"
|
||||
},
|
||||
salt: {
|
||||
keywords: [ "condiment", "shaker" ],
|
||||
"char": "\ud83e\uddc2",
|
||||
fitzpatrick_scale: false,
|
||||
category: "food_and_drink"
|
||||
},
|
||||
spoon: {
|
||||
keywords: [ "cutlery", "kitchen", "tableware" ],
|
||||
"char": "\ud83e\udd44",
|
||||
@@ -3570,6 +3792,12 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "activity"
|
||||
},
|
||||
softball: {
|
||||
keywords: [ "sports", "balls" ],
|
||||
"char": "\ud83e\udd4e",
|
||||
fitzpatrick_scale: false,
|
||||
category: "activity"
|
||||
},
|
||||
tennis: {
|
||||
keywords: [ "sports", "balls", "green" ],
|
||||
"char": "\ud83c\udfbe",
|
||||
@@ -3588,6 +3816,12 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "activity"
|
||||
},
|
||||
flying_disc: {
|
||||
keywords: [ "sports", "frisbee", "ultimate" ],
|
||||
"char": "\ud83e\udd4f",
|
||||
fitzpatrick_scale: false,
|
||||
category: "activity"
|
||||
},
|
||||
"8ball": {
|
||||
keywords: [ "pool", "hobby", "game", "luck", "magic" ],
|
||||
"char": "\ud83c\udfb1",
|
||||
@@ -3642,6 +3876,12 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "activity"
|
||||
},
|
||||
lacrosse: {
|
||||
keywords: [ "sports", "ball", "stick" ],
|
||||
"char": "\ud83e\udd4d",
|
||||
fitzpatrick_scale: false,
|
||||
category: "activity"
|
||||
},
|
||||
cricket: {
|
||||
keywords: [ "sports" ],
|
||||
"char": "\ud83c\udfcf",
|
||||
@@ -3720,6 +3960,12 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "activity"
|
||||
},
|
||||
skateboard: {
|
||||
keywords: [ "board" ],
|
||||
"char": "\ud83d\udef9",
|
||||
fitzpatrick_scale: false,
|
||||
category: "activity"
|
||||
},
|
||||
sled: {
|
||||
keywords: [ "sleigh", "luge", "toboggan" ],
|
||||
"char": "\ud83d\udef7",
|
||||
@@ -4068,12 +4314,24 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "activity"
|
||||
},
|
||||
chess_pawn: {
|
||||
keywords: [ "expendable" ],
|
||||
"char": "\u265f",
|
||||
fitzpatrick_scale: false,
|
||||
category: "activity"
|
||||
},
|
||||
slot_machine: {
|
||||
keywords: [ "bet", "gamble", "vegas", "fruit machine", "luck", "casino" ],
|
||||
"char": "\ud83c\udfb0",
|
||||
fitzpatrick_scale: false,
|
||||
category: "activity"
|
||||
},
|
||||
jigsaw: {
|
||||
keywords: [ "interlocking", "puzzle", "piece" ],
|
||||
"char": "\ud83e\udde9",
|
||||
fitzpatrick_scale: false,
|
||||
category: "activity"
|
||||
},
|
||||
bowling: {
|
||||
keywords: [ "sports", "fun", "play" ],
|
||||
"char": "\ud83c\udfb3",
|
||||
@@ -4980,6 +5238,12 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
compass: {
|
||||
keywords: [ "magnetic", "navigation", "orienteering" ],
|
||||
"char": "\ud83e\udded",
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
stopwatch: {
|
||||
keywords: [ "time", "deadline" ],
|
||||
"char": "\u23f1",
|
||||
@@ -5052,6 +5316,12 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
fire_extinguisher: {
|
||||
keywords: [ "quench" ],
|
||||
"char": "\ud83e\uddef",
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
wastebasket: {
|
||||
keywords: [ "bin", "trash", "rubbish", "garbage", "toss" ],
|
||||
"char": "\ud83d\uddd1",
|
||||
@@ -5118,6 +5388,12 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
toolbox: {
|
||||
keywords: [ "tools", "diy", "fix", "maintainer", "mechanic" ],
|
||||
"char": "\ud83e\uddf0",
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
wrench: {
|
||||
keywords: [ "tools", "diy", "ikea", "fix", "maintainer" ],
|
||||
"char": "\ud83d\udd27",
|
||||
@@ -5160,12 +5436,24 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
brick: {
|
||||
keywords: [ "bricks" ],
|
||||
"char": "\ud83e\uddf1",
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
chains: {
|
||||
keywords: [ "lock", "arrest" ],
|
||||
"char": "\u26d3",
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
magnet: {
|
||||
keywords: [ "attraction", "magnetic" ],
|
||||
"char": "\ud83e\uddf2",
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
gun: {
|
||||
keywords: [ "violence", "weapon", "pistol", "revolver" ],
|
||||
"char": "\ud83d\udd2b",
|
||||
@@ -5178,6 +5466,12 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
firecracker: {
|
||||
keywords: [ "dynamite", "boom", "explode", "explosion", "explosive" ],
|
||||
"char": "\ud83e\udde8",
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
hocho: {
|
||||
keywords: [ "knife", "blade", "cutlery", "kitchen", "weapon" ],
|
||||
"char": "\ud83d\udd2a",
|
||||
@@ -5244,6 +5538,12 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
nazar_amulet: {
|
||||
keywords: [ "bead", "charm" ],
|
||||
"char": "\ud83e\uddff",
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
barber: {
|
||||
keywords: [ "hair", "salon", "style" ],
|
||||
"char": "\ud83d\udc88",
|
||||
@@ -5286,12 +5586,54 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
dna: {
|
||||
keywords: [ "biologist", "genetics", "life" ],
|
||||
"char": "\ud83e\uddec",
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
microbe: {
|
||||
keywords: [ "amoeba", "bacteria", "germs" ],
|
||||
"char": "\ud83e\udda0",
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
petri_dish: {
|
||||
keywords: [ "bacteria", "biology", "culture", "lab" ],
|
||||
"char": "\ud83e\uddeb",
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
test_tube: {
|
||||
keywords: [ "chemistry", "experiment", "lab", "science" ],
|
||||
"char": "\ud83e\uddea",
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
thermometer: {
|
||||
keywords: [ "weather", "temperature", "hot", "cold" ],
|
||||
"char": "\ud83c\udf21",
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
broom: {
|
||||
keywords: [ "cleaning", "sweeping", "witch" ],
|
||||
"char": "\ud83e\uddf9",
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
basket: {
|
||||
keywords: [ "laundry" ],
|
||||
"char": "\ud83e\uddfa",
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
toilet_paper: {
|
||||
keywords: [ "roll" ],
|
||||
"char": "\ud83e\uddfb",
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
label: {
|
||||
keywords: [ "sale", "tag" ],
|
||||
"char": "\ud83c\udff7",
|
||||
@@ -5322,6 +5664,24 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
soap: {
|
||||
keywords: [ "bar", "bathing", "cleaning", "lather" ],
|
||||
"char": "\ud83e\uddfc",
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
sponge: {
|
||||
keywords: [ "absorbing", "cleaning", "porous" ],
|
||||
"char": "\ud83e\uddfd",
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
lotion_bottle: {
|
||||
keywords: [ "moisturizer", "sunscreen" ],
|
||||
"char": "\ud83e\uddf4",
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
key: {
|
||||
keywords: [ "lock", "door", "password" ],
|
||||
"char": "\ud83d\udd11",
|
||||
@@ -5364,6 +5724,12 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
teddy_bear: {
|
||||
keywords: [ "plush", "stuffed" ],
|
||||
"char": "\ud83e\uddf8",
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
framed_picture: {
|
||||
keywords: [ "photography" ],
|
||||
"char": "\ud83d\uddbc",
|
||||
@@ -5460,6 +5826,12 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
red_envelope: {
|
||||
keywords: [ "gift" ],
|
||||
"char": "\ud83e\udde7",
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
email: {
|
||||
keywords: [ "letter", "postal", "inbox", "communication" ],
|
||||
"char": "\u2709\ufe0f",
|
||||
@@ -5562,6 +5934,12 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
receipt: {
|
||||
keywords: [ "accounting", "expenses" ],
|
||||
"char": "\ud83e\uddfe",
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
bar_chart: {
|
||||
keywords: [ "graph", "presentation", "stats" ],
|
||||
"char": "\ud83d\udcca",
|
||||
@@ -5724,6 +6102,12 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
safety_pin: {
|
||||
keywords: [ "diaper" ],
|
||||
"char": "\ud83e\uddf7",
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
link: {
|
||||
keywords: [ "rings", "url" ],
|
||||
"char": "\ud83d\udd17",
|
||||
@@ -5760,6 +6144,12 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
abacus: {
|
||||
keywords: [ "calculation" ],
|
||||
"char": "\ud83e\uddee",
|
||||
fitzpatrick_scale: false,
|
||||
category: "objects"
|
||||
},
|
||||
pushpin: {
|
||||
keywords: [ "stationery", "mark", "here" ],
|
||||
"char": "\ud83d\udccc",
|
||||
@@ -6313,7 +6703,7 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
category: "symbols"
|
||||
},
|
||||
x: {
|
||||
keywords: [ "no", "delete", "remove", "cancel" ],
|
||||
keywords: [ "no", "delete", "remove", "cancel", "red" ],
|
||||
"char": "\u274c",
|
||||
fitzpatrick_scale: false,
|
||||
category: "symbols"
|
||||
@@ -7062,6 +7452,12 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
fitzpatrick_scale: false,
|
||||
category: "symbols"
|
||||
},
|
||||
infinity: {
|
||||
keywords: [ "forever" ],
|
||||
"char": "\u267e",
|
||||
fitzpatrick_scale: false,
|
||||
category: "symbols"
|
||||
},
|
||||
heavy_dollar_sign: {
|
||||
keywords: [ "money", "sales", "payment", "currency", "buck" ],
|
||||
"char": "\ud83d\udcb2",
|
||||
@@ -9011,5 +9407,17 @@ window.tinymce.Resource.add("tinymce.plugins.emoticons", {
|
||||
"char": "\ud83c\uddff\ud83c\uddfc",
|
||||
fitzpatrick_scale: false,
|
||||
category: "flags"
|
||||
},
|
||||
united_nations: {
|
||||
keywords: [ "un", "flag", "banner" ],
|
||||
"char": "\ud83c\uddfa\ud83c\uddf3",
|
||||
fitzpatrick_scale: false,
|
||||
category: "flags"
|
||||
},
|
||||
pirate_flag: {
|
||||
keywords: [ "skull", "crossbones", "flag", "banner" ],
|
||||
"char": "\ud83c\udff4\u200d\u2620\ufe0f",
|
||||
fitzpatrick_scale: false,
|
||||
category: "flags"
|
||||
}
|
||||
});
|
||||
+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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
@@ -12,8 +12,12 @@
|
||||
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
||||
|
||||
var DEFAULT_ID = 'tinymce.plugins.emoticons';
|
||||
var getEmoticonDatabase = function (editor) {
|
||||
return editor.getParam('emoticons_database', 'emojis', 'string');
|
||||
};
|
||||
var getEmoticonDatabaseUrl = function (editor, pluginUrl) {
|
||||
return editor.getParam('emoticons_database_url', pluginUrl + '/js/emojis' + editor.suffix + '.js');
|
||||
var database = getEmoticonDatabase(editor);
|
||||
return editor.getParam('emoticons_database_url', pluginUrl + '/js/' + database + editor.suffix + '.js', 'string');
|
||||
};
|
||||
var getEmoticonDatabaseId = function (editor) {
|
||||
return editor.getParam('emoticons_database_id', DEFAULT_ID, 'string');
|
||||
@@ -21,6 +25,9 @@
|
||||
var getAppendedEmoticons = function (editor) {
|
||||
return editor.getParam('emoticons_append', {}, 'object');
|
||||
};
|
||||
var getEmotionsImageUrl = function (editor) {
|
||||
return editor.getParam('emoticons_images_url', 'https://twemoji.maxcdn.com/v/13.0.1/72x72/', 'string');
|
||||
};
|
||||
|
||||
var __assign = function () {
|
||||
__assign = Object.assign || function __assign(t) {
|
||||
@@ -222,6 +229,16 @@
|
||||
return hasOwnProperty$1.call(obj, key);
|
||||
};
|
||||
|
||||
var checkRange = function (str, substr, start) {
|
||||
return substr === '' || str.length >= substr.length && str.substr(start, start + substr.length) === substr;
|
||||
};
|
||||
var contains = function (str, substr) {
|
||||
return str.indexOf(substr) !== -1;
|
||||
};
|
||||
var startsWith = function (str, prefix) {
|
||||
return checkRange(str, prefix, 0);
|
||||
};
|
||||
|
||||
var global$1 = tinymce.util.Tools.resolve('tinymce.Resource');
|
||||
|
||||
var global$2 = tinymce.util.Tools.resolve('tinymce.util.Delay');
|
||||
@@ -255,6 +272,16 @@
|
||||
var initDatabase = function (editor, databaseUrl, databaseId) {
|
||||
var categories = Cell(Optional.none());
|
||||
var all = Cell(Optional.none());
|
||||
var emojiImagesUrl = getEmotionsImageUrl(editor);
|
||||
var getEmoji = function (lib) {
|
||||
if (startsWith(lib.char, '<img')) {
|
||||
return lib.char.replace(/src="([^"]+)"/, function (match, url) {
|
||||
return 'src="' + emojiImagesUrl + url + '"';
|
||||
});
|
||||
} else {
|
||||
return lib.char;
|
||||
}
|
||||
};
|
||||
var processEmojis = function (emojis) {
|
||||
var cats = {};
|
||||
var everything = [];
|
||||
@@ -262,7 +289,7 @@
|
||||
var entry = {
|
||||
title: title,
|
||||
keywords: lib.keywords,
|
||||
char: lib.char,
|
||||
char: getEmoji(lib),
|
||||
category: translateCategory(categoryNameMap, lib.category)
|
||||
};
|
||||
var current = cats[entry.category] !== undefined ? cats[entry.category] : [];
|
||||
@@ -348,9 +375,22 @@
|
||||
}
|
||||
return r;
|
||||
};
|
||||
var each$1 = function (xs, f) {
|
||||
for (var i = 0, len = xs.length; i < len; i++) {
|
||||
var x = xs[i];
|
||||
f(x, i);
|
||||
}
|
||||
};
|
||||
|
||||
var contains = function (str, substr) {
|
||||
return str.indexOf(substr) !== -1;
|
||||
var setup = function (editor) {
|
||||
editor.on('PreInit', function () {
|
||||
editor.parser.addAttributeFilter('data-emoticon', function (nodes) {
|
||||
each$1(nodes, function (node) {
|
||||
node.attr('data-mce-resize', 'false');
|
||||
node.attr('data-mce-placeholder', '1');
|
||||
});
|
||||
});
|
||||
});
|
||||
};
|
||||
|
||||
var emojiMatches = function (emoji, lowerCasePattern) {
|
||||
@@ -556,6 +596,7 @@
|
||||
var database = initDatabase(editor, databaseUrl, databaseId);
|
||||
register(editor, database);
|
||||
init(editor, database);
|
||||
setup(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
@@ -500,7 +500,7 @@
|
||||
return header;
|
||||
};
|
||||
var handleGetContent = function (editor, head, foot, evt) {
|
||||
if (!evt.selection && (!evt.source_view || !shouldHideInSourceView(editor))) {
|
||||
if (evt.format === 'html' && !evt.selection && (!evt.source_view || !shouldHideInSourceView(editor))) {
|
||||
evt.content = unprotectHtml(global$1.trim(head) + '\n' + global$1.trim(evt.content) + '\n' + global$1.trim(foot));
|
||||
}
|
||||
};
|
||||
|
||||
+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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
@@ -299,8 +299,11 @@
|
||||
var bind = function (xs, f) {
|
||||
return flatten(map(xs, f));
|
||||
};
|
||||
var get$1 = function (xs, i) {
|
||||
return i >= 0 && i < xs.length ? Optional.some(xs[i]) : Optional.none();
|
||||
};
|
||||
var head = function (xs) {
|
||||
return xs.length === 0 ? Optional.none() : Optional.some(xs[0]);
|
||||
return get$1(xs, 0);
|
||||
};
|
||||
|
||||
var keys = Object.keys;
|
||||
@@ -504,7 +507,7 @@
|
||||
var set = function (element, key, value) {
|
||||
rawSet(element.dom, key, value);
|
||||
};
|
||||
var get$1 = function (element, key) {
|
||||
var get$2 = function (element, key) {
|
||||
var v = element.dom.getAttribute(key);
|
||||
return v === null ? undefined : v;
|
||||
};
|
||||
@@ -527,7 +530,7 @@
|
||||
internalSet(dom, k, v);
|
||||
});
|
||||
};
|
||||
var get$2 = function (element, property) {
|
||||
var get$3 = function (element, property) {
|
||||
var dom = element.dom;
|
||||
var styles = window.getComputedStyle(dom);
|
||||
var r = styles.getPropertyValue(property);
|
||||
@@ -595,14 +598,14 @@
|
||||
};
|
||||
var SugarPosition = r;
|
||||
|
||||
var get$3 = function (_DOC) {
|
||||
var get$4 = function (_DOC) {
|
||||
var doc = _DOC !== undefined ? _DOC.dom : document;
|
||||
var x = doc.body.scrollLeft || doc.documentElement.scrollLeft;
|
||||
var y = doc.body.scrollTop || doc.documentElement.scrollTop;
|
||||
return SugarPosition(x, y);
|
||||
};
|
||||
|
||||
var get$4 = function (_win) {
|
||||
var get$5 = function (_win) {
|
||||
var win = _win === undefined ? window : _win;
|
||||
return Optional.from(win['visualViewport']);
|
||||
};
|
||||
@@ -619,8 +622,8 @@
|
||||
var getBounds = function (_win) {
|
||||
var win = _win === undefined ? window : _win;
|
||||
var doc = win.document;
|
||||
var scroll = get$3(SugarElement.fromDom(doc));
|
||||
return get$4(win).fold(function () {
|
||||
var scroll = get$4(SugarElement.fromDom(doc));
|
||||
return get$5(win).fold(function () {
|
||||
var html = win.document.documentElement;
|
||||
var width = html.clientWidth;
|
||||
var height = html.clientHeight;
|
||||
@@ -630,7 +633,7 @@
|
||||
});
|
||||
};
|
||||
var bind$3 = function (name, callback, _win) {
|
||||
return get$4(_win).map(function (visualViewport) {
|
||||
return get$5(_win).map(function (visualViewport) {
|
||||
var handler = function (e) {
|
||||
return callback(fromRawEvent(e));
|
||||
};
|
||||
@@ -739,7 +742,7 @@
|
||||
var bgFallback = 'background-color:rgb(255,255,255)!important;';
|
||||
var isAndroid = global$2.os.isAndroid();
|
||||
var matchColor = function (editorBody) {
|
||||
var color = get$2(editorBody, 'background-color');
|
||||
var color = get$3(editorBody, 'background-color');
|
||||
return color !== undefined && color !== '' ? 'background-color:' + color + '!important' : bgFallback;
|
||||
};
|
||||
var clobberStyles = function (dom, container, editorBody) {
|
||||
@@ -748,7 +751,7 @@
|
||||
};
|
||||
var clobber = function (clobberStyle) {
|
||||
return function (element) {
|
||||
var styles = get$1(element, 'style');
|
||||
var styles = get$2(element, 'style');
|
||||
var backup = styles === undefined ? 'no-styles' : styles.trim();
|
||||
if (backup === clobberStyle) {
|
||||
return;
|
||||
@@ -769,7 +772,7 @@
|
||||
var restoreStyles = function (dom) {
|
||||
var clobberedEls = all$1('[' + attr + ']');
|
||||
each(clobberedEls, function (element) {
|
||||
var restore = get$1(element, attr);
|
||||
var restore = get$2(element, attr);
|
||||
if (restore !== 'no-styles') {
|
||||
setAll(element, dom.parseStyle(restore));
|
||||
} else {
|
||||
@@ -790,7 +793,7 @@
|
||||
var setScrollPos = function (pos) {
|
||||
window.scrollTo(pos.x, pos.y);
|
||||
};
|
||||
var viewportUpdate = get$4().fold(function () {
|
||||
var viewportUpdate = get$5().fold(function () {
|
||||
return {
|
||||
bind: noop,
|
||||
unbind: noop
|
||||
@@ -849,13 +852,22 @@
|
||||
var editorContainerStyle = editorContainer.style;
|
||||
var iframe = editor.iframeElement;
|
||||
var iframeStyle = iframe.style;
|
||||
var handleClasses = function (handler) {
|
||||
handler(body, 'tox-fullscreen');
|
||||
handler(documentElement, 'tox-fullscreen');
|
||||
handler(editorContainer, 'tox-fullscreen');
|
||||
getShadowRoot(editorContainerS).map(function (root) {
|
||||
return getShadowHost(root).dom;
|
||||
}).each(function (host) {
|
||||
handler(host, 'tox-fullscreen');
|
||||
handler(host, 'tox-shadowhost');
|
||||
});
|
||||
};
|
||||
var cleanup = function () {
|
||||
if (isTouch) {
|
||||
restoreStyles(editor.dom);
|
||||
}
|
||||
DOM.removeClass(body, 'tox-fullscreen');
|
||||
DOM.removeClass(documentElement, 'tox-fullscreen');
|
||||
DOM.removeClass(editorContainer, 'tox-fullscreen');
|
||||
handleClasses(DOM.removeClass);
|
||||
viewportUpdate.unbind();
|
||||
Optional.from(fullscreenState.get()).each(function (info) {
|
||||
return info.fullscreenChangeHandler.unbind();
|
||||
@@ -884,9 +896,7 @@
|
||||
}
|
||||
iframeStyle.width = iframeStyle.height = '100%';
|
||||
editorContainerStyle.width = editorContainerStyle.height = '';
|
||||
DOM.addClass(body, 'tox-fullscreen');
|
||||
DOM.addClass(documentElement, 'tox-fullscreen');
|
||||
DOM.addClass(editorContainer, 'tox-fullscreen');
|
||||
handleClasses(DOM.addClass);
|
||||
viewportUpdate.bind(editorContainerS);
|
||||
editor.on('remove', cleanup);
|
||||
fullscreenState.set(newFullScreenInfo);
|
||||
|
||||
+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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
!function(){"use strict";var n=tinymce.util.Tools.resolve("tinymce.PluginManager");n.add("hr",function(n){var o,t;(o=n).addCommand("InsertHorizontalRule",function(){o.execCommand("mceInsertContent",!1,"<hr />")}),(t=n).ui.registry.addButton("hr",{icon:"horizontal-rule",tooltip:"Horizontal line",onAction:function(){return t.execCommand("InsertHorizontalRule")}}),t.ui.registry.addMenuItem("hr",{icon:"horizontal-rule",text:"Horizontal line",onAction:function(){return t.execCommand("InsertHorizontalRule")}})})}();
|
||||
@@ -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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
@@ -185,8 +185,11 @@
|
||||
}
|
||||
return r;
|
||||
};
|
||||
var get = function (xs, i) {
|
||||
return i >= 0 && i < xs.length ? Optional.some(xs[i]) : Optional.none();
|
||||
};
|
||||
var head = function (xs) {
|
||||
return xs.length === 0 ? Optional.none() : Optional.some(xs[0]);
|
||||
return get(xs, 0);
|
||||
};
|
||||
var findMap = function (arr, f) {
|
||||
for (var i = 0; i < arr.length; i++) {
|
||||
@@ -810,10 +813,19 @@
|
||||
var getValue = function (item) {
|
||||
return isString(item.value) ? item.value : '';
|
||||
};
|
||||
var getText = function (item) {
|
||||
if (isString(item.text)) {
|
||||
return item.text;
|
||||
} else if (isString(item.title)) {
|
||||
return item.title;
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
};
|
||||
var sanitizeList = function (list, extractValue) {
|
||||
var out = [];
|
||||
global$4.each(list, function (item) {
|
||||
var text = isString(item.text) ? item.text : isString(item.title) ? item.title : '';
|
||||
var text = getText(item);
|
||||
if (item.menu !== undefined) {
|
||||
var items = sanitizeList(item.menu, extractValue);
|
||||
out.push({
|
||||
@@ -1536,6 +1548,7 @@
|
||||
blob: file,
|
||||
blobUri: blobUri,
|
||||
name: file.name ? file.name.replace(/\.[^\.]+$/, '') : null,
|
||||
filename: file.name,
|
||||
base64: dataUrl.split(',')[1]
|
||||
});
|
||||
};
|
||||
|
||||
+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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
@@ -936,8 +936,8 @@
|
||||
width = img.width;
|
||||
height = img.height;
|
||||
if (width || height) {
|
||||
img.setAttribute('width', size.w);
|
||||
img.setAttribute('height', size.h);
|
||||
img.setAttribute('width', String(size.w));
|
||||
img.setAttribute('height', String(size.h));
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -955,20 +955,20 @@
|
||||
var isFigure = function (editor, elem) {
|
||||
return editor.dom.is(elem, 'figure');
|
||||
};
|
||||
var getEditableImage = function (editor, elem) {
|
||||
var isImage = function (imgNode) {
|
||||
return editor.dom.is(imgNode, 'img:not([data-mce-object],[data-mce-placeholder])');
|
||||
};
|
||||
var isImage = function (editor, imgNode) {
|
||||
return editor.dom.is(imgNode, 'img:not([data-mce-object],[data-mce-placeholder])');
|
||||
};
|
||||
var getEditableImage = function (editor, node) {
|
||||
var isEditable = function (imgNode) {
|
||||
return isImage(imgNode) && (isLocalImage(editor, imgNode) || isCorsImage(editor, imgNode) || getProxyUrl(editor));
|
||||
return isImage(editor, imgNode) && (isLocalImage(editor, imgNode) || isCorsImage(editor, imgNode) || isNonNullable(getProxyUrl(editor)));
|
||||
};
|
||||
if (isFigure(editor, elem)) {
|
||||
var imgOpt = getFigureImg(elem);
|
||||
return imgOpt.map(function (img) {
|
||||
if (isFigure(editor, node)) {
|
||||
return getFigureImg(node).bind(function (img) {
|
||||
return isEditable(img.dom) ? Optional.some(img.dom) : Optional.none();
|
||||
});
|
||||
} else {
|
||||
return isEditable(node) ? Optional.some(node) : Optional.none();
|
||||
}
|
||||
return isEditable(elem) ? Optional.some(elem) : Optional.none();
|
||||
};
|
||||
var displayError = function (editor, error) {
|
||||
editor.notificationManager.open({
|
||||
@@ -978,18 +978,18 @@
|
||||
};
|
||||
var getSelectedImage = function (editor) {
|
||||
var elem = editor.selection.getNode();
|
||||
if (isFigure(editor, elem)) {
|
||||
return getFigureImg(elem);
|
||||
} else {
|
||||
var figureElm = editor.dom.getParent(elem, 'figure.image');
|
||||
if (figureElm !== null && isFigure(editor, figureElm)) {
|
||||
return getFigureImg(figureElm);
|
||||
} else if (isImage(editor, elem)) {
|
||||
return Optional.some(SugarElement.fromDom(elem));
|
||||
} else {
|
||||
return Optional.none();
|
||||
}
|
||||
};
|
||||
var extractFilename = function (editor, url) {
|
||||
var m = url.match(/\/([^\/\?]+)?\.(?:jpeg|jpg|png|gif)(?:\?|$)/i);
|
||||
if (m) {
|
||||
return editor.dom.encode(m[1]);
|
||||
}
|
||||
return null;
|
||||
var extractFilename = function (editor, url, group) {
|
||||
var m = url.match(/(?:\/|^)(([^\/\?]+)\.(?:[a-z0-9.]+))(?:\?|$)/i);
|
||||
return isNonNullable(m) ? editor.dom.encode(m[group]) : null;
|
||||
};
|
||||
var createId = function () {
|
||||
return 'imagetools' + count++;
|
||||
@@ -1039,18 +1039,21 @@
|
||||
var cancelTimedUpload = function (imageUploadTimerState) {
|
||||
global$2.clearTimeout(imageUploadTimerState.get());
|
||||
};
|
||||
var updateSelectedImage = function (editor, ir, uploadImmediately, imageUploadTimerState, selectedImage, size) {
|
||||
var updateSelectedImage = function (editor, origBlob, ir, uploadImmediately, imageUploadTimerState, selectedImage, size) {
|
||||
return ir.toBlob().then(function (blob) {
|
||||
var uri, name, blobInfo;
|
||||
var uri, name, filename, blobInfo;
|
||||
var blobCache = editor.editorUpload.blobCache;
|
||||
uri = selectedImage.src;
|
||||
var useFilename = origBlob.type === blob.type;
|
||||
if (shouldReuseFilename(editor)) {
|
||||
blobInfo = blobCache.getByUri(uri);
|
||||
if (blobInfo) {
|
||||
if (isNonNullable(blobInfo)) {
|
||||
uri = blobInfo.uri();
|
||||
name = blobInfo.name();
|
||||
filename = blobInfo.filename();
|
||||
} else {
|
||||
name = extractFilename(editor, uri);
|
||||
name = extractFilename(editor, uri, 2);
|
||||
filename = extractFilename(editor, uri, 1);
|
||||
}
|
||||
}
|
||||
blobInfo = blobCache.create({
|
||||
@@ -1058,7 +1061,8 @@
|
||||
blob: blob,
|
||||
base64: ir.toBase64(),
|
||||
uri: uri,
|
||||
name: name
|
||||
name: name,
|
||||
filename: useFilename ? filename : undefined
|
||||
});
|
||||
blobCache.add(blobInfo);
|
||||
editor.undoManager.transact(function () {
|
||||
@@ -1092,9 +1096,11 @@
|
||||
}, function (img) {
|
||||
return editor._scanForImages().then(function () {
|
||||
return findBlob(editor, img.dom);
|
||||
}).then(blobToImageResult).then(fn).then(function (imageResult) {
|
||||
return updateSelectedImage(editor, imageResult, false, imageUploadTimerState, img.dom, size);
|
||||
}, function (error) {
|
||||
}).then(function (blob) {
|
||||
return blobToImageResult(blob).then(fn).then(function (imageResult) {
|
||||
return updateSelectedImage(editor, blob, imageResult, false, imageUploadTimerState, img.dom, size);
|
||||
});
|
||||
}).catch(function (error) {
|
||||
displayError(editor, error);
|
||||
});
|
||||
});
|
||||
@@ -1135,8 +1141,8 @@
|
||||
URL.revokeObjectURL(newImage.src);
|
||||
return blob;
|
||||
}).then(blobToImageResult).then(function (imageResult) {
|
||||
return updateSelectedImage(editor, imageResult, true, imageUploadTimerState, img);
|
||||
}, function () {
|
||||
return updateSelectedImage(editor, blob, imageResult, true, imageUploadTimerState, img);
|
||||
}).catch(function () {
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1214,8 +1220,7 @@
|
||||
var originalSizeOpt = originalImgOpt.map(function (origImg) {
|
||||
return getNaturalImageSize(origImg.dom);
|
||||
});
|
||||
var imgOpt = getSelectedImage(editor);
|
||||
imgOpt.each(function (img) {
|
||||
originalImgOpt.each(function (img) {
|
||||
getEditableImage(editor, img.dom).each(function (_) {
|
||||
findBlob(editor, img.dom).then(function (blob) {
|
||||
var state = createState(blob);
|
||||
@@ -1241,12 +1246,15 @@
|
||||
var setup = function (editor, imageUploadTimerState, lastSelectedImageState) {
|
||||
editor.on('NodeChange', function (e) {
|
||||
var lastSelectedImage = lastSelectedImageState.get();
|
||||
if (lastSelectedImage && lastSelectedImage.src !== e.element.src) {
|
||||
var selectedImage = getEditableImage(editor, e.element);
|
||||
if (lastSelectedImage && !selectedImage.exists(function (img) {
|
||||
return lastSelectedImage.src === img.src;
|
||||
})) {
|
||||
cancelTimedUpload(imageUploadTimerState);
|
||||
editor.editorUpload.uploadImagesAuto();
|
||||
lastSelectedImageState.set(null);
|
||||
}
|
||||
getEditableImage(editor, e.element).each(lastSelectedImageState.set);
|
||||
selectedImage.each(lastSelectedImageState.set);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -1282,11 +1290,10 @@
|
||||
onAction: cmd('mceEditImage'),
|
||||
onSetup: function (buttonApi) {
|
||||
var setDisabled = function () {
|
||||
var elementOpt = getSelectedImage(editor);
|
||||
elementOpt.each(function (element) {
|
||||
var disabled = getEditableImage(editor, element.dom).isNone();
|
||||
buttonApi.setDisabled(disabled);
|
||||
var disabled = getSelectedImage(editor).forall(function (element) {
|
||||
return getEditableImage(editor, element.dom).isNone();
|
||||
});
|
||||
buttonApi.setDisabled(disabled);
|
||||
};
|
||||
editor.on('NodeChange', setDisabled);
|
||||
return function () {
|
||||
|
||||
+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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
!function(){"use strict";var n,t=tinymce.util.Tools.resolve("tinymce.PluginManager"),v=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),f=tinymce.util.Tools.resolve("tinymce.EditorManager"),m=tinymce.util.Tools.resolve("tinymce.Env"),h=tinymce.util.Tools.resolve("tinymce.util.Tools"),d=function(t){return t.getParam("importcss_selector_converter")},o=(n="array",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}),i=Array.prototype.push,l=function(t,e){return function(t){for(var e=[],r=0,n=t.length;r<n;++r){if(!o(t[r]))throw new Error("Arr.flatten item "+r+" was not an array, input: "+t);i.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}(t,e))},p=function(e){return"string"==typeof e?function(t){return-1!==t.indexOf(e)}:e instanceof RegExp?function(t){return e.test(t)}:e},_=function(s,t,a){var u=[],r={};function l(t,e){var r,n,o,i=t.href;if(n=i,o=m.cacheSuffix,"string"==typeof n&&(n=n.replace("?"+o,"").replace("&"+o,"")),(i=n)&&a(i,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):f.baseURL+"/skins/ui/"+n,c=f.baseURL+"/skins/content/";return e===i+"/content"+(t.inline?".inline":"")+".min.css"||-1!==e.indexOf(c)}return!1}(s,i)){h.each(t.imports,function(t){l(t,!0)});try{r=t.cssRules||t.rules}catch(c){}h.each(r,function(t){t.styleSheet?l(t.styleSheet,!0):t.selectorText&&h.each(t.selectorText.split(","),function(t){u.push(h.trim(t))})})}}h.each(s.contentCSS,function(t){r[t]=!0}),a=a||function(t,e){return e||r[t]};try{h.each(t.styleSheets,function(t){l(t)})}catch(e){}return u},x=function(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=h.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}},P=function(t,e){return null===e||!1!==t.getParam("importcss_exclusive")},r=function(y){y.on("init",function(t){var e,r,n,o,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 l(r,function(t){var e=n[t];return 0===e.length?[]:[{title:t,items:e}]}).concat(e)}}),g={},c=p(y.getParam("importcss_selector_filter")),s=(o=y.getParam("importcss_groups"),h.map(o,function(t){return h.extend({},t,{original:t,selectors:{},filter:p(t.filter),item:{text:t.title,menu:[]}})})),a=function(t,e){if(f=t,p=g,!(P(y,m=e)?f in p:f in m.selectors)){a=t,l=g,P(y,u=e)?l[a]=!0:u.selectors[a]=!0;var r=(i=(o=y).plugins.importcss,c=t,((s=e)&&s.selector_converter?s.selector_converter:d(o)?d(o):function(){return x(o,c)}).call(i,c,s));if(r){var n=r.name||v.DOM.uniqueId();return y.formatter.register(n,r),h.extend({},{title:r.title,format:n})}}var o,i,c,s,a,u,l,f,m,p;return null};h.each(_(y,y.getDoc(),p(y.getParam("importcss_file_filter"))),function(r){var t,e,n,o;-1===r.indexOf(".mce-")&&(c&&!c(r)||(n=s,o=r,0<(t=h.grep(n,function(t){return!t.filter||t.filter(o)})).length?h.each(t,function(t){var e=a(r,t);e&&i.addItemToGroup(t.title,e)}):(e=a(r,null))&&i.addItem(e)))});var u=i.toFormats();y.fire("addStyleModifications",{items:u,replace:!y.getParam("importcss_append")})})};t.add("importcss",function(t){return r(t),e=t,{convertSelectorToFormat:function(t){return x(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),u=function(e){return e.getParam("insertdatetime_timeformat",e.translate("%H:%M:%S"))},c=function(e){return e.getParam("insertdatetime_formats",["%H:%M:%S","%Y-%m-%d","%I:%M:%S %p","%D"])},r="Sun Mon Tue Wed Thu Fri Sat Sun".split(" "),a="Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),i="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),o="January February March April May June July August September October November December".split(" "),m=function(e,t){if((e=""+e).length<t)for(var n=0;n<t-e.length;n++)e="0"+e;return e},s=function(e,t,n){return n=n||new Date,t=(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",m(n.getMonth()+1,2))).replace("%d",m(n.getDate(),2))).replace("%H",""+m(n.getHours(),2))).replace("%M",""+m(n.getMinutes(),2))).replace("%S",""+m(n.getSeconds(),2))).replace("%I",""+((n.getHours()+11)%12+1))).replace("%p",n.getHours()<12?"AM":"PM")).replace("%B",""+e.translate(o[n.getMonth()]))).replace("%b",""+e.translate(i[n.getMonth()]))).replace("%A",""+e.translate(a[n.getDay()]))).replace("%a",""+e.translate(r[n.getDay()]))).replace("%%","%")},l=function(e,t){var n,r,a,i,o,u,c,m;e.getParam("insertdatetime_element",!1)?(n=s(e,t),r=void 0,r=/%[HMSIp]/.test(t)?s(e,"%Y-%m-%dT%H:%M"):s(e,"%Y-%m-%d"),(a=e.dom.getParent(e.selection.getStart(),"time"))?(o=a,u=r,c=n,m=(i=e).dom.create("time",{datetime:u},c),o.parentNode.insertBefore(m,o),i.dom.remove(o),i.selection.select(m,!0),i.selection.collapse(!1)):e.insertContent('<time datetime="'+r+'">'+n+"</time>")):e.insertContent(s(e,t))},t=function(t){t.addCommand("mceInsertDate",function(){var e;l(t,(e=t).getParam("insertdatetime_dateformat",e.translate("%Y-%m-%d")))}),t.addCommand("mceInsertTime",function(){l(t,u(t))})},d=tinymce.util.Tools.resolve("tinymce.util.Tools"),n=function(n){var e,t,r,a,i=c(n),o=(a=c(r=n),e=0<a.length?a[0]:u(r),t=e,{get:function(){return t},set:function(e){t=e}});n.ui.registry.addSplitButton("insertdatetime",{icon:"insert-time",tooltip:"Insert date/time",select:function(e){return e===o.get()},fetch:function(e){e(d.map(i,function(e){return{type:"choiceitem",text:s(n,e),value:e}}))},onAction:function(e){l(n,o.get())},onItemAction:function(e,t){o.set(t),l(n,t)}});n.ui.registry.addNestedMenuItem("insertdatetime",{icon:"insert-time",text:"Date/time",getSubmenuItems:function(){return d.map(i,function(e){return{type:"menuitem",text:s(n,e),onAction:(t=e,function(){o.set(t),l(n,t)})};var t})}})};e.add("insertdatetime",function(e){t(e),n(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),l=tinymce.util.Tools.resolve("tinymce.util.Tools"),t=function(s){var e,t,i,a;t=!1,(e=s).settings.inline_styles=t,e.getParam("fontsize_formats")||(i="8pt=1 10pt=2 12pt=3 14pt=4 18pt=5 24pt=6 36pt=7",e.settings.fontsize_formats=i),e.getParam("font_formats")||(a="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",e.settings.font_formats=a),s.on("PreInit",function(){return 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]"),void l.each(t.split(","),function(e){var t=a.getElementRule(e);t&&(t.attributes.align||(t.attributes.align={},t.attributesOrder.push("align")))});var e,t,i,a})};e.add("legacyoutput",function(e){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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
@@ -273,10 +273,19 @@
|
||||
var getValue = function (item) {
|
||||
return isString(item.value) ? item.value : '';
|
||||
};
|
||||
var getText = function (item) {
|
||||
if (isString(item.text)) {
|
||||
return item.text;
|
||||
} else if (isString(item.title)) {
|
||||
return item.title;
|
||||
} else {
|
||||
return '';
|
||||
}
|
||||
};
|
||||
var sanitizeList = function (list, extractValue) {
|
||||
var out = [];
|
||||
global$2.each(list, function (item) {
|
||||
var text = isString(item.text) ? item.text : isString(item.title) ? item.title : '';
|
||||
var text = getText(item);
|
||||
if (item.menu !== undefined) {
|
||||
var items = sanitizeList(item.menu, extractValue);
|
||||
out.push({
|
||||
|
||||
+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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
@@ -248,11 +248,14 @@
|
||||
r.reverse();
|
||||
return r;
|
||||
};
|
||||
var get = function (xs, i) {
|
||||
return i >= 0 && i < xs.length ? Optional.some(xs[i]) : Optional.none();
|
||||
};
|
||||
var head = function (xs) {
|
||||
return xs.length === 0 ? Optional.none() : Optional.some(xs[0]);
|
||||
return get(xs, 0);
|
||||
};
|
||||
var last = function (xs) {
|
||||
return xs.length === 0 ? Optional.none() : Optional.some(xs[xs.length - 1]);
|
||||
return get(xs, xs.length - 1);
|
||||
};
|
||||
|
||||
var __assign = function () {
|
||||
@@ -1975,7 +1978,7 @@
|
||||
});
|
||||
};
|
||||
|
||||
var get = function (editor) {
|
||||
var get$1 = function (editor) {
|
||||
return {
|
||||
backspaceDelete: function (isForward) {
|
||||
backspaceDelete(editor, isForward);
|
||||
@@ -2136,7 +2139,7 @@
|
||||
}
|
||||
register$1(editor);
|
||||
register$2(editor);
|
||||
return get(editor);
|
||||
return get$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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
!function(){"use strict";var n=tinymce.util.Tools.resolve("tinymce.PluginManager"),i=function(n,e){for(var a="",o=0;o<e;o++)a+=n;return a},r=function(n,e){var a,o=n.getParam("nonbreaking_wrap",!0,"boolean")||n.plugins.visualchars?'<span class="'+((a=n).plugins.visualchars&&a.plugins.visualchars.isEnabled()?"mce-nbsp-wrap mce-nbsp":"mce-nbsp-wrap")+'" contenteditable="false">'+i(" ",e)+"</span>":i(" ",e);n.undoManager.transact(function(){return n.insertContent(o)})},c=tinymce.util.Tools.resolve("tinymce.util.VK");n.add("nonbreaking",function(n){var e,a,o,i,t;(e=n).addCommand("mceNonBreaking",function(){r(e,1)}),(a=n).ui.registry.addButton("nonbreaking",{icon:"non-breaking",tooltip:"Nonbreaking space",onAction:function(){return a.execCommand("mceNonBreaking")}}),a.ui.registry.addMenuItem("nonbreaking",{icon:"non-breaking",text:"Nonbreaking space",onAction:function(){return a.execCommand("mceNonBreaking")}}),0<(t="boolean"==typeof(i=(o=n).getParam("nonbreaking_force_tab",0))?!0===i?3:0:i)&&o.on("keydown",function(n){if(n.keyCode===c.TAB&&!n.isDefaultPrevented()){if(n.shiftKey)return;n.preventDefault(),n.stopImmediatePropagation(),r(o,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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
!function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),l=tinymce.util.Tools.resolve("tinymce.util.Tools"),u=function(t){return t.getParam("noneditable_noneditable_class","mceNonEditable")},f=function(e){return function(t){return-1!==(" "+t.attr("class")+" ").indexOf(e)}},e=function(e){var t,r="contenteditable",n=" "+l.trim(e.getParam("noneditable_editable_class","mceEditable"))+" ",a=" "+l.trim(u(e))+" ",i=f(n),o=f(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)if(-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,u(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))})})};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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),a=tinymce.util.Tools.resolve("tinymce.Env"),i=function(e){return e.getParam("pagebreak_split_block",!1)},g=function(){return"mce-pagebreak"},m=function(){return'<img src="'+a.transparentSrc+'" class="'+g()+'" data-mce-resize="false" data-mce-placeholder />'};e.add("pagebreak",function(e){var a,n,o,c,t,r;(a=e).addCommand("mcePageBreak",function(){i(a)?a.insertContent("<p>"+m()+"</p>"):a.insertContent(m())}),(n=e).ui.registry.addButton("pagebreak",{icon:"page-break",tooltip:"Page break",onAction:function(){return n.execCommand("mcePageBreak")}}),n.ui.registry.addMenuItem("pagebreak",{text:"Page break",icon:"page-break",onAction:function(){return n.execCommand("mcePageBreak")}}),c=(o=e).getParam("pagebreak_separator","\x3c!-- pagebreak --\x3e"),t=new RegExp(c.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g,function(e){return"\\"+e}),"gi"),o.on("BeforeSetContent",function(e){e.content=e.content.replace(t,m())}),o.on("PreInit",function(){o.serializer.addNodeFilter("img",function(e){for(var a,n,t=e.length;t--;)if((n=(a=e[t]).attr("class"))&&-1!==n.indexOf("mce-pagebreak")){var r=a.parent;if(o.schema.getBlockElements()[r.name]&&i(o)){r.type=3,r.value=c,r.raw=!0,a.remove();continue}a.type=3,a.value=c,a.raw=!0}})}),(r=e).on("ResolveName",function(e){"IMG"===e.target.nodeName&&r.dom.hasClass(e.target,g())&&(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
@@ -164,9 +164,24 @@
|
||||
return typeof value === type;
|
||||
};
|
||||
};
|
||||
var isNullable = function (a) {
|
||||
return a === null || a === undefined;
|
||||
};
|
||||
var isNonNullable = function (a) {
|
||||
return !isNullable(a);
|
||||
};
|
||||
var isFunction = isSimpleType('function');
|
||||
|
||||
var nativeSlice = Array.prototype.slice;
|
||||
var exists = function (xs, pred) {
|
||||
for (var i = 0, len = xs.length; i < len; i++) {
|
||||
var x = xs[i];
|
||||
if (pred(x, i)) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
};
|
||||
var map = function (xs, f) {
|
||||
var len = xs.length;
|
||||
var r = new Array(len);
|
||||
@@ -224,6 +239,19 @@
|
||||
};
|
||||
};
|
||||
|
||||
var checkRange = function (str, substr, start) {
|
||||
return substr === '' || str.length >= substr.length && str.substr(start, start + substr.length) === substr;
|
||||
};
|
||||
var startsWith = function (str, prefix) {
|
||||
return checkRange(str, prefix, 0);
|
||||
};
|
||||
var endsWith = function (str, suffix) {
|
||||
return checkRange(str, suffix, str.length - suffix.length);
|
||||
};
|
||||
var repeat = function (s, count) {
|
||||
return count <= 0 ? '' : new Array(count + 1).join(s);
|
||||
};
|
||||
|
||||
var global$1 = tinymce.util.Tools.resolve('tinymce.Env');
|
||||
|
||||
var global$2 = tinymce.util.Tools.resolve('tinymce.util.Delay');
|
||||
@@ -253,6 +281,8 @@
|
||||
return editor.fire('paste', { ieFake: ieFake });
|
||||
};
|
||||
|
||||
var global$5 = tinymce.util.Tools.resolve('tinymce.util.Tools');
|
||||
|
||||
var shouldBlockDrop = function (editor) {
|
||||
return editor.getParam('paste_block_drop', false);
|
||||
};
|
||||
@@ -320,6 +350,10 @@
|
||||
var getTabSpaces = function (editor) {
|
||||
return editor.getParam('paste_tab_spaces', 4, 'number');
|
||||
};
|
||||
var getAllowedImageFileTypes = function (editor) {
|
||||
var defaultImageFileTypes = 'jpeg,jpg,jpe,jfi,jif,jfif,png,gif,bmp,webp';
|
||||
return global$5.explode(editor.getParam('images_file_types', defaultImageFileTypes, 'string'));
|
||||
};
|
||||
|
||||
var internalMimeType = 'x-tinymce/html';
|
||||
var internalMark = '<!-- ' + internalMimeType + ' -->';
|
||||
@@ -336,9 +370,7 @@
|
||||
return internalMimeType;
|
||||
};
|
||||
|
||||
var global$5 = tinymce.util.Tools.resolve('tinymce.html.Entities');
|
||||
|
||||
var global$6 = tinymce.util.Tools.resolve('tinymce.util.Tools');
|
||||
var global$6 = tinymce.util.Tools.resolve('tinymce.html.Entities');
|
||||
|
||||
var isPlainText = function (text) {
|
||||
return !/<(?:\/?(?!(?:div|p|br|span)>)\w+|(?:(?!(?:span style="white-space:\s?pre;?">)|br\s?\/>))\w+\s[^>]+)>/i.test(text);
|
||||
@@ -353,7 +385,7 @@
|
||||
if (typeof rootAttrs === 'object') {
|
||||
for (key in rootAttrs) {
|
||||
if (rootAttrs.hasOwnProperty(key)) {
|
||||
attrs.push(key + '="' + global$5.encodeAllRaw(rootAttrs[key]) + '"');
|
||||
attrs.push(key + '="' + global$6.encodeAllRaw(rootAttrs[key]) + '"');
|
||||
}
|
||||
}
|
||||
if (attrs.length) {
|
||||
@@ -366,13 +398,13 @@
|
||||
var blocks = text.split(/\n\n/);
|
||||
var tagOpen = openContainer(rootTag, rootAttrs);
|
||||
var tagClose = '</' + rootTag + '>';
|
||||
var paragraphs = global$6.map(blocks, function (p) {
|
||||
var paragraphs = global$5.map(blocks, function (p) {
|
||||
return p.split(/\n/).join('<br />');
|
||||
});
|
||||
var stitch = function (p) {
|
||||
return tagOpen + p + tagClose;
|
||||
};
|
||||
return paragraphs.length === 1 ? paragraphs[0] : global$6.map(paragraphs, stitch).join('');
|
||||
return paragraphs.length === 1 ? paragraphs[0] : global$5.map(paragraphs, stitch).join('');
|
||||
};
|
||||
var convert = function (text, rootTag, rootAttrs) {
|
||||
return rootTag ? toBlockElements(text, rootTag === true ? 'p' : rootTag, rootAttrs) : toBRs(text);
|
||||
@@ -389,7 +421,7 @@
|
||||
var global$a = tinymce.util.Tools.resolve('tinymce.html.Schema');
|
||||
|
||||
function filter$1(content, items) {
|
||||
global$6.each(items, function (v) {
|
||||
global$5.each(items, function (v) {
|
||||
if (v.constructor === RegExp) {
|
||||
content = content.replace(v, '');
|
||||
} else {
|
||||
@@ -403,7 +435,7 @@
|
||||
var domParser = global$7({}, schema);
|
||||
var text = '';
|
||||
var shortEndedElements = schema.getShortEndedElements();
|
||||
var ignoreElements = global$6.makeMap('script noscript style textarea video audio iframe object', ' ');
|
||||
var ignoreElements = global$5.makeMap('script noscript style textarea video audio iframe object', ' ');
|
||||
var blockElements = schema.getBlockElements();
|
||||
function walk(node) {
|
||||
var name = node.name, currentNode = node;
|
||||
@@ -467,6 +499,19 @@
|
||||
return prefix + count++;
|
||||
};
|
||||
}
|
||||
var getImageMimeType = function (ext) {
|
||||
var mimeOverrides = {
|
||||
jpg: 'jpeg',
|
||||
jpe: 'jpeg',
|
||||
jfi: 'jpeg',
|
||||
jif: 'jpeg',
|
||||
jfif: 'jpeg',
|
||||
pjpeg: 'jpeg',
|
||||
pjp: 'jpeg',
|
||||
svg: 'svg+xml'
|
||||
};
|
||||
return global$5.hasOwn(mimeOverrides, ext) ? 'image/' + mimeOverrides[ext] : 'image/' + ext;
|
||||
};
|
||||
|
||||
function isWordContent(content) {
|
||||
return /<font face="Times New Roman"|class="?Mso|style="[^"]*\bmso-|style='[^']*\bmso-|w:WordDocument/i.test(content) || /class="OutlineElement/.test(content) || /id="?docs\-internal\-guid\-/.test(content);
|
||||
@@ -483,7 +528,7 @@
|
||||
/^[\u58f1\u5f10\u53c2\u56db\u4f0d\u516d\u4e03\u516b\u4e5d\u62fe]+\.[ \u00a0]/
|
||||
];
|
||||
text = text.replace(/^[\u00a0 ]+/, '');
|
||||
global$6.each(patterns, function (pattern) {
|
||||
global$5.each(patterns, function (pattern) {
|
||||
if (pattern.test(text)) {
|
||||
found = true;
|
||||
return false;
|
||||
@@ -609,7 +654,7 @@
|
||||
function filterStyles(editor, validStyles, node, styleValue) {
|
||||
var outputStyles = {}, matches;
|
||||
var styles = editor.dom.parseStyle(styleValue);
|
||||
global$6.each(styles, function (value, name) {
|
||||
global$5.each(styles, function (value, name) {
|
||||
switch (name) {
|
||||
case 'mso-list':
|
||||
matches = /\w+ \w+([0-9]+)/i.exec(styleValue);
|
||||
@@ -677,7 +722,7 @@
|
||||
var validStyles;
|
||||
var retainStyleProperties = getRetainStyleProps(editor);
|
||||
if (retainStyleProperties) {
|
||||
validStyles = global$6.makeMap(retainStyleProperties.split(/[, ]/));
|
||||
validStyles = global$5.makeMap(retainStyleProperties.split(/[, ]/));
|
||||
}
|
||||
content = filter$1(content, [
|
||||
/<br class="?Apple-interchange-newline"?>/gi,
|
||||
@@ -704,7 +749,7 @@
|
||||
valid_elements: validElements,
|
||||
valid_children: '-li[p]'
|
||||
});
|
||||
global$6.each(schema.elements, function (rule) {
|
||||
global$5.each(schema.elements, function (rule) {
|
||||
if (!rule.attributes.class) {
|
||||
rule.attributes.class = {};
|
||||
rule.attributesOrder.push('class');
|
||||
@@ -786,7 +831,7 @@
|
||||
var preProcess$1 = function (editor, html) {
|
||||
var parser = global$7({}, editor.schema);
|
||||
parser.addNodeFilter('meta', function (nodes) {
|
||||
global$6.each(nodes, function (node) {
|
||||
global$5.each(nodes, function (node) {
|
||||
node.remove();
|
||||
});
|
||||
});
|
||||
@@ -832,8 +877,10 @@
|
||||
var isAbsoluteUrl = function (url) {
|
||||
return /^https?:\/\/[\w\?\-\/+=.&%@~#]+$/i.test(url);
|
||||
};
|
||||
var isImageUrl = function (url) {
|
||||
return isAbsoluteUrl(url) && /.(gif|jpe?g|png)$/.test(url);
|
||||
var isImageUrl = function (editor, url) {
|
||||
return isAbsoluteUrl(url) && exists(getAllowedImageFileTypes(editor), function (type) {
|
||||
return endsWith(url, '.' + type);
|
||||
});
|
||||
};
|
||||
var createImage = function (editor, url, pasteHtmlFn) {
|
||||
editor.undoManager.extra(function () {
|
||||
@@ -855,10 +902,10 @@
|
||||
return editor.selection.isCollapsed() === false && isAbsoluteUrl(html) ? createLink(editor, html, pasteHtmlFn) : false;
|
||||
};
|
||||
var insertImage = function (editor, html, pasteHtmlFn) {
|
||||
return isImageUrl(html) ? createImage(editor, html, pasteHtmlFn) : false;
|
||||
return isImageUrl(editor, html) ? createImage(editor, html, pasteHtmlFn) : false;
|
||||
};
|
||||
var smartInsertContent = function (editor, html) {
|
||||
global$6.each([
|
||||
global$5.each([
|
||||
linkSelection,
|
||||
insertImage,
|
||||
pasteHtml
|
||||
@@ -874,10 +921,6 @@
|
||||
}
|
||||
};
|
||||
|
||||
var repeat = function (s, count) {
|
||||
return count <= 0 ? '' : new Array(count + 1).join(s);
|
||||
};
|
||||
|
||||
var isCollapsibleWhitespace = function (c) {
|
||||
return ' \f\t\x0B'.indexOf(c) !== -1;
|
||||
};
|
||||
@@ -985,14 +1028,14 @@
|
||||
return filter ? filter(imgElm) : true;
|
||||
};
|
||||
var extractFilename = function (editor, str) {
|
||||
var m = str.match(/([\s\S]+?)\.(?:jpeg|jpg|png|gif)$/i);
|
||||
return m ? editor.dom.encode(m[1]) : null;
|
||||
var m = str.match(/([\s\S]+?)(?:\.[a-z0-9.]+)$/i);
|
||||
return isNonNullable(m) ? editor.dom.encode(m[1]) : null;
|
||||
};
|
||||
var uniqueId = createIdGenerator('mceclip');
|
||||
var pasteImage = function (editor, imageItem) {
|
||||
var _a = parseDataUri(imageItem.uri), base64 = _a.data, type = _a.type;
|
||||
var id = uniqueId();
|
||||
var name = getImagesReuseFilename(editor) && imageItem.blob.name ? extractFilename(editor, imageItem.blob.name) : id;
|
||||
var file = imageItem.blob;
|
||||
var img = new Image();
|
||||
img.src = imageItem.uri;
|
||||
if (isValidDataUriImage(editor, img)) {
|
||||
@@ -1000,7 +1043,10 @@
|
||||
var blobInfo = void 0;
|
||||
var existingBlobInfo = blobCache.getByData(base64, type);
|
||||
if (!existingBlobInfo) {
|
||||
blobInfo = blobCache.create(id, imageItem.blob, base64, name);
|
||||
var useFileName = getImagesReuseFilename(editor) && isNonNullable(file.name);
|
||||
var name_1 = useFileName ? extractFilename(editor, file.name) : id;
|
||||
var filename = useFileName ? file.name : undefined;
|
||||
blobInfo = blobCache.create(id, file, base64, name_1, filename);
|
||||
blobCache.add(blobInfo);
|
||||
} else {
|
||||
blobInfo = existingBlobInfo;
|
||||
@@ -1013,10 +1059,13 @@
|
||||
var isClipboardEvent = function (event) {
|
||||
return event.type === 'paste';
|
||||
};
|
||||
var readBlobsAsDataUris = function (items) {
|
||||
var isDataTransferItem = function (item) {
|
||||
return isNonNullable(item.getAsFile);
|
||||
};
|
||||
var readFilesAsDataUris = function (items) {
|
||||
return global$3.all(map(items, function (item) {
|
||||
return new global$3(function (resolve) {
|
||||
var blob = item.getAsFile ? item.getAsFile() : item;
|
||||
var blob = isDataTransferItem(item) ? item.getAsFile() : item;
|
||||
var reader = new window.FileReader();
|
||||
reader.onload = function () {
|
||||
resolve({
|
||||
@@ -1028,27 +1077,32 @@
|
||||
});
|
||||
}));
|
||||
};
|
||||
var getImagesFromDataTransfer = function (dataTransfer) {
|
||||
var isImage = function (editor) {
|
||||
var allowedExtensions = getAllowedImageFileTypes(editor);
|
||||
return function (file) {
|
||||
return startsWith(file.type, 'image/') && exists(allowedExtensions, function (extension) {
|
||||
return getImageMimeType(extension) === file.type;
|
||||
});
|
||||
};
|
||||
};
|
||||
var getImagesFromDataTransfer = function (editor, dataTransfer) {
|
||||
var items = dataTransfer.items ? map(from$1(dataTransfer.items), function (item) {
|
||||
return item.getAsFile();
|
||||
}) : [];
|
||||
var files = dataTransfer.files ? from$1(dataTransfer.files) : [];
|
||||
var images = filter(items.length > 0 ? items : files, function (file) {
|
||||
return /^image\/(jpeg|png|gif|bmp)$/.test(file.type);
|
||||
});
|
||||
return images;
|
||||
return filter(items.length > 0 ? items : files, isImage(editor));
|
||||
};
|
||||
var pasteImageData = function (editor, e, rng) {
|
||||
var dataTransfer = isClipboardEvent(e) ? e.clipboardData : e.dataTransfer;
|
||||
if (getPasteDataImages(editor) && dataTransfer) {
|
||||
var images = getImagesFromDataTransfer(dataTransfer);
|
||||
var images = getImagesFromDataTransfer(editor, dataTransfer);
|
||||
if (images.length > 0) {
|
||||
e.preventDefault();
|
||||
readBlobsAsDataUris(images).then(function (blobResults) {
|
||||
readFilesAsDataUris(images).then(function (fileResults) {
|
||||
if (rng) {
|
||||
editor.selection.setRng(rng);
|
||||
}
|
||||
each(blobResults, function (result) {
|
||||
each(fileResults, function (result) {
|
||||
pasteImage(editor, result);
|
||||
});
|
||||
});
|
||||
@@ -1066,13 +1120,15 @@
|
||||
};
|
||||
var registerEventHandlers = function (editor, pasteBin, pasteFormat) {
|
||||
var keyboardPasteEvent = value();
|
||||
var keyboardPastePressed = value();
|
||||
var keyboardPastePlainTextState;
|
||||
editor.on('keyup', keyboardPastePressed.clear);
|
||||
editor.on('keydown', function (e) {
|
||||
function removePasteBinOnKeyUp(e) {
|
||||
var removePasteBinOnKeyUp = function (e) {
|
||||
if (isKeyboardPasteEvent(e) && !e.isDefaultPrevented()) {
|
||||
pasteBin.remove();
|
||||
}
|
||||
}
|
||||
};
|
||||
if (isKeyboardPasteEvent(e) && !e.isDefaultPrevented()) {
|
||||
keyboardPastePlainTextState = e.shiftKey && e.keyCode === 86;
|
||||
if (keyboardPastePlainTextState && global$1.webkit && navigator.userAgent.indexOf('Version/') !== -1) {
|
||||
@@ -1080,9 +1136,7 @@
|
||||
}
|
||||
e.stopImmediatePropagation();
|
||||
keyboardPasteEvent.set(e);
|
||||
window.setTimeout(function () {
|
||||
keyboardPasteEvent.clear();
|
||||
}, 100);
|
||||
keyboardPastePressed.set(true);
|
||||
if (global$1.ie && keyboardPastePlainTextState) {
|
||||
e.preventDefault();
|
||||
firePaste(editor, true);
|
||||
@@ -1096,7 +1150,7 @@
|
||||
});
|
||||
}
|
||||
});
|
||||
function insertClipboardContent(clipboardContent, isKeyBoardPaste, plainTextMode, internal) {
|
||||
function insertClipboardContent(editor, clipboardContent, isKeyBoardPaste, plainTextMode, internal) {
|
||||
var content;
|
||||
if (hasContentType(clipboardContent, 'text/html')) {
|
||||
content = clipboardContent['text/html'];
|
||||
@@ -1110,7 +1164,7 @@
|
||||
content = trimHtml(content);
|
||||
pasteBin.remove();
|
||||
var isPlainTextHtml = internal === false && isPlainText(content);
|
||||
var isImage = isImageUrl(content);
|
||||
var isImage = isImageUrl(editor, content);
|
||||
if (!content.length || isPlainTextHtml && !isImage) {
|
||||
plainTextMode = true;
|
||||
}
|
||||
@@ -1137,7 +1191,10 @@
|
||||
return pasteBin.getLastRng() || editor.selection.getRng();
|
||||
};
|
||||
editor.on('paste', function (e) {
|
||||
var isKeyBoardPaste = keyboardPasteEvent.isSet();
|
||||
var isKeyboardPaste = keyboardPasteEvent.isSet() || keyboardPastePressed.isSet();
|
||||
if (isKeyboardPaste) {
|
||||
keyboardPasteEvent.clear();
|
||||
}
|
||||
var clipboardContent = getClipboardContent(editor, e);
|
||||
var plainTextMode = pasteFormat.get() === 'text' || keyboardPastePlainTextState;
|
||||
var internal = hasContentType(clipboardContent, internalHtmlMime());
|
||||
@@ -1150,10 +1207,10 @@
|
||||
pasteBin.remove();
|
||||
return;
|
||||
}
|
||||
if (!isKeyBoardPaste) {
|
||||
if (!isKeyboardPaste) {
|
||||
e.preventDefault();
|
||||
}
|
||||
if (global$1.ie && (!isKeyBoardPaste || e.ieFake) && !hasContentType(clipboardContent, 'text/html')) {
|
||||
if (global$1.ie && (!isKeyboardPaste || e.ieFake) && !hasContentType(clipboardContent, 'text/html')) {
|
||||
pasteBin.create();
|
||||
editor.dom.bind(pasteBin.getEl(), 'paste', function (e) {
|
||||
e.stopPropagation();
|
||||
@@ -1166,10 +1223,10 @@
|
||||
if (!internal) {
|
||||
internal = isMarked(clipboardContent['text/html']);
|
||||
}
|
||||
insertClipboardContent(clipboardContent, isKeyBoardPaste, plainTextMode, internal);
|
||||
insertClipboardContent(editor, clipboardContent, isKeyboardPaste, plainTextMode, internal);
|
||||
} else {
|
||||
global$2.setEditorTimeout(editor, function () {
|
||||
insertClipboardContent(clipboardContent, isKeyBoardPaste, plainTextMode, internal);
|
||||
insertClipboardContent(editor, clipboardContent, isKeyboardPaste, plainTextMode, internal);
|
||||
}, 0);
|
||||
}
|
||||
});
|
||||
@@ -1266,11 +1323,11 @@
|
||||
toElm.appendChild(fromElm);
|
||||
editor.dom.remove(fromElm, true);
|
||||
};
|
||||
var pasteBinClones = global$6.grep(getPasteBinParent(editor).childNodes, function (elm) {
|
||||
var pasteBinClones = global$5.grep(getPasteBinParent(editor).childNodes, function (elm) {
|
||||
return elm.id === 'mcepastebin';
|
||||
});
|
||||
var pasteBinElm = pasteBinClones.shift();
|
||||
global$6.each(pasteBinClones, function (pasteBinClone) {
|
||||
global$5.each(pasteBinClones, function (pasteBinClone) {
|
||||
copyAndRemove(pasteBinElm, pasteBinClone);
|
||||
});
|
||||
var dirtyWrappers = editor.dom.select('div[id=mcepastebin]', pasteBinElm);
|
||||
@@ -1440,7 +1497,7 @@
|
||||
return function (evt) {
|
||||
if (hasSelectedContent(editor)) {
|
||||
setClipboardData(evt, getData(editor), fallback(editor), function () {
|
||||
if (global$1.browser.isChrome()) {
|
||||
if (global$1.browser.isChrome() || global$1.browser.isFirefox()) {
|
||||
var rng_1 = editor.selection.getRng();
|
||||
global$2.setEditorTimeout(editor, function () {
|
||||
editor.selection.setRng(rng_1);
|
||||
@@ -1570,7 +1627,7 @@
|
||||
return html;
|
||||
}
|
||||
var blockElements = [];
|
||||
global$6.each(editor.schema.getBlockElements(), function (block, blockName) {
|
||||
global$5.each(editor.schema.getBlockElements(), function (block, blockName) {
|
||||
blockElements.push(blockName);
|
||||
});
|
||||
var explorerBlocksRegExp = new RegExp('(?:<br> [\\s\\r\\n]+|<br>)*(<\\/?(' + blockElements.join('|') + ')[^>]*>)(?:<br> [\\s\\r\\n]+|<br>)*', 'g');
|
||||
|
||||
+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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
!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"),i=function(e){var t=function(t){var n="",i=t.dom.encode,e=t.getParam("content_style","","string");n+='<base href="'+i(t.documentBaseURI.getURI())+'">',e&&(n+='<style type="text/css">'+e+"</style>");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+">"});var r,a,c,s,d,m,l,y=-1===(s=(r=t).getParam("body_id","tinymce","string")).indexOf("=")?s:(c=(a=r).getParam("body_id","","hash"))[a.id]||c,u=-1===(l=(d=t).getParam("body_class","","string")).indexOf("=")?l:(m=d).getParam("body_class","","hash")[m.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);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")};e.add("preview",function(e){var t,n;(t=e).addCommand("mcePreview",function(){i(t)}),(n=e).ui.registry.addButton("preview",{icon:"preview",tooltip:"Preview",onAction:function(){return n.execCommand("mcePreview")}}),n.ui.registry.addMenuItem("preview",{icon:"preview",text:"Preview",onAction:function(){return n.execCommand("mcePreview")}})})}();
|
||||
@@ -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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
!function(){"use strict";var n=tinymce.util.Tools.resolve("tinymce.PluginManager"),e=tinymce.util.Tools.resolve("tinymce.Env");n.add("print",function(n){var t,i;(t=n).addCommand("mcePrint",function(){e.browser.isIE()?t.getDoc().execCommand("print",!1,null):t.getWin().print()}),(i=n).ui.registry.addButton("print",{icon:"print",tooltip:"Print",onAction:function(){return i.execCommand("mcePrint")}}),i.ui.registry.addMenuItem("print",{text:"Print...",icon:"print",onAction:function(){return i.execCommand("mcePrint")}}),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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
@@ -280,7 +280,13 @@
|
||||
var isFunction = isSimpleType('function');
|
||||
|
||||
function ClosestOrAncestor (is, ancestor, scope, a, isRoot) {
|
||||
return is(scope, a) ? Optional.some(scope) : isFunction(isRoot) && isRoot(scope) ? Optional.none() : ancestor(scope, a, isRoot);
|
||||
if (is(scope, a)) {
|
||||
return Optional.some(scope);
|
||||
} else if (isFunction(isRoot) && isRoot(scope)) {
|
||||
return Optional.none();
|
||||
} else {
|
||||
return ancestor(scope, a, isRoot);
|
||||
}
|
||||
}
|
||||
|
||||
var ELEMENT = 1;
|
||||
|
||||
+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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),o=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),a=tinymce.util.Tools.resolve("tinymce.util.Tools"),i=function(e){return e.getParam("save_enablewhendirty",!0)},c=function(e,n){e.notificationManager.open({text:n,type:"error"})},t=function(t){t.addCommand("mceSave",function(){!function(e){var n=o.DOM.getParent(e.id,"form");if(!i(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():c(e,"Error: Form submit field collision.")),e.nodeChanged()):c(e,"Error: No form element found.")}}(t)}),t.addCommand("mceCancel",function(){var e,n;e=t,n=a.trim(e.startContent),e.getParam("save_oncancelcallback")?e.execCallback("save_oncancelcallback",e):e.resetContent(n)})},r=function(t){return function(e){var n=function(){e.setDisabled(i(t)&&!t.isDirty())};return t.on("NodeChange dirty",n),function(){return t.off("NodeChange dirty",n)}}};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:r(n)}),n.ui.registry.addButton("cancel",{icon:"cancel",tooltip:"Cancel",disabled:!0,onAction:function(){return n.execCommand("mceCancel")},onSetup:r(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),c=tinymce.util.Tools.resolve("tinymce.EditorManager"),a=tinymce.util.Tools.resolve("tinymce.Env"),y=tinymce.util.Tools.resolve("tinymce.util.Delay"),d=tinymce.util.Tools.resolve("tinymce.util.Tools"),f=tinymce.util.Tools.resolve("tinymce.util.VK"),m=t.DOM,n=function(e){e.keyCode!==f.TAB||e.ctrlKey||e.altKey||e.metaKey||e.preventDefault()},i=function(s){function e(i){var o,l,e,t,n,u;function r(e){var t=m.select(":input:enabled,*[tabindex]:not(iframe)");function n(e){return/INPUT|TEXTAREA|BUTTON/.test(e.tagName)&&c.get(i.id)&&-1!==e.tabIndex&&function t(e){return"BODY"===e.nodeName||"hidden"!==e.type&&"none"!==e.style.display&&"hidden"!==e.style.visibility&&t(e.parentNode)}(e)}if(d.each(t,function(e,t){if(e.id===s.id)return o=t,!1}),0<e){for(l=o+1;l<t.length;l++)if(n(t[l]))return t[l]}else for(l=o-1;0<=l;l--)if(n(t[l]))return t[l];return null}i.keyCode!==f.TAB||i.ctrlKey||i.altKey||i.metaKey||i.isDefaultPrevented()||(1===(e=d.explode((t=s).getParam("tab_focus",t.getParam("tabfocus_elements",":prev,:next")))).length&&(e[1]=e[0],e[0]=":prev"),(n=i.shiftKey?":prev"===e[0]?r(-1):m.get(e[0]):":next"===e[1]?r(1):m.get(e[1]))&&(u=c.get(n.id||n.name),n.id&&u?u.focus():y.setTimeout(function(){a.webkit||window.focus(),n.focus()},10),i.preventDefault()))}s.on("init",function(){s.inline&&m.setAttrib(s.getBody(),"tabIndex",null),s.on("keyup",n),a.gecko?s.on("keypress keydown",e):s.on("keydown",e)})};e.add("tabfocus",function(e){i(e)})}();
|
||||
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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
!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")})}();
|
||||
@@ -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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
@@ -270,8 +270,11 @@
|
||||
copy.sort(comparator);
|
||||
return copy;
|
||||
};
|
||||
var get = function (xs, i) {
|
||||
return i >= 0 && i < xs.length ? Optional.some(xs[i]) : Optional.none();
|
||||
};
|
||||
var head = function (xs) {
|
||||
return xs.length === 0 ? Optional.none() : Optional.some(xs[0]);
|
||||
return get(xs, 0);
|
||||
};
|
||||
|
||||
var keys = Object.keys;
|
||||
@@ -653,7 +656,7 @@
|
||||
};
|
||||
};
|
||||
|
||||
var get = function (patternsState) {
|
||||
var get$1 = function (patternsState) {
|
||||
var setPatterns = function (newPatterns) {
|
||||
var normalized = partition(map(newPatterns, normalizePattern));
|
||||
if (normalized.errors.length > 0) {
|
||||
@@ -1378,7 +1381,7 @@
|
||||
global.add('textpattern', function (editor) {
|
||||
var patternsState = Cell(getPatternSet(editor));
|
||||
setup(editor, patternsState);
|
||||
return get(patternsState);
|
||||
return get$1(patternsState);
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
+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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
!function(){"use strict";var e,n,t=tinymce.util.Tools.resolve("tinymce.PluginManager"),s=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),f=tinymce.util.Tools.resolve("tinymce.util.I18n"),c=tinymce.util.Tools.resolve("tinymce.util.Tools"),l=function(t){return t.getParam("toc_class","mce-toc")},m=function(t){var e=t.getParam("toc_header","h2");return/^h[1-6]$/.test(e)?e:"h2"},a=(e="mcetoc_",n=0,function(){var t=(new Date).getTime().toString(32);return e+t+(n++).toString(32)}),v=function(n){var t,o=l(n),e=m(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){var e=t.id;return{id:e||a(),level:parseInt(t.nodeName.replace(/^H/i,""),10),title:n.$.text(t),element:t}})},u=function(t){var e,n,o,r,i,c,l,a="",u=v(t),d=function(t){for(var e=9,n=0;n<t.length;n++)if(t[n].level<e&&(e=t[n].level),1===e)return e;return e}(u)-1;if(!u.length)return"";for(a+=(i=m(t),c=f.translate("Table of Contents"),l="</"+i+">","<"+i+' contenteditable="true">'+s.DOM.encode(c)+l),e=0;e<u.length;e++){if((o=u[e]).element.id=o.id,r=u[e+1]&&u[e+1].level,d===o.level)a+="<li>";else for(n=d;n<o.level;n++)a+="<ul><li>";if(a+='<a href="#'+o.id+'">'+o.title+"</a>",r!==o.level&&r)for(n=o.level;r<n;n--)a+="</li></ul><li>";else a+="</li>",r||(a+="</ul>");d=o.level}return a},i=function(t){var e,n,o,r,i=l(t),c=t.$("."+i);o=t,!(r=c).length||0<o.dom.getParents(r[0],".mce-offscreen-selection").length?t.insertContent((n=u(e=t),'<div class="'+e.dom.encode(l(e))+'" contenteditable="false">'+n+"</div>")):d(t)},d=function(t){var e=l(t),n=t.$("."+e);n.length&&t.undoManager.transact(function(){n.html(u(t))})},o=function(n){return function(t){var e=function(){return t.setDisabled(n.mode.isReadOnly()||!(0<v(n).length))};return e(),n.on("LoadContent SetContent change",e),function(){return n.on("LoadContent SetContent change",e)}}},g=function(t){var e;t.ui.registry.addButton("toc",{icon:"toc",tooltip:"Table of contents",onAction:function(){return t.execCommand("mceInsertToc")},onSetup:o(t)}),t.ui.registry.addButton("tocupdate",{icon:"reload",tooltip:"Update",onAction:function(){return t.execCommand("mceUpdateToc")}}),t.ui.registry.addMenuItem("toc",{icon:"toc",text:"Table of contents",onAction:function(){return t.execCommand("mceInsertToc")},onSetup:o(t)}),t.ui.registry.addContextToolbar("toc",{items:"tocupdate",predicate:(e=t,function(t){return t&&e.dom.is(t,"."+l(e))&&e.getBody().contains(t)}),scope:"node",position:"node"})};t.add("toc",function(t){var e,n,o,r;(e=t).addCommand("mceInsertToc",function(){i(e)}),e.addCommand("mceUpdateToc",function(){d(e)}),g(t),o=(n=t).$,r=l(n),n.on("PreProcess",function(t){var e=o("."+r,t.node);e.length&&(e.removeAttr("contentEditable"),e.find("[contenteditable]").removeAttr("contentEditable"))}),n.on("SetContent",function(){var t=o("."+r);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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
!function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),r=function(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})},f=function(e,n){return function(o){o.setActive(n.get());var t=function(t){return o.setActive(t.state)};return e.on("VisualBlocks",t),function(){return e.off("VisualBlocks",t)}}};t.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}});i=a,(n=t).addCommand("mceVisualBlocks",function(){r(n,0,i)}),c=a,(s=t).ui.registry.addToggleButton("visualblocks",{icon:"visualblocks",tooltip:"Show blocks",onAction:function(){return s.execCommand("mceVisualBlocks")},onSetup:f(s,c)}),s.ui.registry.addToggleMenuItem("visualblocks",{text:"Show blocks",icon:"visualblocks",onAction:function(){return s.execCommand("mceVisualBlocks")},onSetup:f(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")&&r(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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
@@ -443,18 +443,20 @@
|
||||
editor.selection.moveToBookmark(bookmark);
|
||||
};
|
||||
|
||||
var toggleVisualChars = function (editor, toggleState) {
|
||||
var body = editor.getBody();
|
||||
var selection = editor.selection;
|
||||
toggleState.set(!toggleState.get());
|
||||
var applyVisualChars = function (editor, toggleState) {
|
||||
fireVisualChars(editor, toggleState.get());
|
||||
var bookmark = selection.getBookmark();
|
||||
var body = editor.getBody();
|
||||
if (toggleState.get() === true) {
|
||||
show(editor, body);
|
||||
} else {
|
||||
hide(editor, body);
|
||||
}
|
||||
selection.moveToBookmark(bookmark);
|
||||
};
|
||||
var toggleVisualChars = function (editor, toggleState) {
|
||||
toggleState.set(!toggleState.get());
|
||||
var bookmark = editor.selection.getBookmark();
|
||||
applyVisualChars(editor, toggleState);
|
||||
editor.selection.moveToBookmark(bookmark);
|
||||
};
|
||||
|
||||
var register = function (editor, toggleState) {
|
||||
@@ -472,9 +474,7 @@
|
||||
|
||||
var setup = function (editor, toggleState) {
|
||||
editor.on('init', function () {
|
||||
var valueForToggling = !isEnabledByDefault(editor);
|
||||
toggleState.set(valueForToggling);
|
||||
toggleVisualChars(editor, toggleState);
|
||||
applyVisualChars(editor, toggleState);
|
||||
});
|
||||
};
|
||||
|
||||
@@ -491,6 +491,7 @@
|
||||
}
|
||||
});
|
||||
}
|
||||
editor.on('remove', debouncedToggle.stop);
|
||||
};
|
||||
|
||||
var toggleActiveState = function (editor, enabledStated) {
|
||||
@@ -526,7 +527,7 @@
|
||||
|
||||
function Plugin () {
|
||||
global.add('visualchars', function (editor) {
|
||||
var toggleState = Cell(false);
|
||||
var toggleState = Cell(isEnabledByDefault(editor));
|
||||
register(editor, toggleState);
|
||||
register$1(editor, toggleState);
|
||||
setup$1(editor, toggleState);
|
||||
|
||||
+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.5.1 (2020-10-01)
|
||||
* Version: 5.6.0 (2020-11-18)
|
||||
*/
|
||||
(function () {
|
||||
'use strict';
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -488,7 +488,7 @@ pre[class*="language-"] {
|
||||
}
|
||||
.mce-content-body td[data-mce-selected]::after,
|
||||
.mce-content-body th[data-mce-selected]::after {
|
||||
background-color: rgba(180, 215, 255, 0.35);
|
||||
background-color: rgba(180, 215, 255, 0.7);
|
||||
border: 1px solid transparent;
|
||||
bottom: -1px;
|
||||
content: '';
|
||||
@@ -501,7 +501,7 @@ pre[class*="language-"] {
|
||||
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
||||
.mce-content-body td[data-mce-selected]::after,
|
||||
.mce-content-body th[data-mce-selected]::after {
|
||||
border-color: rgba(0, 84, 180, 0.35);
|
||||
border-color: rgba(0, 84, 180, 0.7);
|
||||
}
|
||||
}
|
||||
.mce-content-body img::-moz-selection {
|
||||
|
||||
@@ -506,8 +506,8 @@ pre[class*="language-"] {
|
||||
}
|
||||
.mce-content-body td[data-mce-selected]::after,
|
||||
.mce-content-body th[data-mce-selected]::after {
|
||||
background-color: rgba(180, 215, 255, 0.35);
|
||||
border: 1px solid rgba(180, 215, 255, 0.35);
|
||||
background-color: rgba(180, 215, 255, 0.7);
|
||||
border: 1px solid rgba(180, 215, 255, 0.7);
|
||||
bottom: -1px;
|
||||
content: '';
|
||||
left: -1px;
|
||||
@@ -519,7 +519,7 @@ pre[class*="language-"] {
|
||||
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
||||
.mce-content-body td[data-mce-selected]::after,
|
||||
.mce-content-body th[data-mce-selected]::after {
|
||||
border-color: rgba(0, 84, 180, 0.35);
|
||||
border-color: rgba(0, 84, 180, 0.7);
|
||||
}
|
||||
}
|
||||
.mce-content-body img::-moz-selection {
|
||||
|
||||
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
@@ -665,13 +665,61 @@ button::-moz-focus-inner {
|
||||
.tox .tox-collection--horizontal .tox-collection__item-caret {
|
||||
margin-left: 4px;
|
||||
}
|
||||
.tox .tox-collection__item-container {
|
||||
display: flex;
|
||||
}
|
||||
.tox .tox-collection__item-container--row {
|
||||
align-items: center;
|
||||
flex: 1 1 auto;
|
||||
flex-direction: row;
|
||||
}
|
||||
.tox .tox-collection__item-container--row.tox-collection__item-container--align-left {
|
||||
margin-right: auto;
|
||||
}
|
||||
.tox .tox-collection__item-container--row.tox-collection__item-container--align-right {
|
||||
justify-content: flex-end;
|
||||
margin-left: auto;
|
||||
}
|
||||
.tox .tox-collection__item-container--row.tox-collection__item-container--valign-top {
|
||||
align-items: flex-start;
|
||||
margin-bottom: auto;
|
||||
}
|
||||
.tox .tox-collection__item-container--row.tox-collection__item-container--valign-middle {
|
||||
align-items: center;
|
||||
}
|
||||
.tox .tox-collection__item-container--row.tox-collection__item-container--valign-bottom {
|
||||
align-items: flex-end;
|
||||
margin-top: auto;
|
||||
}
|
||||
.tox .tox-collection__item-container--column {
|
||||
-ms-grid-row-align: center;
|
||||
align-self: center;
|
||||
flex: 1 1 auto;
|
||||
flex-direction: column;
|
||||
}
|
||||
.tox .tox-collection__item-container--column.tox-collection__item-container--align-left {
|
||||
align-items: flex-start;
|
||||
}
|
||||
.tox .tox-collection__item-container--column.tox-collection__item-container--align-right {
|
||||
align-items: flex-end;
|
||||
}
|
||||
.tox .tox-collection__item-container--column.tox-collection__item-container--valign-top {
|
||||
align-self: flex-start;
|
||||
}
|
||||
.tox .tox-collection__item-container--column.tox-collection__item-container--valign-middle {
|
||||
-ms-grid-row-align: center;
|
||||
align-self: center;
|
||||
}
|
||||
.tox .tox-collection__item-container--column.tox-collection__item-container--valign-bottom {
|
||||
align-self: flex-end;
|
||||
}
|
||||
.tox:not([dir=rtl]) .tox-collection--horizontal .tox-collection__group:not(:last-of-type) {
|
||||
border-right: 1px solid #000000;
|
||||
}
|
||||
.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item > *:not(:first-child) {
|
||||
margin-left: 8px;
|
||||
}
|
||||
.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item-label:first-child {
|
||||
.tox:not([dir=rtl]) .tox-collection--list .tox-collection__item > .tox-collection__item-label:first-child {
|
||||
margin-left: 4px;
|
||||
}
|
||||
.tox:not([dir=rtl]) .tox-collection__item-accessory {
|
||||
@@ -687,7 +735,7 @@ button::-moz-focus-inner {
|
||||
.tox[dir=rtl] .tox-collection--list .tox-collection__item > *:not(:first-child) {
|
||||
margin-right: 8px;
|
||||
}
|
||||
.tox[dir=rtl] .tox-collection--list .tox-collection__item-label:first-child {
|
||||
.tox[dir=rtl] .tox-collection--list .tox-collection__item > .tox-collection__item-label:first-child {
|
||||
margin-right: 4px;
|
||||
}
|
||||
.tox[dir=rtl] .tox-collection__item-icon-rtl {
|
||||
@@ -1383,9 +1431,6 @@ button::-moz-focus-inner {
|
||||
.tox .tox-dialog-dock-transition.tox-dialog-dock-fadein {
|
||||
transition-delay: 0s;
|
||||
}
|
||||
body.tox-dialog__disable-scroll {
|
||||
overflow: hidden;
|
||||
}
|
||||
.tox.tox-platform-ie {
|
||||
/* IE11 CSS styles go here */
|
||||
}
|
||||
@@ -1423,6 +1468,9 @@ body.tox-dialog__disable-scroll {
|
||||
.tox[dir=rtl] .tox-dialog__footer .tox-dialog__footer-end > * {
|
||||
margin-right: 8px;
|
||||
}
|
||||
body.tox-dialog__disable-scroll {
|
||||
overflow: hidden;
|
||||
}
|
||||
.tox .tox-dropzone-container {
|
||||
display: flex;
|
||||
flex: 1;
|
||||
@@ -1879,13 +1927,17 @@ body.tox-dialog__disable-scroll {
|
||||
touch-action: pinch-zoom;
|
||||
width: 100%;
|
||||
}
|
||||
.tox-fullscreen .tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle {
|
||||
.tox.tox-tinymce.tox-fullscreen .tox-statusbar__resize-handle {
|
||||
display: none;
|
||||
}
|
||||
.tox-fullscreen .tox.tox-tinymce.tox-fullscreen {
|
||||
.tox.tox-tinymce.tox-fullscreen {
|
||||
z-index: 1200;
|
||||
}
|
||||
.tox-fullscreen .tox.tox-tinymce-aux {
|
||||
.tox-shadowhost.tox-fullscreen {
|
||||
z-index: 1200;
|
||||
}
|
||||
.tox-fullscreen .tox.tox-tinymce-aux,
|
||||
.tox-fullscreen ~ .tox.tox-tinymce-aux {
|
||||
z-index: 1201;
|
||||
}
|
||||
.tox .tox-help__more-link {
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
@@ -506,8 +506,8 @@ pre[class*="language-"] {
|
||||
}
|
||||
.mce-content-body td[data-mce-selected]::after,
|
||||
.mce-content-body th[data-mce-selected]::after {
|
||||
background-color: rgba(180, 215, 255, 0.35);
|
||||
border: 1px solid rgba(180, 215, 255, 0.35);
|
||||
background-color: rgba(180, 215, 255, 0.7);
|
||||
border: 1px solid rgba(180, 215, 255, 0.7);
|
||||
bottom: -1px;
|
||||
content: '';
|
||||
left: -1px;
|
||||
@@ -519,7 +519,7 @@ pre[class*="language-"] {
|
||||
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
||||
.mce-content-body td[data-mce-selected]::after,
|
||||
.mce-content-body th[data-mce-selected]::after {
|
||||
border-color: rgba(0, 84, 180, 0.35);
|
||||
border-color: rgba(0, 84, 180, 0.7);
|
||||
}
|
||||
}
|
||||
.mce-content-body img::-moz-selection {
|
||||
|
||||
@@ -506,8 +506,8 @@ pre[class*="language-"] {
|
||||
}
|
||||
.mce-content-body td[data-mce-selected]::after,
|
||||
.mce-content-body th[data-mce-selected]::after {
|
||||
background-color: rgba(180, 215, 255, 0.35);
|
||||
border: 1px solid rgba(180, 215, 255, 0.35);
|
||||
background-color: rgba(180, 215, 255, 0.7);
|
||||
border: 1px solid rgba(180, 215, 255, 0.7);
|
||||
bottom: -1px;
|
||||
content: '';
|
||||
left: -1px;
|
||||
@@ -519,7 +519,7 @@ pre[class*="language-"] {
|
||||
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
|
||||
.mce-content-body td[data-mce-selected]::after,
|
||||
.mce-content-body th[data-mce-selected]::after {
|
||||
border-color: rgba(0, 84, 180, 0.35);
|
||||
border-color: rgba(0, 84, 180, 0.7);
|
||||
}
|
||||
}
|
||||
.mce-content-body img::-moz-selection {
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user