mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Update tinyMCE to version 5.0.2
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
2019-03-05 DariusIII
|
||||
* Chg: Update tinyMCE to version 5.0.2
|
||||
* Chg: Update package.json with new version of tinyMCE
|
||||
2019-03-04 DariusIII
|
||||
* Chg: Update spatie/laravel-permission (2.35.0 => 2.36.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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var advlist = (function () {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
!function(){"use strict";var n,t,e,r,u=tinymce.util.Tools.resolve("tinymce.PluginManager"),v=tinymce.util.Tools.resolve("tinymce.util.Tools"),O=function(n,t,e){var r="UL"===t?"InsertUnorderedList":"InsertOrderedList";n.execCommand(r,!1,!1===e?null:{"list-style-type":e})},i=function(e){e.addCommand("ApplyUnorderedListStyle",function(n,t){O(e,"UL",t["list-style-type"])}),e.addCommand("ApplyOrderedListStyle",function(n,t){O(e,"OL",t["list-style-type"])})},o=function(n){var t=n.getParam("advlist_number_styles","default,lower-alpha,lower-greek,lower-roman,upper-alpha,upper-roman");return t?t.split(/[ ,]/):[]},l=function(n){var t=n.getParam("advlist_bullet_styles","default,circle,square");return t?t.split(/[ ,]/):[]},c=function(n){return function(){return n}},s=c(!1),f=c(!0),a=s,d=f,g=function(){return p},p=(r={fold:function(n,t){return n()},is:a,isSome:a,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:function(){return null},getOrUndefined:function(){return undefined},or:e,orThunk:t,map:g,ap:g,each:function(){},bind:g,flatten:g,exists:a,forall:d,filter:g,equals:n=function(n){return n.isNone()},equals_:n,toArray:function(){return[]},toString:c("none()")},Object.freeze&&Object.freeze(r),r),m=function(e){var n=function(){return e},t=function(){return u},r=function(n){return n(e)},u={fold:function(n,t){return t(e)},is:function(n){return e===n},isSome:d,isNone:a,getOr:n,getOrThunk:n,getOrDie:n,getOrNull:n,getOrUndefined:n,or:t,orThunk:t,map:function(n){return m(n(e))},ap:function(n){return n.fold(g,function(n){return m(n(e))})},each:function(n){n(e)},bind:r,flatten:n,exists:r,forall:r,filter:function(n){return n(e)?u:p},equals:function(n){return n.is(e)},equals_:function(n,t){return n.fold(a,function(n){return t(e,n)})},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return u},y=function(n){return null===n||n===undefined?p:m(n)},h=function(n){return n&&/^(TH|TD)$/.test(n.nodeName)},L=function(r){return function(n){return n&&/^(OL|UL|DL)$/.test(n.nodeName)&&(e=n,(t=r).$.contains(t.getBody(),e));var t,e}},b=function(n){var t=n.dom.getParent(n.selection.getNode(),"ol,ul"),e=n.dom.getStyle(t,"listStyleType");return y(e)},S=function(n,t,e){var r=function(n,t){for(var e=0;e<n.length;e++)if(t(n[e]))return e;return-1}(t.parents,h),u=-1!==r?t.parents.slice(0,r):t.parents,i=v.grep(u,L(n));return 0<i.length&&i[0].nodeName===e},T=function(n,t,e,r,u,i){var o,l,c,s,f,a,d,g,p,m,y;0<i.length?(d=t,g=e,p=r,m=u,y=i,(a=n).ui.registry.addSplitButton(d,{tooltip:g,icon:"OL"===m?"ordered-list":"unordered-list",presets:"listpreview",columns:3,fetch:function(n){n(v.map(y,function(n){var t="OL"===m?"num":"bull",e="disc"===n||"decimal"===n?"default":n,r="default"===n?"":n,u=n.replace(/\-/g," ").replace(/\b\w/g,function(n){return n.toUpperCase()});return{type:"choiceitem",value:r,icon:"list-"+t+"-"+e,text:u,ariaLabel:u}}))},onAction:function(){return a.execCommand(p)},onItemAction:function(n,t){O(a,m,t)},select:function(t){return b(a).map(function(n){return t===n}).getOr(!1)},onSetup:function(t){var n=function(n){t.setActive(S(a,n,m))};return a.on("nodeChange",n),function(){return a.off("nodeChange",n)}}})):(l=t,c=e,s=r,f=u,(o=n).ui.registry.addToggleButton(l,{active:!1,tooltip:c,icon:"OL"===f?"ordered-list":"unordered-list",onSetup:function(t){var n=function(n){t.setActive(S(o,n,f))};return o.on("nodeChange",n),function(){return o.off("nodeChange",n)}},onAction:function(){return o.execCommand(s)}}))},A=function(n){T(n,"numlist","Numbered list","InsertOrderedList","OL",o(n)),T(n,"bullist","Bullet list","InsertUnorderedList","UL",l(n))};u.add("advlist",function(n){var t,e,r;e="lists",r=(t=n).settings.plugins?t.settings.plugins:"",-1!==v.inArray(r.split(/[ ,]/),e)&&(A(n),i(n))}),function C(){}}();
|
||||
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var anchor = (function () {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),a=function(e){return/^[A-Za-z][A-Za-z0-9\-:._]*$/.test(e)},t=function(e){var t=e.selection.getNode();return"A"===t.tagName&&""===e.dom.getAttrib(t,"href")?t.getAttribute("id")||t.getAttribute("name"):""},r=function(e,t){var n=e.selection.getNode();"A"===n.tagName&&""===e.dom.getAttrib(n,"href")?(n.removeAttribute("name"),n.id=t,e.undoManager.add()):(e.focus(),e.selection.collapse(!0),e.execCommand("mceInsertContent",!1,e.dom.createHTML("a",{id:t})))},n=function(o){var e=t(o);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:e},onSubmit:function(e){var t,n;t=o,n=e.getData().id,(a(n)?(r(t,n),0):(t.windowManager.alert("Id should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores."),1))||e.close()}})},o=function(e){e.addCommand("mceAnchor",function(){n(e)})},i=function(o){return function(e){for(var t=0;t<e.length;t++)(n=e[t]).attr("href")||!n.attr("id")&&!n.attr("name")||n.firstChild||e[t].attr("contenteditable",o);var n}},c=function(e){e.on("PreInit",function(){e.parser.addNodeFilter("a",i("false")),e.serializer.addNodeFilter("a",i(null))})},d=function(t){t.ui.registry.addToggleButton("anchor",{icon:"bookmark",tooltip:"Anchor",onAction:function(){return t.execCommand("mceAnchor")},onSetup:function(e){return t.selection.selectorChangedWithUnbind("a:not([href])",e.setActive).unbind}}),t.ui.registry.addMenuItem("anchor",{icon:"bookmark",text:"Anchor...",onAction:function(){return t.execCommand("mceAnchor")}})};e.add("anchor",function(e){c(e),o(e),d(e)}),function u(){}}();
|
||||
@@ -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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var autolink = (function () {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),i=tinymce.util.Tools.resolve("tinymce.Env"),m=function(e){return e.getParam("autolink_pattern",/^(https?:\/\/|ssh:\/\/|ftp:\/\/|file:\/|www\.|(?:mailto:)?[A-Z0-9._%+\-]+@)(.+)$/i)},y=function(e){return e.getParam("default_link_target","")},o=function(e,t){if(t<0&&(t=0),3===e.nodeType){var n=e.data.length;n<t&&(t=n)}return t},k=function(e,t,n){1!==t.nodeType||t.hasChildNodes()?e.setStart(t,o(t,n)):e.setStartBefore(t)},p=function(e,t,n){1!==t.nodeType||t.hasChildNodes()?e.setEnd(t,o(t,n)):e.setEndAfter(t)},r=function(e,t,n){var i,o,r,a,f,s,d,l,c,u,g=m(e),h=y(e);if("A"!==e.selection.getNode().tagName){if((i=e.selection.getRng(!0).cloneRange()).startOffset<5){if(!(l=i.endContainer.previousSibling)){if(!i.endContainer.firstChild||!i.endContainer.firstChild.nextSibling)return;l=i.endContainer.firstChild.nextSibling}if(c=l.length,k(i,l,c),p(i,l,c),i.endOffset<5)return;o=i.endOffset,a=l}else{if(3!==(a=i.endContainer).nodeType&&a.firstChild){for(;3!==a.nodeType&&a.firstChild;)a=a.firstChild;3===a.nodeType&&(k(i,a,0),p(i,a,a.nodeValue.length))}o=1===i.endOffset?2:i.endOffset-1-t}for(r=o;k(i,a,2<=o?o-2:0),p(i,a,1<=o?o-1:0),o-=1," "!==(u=i.toString())&&""!==u&&160!==u.charCodeAt(0)&&0<=o-2&&u!==n;);var C;(C=i.toString())===n||" "===C||160===C.charCodeAt(0)?(k(i,a,o),p(i,a,r),o+=1):(0===i.startOffset?k(i,a,0):k(i,a,o),p(i,a,r)),"."===(s=i.toString()).charAt(s.length-1)&&p(i,a,r-1),(d=(s=i.toString().trim()).match(g))&&("www."===d[1]?d[1]="http://www.":/@$/.test(d[1])&&!/^mailto:/.test(d[1])&&(d[1]="mailto:"+d[1]),f=e.selection.getBookmark(),e.selection.setRng(i),e.execCommand("createlink",!1,d[1]+d[2]),h&&e.dom.setAttrib(e.selection.getNode(),"target",h),e.selection.moveToBookmark(f),e.nodeChanged())}},t=function(t){var n;t.on("keydown",function(e){13!==e.keyCode||r(t,-1,"")}),i.ie?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)}),function n(){}}();
|
||||
@@ -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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var autoresize = (function () {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
!function(){"use strict";var i=function(e){var t=e,n=function(){return t};return{get:n,set:function(e){t=e},clone:function(){return i(n())}}},e=tinymce.util.Tools.resolve("tinymce.PluginManager"),m=tinymce.util.Tools.resolve("tinymce.Env"),r=tinymce.util.Tools.resolve("tinymce.util.Delay"),d=function(e){return e.getParam("min_height",e.getElement().offsetHeight,"number")},h=function(e){return e.getParam("max_height",0,"number")},o=function(e){return e.getParam("autoresize_overflow_padding",1,"number")},u=function(e){return e.getParam("autoresize_bottom_margin",50,"number")},a=function(e){return e.getParam("autoresize_on_init",!0,"boolean")},s=function(e,t,n,i,o){r.setEditorTimeout(e,function(){p(e,t),n--?s(e,t,n,i,o):o&&o()},i)},v=function(e,t){var n=e.getBody();n&&(n.style.overflowY=t?"":"hidden",t||(n.scrollTop=0))},y=function(e,t,n,i){var o=parseInt(e.getStyle(t,n,i),10);return isNaN(o)?0:o},p=function(e,t){var n,i,o,r=e.dom,u=e.getDoc();if(u)if((a=e).plugins.fullscreen&&a.plugins.fullscreen.isFullscreen())v(e,!0);else{var a,s=u.body;i=d(e);var c=y(r,s,"margin-top",!0),f=y(r,s,"margin-bottom",!0);(o=s.offsetHeight+c+f)<0&&(o=0);var g=e.getContainer().offsetHeight-e.getContentAreaContainer().offsetHeight;o+g>d(e)&&(i=o+g);var l=h(e);l&&l<i?(i=l,v(e,!0)):v(e,!1),i!==t.get()&&(n=i-t.get(),r.setStyle(e.getContainer(),"height",i+"px"),t.set(i),m.webkit&&n<0&&p(e,t))}},n={setup:function(n,t){n.on("init",function(){var e=o(n),t=u(n);n.dom.setStyles(n.getBody(),{paddingLeft:e,paddingRight:e,paddingBottom:t,"min-height":0})}),n.on("nodechange setcontent keyup FullscreenStateChanged",function(e){p(n,t)}),a(n)&&n.on("init",function(){s(n,t,20,100,function(){s(n,t,5,1e3)})})},resize:p},c=function(e,t){e.addCommand("mceAutoResize",function(){n.resize(e,t)})};e.add("autoresize",function(e){if(e.settings.hasOwnProperty("resize")||(e.settings.resize=!1),!e.inline){var t=i(0);c(e,t),n.setup(e,t)}}),function 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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var autosave = (function (domGlobals) {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
!function(o){"use strict";var a=function(t){var e=t,r=function(){return e};return{get:r,set:function(t){e=t},clone:function(){return a(r())}}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=tinymce.util.Tools.resolve("tinymce.util.LocalStorage"),i=tinymce.util.Tools.resolve("tinymce.util.Tools"),u=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)},s=function(t){var e=t.getParam("autosave_prefix","tinymce-autosave-{path}{query}{hash}-{id}-");return e=(e=(e=(e=e.replace(/\{path\}/g,o.document.location.pathname)).replace(/\{query\}/g,o.document.location.search)).replace(/\{hash\}/g,o.document.location.hash)).replace(/\{id\}/g,t.id)},f=function(t,e){var r=t.settings.forced_root_block;return""===(e=i.trim(void 0===e?t.getBody().innerHTML:e))||new RegExp("^<"+r+"[^>]*>((\xa0| |[ \t]|<br[^>]*>)+?|)</"+r+">|<br>$","i").test(e)},c=function(t){var e=parseInt(n.getItem(s(t)+"time"),10)||0;return!((new Date).getTime()-e>u(t.settings.autosave_retention,"20m")&&(l(t,!1),1))},l=function(t,e){var r=s(t);n.removeItem(r+"draft"),n.removeItem(r+"time"),!1!==e&&t.fire("RemoveDraft")},m=function(t){var e=s(t);!f(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"))},v=function(t){var e=s(t);c(t)&&(t.setContent(n.getItem(e+"draft"),{format:"raw"}),t.fire("RestoreDraft"))},d=function(t,e){var r=u(t.settings.autosave_interval,"30s");e.get()||(setInterval(function(){t.removed||m(t)},r),e.set(!0))},g=function(t){t.undoManager.transact(function(){v(t),l(t)}),t.focus()};function y(n){for(var o=[],t=1;t<arguments.length;t++)o[t-1]=arguments[t];return function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];var r=o.concat(t);return n.apply(null,r)}}var p=tinymce.util.Tools.resolve("tinymce.EditorManager");p._beforeUnloadHandler=function(){var e;return i.each(p.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};var D=function(r,t){return function(t){t.setDisabled(!c(r));var e=function(){return t.setDisabled(!c(r))};return r.on("StoreDraft RestoreDraft RemoveDraft",e),function(){return r.off("StoreDraft RestoreDraft RemoveDraft",e)}}};t.add("autosave",function(t){var e,r,n=a(!1);return o.window.onbeforeunload=p._beforeUnloadHandler,d(e=t,n),e.ui.registry.addButton("restoredraft",{tooltip:"Restore last draft",icon:"restore-draft",onAction:function(){g(e)},onSetup:D(e)}),e.ui.registry.addMenuItem("restoredraft",{text:"Restore last draft",icon:"restore-draft",onAction:function(){g(e)},onSetup:D(e)}),t.on("init",function(){t.getParam("autosave_restore_when_empty",!1)&&t.dom.isEmpty(t.getBody())&&v(t)}),{hasDraft:y(c,r=t),storeDraft:y(m,r),restoreDraft:y(v,r),removeDraft:y(l,r),isEmpty:y(f,r)}}),function e(){}}(window);
|
||||
@@ -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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var bbcode = (function () {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
!function(){"use strict";var o=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.util.Tools"),e=function(e){e=t.trim(e);var o=function(o,t){e=e.replace(o,t)};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,"&"),e},i=function(e){e=t.trim(e);var o=function(o,t){e=e.replace(o,t)};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> '),e};o.add("bbcode",function(){return{init:function(o){o.on("beforeSetContent",function(o){o.content=i(o.content)}),o.on("postProcess",function(o){o.set&&(o.content=i(o.content)),o.get&&(o.content=e(o.content))})}}}),function n(){}}();
|
||||
@@ -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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var charmap = (function () {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var code = (function () {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e,n){e.focus(),e.undoManager.transact(function(){e.setContent(n)}),e.selection.setCursorLocation(),e.nodeChanged()},o=function(e){return e.getContent({source_view:!0})},n=function(n){var e=o(n);n.windowManager.open({title:"Source Code",size:"large",body:{type:"panel",items:[{type:"textarea",name:"code"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{code:e},onSubmit:function(e){t(n,e.getData().code),e.close()}})},c=function(e){e.addCommand("mceCodeEditor",function(){n(e)})},i=function(e){e.ui.registry.addButton("code",{icon:"sourcecode",tooltip:"Source code",onAction:function(){return n(e)}}),e.ui.registry.addMenuItem("code",{icon:"sourcecode",text:"Source code",onAction:function(){return n(e)}})};e.add("code",function(e){return c(e),i(e),{}}),function u(){}}();
|
||||
@@ -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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var codesample = (function (domGlobals) {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var colorpicker = (function () {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
!function(){"use strict";tinymce.util.Tools.resolve("tinymce.PluginManager").add("colorpicker",function(){console.warn("Color picker plugin is now built in to the core editor, please remove it from your editor configuration")}),function o(){}}();
|
||||
@@ -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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var contextmenu = (function () {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
!function(){"use strict";tinymce.util.Tools.resolve("tinymce.PluginManager").add("contextmenu",function(){console.warn("Context menu plugin is now built in to the core editor, please remove it from your editor configuration")}),function n(){}}();
|
||||
@@ -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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var directionality = (function () {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
!function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),c=tinymce.util.Tools.resolve("tinymce.util.Tools"),n=function(t,n){var e,i=t.dom,o=t.selection.getSelectedBlocks();o.length&&(e=i.getAttrib(o[0],"dir"),c.each(o,function(t){i.getParent(t.parentNode,'*[dir="'+n+'"]',i.getRoot())||i.setAttrib(t,"dir",e!==n?n:null)}),t.nodeChanged())},e=function(t){t.addCommand("mceDirectionLTR",function(){n(t,"ltr")}),t.addCommand("mceDirectionRTL",function(){n(t,"rtl")})},i=function(n){var e=[];return c.each("h1 h2 h3 h4 h5 h6 div p".split(" "),function(t){e.push(t+"[dir="+n+"]")}),e.join(",")},o=function(n){n.ui.registry.addToggleButton("ltr",{tooltip:"Left to right",icon:"ltr",onAction:function(){return n.execCommand("mceDirectionLTR")},onSetup:function(t){return n.selection.selectorChangedWithUnbind(i("ltr"),t.setActive).unbind}}),n.ui.registry.addToggleButton("rtl",{tooltip:"Right to left",icon:"rtl",onAction:function(){return n.execCommand("mceDirectionRTL")},onSetup:function(t){return n.selection.selectorChangedWithUnbind(i("rtl"),t.setActive).unbind}})};t.add("directionality",function(t){e(t),o(t)}),function r(){}}();
|
||||
@@ -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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var emoticons = (function () {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var fullpage = (function () {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var fullscreen = (function (domGlobals) {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
!function(g){"use strict";var i=function(e){var n=e,t=function(){return n};return{get:t,set:function(e){n=e},clone:function(){return i(t())}}},e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(e){return{isFullscreen:function(){return null!==e.get()}}},n=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),m=function(e,n){e.fire("FullscreenStateChanged",{state:n})},w=n.DOM,r=function(e,n){var t,r,o,i,l,c,u=g.document.body,s=g.document.documentElement,d=n.get(),a=function(){var e,n,t,i;w.setStyle(o,"height",(t=g.window,i=g.document.body,i.offsetWidth&&(e=i.offsetWidth,n=i.offsetHeight),t.innerWidth&&t.innerHeight&&(e=t.innerWidth,n=t.innerHeight),{w:e,h:n}).h-(r.clientHeight-o.clientHeight))},f=function(){w.unbind(g.window,"resize",a)};if(t=(r=e.getContainer()).style,i=(o=e.getContentAreaContainer().firstChild).style,d)i.width=d.iframeWidth,i.height=d.iframeHeight,d.containerWidth&&(t.width=d.containerWidth),d.containerHeight&&(t.height=d.containerHeight),w.removeClass(u,"tox-fullscreen"),w.removeClass(s,"tox-fullscreen"),w.removeClass(r,"tox-fullscreen"),l=d.scrollPos,g.window.scrollTo(l.x,l.y),w.unbind(g.window,"resize",d.resizeHandler),e.off("remove",d.removeHandler),n.set(null),m(e,!1);else{var h={scrollPos:(c=w.getViewPort(),{x:c.x,y:c.y}),containerWidth:t.width,containerHeight:t.height,iframeWidth:i.width,iframeHeight:i.height,resizeHandler:a,removeHandler:f};i.width=i.height="100%",t.width=t.height="",w.addClass(u,"tox-fullscreen"),w.addClass(s,"tox-fullscreen"),w.addClass(r,"tox-fullscreen"),w.bind(g.window,"resize",a),e.on("remove",f),a(),n.set(h),m(e,!0)}},o=function(e,n){e.addCommand("mceFullScreen",function(){r(e,n)})},l=function(t,i){return function(n){n.setActive(null!==i.get());var e=function(e){return n.setActive(e.state)};return t.on("FullscreenStateChanged",e),function(){return t.off("FullscreenStateChanged",e)}}},c=function(e,n){e.ui.registry.addToggleMenuItem("fullscreen",{text:"Fullscreen",shortcut:"Meta+Shift+F",onAction:function(){return e.execCommand("mceFullScreen")},onSetup:l(e,n)}),e.ui.registry.addToggleButton("fullscreen",{tooltip:"Fullscreen",icon:"fullscreen",onAction:function(){return e.execCommand("mceFullScreen")},onSetup:l(e,n)})};e.add("fullscreen",function(e){var n=i(null);return e.settings.inline||(o(e,n),c(e,n),e.addShortcut("Meta+Shift+F","","mceFullScreen")),t(n)}),function u(){}}(window);
|
||||
@@ -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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var help = (function () {
|
||||
@@ -683,6 +683,7 @@ var help = (function () {
|
||||
};
|
||||
var htmlPanel = {
|
||||
type: 'htmlpanel',
|
||||
presets: 'document',
|
||||
html: [
|
||||
installedPlugins(editor),
|
||||
availablePlugins()
|
||||
@@ -708,7 +709,8 @@ var help = (function () {
|
||||
html: '<p>' + global$2.translate([
|
||||
'You are using {0}',
|
||||
changeLogLink
|
||||
]) + '</p>'
|
||||
]) + '</p>',
|
||||
presets: 'document'
|
||||
};
|
||||
return htmlPanel;
|
||||
};
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var hr = (function () {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
!function(){"use strict";var n=tinymce.util.Tools.resolve("tinymce.PluginManager"),o=function(n){n.addCommand("InsertHorizontalRule",function(){n.execCommand("mceInsertContent",!1,"<hr />")})},t=function(n){n.ui.registry.addButton("hr",{icon:"horizontal-rule",tooltip:"Horizontal line",onAction:function(){return n.execCommand("InsertHorizontalRule")}}),n.ui.registry.addMenuItem("hr",{icon:"horizontal-rule",text:"Horizontal line",onAction:function(){return n.execCommand("InsertHorizontalRule")}})};n.add("hr",function(n){o(n),t(n)}),function 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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var image = (function (domGlobals) {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var imagetools = (function (domGlobals) {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var importcss = (function () {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
!function(){"use strict";var t,e,n,r,i,o=tinymce.util.Tools.resolve("tinymce.PluginManager"),d=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),f=tinymce.util.Tools.resolve("tinymce.EditorManager"),m=tinymce.util.Tools.resolve("tinymce.Env"),v=tinymce.util.Tools.resolve("tinymce.util.Tools"),c=function(t){return t.getParam("importcss_merge_classes")},u=function(t){return t.getParam("importcss_exclusive")},h=function(t){return t.getParam("importcss_selector_converter")},l=function(t){return t.getParam("importcss_selector_filter")},p=function(t){return t.getParam("importcss_groups")},_=function(t){return t.getParam("importcss_append")},O=function(t){return t.getParam("importcss_file_filter")},s=function(t){return function(){return t}},a=s(!1),y=s(!0),g=function(){return x},x=(r={fold:function(t,e){return t()},is:a,isSome:a,isNone:y,getOr:n=function(t){return t},getOrThunk:e=function(t){return t()},getOrDie:function(t){throw new Error(t||"error: getOrDie called on none.")},getOrNull:function(){return null},getOrUndefined:function(){return undefined},or:n,orThunk:e,map:g,ap:g,each:function(){},bind:g,flatten:g,exists:a,forall:y,filter:g,equals:t=function(t){return t.isNone()},equals_:t,toArray:function(){return[]},toString:s("none()")},Object.freeze&&Object.freeze(r),r),T=(i="function",function(t){return function(t){if(null===t)return"null";var e=typeof t;return"object"===e&&Array.prototype.isPrototypeOf(t)?"array":"object"===e&&String.prototype.isPrototypeOf(t)?"string":e}(t)===i}),b=Array.prototype.push,k=function(t,e){return function(t){for(var e=[],n=0,r=t.length;n<r;++n){if(!Array.prototype.isPrototypeOf(t[n]))throw new Error("Arr.flatten item "+n+" was not an array, input: "+t);b.apply(e,t[n])}return e}(function(t,e){for(var n=t.length,r=new Array(n),i=0;i<n;i++){var o=t[i];r[i]=e(o,i,t)}return r}(t,e))},P=(Array.prototype.slice,T(Array.from)&&Array.from,function(e){return"string"==typeof e?function(t){return-1!==t.indexOf(e)}:e instanceof RegExp?function(t){return e.test(t)}:e}),S=function(c,t,s){var a=[],n={};function l(t,e){var n,r,i,o=t.href;if(r=o,i=m.cacheSuffix,"string"==typeof r&&(r=r.replace("?"+i,"").replace("&"+i,"")),(o=r)&&s(o,e)&&!function(t,e){var n=t.settings,r=!1!==n.skin&&(n.skin||"oxide");if(r){var i=n.skin_url?t.documentBaseURI.toAbsolute(n.skin_url):f.baseURL+"/skins/ui/"+r,o=f.baseURL+"/skins/content/";return e===i+"/content"+(t.inline?".inline":"")+".min.css"||-1!==e.indexOf(o)}return!1}(c,o)){v.each(t.imports,function(t){l(t,!0)});try{n=t.cssRules||t.rules}catch(u){}v.each(n,function(t){t.styleSheet?l(t.styleSheet,!0):t.selectorText&&v.each(t.selectorText.split(","),function(t){a.push(v.trim(t))})})}}v.each(c.contentCSS,function(t){n[t]=!0}),s||(s=function(t,e){return e||n[t]});try{v.each(t.styleSheets,function(t){l(t)})}catch(e){}return a},A=function(t,e){var n,r=/^(?:([a-z0-9\-_]+))?(\.[a-z0-9_\-\.]+)$/i.exec(e);if(r){var i=r[1],o=r[2].substr(1).split(".").join(" "),u=v.makeMap("a,img");return r[1]?(n={title:e},t.schema.getTextBlockElements()[i]?n.block=i:t.schema.getBlockElements()[i]||u[i.toLowerCase()]?n.selector=i:n.inline=i):r[2]&&(n={inline:"span",title:e.substr(1),classes:o}),!1!==c(t)?n.classes=o:n.attributes={"class":o},n}},w=function(t,e){return null===e||!1!==u(t)},E=A,I=function(g){g.on("init",function(t){var e,n,r,i,o=(e=[],n=[],r={},{addItemToGroup:function(t,e){r[t]?r[t].push(e):(n.push(t),r[t]=[e])},addItem:function(t){e.push(t)},toFormats:function(){return k(n,function(t){var e=r[t];return 0===e.length?[]:[{title:t,items:e}]}).concat(e)}}),y={},u=P(l(g)),c=(i=p(g),v.map(i,function(t){return v.extend({},t,{original:t,selectors:{},filter:P(t.filter),item:{text:t.title,menu:[]}})})),s=function(t,e){if(f=t,p=y,!(w(g,m=e)?f in p:f in m.selectors)){s=t,l=y,w(g,a=e)?l[s]=!0:a.selectors[s]=!0;var n=(o=(i=g).plugins.importcss,u=t,((c=e)&&c.selector_converter?c.selector_converter:h(i)?h(i):function(){return A(i,u)}).call(o,u,c));if(n){var r=n.name||d.DOM.uniqueId();return g.formatter.register(r,n),v.extend({},{title:n.title,format:r})}}var i,o,u,c,s,a,l,f,m,p;return null};v.each(S(g,t.doc||g.getDoc(),P(O(g))),function(n){if(-1===n.indexOf(".mce-")&&(!u||u(n))){var t=(r=c,i=n,v.grep(r,function(t){return!t.filter||t.filter(i)}));if(0<t.length)v.each(t,function(t){var e=s(n,t);e&&o.addItemToGroup(t.title,e)});else{var e=s(n,null);e&&o.addItem(e)}}var r,i});var a=o.toFormats();g.fire("addStyleModifications",{items:a,replace:!_(g)})})},M=function(e){return{convertSelectorToFormat:function(t){return E(e,t)}}};o.add("importcss",function(t){return I(t),M(t)}),function j(){}}();
|
||||
@@ -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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var insertdatetime = (function () {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=function(e){return e.getParam("insertdatetime_timeformat",e.translate("%H:%M:%S"))},r=function(e){return e.getParam("insertdatetime_formats",["%H:%M:%S","%Y-%m-%d","%I:%M:%S %p","%D"])},t=function(e){return e.getParam("insertdatetime_dateformat",e.translate("%Y-%m-%d"))},a=n,i=r,o=function(e){var t=r(e);return 0<t.length?t[0]:n(e)},l=function(e){return e.getParam("insertdatetime_element",!1)},u="Sun Mon Tue Wed Thu Fri Sat Sun".split(" "),c="Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),m="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),s="January February March April May June July August September October November December".split(" "),d=function(e,t){if((e=""+e).length<t)for(var n=0;n<t-e.length;n++)e="0"+e;return e},f=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",d(n.getMonth()+1,2))).replace("%d",d(n.getDate(),2))).replace("%H",""+d(n.getHours(),2))).replace("%M",""+d(n.getMinutes(),2))).replace("%S",""+d(n.getSeconds(),2))).replace("%I",""+((n.getHours()+11)%12+1))).replace("%p",n.getHours()<12?"AM":"PM")).replace("%B",""+e.translate(s[n.getMonth()]))).replace("%b",""+e.translate(m[n.getMonth()]))).replace("%A",""+e.translate(c[n.getDay()]))).replace("%a",""+e.translate(u[n.getDay()]))).replace("%%","%")},p=function(e,t){if(l(e)){var n=f(e,t),r=void 0;r=/%[HMSIp]/.test(t)?f(e,"%Y-%m-%dT%H:%M"):f(e,"%Y-%m-%d");var a=e.dom.getParent(e.selection.getStart(),"time");a?(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>")}else e.insertContent(f(e,t));var i,o,u,c,m},g=f,y=function(e){e.addCommand("mceInsertDate",function(){p(e,t(e))}),e.addCommand("mceInsertTime",function(){p(e,a(e))})},M=tinymce.util.Tools.resolve("tinymce.util.Tools"),S=function(e){var t=e,n=function(){return t};return{get:n,set:function(e){t=e},clone:function(){return S(n())}}},v=function(n){var t=i(n),r=S(o(n));n.ui.registry.addSplitButton("insertdatetime",{icon:"insert-time",tooltip:"Insert date/time",select:function(e){return e===r.get()},fetch:function(e){e(M.map(t,function(e){return{type:"choiceitem",text:g(n,e),value:e}}))},onAction:function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];p(n,r.get())},onItemAction:function(e,t){r.set(t),p(n,t)}}),n.ui.registry.addNestedMenuItem("insertdatetime",{icon:"insert-time",text:"Date/time",getSubmenuItems:function(){return M.map(t,function(e){return{type:"menuitem",text:g(n,e),onAction:(t=e,function(){r.set(t),p(n,t)})};var t})}})};e.add("insertdatetime",function(e){y(e),v(e)}),function h(){}}();
|
||||
@@ -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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var legacyoutput = (function () {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),l=tinymce.util.Tools.resolve("tinymce.util.Tools"),t=function(e){return e.getParam("font_formats")},i=function(e){return e.getParam("fontsize_formats")},n=function(e,t){e.settings.fontsize_formats=t},s=function(e,t){e.settings.font_formats=t},o=function(e){return e.getParam("font_size_style_values")},r=function(e,t){e.settings.inline_styles=t},a=function(a){var e;r(e=a,!1),i(e)||n(e,"8pt=1 10pt=2 12pt=3 14pt=4 18pt=5 24pt=6 36pt=7"),t(e)||s(e,"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"),a.on("init",function(){return e=a,t="p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li,table,img",i=l.explode(o(e)),n=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"},{inline:"strong",remove:"all"},{inline:"span",styles:{fontWeight:"bold"}}],italic:[{inline:"i",remove:"all"},{inline:"em",remove:"all"},{inline:"span",styles:{fontStyle:"italic"}}],underline:[{inline:"u",remove:"all"},{inline:"span",styles:{textDecoration:"underline"},exact:!0}],strikethrough:[{inline:"strike",remove:"all"},{inline:"span",styles:{textDecoration:"line-through"},exact:!0}],fontname:{inline:"font",attributes:{face:"%value"}},fontsize:{inline:"font",attributes:{size:function(e){return l.inArray(i,e.value)+1}}},forecolor:{inline:"font",attributes:{color:"%value"}},hilitecolor:{inline:"font",styles:{backgroundColor:"%value"}}}),l.each("b,i,u,strike".split(","),function(e){n.addValidElements(e+"[*]")}),n.getElementRule("font")||n.addValidElements("font[face|size|color|style]"),void l.each(t.split(","),function(e){var t=n.getElementRule(e);t&&(t.attributes.align||(t.attributes.align={},t.attributesOrder.push("align")))});var e,t,i,n})};e.add("legacyoutput",function(e){a(e)}),function c(){}}();
|
||||
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var link = (function (domGlobals) {
|
||||
@@ -1196,7 +1196,7 @@ var link = (function (domGlobals) {
|
||||
var register = function (editor) {
|
||||
editor.addCommand('mceLink', function () {
|
||||
if (Settings.useQuickLink(editor.settings)) {
|
||||
editor.fire('contexttoolbar-show', { toolbarKey: 'link-form' });
|
||||
editor.fire('contexttoolbar-show', { toolbarKey: 'quicklink' });
|
||||
} else {
|
||||
Actions.openDialog(editor)();
|
||||
}
|
||||
@@ -1262,10 +1262,11 @@ var link = (function (domGlobals) {
|
||||
var collapseSelectionToEnd = function (editor) {
|
||||
editor.selection.collapse(false);
|
||||
};
|
||||
editor.ui.registry.addContextForm('link-form', {
|
||||
editor.ui.registry.addContextForm('quicklink', {
|
||||
launch: {
|
||||
type: 'contextformtogglebutton',
|
||||
icon: 'link',
|
||||
tooltip: 'Link',
|
||||
onSetup: Actions.toggleActiveState(editor)
|
||||
},
|
||||
label: 'Link',
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var lists = (function (domGlobals) {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var media = (function () {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var nonbreaking = (function () {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
!function(){"use strict";var n=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(n,e){var o,t=(o=n).plugins.visualchars&&o.plugins.visualchars.isEnabled()?'<span class="mce-nbsp"> </span>':" ";n.insertContent(function(n,e){for(var o="",t=0;t<e;t++)o+=n;return o}(t,e)),n.dom.setAttrib(n.dom.select("span.mce-nbsp"),"data-mce-bogus","1")},e=function(n){n.addCommand("mceNonBreaking",function(){t(n,1)})},i=tinymce.util.Tools.resolve("tinymce.util.VK"),a=function(n){var e=n.getParam("nonbreaking_force_tab",0);return"boolean"==typeof e?!0===e?3:0:e},o=function(e){var o=a(e);0<o&&e.on("keydown",function(n){if(n.keyCode===i.TAB&&!n.isDefaultPrevented()){if(n.shiftKey)return;n.preventDefault(),n.stopImmediatePropagation(),t(e,o)}})},r=function(n){n.ui.registry.addButton("nonbreaking",{icon:"non-breaking",tooltip:"Nonbreaking space",onAction:function(){return n.execCommand("mceNonBreaking")}}),n.ui.registry.addMenuItem("nonbreaking",{icon:"non-breaking",text:"Nonbreaking space",onAction:function(){return n.execCommand("mceNonBreaking")}})};n.add("nonbreaking",function(n){e(n),r(n),o(n)}),function c(){}}();
|
||||
@@ -4,7 +4,7 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var noneditable = (function () {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
!function(){"use strict";var t=tinymce.util.Tools.resolve("tinymce.PluginManager"),c=tinymce.util.Tools.resolve("tinymce.util.Tools"),l=function(t){return t.getParam("noneditable_noneditable_class","mceNonEditable")},u=function(t){return t.getParam("noneditable_editable_class","mceEditable")},f=function(t){var n=t.getParam("noneditable_regexp",[]);return n&&n.constructor===RegExp?[n]:n},s=function(n){return function(t){return-1!==(" "+t.attr("class")+" ").indexOf(n)}},d=function(i,o,c){return function(t){var n=arguments,e=n[n.length-2],r=0<e?o.charAt(e-1):"";if('"'===r)return t;if(">"===r){var a=o.lastIndexOf("<",e);if(-1!==a&&-1!==o.substring(a,e).indexOf('contenteditable="false"'))return t}return'<span class="'+c+'" data-mce-content="'+i.dom.encode(n[0])+'">'+i.dom.encode("string"==typeof n[1]?n[1]:n[0])+"</span>"}},n=function(n){var t,e,r="contenteditable";t=" "+c.trim(u(n))+" ",e=" "+c.trim(l(n))+" ";var a=s(t),i=s(e),o=f(n);n.on("PreInit",function(){0<o.length&&n.on("BeforeSetContent",function(t){!function(t,n,e){var r=n.length,a=e.content;if("raw"!==e.format){for(;r--;)a=a.replace(n[r],d(t,a,l(t)));e.content=a}}(n,o,t)}),n.parser.addAttributeFilter("class",function(t){for(var n,e=t.length;e--;)n=t[e],a(n)?n.attr(r,"true"):i(n)&&n.attr(r,"false")}),n.serializer.addAttributeFilter(r,function(t){for(var n,e=t.length;e--;)n=t[e],(a(n)||i(n))&&(0<o.length&&n.attr("data-mce-content")?(n.name="#text",n.type=3,n.raw=!0,n.value=n.attr("data-mce-content")):n.attr(r,null))})})};t.add("noneditable",function(t){n(t)}),function 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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var pagebreak = (function () {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),n=tinymce.util.Tools.resolve("tinymce.Env"),a=function(e){return e.getParam("pagebreak_separator","\x3c!-- pagebreak --\x3e")},i=function(e){return e.getParam("pagebreak_split_block",!1)},t=function(){return"mce-pagebreak"},r=function(){return'<img src="'+n.transparentSrc+'" class="mce-pagebreak" data-mce-resize="false" data-mce-placeholder />'},o=function(o){var c=a(o),n=new RegExp(c.replace(/[\?\.\*\[\]\(\)\{\}\+\^\$\:]/g,function(e){return"\\"+e}),"gi");o.on("BeforeSetContent",function(e){e.content=e.content.replace(n,r())}),o.on("PreInit",function(){o.serializer.addNodeFilter("img",function(e){for(var n,a,t=e.length;t--;)if((a=(n=e[t]).attr("class"))&&-1!==a.indexOf("mce-pagebreak")){var r=n.parent;if(o.schema.getBlockElements()[r.name]&&i(o)){r.type=3,r.value=c,r.raw=!0,n.remove();continue}n.type=3,n.value=c,n.raw=!0}})})},c=r,u=t,g=function(e){e.addCommand("mcePageBreak",function(){e.settings.pagebreak_split_block?e.insertContent("<p>"+c()+"</p>"):e.insertContent(c())})},m=function(n){n.on("ResolveName",function(e){"IMG"===e.target.nodeName&&n.dom.hasClass(e.target,u())&&(e.name="pagebreak")})},s=function(e){e.ui.registry.addButton("pagebreak",{icon:"page-break",tooltip:"Page break",onAction:function(){return e.execCommand("mcePageBreak")}}),e.ui.registry.addMenuItem("pagebreak",{text:"Page break",icon:"page-break",onAction:function(){return e.execCommand("mcePageBreak")}})};e.add("pagebreak",function(e){g(e),s(e),o(e),m(e)}),function 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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var paste = (function (domGlobals) {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var preview = (function () {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),c=tinymce.util.Tools.resolve("tinymce.util.Tools"),s=function(e){return e.getParam("content_style","")},i=function(t){var n="",i=t.dom.encode,e=s(t);n+='<base href="'+i(t.documentBaseURI.getURI())+'">',e&&(n+='<style type="text/css">'+e+"</style>"),c.each(t.contentCSS,function(e){n+='<link type="text/css" rel="stylesheet" href="'+i(t.documentBaseURI.toAbsolute(e))+'">'});var o=t.settings.body_id||"tinymce";-1!==o.indexOf("=")&&(o=(o=t.getParam("body_id","","hash"))[t.id]||o);var r=t.settings.body_class||"";-1!==r.indexOf("=")&&(r=(r=t.getParam("body_class","","hash"))[t.id]||"");var a=t.settings.directionality?' dir="'+t.settings.directionality+'"':"";return"<!DOCTYPE html><html><head>"+n+'</head><body id="'+i(o)+'" class="mce-content-body '+i(r)+'"'+i(a)+">"+t.getContent()+'<script>document.addEventListener && document.addEventListener("click", function(e) {for (var elm = e.target; elm; elm = elm.parentNode) {if (elm.nodeName === "A") {e.preventDefault();}}}, false);<\/script> </body></html>'},t=function(n){n.addCommand("mcePreview",function(){var e,t;t=i(e=n),e.windowManager.open({title:"Preview",size:"large",body:{type:"panel",items:[{name:"preview",type:"iframe",sandboxed:!0}]},buttons:[{type:"cancel",name:"close",text:"Close",primary:!0}],initialData:{preview:t}}).focus("close")})},n=function(e){e.ui.registry.addButton("preview",{icon:"preview",tooltip:"Preview",onAction:function(){return e.execCommand("mcePreview")}}),e.ui.registry.addMenuItem("preview",{icon:"preview",text:"Preview",onAction:function(){return e.execCommand("mcePreview")}})};e.add("preview",function(e){t(e),n(e)}),function o(){}}();
|
||||
@@ -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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var print = (function () {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
!function(){"use strict";var n=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=function(n){n.addCommand("mcePrint",function(){n.getWin().print()})},i=function(n){n.ui.registry.addButton("print",{icon:"print",tooltip:"Print",onAction:function(){return n.execCommand("mcePrint")}}),n.ui.registry.addMenuItem("print",{text:"Print...",icon:"print",onAction:function(){return n.execCommand("mcePrint")}})};n.add("print",function(n){t(n),i(n),n.addShortcut("Meta+P","","mcePrint")}),function r(){}}();
|
||||
@@ -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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var quickbars = (function (domGlobals) {
|
||||
@@ -812,7 +812,7 @@ var quickbars = (function (domGlobals) {
|
||||
var EditorSettings = { getToolbarItemsOr: getToolbarItemsOr(isString) };
|
||||
|
||||
var getTextSelectionToolbarItems = function (editor) {
|
||||
return EditorSettings.getToolbarItemsOr(editor, 'quickbars_selection_toolbar', 'bold italic | form:link-form h2 h3 blockquote');
|
||||
return EditorSettings.getToolbarItemsOr(editor, 'quickbars_selection_toolbar', 'bold italic | quicklink h2 h3 blockquote');
|
||||
};
|
||||
var getInsertToolbarItems = function (editor) {
|
||||
return EditorSettings.getToolbarItemsOr(editor, 'quickbars_insert_toolbar', 'quickimage quicktable');
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var save = (function () {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
!function(){"use strict";var n=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),o=tinymce.util.Tools.resolve("tinymce.util.Tools"),a=function(n){return n.getParam("save_enablewhendirty",!0)},i=function(n){return!!n.getParam("save_onsavecallback")},c=function(n){return!!n.getParam("save_oncancelcallback")},r=function(n,e){n.notificationManager.open({text:e,type:"error"})},e=function(n){var e;if(e=t.DOM.getParent(n.id,"form"),!a(n)||n.isDirty()){if(n.save(),i(n))return n.execCallback("save_onsavecallback",n),void n.nodeChanged();e?(n.setDirty(!1),e.onsubmit&&!e.onsubmit()||("function"==typeof e.submit?e.submit():r(n,"Error: Form submit field collision.")),n.nodeChanged()):r(n,"Error: No form element found.")}},u=function(n){var e=o.trim(n.startContent);c(n)?n.execCallback("save_oncancelcallback",n):(n.setContent(e),n.undoManager.clear(),n.nodeChanged())},l=function(n){n.addCommand("mceSave",function(){e(n)}),n.addCommand("mceCancel",function(){u(n)})},d=function(t){return function(n){var e=function(){n.setDisabled(a(t)&&!t.isDirty())};return t.on("nodeChange dirty",e),function(){return t.off("nodeChange dirty",e)}}},s=function(n){n.ui.registry.addButton("save",{icon:"save",tooltip:"Save",disabled:!0,onAction:function(){return n.execCommand("mceSave")},onSetup:d(n)}),n.ui.registry.addButton("cancel",{icon:"cancel",tooltip:"Cancel",disabled:!0,onAction:function(){return n.execCommand("mceCancel")},onSetup:d(n)}),n.addShortcut("Meta+S","","mceSave")};n.add("save",function(n){s(n),l(n)}),function m(){}}();
|
||||
@@ -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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var searchreplace = (function () {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var spellchecker = (function (domGlobals) {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var tabfocus = (function (domGlobals) {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
!function(c){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),s=tinymce.util.Tools.resolve("tinymce.EditorManager"),a=tinymce.util.Tools.resolve("tinymce.Env"),y=tinymce.util.Tools.resolve("tinymce.util.Delay"),f=tinymce.util.Tools.resolve("tinymce.util.Tools"),d=tinymce.util.Tools.resolve("tinymce.util.VK"),m=function(e){return e.getParam("tab_focus",e.getParam("tabfocus_elements",":prev,:next"))},v=t.DOM,n=function(e){e.keyCode!==d.TAB||e.ctrlKey||e.altKey||e.metaKey||e.preventDefault()},i=function(r){function e(n){var i,o,e,l;if(!(n.keyCode!==d.TAB||n.ctrlKey||n.altKey||n.metaKey||n.isDefaultPrevented())&&(1===(e=f.explode(m(r))).length&&(e[1]=e[0],e[0]=":prev"),o=n.shiftKey?":prev"===e[0]?u(-1):v.get(e[0]):":next"===e[1]?u(1):v.get(e[1]))){var t=s.get(o.id||o.name);o.id&&t?t.focus():y.setTimeout(function(){a.webkit||c.window.focus(),o.focus()},10),n.preventDefault()}function u(e){function t(e){return/INPUT|TEXTAREA|BUTTON/.test(e.tagName)&&s.get(n.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(o=v.select(":input:enabled,*[tabindex]:not(iframe)"),f.each(o,function(e,t){if(e.id===r.id)return i=t,!1}),0<e){for(l=i+1;l<o.length;l++)if(t(o[l]))return o[l]}else for(l=i-1;0<=l;l--)if(t(o[l]))return o[l];return null}}r.on("init",function(){r.inline&&v.setAttrib(r.getBody(),"tabIndex",null),r.on("keyup",n),a.gecko?r.on("keypress keydown",e):r.on("keydown",e)})};e.add("tabfocus",function(e){i(e)}),function o(){}}(window);
|
||||
@@ -4,13 +4,29 @@
|
||||
* For LGPL see License.txt in the project root for license information.
|
||||
* For commercial licenses see https://www.tiny.cloud/
|
||||
*
|
||||
* Version: 5.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var table = (function (domGlobals) {
|
||||
'use strict';
|
||||
|
||||
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
||||
var Cell = function (initial) {
|
||||
var value = initial;
|
||||
var get = function () {
|
||||
return value;
|
||||
};
|
||||
var set = function (v) {
|
||||
value = v;
|
||||
};
|
||||
var clone = function () {
|
||||
return Cell(get());
|
||||
};
|
||||
return {
|
||||
get: get,
|
||||
set: set,
|
||||
clone: clone
|
||||
};
|
||||
};
|
||||
|
||||
var noop = function () {
|
||||
var args = [];
|
||||
@@ -198,6 +214,8 @@ var table = (function (domGlobals) {
|
||||
from: from
|
||||
};
|
||||
|
||||
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
||||
|
||||
var typeOf = function (x) {
|
||||
if (x === null)
|
||||
return 'null';
|
||||
@@ -4380,24 +4398,6 @@ var table = (function (domGlobals) {
|
||||
adjustWidthTo: adjustWidthTo
|
||||
};
|
||||
|
||||
var Cell = function (initial) {
|
||||
var value = initial;
|
||||
var get = function () {
|
||||
return value;
|
||||
};
|
||||
var set = function (v) {
|
||||
value = v;
|
||||
};
|
||||
var clone = function () {
|
||||
return Cell(get());
|
||||
};
|
||||
return {
|
||||
get: get,
|
||||
set: set,
|
||||
clone: clone
|
||||
};
|
||||
};
|
||||
|
||||
var base = function (handleUnsupported, required) {
|
||||
return baseWith(handleUnsupported, required, {
|
||||
validate: isFunction,
|
||||
@@ -6274,11 +6274,19 @@ var table = (function (domGlobals) {
|
||||
};
|
||||
var TableDialog = { open: open$2 };
|
||||
|
||||
var getSelectionStartFromSelector = function (selector) {
|
||||
return function (editor) {
|
||||
return Option.from(editor.dom.getParent(editor.selection.getStart(), selector)).map(Element.fromDom);
|
||||
};
|
||||
};
|
||||
var getSelectionStartCell = getSelectionStartFromSelector('th,td');
|
||||
var getSelectionStartCellOrCaption = getSelectionStartFromSelector('th,td,caption');
|
||||
|
||||
var each$3 = global$1.each;
|
||||
var registerCommands = function (editor, actions, cellSelection, selections, clipboardRows) {
|
||||
var isRoot = getIsRoot(editor);
|
||||
var eraseTable = function () {
|
||||
getSelectionStartCell().orThunk(getSelectionStartCaption).each(function (cellOrCaption) {
|
||||
getSelectionStartCellOrCaption(editor).each(function (cellOrCaption) {
|
||||
var tableOpt = TableLookup.table(cellOrCaption, isRoot);
|
||||
tableOpt.filter(not(isRoot)).each(function (table) {
|
||||
var cursor = Element.fromText('');
|
||||
@@ -6297,13 +6305,6 @@ var table = (function (domGlobals) {
|
||||
});
|
||||
});
|
||||
};
|
||||
var getSelectionStartFromSelector = function (selector) {
|
||||
return function () {
|
||||
return Option.from(editor.dom.getParent(editor.selection.getStart(), selector)).map(Element.fromDom);
|
||||
};
|
||||
};
|
||||
var getSelectionStartCaption = getSelectionStartFromSelector('caption');
|
||||
var getSelectionStartCell = getSelectionStartFromSelector('th,td');
|
||||
var getTableFromCell = function (cell) {
|
||||
return TableLookup.table(cell, isRoot);
|
||||
};
|
||||
@@ -6321,7 +6322,7 @@ var table = (function (domGlobals) {
|
||||
}
|
||||
};
|
||||
var actOnSelection = function (execute) {
|
||||
getSelectionStartCell().each(function (cell) {
|
||||
getSelectionStartCell(editor).each(function (cell) {
|
||||
getTableFromCell(cell).each(function (table) {
|
||||
var targets = TableTargets.forMenu(selections, table, cell);
|
||||
var beforeSize = getSize(table);
|
||||
@@ -6336,7 +6337,7 @@ var table = (function (domGlobals) {
|
||||
});
|
||||
};
|
||||
var copyRowSelection = function (execute) {
|
||||
return getSelectionStartCell().map(function (cell) {
|
||||
return getSelectionStartCell(editor).map(function (cell) {
|
||||
return getTableFromCell(cell).bind(function (table) {
|
||||
var doc = Element.fromDom(editor.getDoc());
|
||||
var targets = TableTargets.forMenu(selections, table, cell);
|
||||
@@ -6350,7 +6351,7 @@ var table = (function (domGlobals) {
|
||||
var clonedRows = map(rows, function (row) {
|
||||
return deep(row);
|
||||
});
|
||||
getSelectionStartCell().each(function (cell) {
|
||||
getSelectionStartCell(editor).each(function (cell) {
|
||||
getTableFromCell(cell).each(function (table) {
|
||||
var doc = Element.fromDom(editor.getDoc());
|
||||
var generators = TableFill.paste(doc);
|
||||
@@ -8880,7 +8881,77 @@ var table = (function (domGlobals) {
|
||||
return { get: get };
|
||||
};
|
||||
|
||||
var addButtons = function (editor) {
|
||||
var SelectionTargets = function (editor, selections) {
|
||||
var targets = Cell(Option.none());
|
||||
var changeHandlers = Cell([]);
|
||||
var findTargets = function () {
|
||||
return getSelectionStartCellOrCaption(editor).bind(function (cellOrCaption) {
|
||||
var table = TableLookup.table(cellOrCaption);
|
||||
return table.map(function (table) {
|
||||
if (name(cellOrCaption) === 'caption') {
|
||||
return TableTargets.notCell(cellOrCaption);
|
||||
} else {
|
||||
return TableTargets.forMenu(selections, table, cellOrCaption);
|
||||
}
|
||||
});
|
||||
});
|
||||
};
|
||||
var resetTargets = function () {
|
||||
targets.set(cached(findTargets)());
|
||||
each(changeHandlers.get(), function (handler) {
|
||||
return handler();
|
||||
});
|
||||
};
|
||||
var onSetup = function (api, isDisabled) {
|
||||
var handler = function () {
|
||||
return targets.get().fold(function () {
|
||||
api.setDisabled(true);
|
||||
}, function (targets) {
|
||||
api.setDisabled(isDisabled(targets));
|
||||
});
|
||||
};
|
||||
handler();
|
||||
changeHandlers.set(changeHandlers.get().concat([handler]));
|
||||
return function () {
|
||||
changeHandlers.set(filter(changeHandlers.get(), function (h) {
|
||||
return h !== handler;
|
||||
}));
|
||||
};
|
||||
};
|
||||
var onSetupTable = function (api) {
|
||||
return onSetup(api, function (_) {
|
||||
return false;
|
||||
});
|
||||
};
|
||||
var onSetupCellOrRow = function (api) {
|
||||
return onSetup(api, function (targets) {
|
||||
return name(targets.element()) === 'caption';
|
||||
});
|
||||
};
|
||||
var onSetupMergeable = function (api) {
|
||||
return onSetup(api, function (targets) {
|
||||
return targets.mergable().isNone();
|
||||
});
|
||||
};
|
||||
var onSetupUnmergeable = function (api) {
|
||||
return onSetup(api, function (targets) {
|
||||
return targets.unmergable().isNone();
|
||||
});
|
||||
};
|
||||
editor.on('nodechange', resetTargets);
|
||||
return {
|
||||
onSetupTable: onSetupTable,
|
||||
onSetupCellOrRow: onSetupCellOrRow,
|
||||
onSetupMergeable: onSetupMergeable,
|
||||
onSetupUnmergeable: onSetupUnmergeable,
|
||||
resetTargets: resetTargets,
|
||||
targets: function () {
|
||||
return targets.get();
|
||||
}
|
||||
};
|
||||
};
|
||||
|
||||
var addButtons = function (editor, selectionTargets) {
|
||||
editor.ui.registry.addMenuButton('table', {
|
||||
tooltip: 'Table',
|
||||
icon: 'table',
|
||||
@@ -8896,82 +8967,98 @@ var table = (function (domGlobals) {
|
||||
editor.ui.registry.addButton('tableprops', {
|
||||
tooltip: 'Table properties',
|
||||
onAction: cmd('mceTableProps'),
|
||||
icon: 'table'
|
||||
icon: 'table',
|
||||
onSetup: selectionTargets.onSetupTable
|
||||
});
|
||||
editor.ui.registry.addButton('tabledelete', {
|
||||
tooltip: 'Delete table',
|
||||
onAction: cmd('mceTableDelete'),
|
||||
icon: 'table-delete-table'
|
||||
icon: 'table-delete-table',
|
||||
onSetup: selectionTargets.onSetupTable
|
||||
});
|
||||
editor.ui.registry.addButton('tablecellprops', {
|
||||
tooltip: 'Cell properties',
|
||||
onAction: cmd('mceTableCellProps'),
|
||||
icon: 'table-cell-properties'
|
||||
icon: 'table-cell-properties',
|
||||
onSetup: selectionTargets.onSetupCellOrRow
|
||||
});
|
||||
editor.ui.registry.addButton('tablemergecells', {
|
||||
tooltip: 'Merge cells',
|
||||
onAction: cmd('mceTableMergeCells'),
|
||||
icon: 'table-merge-cells'
|
||||
icon: 'table-merge-cells',
|
||||
onSetup: selectionTargets.onSetupMergeable
|
||||
});
|
||||
editor.ui.registry.addButton('tablesplitcells', {
|
||||
tooltip: 'Split cell',
|
||||
onAction: cmd('mceTableSplitCells'),
|
||||
icon: 'table-split-cells'
|
||||
icon: 'table-split-cells',
|
||||
onSetup: selectionTargets.onSetupUnmergeable
|
||||
});
|
||||
editor.ui.registry.addButton('tableinsertrowbefore', {
|
||||
tooltip: 'Insert row before',
|
||||
onAction: cmd('mceTableInsertRowBefore'),
|
||||
icon: 'table-insert-row-above'
|
||||
icon: 'table-insert-row-above',
|
||||
onSetup: selectionTargets.onSetupCellOrRow
|
||||
});
|
||||
editor.ui.registry.addButton('tableinsertrowafter', {
|
||||
tooltip: 'Insert row after',
|
||||
onAction: cmd('mceTableInsertRowAfter'),
|
||||
icon: 'table-insert-row-after'
|
||||
icon: 'table-insert-row-after',
|
||||
onSetup: selectionTargets.onSetupCellOrRow
|
||||
});
|
||||
editor.ui.registry.addButton('tabledeleterow', {
|
||||
tooltip: 'Delete row',
|
||||
onAction: cmd('mceTableDeleteRow'),
|
||||
icon: 'table-delete-row'
|
||||
icon: 'table-delete-row',
|
||||
onSetup: selectionTargets.onSetupCellOrRow
|
||||
});
|
||||
editor.ui.registry.addButton('tablerowprops', {
|
||||
tooltip: 'Row properties',
|
||||
onAction: cmd('mceTableRowProps'),
|
||||
icon: 'table-row-properties'
|
||||
icon: 'table-row-properties',
|
||||
onSetup: selectionTargets.onSetupCellOrRow
|
||||
});
|
||||
editor.ui.registry.addButton('tableinsertcolbefore', {
|
||||
tooltip: 'Insert column before',
|
||||
onAction: cmd('mceTableInsertColBefore'),
|
||||
icon: 'table-insert-column-before'
|
||||
icon: 'table-insert-column-before',
|
||||
onSetup: selectionTargets.onSetupCellOrRow
|
||||
});
|
||||
editor.ui.registry.addButton('tableinsertcolafter', {
|
||||
tooltip: 'Insert column after',
|
||||
onAction: cmd('mceTableInsertColAfter'),
|
||||
icon: 'table-insert-column-after'
|
||||
icon: 'table-insert-column-after',
|
||||
onSetup: selectionTargets.onSetupCellOrRow
|
||||
});
|
||||
editor.ui.registry.addButton('tabledeletecol', {
|
||||
tooltip: 'Delete column',
|
||||
onAction: cmd('mceTableDeleteCol'),
|
||||
icon: 'table-delete-column'
|
||||
icon: 'table-delete-column',
|
||||
onSetup: selectionTargets.onSetupCellOrRow
|
||||
});
|
||||
editor.ui.registry.addButton('tablecutrow', {
|
||||
tooltip: 'Cut row',
|
||||
onAction: cmd('mceTableCutRow'),
|
||||
icon: 'temporary-placeholder'
|
||||
icon: 'temporary-placeholder',
|
||||
onSetup: selectionTargets.onSetupCellOrRow
|
||||
});
|
||||
editor.ui.registry.addButton('tablecopyrow', {
|
||||
tooltip: 'Copy row',
|
||||
onAction: cmd('mceTableCopyRow'),
|
||||
icon: 'temporary-placeholder'
|
||||
icon: 'temporary-placeholder',
|
||||
onSetup: selectionTargets.onSetupCellOrRow
|
||||
});
|
||||
editor.ui.registry.addButton('tablepasterowbefore', {
|
||||
tooltip: 'Paste row before',
|
||||
onAction: cmd('mceTablePasteRowBefore'),
|
||||
icon: 'temporary-placeholder'
|
||||
icon: 'temporary-placeholder',
|
||||
onSetup: selectionTargets.onSetupCellOrRow
|
||||
});
|
||||
editor.ui.registry.addButton('tablepasterowafter', {
|
||||
tooltip: 'Paste row after',
|
||||
onAction: cmd('mceTablePasteRowAfter'),
|
||||
icon: 'temporary-placeholder'
|
||||
icon: 'temporary-placeholder',
|
||||
onSetup: selectionTargets.onSetupCellOrRow
|
||||
});
|
||||
};
|
||||
var addToolbars = function (editor) {
|
||||
@@ -8993,54 +9080,7 @@ var table = (function (domGlobals) {
|
||||
addToolbars: addToolbars
|
||||
};
|
||||
|
||||
var addMenuItems = function (editor, selections) {
|
||||
var targets = Option.none;
|
||||
var noTargetDisable = function (ctrl) {
|
||||
ctrl.setDisabled(true);
|
||||
};
|
||||
var ctrlEnable = function (ctrl) {
|
||||
ctrl.setDisabled(false);
|
||||
};
|
||||
var setEnabled = function (api) {
|
||||
targets().fold(function () {
|
||||
noTargetDisable(api);
|
||||
}, function (targets) {
|
||||
ctrlEnable(api);
|
||||
});
|
||||
return function () {
|
||||
};
|
||||
};
|
||||
var setEnabledMerge = function (api) {
|
||||
targets().fold(function () {
|
||||
noTargetDisable(api);
|
||||
}, function (targets) {
|
||||
api.setDisabled(targets.mergable().isNone());
|
||||
});
|
||||
return function () {
|
||||
};
|
||||
};
|
||||
var setEnabledUnmerge = function (api) {
|
||||
targets().fold(function () {
|
||||
noTargetDisable(api);
|
||||
}, function (targets) {
|
||||
api.setDisabled(targets.unmergable().isNone());
|
||||
});
|
||||
return function () {
|
||||
};
|
||||
};
|
||||
var resetTargets = function () {
|
||||
targets = cached(function () {
|
||||
var cellOpt = Option.from(editor.dom.getParent(editor.selection.getStart(), 'th,td'));
|
||||
return cellOpt.bind(function (cellDom) {
|
||||
var cell = Element.fromDom(cellDom);
|
||||
var table = TableLookup.table(cell);
|
||||
return table.map(function (table) {
|
||||
return TableTargets.forMenu(selections, table, cell);
|
||||
});
|
||||
});
|
||||
});
|
||||
};
|
||||
editor.on('nodechange', resetTargets);
|
||||
var addMenuItems = function (editor, selectionTargets) {
|
||||
var cmd = function (command) {
|
||||
return function () {
|
||||
return editor.execCommand(command);
|
||||
@@ -9055,13 +9095,13 @@ var table = (function (domGlobals) {
|
||||
};
|
||||
var tableProperties = {
|
||||
text: 'Table properties',
|
||||
onSetup: setEnabled,
|
||||
onSetup: selectionTargets.onSetupTable,
|
||||
onAction: cmd('mceTableProps')
|
||||
};
|
||||
var deleteTable = {
|
||||
text: 'Delete table',
|
||||
icon: 'table-delete-table',
|
||||
onSetup: setEnabled,
|
||||
onSetup: selectionTargets.onSetupTable,
|
||||
onAction: cmd('mceTableDelete')
|
||||
};
|
||||
var row = {
|
||||
@@ -9074,53 +9114,53 @@ var table = (function (domGlobals) {
|
||||
text: 'Insert row before',
|
||||
icon: 'table-insert-row-above',
|
||||
onAction: cmd('mceTableInsertRowBefore'),
|
||||
onSetup: setEnabled
|
||||
onSetup: selectionTargets.onSetupCellOrRow
|
||||
},
|
||||
{
|
||||
type: 'menuitem',
|
||||
text: 'Insert row after',
|
||||
icon: 'table-insert-row-after',
|
||||
onAction: cmd('mceTableInsertRowAfter'),
|
||||
onSetup: setEnabled
|
||||
onSetup: selectionTargets.onSetupCellOrRow
|
||||
},
|
||||
{
|
||||
type: 'menuitem',
|
||||
text: 'Delete row',
|
||||
icon: 'table-delete-row',
|
||||
onAction: cmd('mceTableDeleteRow'),
|
||||
onSetup: setEnabled
|
||||
onSetup: selectionTargets.onSetupCellOrRow
|
||||
},
|
||||
{
|
||||
type: 'menuitem',
|
||||
text: 'Row properties',
|
||||
icon: 'table-row-properties',
|
||||
onAction: cmd('mceTableRowProps'),
|
||||
onSetup: setEnabled
|
||||
onSetup: selectionTargets.onSetupCellOrRow
|
||||
},
|
||||
{ type: 'separator' },
|
||||
{
|
||||
type: 'menuitem',
|
||||
text: 'Cut row',
|
||||
onAction: cmd('mceTableCutRow'),
|
||||
onSetup: setEnabled
|
||||
onSetup: selectionTargets.onSetupCellOrRow
|
||||
},
|
||||
{
|
||||
type: 'menuitem',
|
||||
text: 'Copy row',
|
||||
onAction: cmd('mceTableCopyRow'),
|
||||
onSetup: setEnabled
|
||||
onSetup: selectionTargets.onSetupCellOrRow
|
||||
},
|
||||
{
|
||||
type: 'menuitem',
|
||||
text: 'Paste row before',
|
||||
onAction: cmd('mceTablePasteRowBefore'),
|
||||
onSetup: setEnabled
|
||||
onSetup: selectionTargets.onSetupCellOrRow
|
||||
},
|
||||
{
|
||||
type: 'menuitem',
|
||||
text: 'Paste row after',
|
||||
onAction: cmd('mceTablePasteRowAfter'),
|
||||
onSetup: setEnabled
|
||||
onSetup: selectionTargets.onSetupCellOrRow
|
||||
}
|
||||
];
|
||||
}
|
||||
@@ -9135,21 +9175,21 @@ var table = (function (domGlobals) {
|
||||
text: 'Insert column before',
|
||||
icon: 'table-insert-column-before',
|
||||
onAction: cmd('mceTableInsertColBefore'),
|
||||
onSetup: setEnabled
|
||||
onSetup: selectionTargets.onSetupCellOrRow
|
||||
},
|
||||
{
|
||||
type: 'menuitem',
|
||||
text: 'Insert column after',
|
||||
icon: 'table-insert-column-after',
|
||||
onAction: cmd('mceTableInsertColAfter'),
|
||||
onSetup: setEnabled
|
||||
onSetup: selectionTargets.onSetupCellOrRow
|
||||
},
|
||||
{
|
||||
type: 'menuitem',
|
||||
text: 'Delete column',
|
||||
icon: 'table-delete-column',
|
||||
onAction: cmd('mceTableDeleteCol'),
|
||||
onSetup: setEnabled
|
||||
onSetup: selectionTargets.onSetupCellOrRow
|
||||
}
|
||||
];
|
||||
}
|
||||
@@ -9164,21 +9204,21 @@ var table = (function (domGlobals) {
|
||||
text: 'Cell properties',
|
||||
icon: 'table-cell-properties',
|
||||
onAction: cmd('mceTableCellProps'),
|
||||
onSetup: setEnabled
|
||||
onSetup: selectionTargets.onSetupCellOrRow
|
||||
},
|
||||
{
|
||||
type: 'menuitem',
|
||||
text: 'Merge cells',
|
||||
icon: 'table-merge-cells',
|
||||
onAction: cmd('mceTableMergeCells'),
|
||||
onSetup: setEnabledMerge
|
||||
onSetup: selectionTargets.onSetupMergeable
|
||||
},
|
||||
{
|
||||
type: 'menuitem',
|
||||
text: 'Split cell',
|
||||
icon: 'table-split-cells',
|
||||
onAction: cmd('mceTableSplitCells'),
|
||||
onSetup: setEnabledUnmerge
|
||||
onSetup: selectionTargets.onSetupUnmergeable
|
||||
}
|
||||
];
|
||||
}
|
||||
@@ -9209,11 +9249,15 @@ var table = (function (domGlobals) {
|
||||
editor.ui.registry.addNestedMenuItem('cell', cell);
|
||||
editor.ui.registry.addContextMenu('table', {
|
||||
update: function () {
|
||||
resetTargets();
|
||||
return targets().fold(function () {
|
||||
selectionTargets.resetTargets();
|
||||
return selectionTargets.targets().fold(function () {
|
||||
return '';
|
||||
}, function () {
|
||||
return 'cell row column | tableprops deletetable';
|
||||
}, function (targets) {
|
||||
if (name(targets.element()) === 'caption') {
|
||||
return 'tableprops deletetable';
|
||||
} else {
|
||||
return 'cell row column | tableprops deletetable';
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -9252,11 +9296,12 @@ var table = (function (domGlobals) {
|
||||
var cellSelection = CellSelection$1(editor, resizeHandler.lazyResize);
|
||||
var actions = TableActions(editor, resizeHandler.lazyWire);
|
||||
var selections = Selections(editor);
|
||||
var selectionTargets = SelectionTargets(editor, selections);
|
||||
var clipboardRows = Cell(Option.none());
|
||||
Commands.registerCommands(editor, actions, cellSelection, selections, clipboardRows);
|
||||
Clipboard.registerEvents(editor, selections, actions, cellSelection);
|
||||
MenuItems.addMenuItems(editor, selections);
|
||||
Buttons.addButtons(editor);
|
||||
MenuItems.addMenuItems(editor, selectionTargets);
|
||||
Buttons.addButtons(editor, selectionTargets);
|
||||
Buttons.addToolbars(editor);
|
||||
editor.on('PreInit', function () {
|
||||
editor.serializer.addTempAttr(Ephemera.firstSelected());
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var template = (function () {
|
||||
@@ -378,6 +378,27 @@ var template = (function () {
|
||||
|
||||
var global$3 = tinymce.util.Tools.resolve('tinymce.util.Promise');
|
||||
|
||||
var hasOwnProperty = Object.hasOwnProperty;
|
||||
var get = function (obj, key) {
|
||||
return has(obj, key) ? Option.some(obj[key]) : Option.none();
|
||||
};
|
||||
var has = function (obj, key) {
|
||||
return hasOwnProperty.call(obj, key);
|
||||
};
|
||||
|
||||
var entitiesAttr = {
|
||||
'"': '"',
|
||||
'<': '<',
|
||||
'>': '>',
|
||||
'&': '&',
|
||||
'\'': '''
|
||||
};
|
||||
var htmlEscape = function (html) {
|
||||
return html.replace(/["'<>&]/g, function (match) {
|
||||
return get(entitiesAttr, match).getOr(match);
|
||||
});
|
||||
};
|
||||
|
||||
var getPreviewContent = function (editor, html) {
|
||||
if (html.indexOf('<html>') === -1) {
|
||||
var contentCssLinks_1 = '';
|
||||
@@ -445,15 +466,14 @@ var template = (function () {
|
||||
}
|
||||
});
|
||||
};
|
||||
var onChange = function (templates) {
|
||||
var onChange = function (templates, updateDialog) {
|
||||
return function (api, change) {
|
||||
if (change.name === 'template') {
|
||||
var newTemplateTitle = api.getData().template;
|
||||
findTemplate(templates, newTemplateTitle).each(function (t) {
|
||||
api.block('Loading...');
|
||||
getTemplateContent(t).then(function (previewHtml) {
|
||||
var previewContent = getPreviewContent(editor, previewHtml);
|
||||
api.setData({ preview: previewContent });
|
||||
updateDialog(api, t, previewHtml);
|
||||
api.unblock();
|
||||
});
|
||||
});
|
||||
@@ -473,7 +493,7 @@ var template = (function () {
|
||||
};
|
||||
var openDialog = function (templates) {
|
||||
var selectBoxItems = createSelectBoxItems(templates);
|
||||
var dialogSpec = function (bodyItems, initialData) {
|
||||
var buildDialogSpec = function (bodyItems, initialData) {
|
||||
return {
|
||||
title: 'Insert Template',
|
||||
size: 'large',
|
||||
@@ -496,15 +516,10 @@ var template = (function () {
|
||||
}
|
||||
],
|
||||
onSubmit: onSubmit(templates),
|
||||
onChange: onChange(templates)
|
||||
onChange: onChange(templates, updateDialog)
|
||||
};
|
||||
};
|
||||
var dialogApi = editor.windowManager.open(dialogSpec([], {
|
||||
template: '',
|
||||
preview: ''
|
||||
}));
|
||||
dialogApi.block('Loading...');
|
||||
getTemplateContent(templates[0]).then(function (previewHtml) {
|
||||
var updateDialog = function (dialogApi, template, previewHtml) {
|
||||
var content = getPreviewContent(editor, previewHtml);
|
||||
var bodyItems = [
|
||||
{
|
||||
@@ -513,6 +528,10 @@ var template = (function () {
|
||||
label: 'Templates',
|
||||
items: selectBoxItems
|
||||
},
|
||||
{
|
||||
type: 'htmlpanel',
|
||||
html: '<p aria-live="polite">' + htmlEscape(template.value.description) + '</p>'
|
||||
},
|
||||
{
|
||||
label: 'Preview',
|
||||
type: 'iframe',
|
||||
@@ -521,12 +540,20 @@ var template = (function () {
|
||||
}
|
||||
];
|
||||
var initialData = {
|
||||
template: templates[0].text,
|
||||
template: template.text,
|
||||
preview: content
|
||||
};
|
||||
dialogApi.unblock();
|
||||
dialogApi.redial(dialogSpec(bodyItems, initialData));
|
||||
dialogApi.redial(buildDialogSpec(bodyItems, initialData));
|
||||
dialogApi.focus('template');
|
||||
};
|
||||
var dialogApi = editor.windowManager.open(buildDialogSpec([], {
|
||||
template: '',
|
||||
preview: ''
|
||||
}));
|
||||
dialogApi.block('Loading...');
|
||||
getTemplateContent(templates[0]).then(function (previewHtml) {
|
||||
updateDialog(dialogApi, templates[0], previewHtml);
|
||||
});
|
||||
};
|
||||
var optTemplates = createTemplates();
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var textcolor = (function () {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
!function(){"use strict";tinymce.util.Tools.resolve("tinymce.PluginManager").add("textcolor",function(){console.warn("Text color plugin is now built in to the core editor, please remove it from your editor configuration")}),function o(){}}();
|
||||
@@ -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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var textpattern = (function (domGlobals) {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var toc = (function () {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
!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"),i=tinymce.util.Tools.resolve("tinymce.util.Tools"),a=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"},c=function(t){var e=parseInt(t.getParam("toc_depth","3"),10);return 1<=e&&e<=9?e:3},l=(e="mcetoc_",n=0,function(){var t=(new Date).getTime().toString(32);return e+t+(n++).toString(32)}),u=function u(t){var e,n=[];for(e=1;e<=t;e++)n.push("h"+e);return n.join(",")},v=function(n){var o=a(n),t=m(n),e=u(c(n)),r=n.$(e);return r.length&&/^h[1-9]$/i.test(t)&&(r=r.filter(function(t,e){return!n.dom.hasClass(e.parentNode,o)})),i.map(r,function(t){return{id:t.id?t.id:l(),level:parseInt(t.nodeName.replace(/^H/i,""),10),title:n.$.text(t),element:t}})},d=function(t){var e,n,o,r,i,c,a,l="",u=v(t),d=function(t){var e,n=9;for(e=0;e<t.length;e++)if(t[e].level<n&&(n=t[e].level),1===n)return n;return n}(u)-1;if(!u.length)return"";for(l+=(i=m(t),c=f.translate("Table of Contents"),a="</"+i+">","<"+i+' contenteditable="true">'+s.DOM.encode(c)+a),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)l+="<li>";else for(n=d;n<o.level;n++)l+="<ul><li>";if(l+='<a href="#'+o.id+'">'+o.title+"</a>",r!==o.level&&r)for(n=o.level;r<n;n--)l+="</li></ul><li>";else l+="</li>",r||(l+="</ul>");d=o.level}return l},g=function(t){var e=a(t),n=t.$("."+e);n.length&&t.undoManager.transact(function(){n.html(d(t))})},o={hasHeaders:function(t){return 0<v(t).length},insertToc:function(t){var e,n,o,r,i=a(t),c=t.$("."+i);o=t,!(r=c).length||0<o.dom.getParents(r[0],".mce-offscreen-selection").length?t.insertContent((n=d(e=t),'<div class="'+e.dom.encode(a(e))+'" contenteditable="false">'+n+"</div>")):g(t)},updateToc:g},r=function(t){t.addCommand("mceInsertToc",function(){o.insertToc(t)}),t.addCommand("mceUpdateToc",function(){o.updateToc(t)})},h=function(t){var n=t.$,o=a(t);t.on("PreProcess",function(t){var e=n("."+o,t.node);e.length&&(e.removeAttr("contentEditable"),e.find("[contenteditable]").removeAttr("contentEditable"))}),t.on("SetContent",function(){var t=n("."+o);t.length&&(t.attr("contentEditable",!1),t.children(":first-child").attr("contentEditable",!0))})},p=function(n){return function(t){var e=function(){return t.setDisabled(n.readonly||!o.hasHeaders(n))};return e(),n.on("LoadContent SetContent change",e),function(){return n.on("LoadContent SetContent change",e)}}},T=function(t){var e;t.ui.registry.addButton("toc",{icon:"toc",tooltip:"Table of contents",onAction:function(){return t.execCommand("mceInsertToc")},onSetup:p(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:p(t)}),t.ui.registry.addContextToolbar("toc",{items:"tocupdate",predicate:(e=t,function(t){return t&&e.dom.is(t,"."+a(e))&&e.getBody().contains(t)}),scope:"node",position:"node"})};t.add("toc",function(t){r(t),T(t),h(t)}),function y(){}}();
|
||||
@@ -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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var visualblocks = (function () {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
!function(){"use strict";var e=function(t){var n=t,o=function(){return n};return{get:o,set:function(t){n=t},clone:function(){return e(o())}}},t=tinymce.util.Tools.resolve("tinymce.PluginManager"),i=function(t,n){t.fire("VisualBlocks",{state:n})},u=function(t,n,o){t.dom.toggleClass(t.getBody(),"mce-visualblocks"),o.set(!o.get()),i(t,o.get())},c=function(t,n,o){t.addCommand("mceVisualBlocks",function(){u(t,n,o)})},s=function(t){return t.getParam("visualblocks_default_state",!1,"boolean")},r=function(n,t,o){n.on("PreviewFormats AfterPreviewFormats",function(t){o.get()&&n.dom.toggleClass(n.getBody(),"mce-visualblocks","afterpreviewformats"===t.type)}),n.on("init",function(){s(n)&&u(n,t,o)}),n.on("remove",function(){n.dom.removeClass(n.getBody(),"mce-visualblocks")})},o=function(o,e){return function(n){n.setActive(e.get());var t=function(t){return n.setActive(t.state)};return o.on("VisualBlocks",t),function(){return o.off("VisualBlocks",t)}}},a=function(t,n){t.ui.registry.addToggleButton("visualblocks",{icon:"paragraph",tooltip:"Show blocks",onAction:function(){return t.execCommand("mceVisualBlocks")},onSetup:o(t,n)}),t.ui.registry.addToggleMenuItem("visualblocks",{text:"Show blocks",onAction:function(){return t.execCommand("mceVisualBlocks")},onSetup:o(t,n)})};t.add("visualblocks",function(t,n){var o=e(!1);c(t,n,o),a(t,o),r(t,n,o)}),function n(){}}();
|
||||
@@ -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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var visualchars = (function (domGlobals) {
|
||||
|
||||
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var wordcount = (function () {
|
||||
|
||||
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+1
-1
File diff suppressed because one or more lines are too long
+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.0.1 (2019-02-21)
|
||||
* Version: 5.0.2 (2019-03-05)
|
||||
*/
|
||||
(function () {
|
||||
var mobile = (function (exports, domGlobals) {
|
||||
@@ -7136,7 +7136,7 @@ var mobile = (function (exports, domGlobals) {
|
||||
var dom$2 = function (detail) {
|
||||
return {
|
||||
tag: detail.tag,
|
||||
attributes: __assign({ type: 'input' }, detail.inputAttributes),
|
||||
attributes: __assign({ type: 'text' }, detail.inputAttributes),
|
||||
styles: detail.inputStyles,
|
||||
classes: detail.inputClasses
|
||||
};
|
||||
@@ -10844,7 +10844,7 @@ var mobile = (function (exports, domGlobals) {
|
||||
var attr = 'data-ephox-mobile-fullscreen-style';
|
||||
var siblingStyles = 'display:none!important;';
|
||||
var ancestorPosition = 'position:absolute!important;';
|
||||
var ancestorStyles = 'top:0!important;left:0!important;margin:0' + '!important;padding:0!important;width:100%!important;';
|
||||
var ancestorStyles = 'top:0!important;left:0!important;margin:0!important;padding:0!important;width:100%!important;height:100%!important;overflow:visible!important;';
|
||||
var bgFallback = 'background-color:rgb(255,255,255)!important;';
|
||||
var isAndroid = PlatformDetection$1.detect().os.isAndroid();
|
||||
var matchColor = function (editorBody) {
|
||||
@@ -11920,7 +11920,7 @@ var mobile = (function (exports, domGlobals) {
|
||||
};
|
||||
var unregister = function (component) {
|
||||
read$2(component.element()).each(function (tagId) {
|
||||
components[tagId] = undefined;
|
||||
delete components[tagId];
|
||||
events.unregisterId(tagId);
|
||||
});
|
||||
};
|
||||
|
||||
+2
-2
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
+2
-2
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user