@dangl/angular-material-shared 1.2.1-beta0001 → 1.2.1-beta0007
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/tinymce-assets/icons/default/icons.js +11 -1
- package/tinymce-assets/icons/default/icons.min.js +1 -1
- package/tinymce-assets/plugins/advlist/plugin.js +29 -48
- package/tinymce-assets/plugins/advlist/plugin.min.js +2 -2
- package/tinymce-assets/plugins/anchor/plugin.js +8 -8
- package/tinymce-assets/plugins/anchor/plugin.min.js +2 -2
- package/tinymce-assets/plugins/autolink/plugin.js +34 -12
- package/tinymce-assets/plugins/autolink/plugin.min.js +2 -2
- package/tinymce-assets/plugins/autoresize/plugin.js +25 -12
- package/tinymce-assets/plugins/autoresize/plugin.min.js +2 -2
- package/tinymce-assets/plugins/autosave/plugin.js +9 -9
- package/tinymce-assets/plugins/autosave/plugin.min.js +2 -2
- package/tinymce-assets/plugins/bbcode/plugin.js +6 -6
- package/tinymce-assets/plugins/bbcode/plugin.min.js +2 -2
- package/tinymce-assets/plugins/charmap/plugin.js +39 -49
- package/tinymce-assets/plugins/charmap/plugin.min.js +2 -2
- package/tinymce-assets/plugins/code/plugin.js +9 -10
- package/tinymce-assets/plugins/code/plugin.min.js +2 -2
- package/tinymce-assets/plugins/codesample/plugin.js +1921 -1914
- package/tinymce-assets/plugins/codesample/plugin.min.js +2 -2
- package/tinymce-assets/plugins/colorpicker/plugin.js +1 -2
- package/tinymce-assets/plugins/colorpicker/plugin.min.js +2 -2
- package/tinymce-assets/plugins/contextmenu/plugin.js +1 -2
- package/tinymce-assets/plugins/contextmenu/plugin.min.js +2 -2
- package/tinymce-assets/plugins/directionality/plugin.js +186 -53
- package/tinymce-assets/plugins/directionality/plugin.min.js +2 -2
- package/tinymce-assets/plugins/emoticons/js/emojiimages.js +1572 -1572
- package/tinymce-assets/plugins/emoticons/js/emojiimages.min.js +1 -1
- package/tinymce-assets/plugins/emoticons/js/emojis.js +1572 -1572
- package/tinymce-assets/plugins/emoticons/js/emojis.min.js +1 -1
- package/tinymce-assets/plugins/emoticons/plugin.js +231 -200
- package/tinymce-assets/plugins/emoticons/plugin.min.js +2 -2
- package/tinymce-assets/plugins/fullpage/plugin.js +42 -42
- package/tinymce-assets/plugins/fullpage/plugin.min.js +2 -2
- package/tinymce-assets/plugins/fullscreen/plugin.js +495 -128
- package/tinymce-assets/plugins/fullscreen/plugin.min.js +2 -2
- package/tinymce-assets/plugins/help/plugin.js +101 -122
- package/tinymce-assets/plugins/help/plugin.min.js +2 -2
- package/tinymce-assets/plugins/hr/plugin.js +9 -10
- package/tinymce-assets/plugins/hr/plugin.min.js +2 -2
- package/tinymce-assets/plugins/image/plugin.js +78 -73
- package/tinymce-assets/plugins/image/plugin.min.js +2 -2
- package/tinymce-assets/plugins/imagetools/plugin.js +484 -307
- package/tinymce-assets/plugins/imagetools/plugin.min.js +2 -2
- package/tinymce-assets/plugins/importcss/plugin.js +48 -50
- package/tinymce-assets/plugins/importcss/plugin.min.js +2 -2
- package/tinymce-assets/plugins/insertdatetime/plugin.js +22 -17
- package/tinymce-assets/plugins/insertdatetime/plugin.min.js +2 -2
- package/tinymce-assets/plugins/legacyoutput/plugin.js +8 -8
- package/tinymce-assets/plugins/legacyoutput/plugin.min.js +2 -2
- package/tinymce-assets/plugins/link/plugin.js +131 -125
- package/tinymce-assets/plugins/link/plugin.min.js +2 -2
- package/tinymce-assets/plugins/lists/plugin.js +256 -229
- package/tinymce-assets/plugins/lists/plugin.min.js +2 -2
- package/tinymce-assets/plugins/media/plugin.js +124 -147
- package/tinymce-assets/plugins/media/plugin.min.js +2 -2
- package/tinymce-assets/plugins/nonbreaking/plugin.js +13 -14
- package/tinymce-assets/plugins/nonbreaking/plugin.min.js +2 -2
- package/tinymce-assets/plugins/noneditable/plugin.js +6 -6
- package/tinymce-assets/plugins/noneditable/plugin.min.js +2 -2
- package/tinymce-assets/plugins/pagebreak/plugin.js +16 -17
- package/tinymce-assets/plugins/pagebreak/plugin.min.js +2 -2
- package/tinymce-assets/plugins/paste/plugin.js +196 -157
- package/tinymce-assets/plugins/paste/plugin.min.js +2 -2
- package/tinymce-assets/plugins/preview/plugin.js +13 -14
- package/tinymce-assets/plugins/preview/plugin.min.js +2 -2
- package/tinymce-assets/plugins/print/plugin.js +13 -14
- package/tinymce-assets/plugins/print/plugin.min.js +2 -2
- package/tinymce-assets/plugins/quickbars/plugin.js +33 -48
- package/tinymce-assets/plugins/quickbars/plugin.min.js +2 -2
- package/tinymce-assets/plugins/save/plugin.js +9 -8
- package/tinymce-assets/plugins/save/plugin.min.js +2 -2
- package/tinymce-assets/plugins/searchreplace/plugin.js +72 -74
- package/tinymce-assets/plugins/searchreplace/plugin.min.js +2 -2
- package/tinymce-assets/plugins/spellchecker/plugin.js +22 -23
- package/tinymce-assets/plugins/spellchecker/plugin.min.js +2 -2
- package/tinymce-assets/plugins/tabfocus/plugin.js +21 -20
- package/tinymce-assets/plugins/tabfocus/plugin.min.js +2 -2
- package/tinymce-assets/plugins/table/plugin.js +2830 -2264
- package/tinymce-assets/plugins/table/plugin.min.js +2 -2
- package/tinymce-assets/plugins/template/plugin.js +84 -70
- package/tinymce-assets/plugins/template/plugin.min.js +2 -2
- package/tinymce-assets/plugins/textcolor/plugin.js +1 -2
- package/tinymce-assets/plugins/textcolor/plugin.min.js +2 -2
- package/tinymce-assets/plugins/textpattern/plugin.js +76 -96
- package/tinymce-assets/plugins/textpattern/plugin.min.js +2 -2
- package/tinymce-assets/plugins/toc/plugin.js +26 -28
- package/tinymce-assets/plugins/toc/plugin.min.js +2 -2
- package/tinymce-assets/plugins/visualblocks/plugin.js +10 -11
- package/tinymce-assets/plugins/visualblocks/plugin.min.js +2 -2
- package/tinymce-assets/plugins/visualchars/plugin.js +52 -67
- package/tinymce-assets/plugins/visualchars/plugin.min.js +2 -2
- package/tinymce-assets/plugins/wordcount/plugin.js +61 -55
- package/tinymce-assets/plugins/wordcount/plugin.min.js +2 -2
- package/tinymce-assets/skins/ui/oxide/content.css +1 -1
- package/tinymce-assets/skins/ui/oxide/content.inline.css +1 -1
- package/tinymce-assets/skins/ui/oxide/content.inline.min.css +1 -1
- package/tinymce-assets/skins/ui/oxide/content.min.css +1 -1
- package/tinymce-assets/skins/ui/oxide/skin.css +35 -22
- package/tinymce-assets/skins/ui/oxide/skin.min.css +1 -1
- package/tinymce-assets/skins/ui/oxide/skin.shadowdom.css +7 -7
- package/tinymce-assets/skins/ui/oxide/skin.shadowdom.min.css +1 -1
- package/tinymce-assets/skins/ui/oxide-dark/content.css +1 -1
- package/tinymce-assets/skins/ui/oxide-dark/content.inline.css +1 -1
- package/tinymce-assets/skins/ui/oxide-dark/content.inline.min.css +1 -1
- package/tinymce-assets/skins/ui/oxide-dark/content.min.css +1 -1
- package/tinymce-assets/skins/ui/oxide-dark/skin.css +35 -22
- package/tinymce-assets/skins/ui/oxide-dark/skin.min.css +1 -1
- package/tinymce-assets/skins/ui/oxide-dark/skin.shadowdom.css +7 -7
- package/tinymce-assets/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -1
- package/tinymce-assets/themes/mobile/theme.js +2798 -3255
- package/tinymce-assets/themes/mobile/theme.min.js +2 -2
- package/tinymce-assets/themes/silver/theme.js +25337 -25368
- package/tinymce-assets/themes/silver/theme.min.js +2 -2
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* For LGPL see License.txt in the project root for license information.
|
|
5
5
|
* For commercial licenses see https://www.tiny.cloud/
|
|
6
6
|
*
|
|
7
|
-
* Version: 5.
|
|
7
|
+
* Version: 5.10.0 (2021-10-11)
|
|
8
8
|
*/
|
|
9
9
|
(function () {
|
|
10
10
|
'use strict';
|
|
@@ -23,7 +23,7 @@
|
|
|
23
23
|
};
|
|
24
24
|
};
|
|
25
25
|
|
|
26
|
-
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
|
26
|
+
var global$3 = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
|
27
27
|
|
|
28
28
|
var hasProPlugin = function (editor) {
|
|
29
29
|
if (editor.hasPlugin('tinymcespellchecker', true)) {
|
|
@@ -46,11 +46,11 @@
|
|
|
46
46
|
return true;
|
|
47
47
|
};
|
|
48
48
|
|
|
49
|
-
var global$
|
|
49
|
+
var global$2 = tinymce.util.Tools.resolve('tinymce.util.Tools');
|
|
50
50
|
|
|
51
|
-
var global$
|
|
51
|
+
var global$1 = tinymce.util.Tools.resolve('tinymce.util.URI');
|
|
52
52
|
|
|
53
|
-
var global
|
|
53
|
+
var global = tinymce.util.Tools.resolve('tinymce.util.XHR');
|
|
54
54
|
|
|
55
55
|
var fireSpellcheckStart = function (editor) {
|
|
56
56
|
return editor.fire('SpellcheckStart');
|
|
@@ -99,7 +99,6 @@
|
|
|
99
99
|
};
|
|
100
100
|
};
|
|
101
101
|
var getText = function (node) {
|
|
102
|
-
var txt;
|
|
103
102
|
if (node.nodeType === 3) {
|
|
104
103
|
return node.data;
|
|
105
104
|
}
|
|
@@ -109,7 +108,7 @@
|
|
|
109
108
|
if (isContentEditableFalse(node)) {
|
|
110
109
|
return '\n';
|
|
111
110
|
}
|
|
112
|
-
txt = '';
|
|
111
|
+
var txt = '';
|
|
113
112
|
if (blockElementsMap[node.nodeName] || shortEndedElementsMap[node.nodeName]) {
|
|
114
113
|
txt += '\n';
|
|
115
114
|
}
|
|
@@ -192,7 +191,7 @@
|
|
|
192
191
|
match.stencil = callback(match);
|
|
193
192
|
}
|
|
194
193
|
var clone = match.stencil.cloneNode(false);
|
|
195
|
-
clone.setAttribute('data-mce-index', matchIndex);
|
|
194
|
+
clone.setAttribute('data-mce-index', '' + matchIndex);
|
|
196
195
|
if (fill) {
|
|
197
196
|
clone.appendChild(dom.doc.createTextNode(fill));
|
|
198
197
|
}
|
|
@@ -384,14 +383,14 @@
|
|
|
384
383
|
};
|
|
385
384
|
var postData = '';
|
|
386
385
|
data[method === 'addToDictionary' ? 'word' : 'text'] = text;
|
|
387
|
-
global$
|
|
386
|
+
global$2.each(data, function (value, key) {
|
|
388
387
|
if (postData) {
|
|
389
388
|
postData += '&';
|
|
390
389
|
}
|
|
391
390
|
postData += key + '=' + encodeURIComponent(value);
|
|
392
391
|
});
|
|
393
|
-
global
|
|
394
|
-
url: new global$
|
|
392
|
+
global.send({
|
|
393
|
+
url: new global$1(pluginUrl).toAbsolute(getRpcUrl(editor)),
|
|
395
394
|
type: 'post',
|
|
396
395
|
content_type: 'application/x-www-form-urlencoded',
|
|
397
396
|
data: postData,
|
|
@@ -459,7 +458,7 @@
|
|
|
459
458
|
var ignoreWord = function (editor, startedState, textMatcherState, word, spans, all) {
|
|
460
459
|
editor.selection.collapse();
|
|
461
460
|
if (all) {
|
|
462
|
-
global$
|
|
461
|
+
global$2.each(editor.dom.select('span.mce-spellchecker-word'), function (span) {
|
|
463
462
|
if (span.getAttribute('data-mce-word') === word) {
|
|
464
463
|
editor.dom.remove(span, true);
|
|
465
464
|
}
|
|
@@ -489,7 +488,7 @@
|
|
|
489
488
|
};
|
|
490
489
|
var findSpansByIndex = function (editor, index) {
|
|
491
490
|
var spans = [];
|
|
492
|
-
var nodes = global$
|
|
491
|
+
var nodes = global$2.toArray(editor.getBody().getElementsByTagName('span'));
|
|
493
492
|
if (nodes.length) {
|
|
494
493
|
for (var i = 0; i < nodes.length; i++) {
|
|
495
494
|
var nodeIndex = getElmIndex(nodes[i]);
|
|
@@ -536,7 +535,7 @@
|
|
|
536
535
|
fireSpellcheckStart(editor);
|
|
537
536
|
};
|
|
538
537
|
|
|
539
|
-
var get = function (editor, startedState, lastSuggestionsState, textMatcherState, currentLanguageState
|
|
538
|
+
var get = function (editor, startedState, lastSuggestionsState, textMatcherState, currentLanguageState) {
|
|
540
539
|
var getWordCharPattern = function () {
|
|
541
540
|
return getSpellcheckerWordcharPattern(editor);
|
|
542
541
|
};
|
|
@@ -551,7 +550,7 @@
|
|
|
551
550
|
};
|
|
552
551
|
};
|
|
553
552
|
|
|
554
|
-
var register = function (editor, pluginUrl, startedState, textMatcherState, lastSuggestionsState, currentLanguageState) {
|
|
553
|
+
var register$1 = function (editor, pluginUrl, startedState, textMatcherState, lastSuggestionsState, currentLanguageState) {
|
|
555
554
|
editor.addCommand('mceSpellCheck', function () {
|
|
556
555
|
spellcheck(editor, pluginUrl, startedState, textMatcherState, lastSuggestionsState, currentLanguageState);
|
|
557
556
|
});
|
|
@@ -573,7 +572,7 @@
|
|
|
573
572
|
var spellcheckerEvents = 'SpellcheckStart SpellcheckEnd';
|
|
574
573
|
var buildMenuItems = function (listName, languageValues) {
|
|
575
574
|
var items = [];
|
|
576
|
-
global$
|
|
575
|
+
global$2.each(languageValues, function (languageValue) {
|
|
577
576
|
items.push({
|
|
578
577
|
selectable: true,
|
|
579
578
|
text: languageValue.name,
|
|
@@ -583,7 +582,7 @@
|
|
|
583
582
|
return items;
|
|
584
583
|
};
|
|
585
584
|
var getItems = function (editor) {
|
|
586
|
-
return global$
|
|
585
|
+
return global$2.map(getLanguages(editor).split(','), function (langPair) {
|
|
587
586
|
var langPairs = langPair.split('=');
|
|
588
587
|
return {
|
|
589
588
|
name: langPairs[0],
|
|
@@ -591,7 +590,7 @@
|
|
|
591
590
|
};
|
|
592
591
|
});
|
|
593
592
|
};
|
|
594
|
-
var register
|
|
593
|
+
var register = function (editor, pluginUrl, startedState, textMatcherState, currentLanguageState, lastSuggestionsState) {
|
|
595
594
|
var languageMenuItems = buildMenuItems('Language', getItems(editor));
|
|
596
595
|
var startSpellchecking = function () {
|
|
597
596
|
spellcheck(editor, pluginUrl, startedState, textMatcherState, lastSuggestionsState, currentLanguageState);
|
|
@@ -616,7 +615,7 @@
|
|
|
616
615
|
return value === currentLanguageState.get();
|
|
617
616
|
},
|
|
618
617
|
fetch: function (callback) {
|
|
619
|
-
var items = global$
|
|
618
|
+
var items = global$2.map(languageMenuItems, function (languageItem) {
|
|
620
619
|
return {
|
|
621
620
|
type: 'choiceitem',
|
|
622
621
|
value: languageItem.data,
|
|
@@ -655,7 +654,7 @@
|
|
|
655
654
|
var getSuggestions = function (editor, pluginUrl, lastSuggestionsState, startedState, textMatcherState, currentLanguageState, word, spans) {
|
|
656
655
|
var items = [];
|
|
657
656
|
var suggestions = lastSuggestionsState.get().suggestions[word];
|
|
658
|
-
global$
|
|
657
|
+
global$2.each(suggestions, function (suggestion) {
|
|
659
658
|
items.push({
|
|
660
659
|
text: suggestion,
|
|
661
660
|
onAction: function () {
|
|
@@ -712,15 +711,15 @@
|
|
|
712
711
|
};
|
|
713
712
|
|
|
714
713
|
function Plugin () {
|
|
715
|
-
global.add('spellchecker', function (editor, pluginUrl) {
|
|
714
|
+
global$3.add('spellchecker', function (editor, pluginUrl) {
|
|
716
715
|
if (hasProPlugin(editor) === false) {
|
|
717
716
|
var startedState = Cell(false);
|
|
718
717
|
var currentLanguageState = Cell(getLanguage(editor));
|
|
719
718
|
var textMatcherState = Cell(null);
|
|
720
719
|
var lastSuggestionsState = Cell(null);
|
|
721
|
-
register
|
|
720
|
+
register(editor, pluginUrl, startedState, textMatcherState, currentLanguageState, lastSuggestionsState);
|
|
722
721
|
setup(editor, pluginUrl, lastSuggestionsState, startedState, textMatcherState, currentLanguageState);
|
|
723
|
-
register(editor, pluginUrl, startedState, textMatcherState, lastSuggestionsState, currentLanguageState);
|
|
722
|
+
register$1(editor, pluginUrl, startedState, textMatcherState, lastSuggestionsState, currentLanguageState);
|
|
724
723
|
return get(editor, startedState, lastSuggestionsState, textMatcherState, currentLanguageState);
|
|
725
724
|
}
|
|
726
725
|
});
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
* For LGPL see License.txt in the project root for license information.
|
|
5
5
|
* For commercial licenses see https://www.tiny.cloud/
|
|
6
6
|
*
|
|
7
|
-
* Version: 5.
|
|
7
|
+
* Version: 5.10.0 (2021-10-11)
|
|
8
8
|
*/
|
|
9
|
-
!function(){"use strict";
|
|
9
|
+
!function(){"use strict";function C(e){var t=e;return{get:function(){return t},set:function(e){t=e}}}function u(e){return e.getParam("spellchecker_rpc_url")}function E(e){var t=new RegExp('[^\\s!"#$%&()*+,-./:;<=>?@[\\]^_{|}`\xa7\xa9\xab\xae\xb1\xb6\xb7\xb8\xbb\xbc\xbd\xbe\xbf\xd7\xf7\xa4\u201d\u201c\u201e\xa0\u2002\u2003\u2009]+',"g");return e.getParam("spellchecker_wordchar_pattern",t)}function p(e){return e&&1===e.nodeType&&"false"===e.contentEditable}function r(i,r){function o(e){var t=i.getElementsByTagName("*"),n=[];e="number"==typeof e?""+e:null;for(var r=0;r<t.length;r++){var o=t[r],a=o.getAttribute("data-mce-index");null!==a&&a.length&&-1!==o.className.indexOf("mce-spellchecker-word")&&(a!==e&&null!==e||n.push(o))}return n}function a(e){for(var t=c.length;t--;)if(c[t]===e)return t;return-1}var n,c=[],v=r.dom,f=r.schema.getBlockElements(),h=r.schema.getWhiteSpaceElements(),g=r.schema.getShortEndedElements(),s=function(e){if(3===e.nodeType)return e.data;if(h[e.nodeName]&&!f[e.nodeName])return"";if(p(e))return"\n";var t="";if((f[e.nodeName]||g[e.nodeName])&&(t+="\n"),e=e.firstChild)for(;t+=s(e),e=e.nextSibling;);return t};function e(e){for(var t=0,n=c.length;t<n&&!1!==e(c[t],t);t++);return this}function t(e){for(var t=o(e?a(e):null),n=t.length;n--;)!function(e){for(var t=e.parentNode;0<e.childNodes.length;)t.insertBefore(e.childNodes[0],e);t.removeChild(e)}(t[n]);return this}function l(e){var t=o(a(e)),n=r.dom.createRng();return n.setStartBefore(t[0]),n.setEndAfter(t[t.length-1]),n}var u=s(i);return{text:u,matches:c,each:e,filter:function(n){var r=[];return e(function(e,t){n(e,t)&&r.push(e)}),c=r,this},reset:function(){return c.splice(0,c.length),t(),this},matchFromElement:function(e){return c[e.getAttribute("data-mce-index")]},elementFromMatch:function(e){return o(a(e))[0]},find:function(e,t){if(u&&e.global)for(;n=e.exec(u);)c.push(function(e,t){if(!e[0])throw new Error("findAndReplaceDOMText cannot handle zero-length matches");return{start:e.index,end:e.index+e[0].length,text:e[0],data:t}}(n,t));return this},add:function(e,t,n){return c.push({start:e,end:e+t,text:u.substr(e,t),data:n}),this},wrap:function(e){return c.length&&function(e,t,n){var r,o,a,i,c,s=[],l=0,u=e,d=0;(t=t.slice(0)).sort(function(e,t){return e.start-t.start}),c=t.shift();e:for(;;){if((f[u.nodeName]||g[u.nodeName]||p(u))&&l++,3===u.nodeType&&(!o&&u.length+l>=c.end?(o=u,i=c.end-l):r&&s.push(u),!r&&u.length+l>c.start&&(r=u,a=c.start-l),l+=u.length),r&&o){if(u=n({startNode:r,startNodeIndex:a,endNode:o,endNodeIndex:i,innerNodes:s,match:c.text,matchIndex:d}),l-=o.length-i,o=r=null,s=[],d++,!(c=t.shift()))break}else if(h[u.nodeName]&&!f[u.nodeName]||!u.firstChild){if(u.nextSibling){u=u.nextSibling;continue}}else if(!p(u)){u=u.firstChild;continue}for(;;){if(u.nextSibling){u=u.nextSibling;break}if(u.parentNode===e)break e;u=u.parentNode}}}(i,c,(o=e,function(e){var t=e.startNode,n=e.endNode,r=e.matchIndex,o=v.doc;if(t===n){var a=t,i=a.parentNode;0<e.startNodeIndex&&(s=o.createTextNode(a.data.substring(0,e.startNodeIndex)),i.insertBefore(s,a));var c=m(e.match,r);return i.insertBefore(c,a),e.endNodeIndex<a.length&&(l=o.createTextNode(a.data.substring(e.endNodeIndex)),i.insertBefore(l,a)),a.parentNode.removeChild(a),c}for(var s=o.createTextNode(t.data.substring(0,e.startNodeIndex)),l=o.createTextNode(n.data.substring(e.endNodeIndex)),u=m(t.data.substring(e.startNodeIndex),r),d=0,f=e.innerNodes.length;d<f;++d){var h=e.innerNodes[d],g=m(h.data,r);h.parentNode.replaceChild(g,h)}var p=m(n.data.substring(0,e.endNodeIndex),r);return(i=t.parentNode).insertBefore(s,t),i.insertBefore(u,t),i.removeChild(t),(i=n.parentNode).insertBefore(p,n),i.insertBefore(l,n),i.removeChild(n),p})),this;function m(e,t){var n=c[t];n.stencil||(n.stencil=o(n));var r=n.stencil.cloneNode(!1);return r.setAttribute("data-mce-index",""+t),e&&r.appendChild(v.doc.createTextNode(e)),r}var o},unwrap:t,replace:function(e,t){var n=l(e);return n.deleteContents(),0<t.length&&n.insertNode(r.dom.doc.createTextNode(t)),n},rangeFromMatch:l,indexOf:a}}function l(e,t){var n;return t.get()||(n=r(e.getBody(),e),t.set(n)),t.get()}function k(e,t,n,r,o,a,i){var c,s,l;(e.getParam("spellchecker_callback")||(c=e,s=t,l=n,function(e,t,r,o){var n={method:e,lang:l.get()},a="";n["addToDictionary"===e?"word":"text"]=t,M.each(n,function(e,t){a&&(a+="&"),a+=t+"="+encodeURIComponent(e)}),h.send({url:new f(s).toAbsolute(u(c)),type:"post",content_type:"application/x-www-form-urlencoded",data:a,success:function(e){var t,n=JSON.parse(e);n?n.error?o(n.error):r(n):(t=c.translate("Server response wasn't proper JSON."),o(t))},error:function(){var e=c.translate("The spelling service was not found: (")+u(c)+c.translate(")");o(e)}})})).call(e.plugins.spellchecker,r,o,a,i)}function R(t,e,n,r,o,a){i(t,n,r)||(t.setProgressState(!0),k(t,e,a,"spellcheck",l(t,r).text,function(e){O(t,n,r,o,e)},function(e){t.notificationManager.open({text:e,type:"error"}),t.setProgressState(!1),i(t,n,r)}),t.focus())}function y(e,t,n){e.dom.select("span.mce-spellchecker-word").length||i(e,t,n)}function S(t,e,n,r,o,a){t.selection.collapse(),a?M.each(t.dom.select("span.mce-spellchecker-word"),function(e){e.getAttribute("data-mce-word")===r&&t.dom.remove(e,!0)}):t.dom.remove(o,!0),y(t,e,n)}function b(e){var t=e.getAttribute("data-mce-index");return"number"==typeof t?""+t:t}function _(g,p,m,v,x,N){g.ui.registry.addContextMenu("spellchecker",{update:function(e){var t=e;if("mce-spellchecker-word"!==t.className)return[];var c,s,n,l,u,d,f,h,r,o,a=function(e,t){var n=[],r=M.toArray(e.getBody().getElementsByTagName("span"));if(r.length)for(var o=0;o<r.length;o++){var a=b(r[o]);null!==a&&a.length&&a===t.toString()&&n.push(r[o])}return n}(g,b(t));if(0<a.length){var i=g.dom.createRng();return i.setStartBefore(a[0]),i.setEndAfter(a[a.length-1]),g.selection.setRng(i),c=g,s=p,n=m,l=v,u=x,d=N,f=t.getAttribute("data-mce-word"),h=a,r=[],o=n.get().suggestions[f],M.each(o,function(e){r.push({text:e,onAction:function(){c.insertContent(c.dom.encode(e)),c.dom.remove(h),y(c,l,u)}})}),n.get().hasDictionarySupport&&(r.push({type:"separator"}),r.push({text:"Add to dictionary",onAction:function(){var t,e=s,n=l,r=u,o=d,a=f,i=h;(t=c).setProgressState(!0),k(t,e,o,"addToDictionary",a,function(){t.setProgressState(!1),t.dom.remove(i,!0),y(t,n,r)},function(e){t.notificationManager.open({text:e,type:"error"}),t.setProgressState(!1)})}})),r.push.apply(r,[{type:"separator"},{text:"Ignore",onAction:function(){S(c,l,u,f,h)}},{text:"Ignore all",onAction:function(){S(c,l,u,f,h,!0)}}]),r}}})}var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),d=Object.hasOwnProperty,M=tinymce.util.Tools.resolve("tinymce.util.Tools"),f=tinymce.util.Tools.resolve("tinymce.util.URI"),h=tinymce.util.Tools.resolve("tinymce.util.XHR"),i=function(e,t,n){var r=e.selection.getBookmark();if(l(e,n).reset(),e.selection.moveToBookmark(r),n.set(null),t.get())return t.set(!1),e.fire("SpellcheckEnd"),!0},O=function(t,e,n,r,o){var a=!!o.dictionary,i=o.words;if(t.setProgressState(!1),function(e){for(var t in e)if(d.call(e,t))return;return 1}(i)){var c=t.translate("No misspellings found.");return t.notificationManager.open({text:c,type:"info"}),void e.set(!1)}r.set({suggestions:i,hasDictionarySupport:a});var s=t.selection.getBookmark();l(t,n).find(E(t)).filter(function(e){return!!i[e.text]}).wrap(function(e){return t.dom.create("span",{class:"mce-spellchecker-word","aria-invalid":"spelling","data-mce-bogus":1,"data-mce-word":e.text})}),t.selection.moveToBookmark(s),e.set(!0),t.fire("SpellcheckStart")},D=function(){return(D=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e}).apply(this,arguments)},F="SpellcheckStart SpellcheckEnd";e.add("spellchecker",function(e,t){if(0==(!!e.hasPlugin("tinymcespellchecker",!0)&&(void 0!==window.console&&window.console.log&&window.console.log("Spell Checker Pro is incompatible with Spell Checker plugin! Remove 'spellchecker' from the 'plugins' option."),!0))){var n=C(!1),r=C((I=(P=e).getParam("language","en"),P.getParam("spellchecker_language",I))),o=C(null),a=C(null);return c=e,s=t,l=n,u=o,d=r,f=a,h=M.map(c.getParam("spellchecker_languages","English=en,Danish=da,Dutch=nl,Finnish=fi,French=fr_FR,German=de,Italian=it,Polish=pl,Portuguese=pt_BR,Spanish=es,Swedish=sv").split(","),function(e){var t=e.split("=");return{name:t[0],value:t[1]}}),g=[],M.each(h,function(e){g.push({selectable:!0,text:e.name,data:e.value})}),p=g,v=D(D({},m={tooltip:"Spellcheck",onAction:i,icon:"spell-check",onSetup:function(e){function t(){e.setActive(l.get())}return c.on(F,t),function(){c.off(F,t)}}}),{type:"splitbutton",select:function(e){return e===d.get()},fetch:function(e){e(M.map(p,function(e){return{type:"choiceitem",value:e.data,text:e.text}}))},onItemAction:function(e,t){d.set(t)}}),1<p.length?c.ui.registry.addSplitButton("spellchecker",v):c.ui.registry.addToggleButton("spellchecker",m),c.ui.registry.addToggleMenuItem("spellchecker",{text:"Spellcheck",icon:"spell-check",onSetup:function(e){function t(){e.setActive(l.get())}return e.setActive(l.get()),c.on(F,t),function(){c.off(F,t)}},onAction:i}),_(e,t,a,n,o,r),b=t,w=n,T=o,A=a,B=r,(S=e).addCommand("mceSpellCheck",function(){R(S,b,w,T,A,B)}),x=e,N=n,k=a,{getTextMatcher:(y=o).get,getWordCharPattern:function(){return E(x)},markErrors:function(e){O(x,N,y,k,e)},getLanguage:r.get}}function i(){R(c,s,l,u,f,d)}var c,s,l,u,d,f,h,g,p,m,v,x,N,k,y,S,b,w,T,A,B,P,I})}();
|
|
@@ -4,24 +4,24 @@
|
|
|
4
4
|
* For LGPL see License.txt in the project root for license information.
|
|
5
5
|
* For commercial licenses see https://www.tiny.cloud/
|
|
6
6
|
*
|
|
7
|
-
* Version: 5.
|
|
7
|
+
* Version: 5.10.0 (2021-10-11)
|
|
8
8
|
*/
|
|
9
9
|
(function () {
|
|
10
10
|
'use strict';
|
|
11
11
|
|
|
12
|
-
var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
|
12
|
+
var global$6 = tinymce.util.Tools.resolve('tinymce.PluginManager');
|
|
13
13
|
|
|
14
|
-
var global$
|
|
14
|
+
var global$5 = tinymce.util.Tools.resolve('tinymce.dom.DOMUtils');
|
|
15
15
|
|
|
16
|
-
var global$
|
|
16
|
+
var global$4 = tinymce.util.Tools.resolve('tinymce.EditorManager');
|
|
17
17
|
|
|
18
18
|
var global$3 = tinymce.util.Tools.resolve('tinymce.Env');
|
|
19
19
|
|
|
20
|
-
var global$
|
|
20
|
+
var global$2 = tinymce.util.Tools.resolve('tinymce.util.Delay');
|
|
21
21
|
|
|
22
|
-
var global$
|
|
22
|
+
var global$1 = tinymce.util.Tools.resolve('tinymce.util.Tools');
|
|
23
23
|
|
|
24
|
-
var global
|
|
24
|
+
var global = tinymce.util.Tools.resolve('tinymce.util.VK');
|
|
25
25
|
|
|
26
26
|
var getTabFocusElements = function (editor) {
|
|
27
27
|
return editor.getParam('tabfocus_elements', ':prev,:next');
|
|
@@ -30,40 +30,41 @@
|
|
|
30
30
|
return editor.getParam('tab_focus', getTabFocusElements(editor));
|
|
31
31
|
};
|
|
32
32
|
|
|
33
|
-
var DOM = global$
|
|
33
|
+
var DOM = global$5.DOM;
|
|
34
34
|
var tabCancel = function (e) {
|
|
35
|
-
if (e.keyCode === global
|
|
35
|
+
if (e.keyCode === global.TAB && !e.ctrlKey && !e.altKey && !e.metaKey) {
|
|
36
36
|
e.preventDefault();
|
|
37
37
|
}
|
|
38
38
|
};
|
|
39
39
|
var setup = function (editor) {
|
|
40
40
|
var tabHandler = function (e) {
|
|
41
|
-
var x
|
|
42
|
-
if (e.keyCode !== global
|
|
41
|
+
var x;
|
|
42
|
+
if (e.keyCode !== global.TAB || e.ctrlKey || e.altKey || e.metaKey || e.isDefaultPrevented()) {
|
|
43
43
|
return;
|
|
44
44
|
}
|
|
45
45
|
var find = function (direction) {
|
|
46
46
|
var el = DOM.select(':input:enabled,*[tabindex]:not(iframe)');
|
|
47
47
|
var canSelectRecursive = function (e) {
|
|
48
|
-
|
|
48
|
+
var castElem = e;
|
|
49
|
+
return e.nodeName === 'BODY' || castElem.type !== 'hidden' && castElem.style.display !== 'none' && castElem.style.visibility !== 'hidden' && canSelectRecursive(e.parentNode);
|
|
49
50
|
};
|
|
50
51
|
var canSelect = function (el) {
|
|
51
|
-
return /INPUT|TEXTAREA|BUTTON/.test(el.tagName) && global$
|
|
52
|
+
return /INPUT|TEXTAREA|BUTTON/.test(el.tagName) && global$4.get(e.id) && el.tabIndex !== -1 && canSelectRecursive(el);
|
|
52
53
|
};
|
|
53
|
-
global$
|
|
54
|
+
global$1.each(el, function (e, i) {
|
|
54
55
|
if (e.id === editor.id) {
|
|
55
56
|
x = i;
|
|
56
57
|
return false;
|
|
57
58
|
}
|
|
58
59
|
});
|
|
59
60
|
if (direction > 0) {
|
|
60
|
-
for (i = x + 1; i < el.length; i++) {
|
|
61
|
+
for (var i = x + 1; i < el.length; i++) {
|
|
61
62
|
if (canSelect(el[i])) {
|
|
62
63
|
return el[i];
|
|
63
64
|
}
|
|
64
65
|
}
|
|
65
66
|
} else {
|
|
66
|
-
for (i = x - 1; i >= 0; i--) {
|
|
67
|
+
for (var i = x - 1; i >= 0; i--) {
|
|
67
68
|
if (canSelect(el[i])) {
|
|
68
69
|
return el[i];
|
|
69
70
|
}
|
|
@@ -71,7 +72,7 @@
|
|
|
71
72
|
}
|
|
72
73
|
return null;
|
|
73
74
|
};
|
|
74
|
-
var v = global$
|
|
75
|
+
var v = global$1.explode(getTabFocus(editor));
|
|
75
76
|
if (v.length === 1) {
|
|
76
77
|
v[1] = v[0];
|
|
77
78
|
v[0] = ':prev';
|
|
@@ -91,11 +92,11 @@
|
|
|
91
92
|
}
|
|
92
93
|
}
|
|
93
94
|
if (el) {
|
|
94
|
-
var focusEditor = global$
|
|
95
|
+
var focusEditor = global$4.get(el.id || el.name);
|
|
95
96
|
if (el.id && focusEditor) {
|
|
96
97
|
focusEditor.focus();
|
|
97
98
|
} else {
|
|
98
|
-
global$
|
|
99
|
+
global$2.setTimeout(function () {
|
|
99
100
|
if (!global$3.webkit) {
|
|
100
101
|
window.focus();
|
|
101
102
|
}
|
|
@@ -119,7 +120,7 @@
|
|
|
119
120
|
};
|
|
120
121
|
|
|
121
122
|
function Plugin () {
|
|
122
|
-
global.add('tabfocus', function (editor) {
|
|
123
|
+
global$6.add('tabfocus', function (editor) {
|
|
123
124
|
setup(editor);
|
|
124
125
|
});
|
|
125
126
|
}
|
|
@@ -4,6 +4,6 @@
|
|
|
4
4
|
* For LGPL see License.txt in the project root for license information.
|
|
5
5
|
* For commercial licenses see https://www.tiny.cloud/
|
|
6
6
|
*
|
|
7
|
-
* Version: 5.
|
|
7
|
+
* Version: 5.10.0 (2021-10-11)
|
|
8
8
|
*/
|
|
9
|
-
!function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),
|
|
9
|
+
!function(){"use strict";function n(e){e.keyCode!==y.TAB||e.ctrlKey||e.altKey||e.metaKey||e.preventDefault()}var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.dom.DOMUtils"),s=tinymce.util.Tools.resolve("tinymce.EditorManager"),o=tinymce.util.Tools.resolve("tinymce.Env"),a=tinymce.util.Tools.resolve("tinymce.util.Delay"),c=tinymce.util.Tools.resolve("tinymce.util.Tools"),y=tinymce.util.Tools.resolve("tinymce.util.VK"),d=t.DOM;e.add("tabfocus",function(e){function t(l){var r,e,t,n,i;l.keyCode!==y.TAB||l.ctrlKey||l.altKey||l.metaKey||l.isDefaultPrevented()||(e=function(e){function t(e){return/INPUT|TEXTAREA|BUTTON/.test(e.tagName)&&s.get(l.id)&&-1!==e.tabIndex&&i(e)}var n=d.select(":input:enabled,*[tabindex]:not(iframe)"),i=function(e){return"BODY"===e.nodeName||"hidden"!==e.type&&"none"!==e.style.display&&"hidden"!==e.style.visibility&&i(e.parentNode)};if(c.each(n,function(e,t){if(e.id===u.id)return r=t,!1}),0<e){for(var o=r+1;o<n.length;o++)if(t(n[o]))return n[o]}else for(o=r-1;0<=o;o--)if(t(n[o]))return n[o];return null},1===(t=c.explode(u.getParam("tab_focus",u.getParam("tabfocus_elements",":prev,:next")))).length&&(t[1]=t[0],t[0]=":prev"),(n=l.shiftKey?":prev"===t[0]?e(-1):d.get(t[0]):":next"===t[1]?e(1):d.get(t[1]))&&(i=s.get(n.id||n.name),n.id&&i?i.focus():a.setTimeout(function(){o.webkit||window.focus(),n.focus()},10),l.preventDefault()))}var u;(u=e).on("init",function(){u.inline&&d.setAttrib(u.getBody(),"tabIndex",null),u.on("keyup",n),o.gecko?u.on("keypress keydown",t):u.on("keydown",t)})})}();
|