@dangl/angular-material-shared 2.5.1-beta0006 → 2.5.1-beta0018

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.
Files changed (246) hide show
  1. package/README.md +1 -7
  2. package/esm2022/lib/angular-material-shared.module.mjs +6 -25
  3. package/esm2022/lib/components/footer/footer.component.mjs +12 -7
  4. package/esm2022/lib/components/header/header.component.mjs +18 -10
  5. package/esm2022/lib/components/tiny-mce/tiny-mce.component.mjs +18 -21
  6. package/fesm2022/dangl-angular-material-shared.mjs +45 -55
  7. package/fesm2022/dangl-angular-material-shared.mjs.map +1 -1
  8. package/lib/angular-material-shared.module.d.ts +5 -9
  9. package/lib/components/footer/footer.component.d.ts +1 -1
  10. package/lib/components/header/header.component.d.ts +1 -1
  11. package/lib/components/tiny-mce/tiny-mce.component.d.ts +7 -8
  12. package/package.json +1 -1
  13. package/tinymce-assets/icons/default/icons.js +187 -171
  14. package/tinymce-assets/icons/default/icons.min.js +1 -1
  15. package/tinymce-assets/langs/it.js +1 -1
  16. package/tinymce-assets/plugins/accordion/index.js +7 -0
  17. package/tinymce-assets/plugins/accordion/plugin.js +1054 -0
  18. package/tinymce-assets/plugins/accordion/plugin.min.js +4 -0
  19. package/tinymce-assets/plugins/advlist/plugin.js +185 -187
  20. package/tinymce-assets/plugins/advlist/plugin.min.js +2 -7
  21. package/tinymce-assets/plugins/anchor/plugin.js +79 -81
  22. package/tinymce-assets/plugins/anchor/plugin.min.js +2 -7
  23. package/tinymce-assets/plugins/autolink/plugin.js +209 -194
  24. package/tinymce-assets/plugins/autolink/plugin.min.js +2 -7
  25. package/tinymce-assets/plugins/autoresize/plugin.js +110 -102
  26. package/tinymce-assets/plugins/autoresize/plugin.min.js +2 -7
  27. package/tinymce-assets/plugins/autosave/plugin.js +125 -104
  28. package/tinymce-assets/plugins/autosave/plugin.min.js +2 -7
  29. package/tinymce-assets/plugins/charmap/plugin.js +275 -313
  30. package/tinymce-assets/plugins/charmap/plugin.min.js +2 -7
  31. package/tinymce-assets/plugins/code/plugin.js +18 -24
  32. package/tinymce-assets/plugins/code/plugin.min.js +2 -7
  33. package/tinymce-assets/plugins/codesample/plugin.js +2075 -2074
  34. package/tinymce-assets/plugins/codesample/plugin.min.js +2 -7
  35. package/tinymce-assets/plugins/directionality/plugin.js +247 -305
  36. package/tinymce-assets/plugins/directionality/plugin.min.js +2 -7
  37. package/tinymce-assets/plugins/emoticons/js/emojiimages.js +1 -9424
  38. package/tinymce-assets/plugins/emoticons/js/emojiimages.min.js +1 -1
  39. package/tinymce-assets/plugins/emoticons/js/emojis.js +1 -9423
  40. package/tinymce-assets/plugins/emoticons/js/emojis.min.js +1 -1
  41. package/tinymce-assets/plugins/emoticons/plugin.js +334 -374
  42. package/tinymce-assets/plugins/emoticons/plugin.min.js +2 -7
  43. package/tinymce-assets/plugins/fullscreen/plugin.js +740 -837
  44. package/tinymce-assets/plugins/fullscreen/plugin.min.js +2 -7
  45. package/tinymce-assets/plugins/help/js/i18n/keynav/ar.js +90 -0
  46. package/tinymce-assets/plugins/help/js/i18n/keynav/bg_BG.js +90 -0
  47. package/tinymce-assets/plugins/help/js/i18n/keynav/ca.js +90 -0
  48. package/tinymce-assets/plugins/help/js/i18n/keynav/cs.js +90 -0
  49. package/tinymce-assets/plugins/help/js/i18n/keynav/da.js +90 -0
  50. package/tinymce-assets/plugins/help/js/i18n/keynav/de.js +90 -0
  51. package/tinymce-assets/plugins/help/js/i18n/keynav/el.js +90 -0
  52. package/tinymce-assets/plugins/help/js/i18n/keynav/en.js +90 -0
  53. package/tinymce-assets/plugins/help/js/i18n/keynav/es.js +90 -0
  54. package/tinymce-assets/plugins/help/js/i18n/keynav/eu.js +90 -0
  55. package/tinymce-assets/plugins/help/js/i18n/keynav/fa.js +90 -0
  56. package/tinymce-assets/plugins/help/js/i18n/keynav/fi.js +90 -0
  57. package/tinymce-assets/plugins/help/js/i18n/keynav/fr_FR.js +90 -0
  58. package/tinymce-assets/plugins/help/js/i18n/keynav/he_IL.js +90 -0
  59. package/tinymce-assets/plugins/help/js/i18n/keynav/hi.js +90 -0
  60. package/tinymce-assets/plugins/help/js/i18n/keynav/hr.js +90 -0
  61. package/tinymce-assets/plugins/help/js/i18n/keynav/hu_HU.js +90 -0
  62. package/tinymce-assets/plugins/help/js/i18n/keynav/id.js +90 -0
  63. package/tinymce-assets/plugins/help/js/i18n/keynav/it.js +90 -0
  64. package/tinymce-assets/plugins/help/js/i18n/keynav/ja.js +90 -0
  65. package/tinymce-assets/plugins/help/js/i18n/keynav/kk.js +90 -0
  66. package/tinymce-assets/plugins/help/js/i18n/keynav/ko_KR.js +90 -0
  67. package/tinymce-assets/plugins/help/js/i18n/keynav/ms.js +90 -0
  68. package/tinymce-assets/plugins/help/js/i18n/keynav/nb_NO.js +90 -0
  69. package/tinymce-assets/plugins/help/js/i18n/keynav/nl.js +90 -0
  70. package/tinymce-assets/plugins/help/js/i18n/keynav/pl.js +90 -0
  71. package/tinymce-assets/plugins/help/js/i18n/keynav/pt_BR.js +90 -0
  72. package/tinymce-assets/plugins/help/js/i18n/keynav/pt_PT.js +90 -0
  73. package/tinymce-assets/plugins/help/js/i18n/keynav/ro.js +90 -0
  74. package/tinymce-assets/plugins/help/js/i18n/keynav/ru.js +90 -0
  75. package/tinymce-assets/plugins/help/js/i18n/keynav/sk.js +90 -0
  76. package/tinymce-assets/plugins/help/js/i18n/keynav/sl_SI.js +90 -0
  77. package/tinymce-assets/plugins/help/js/i18n/keynav/sv_SE.js +90 -0
  78. package/tinymce-assets/plugins/help/js/i18n/keynav/th_TH.js +90 -0
  79. package/tinymce-assets/plugins/help/js/i18n/keynav/tr.js +90 -0
  80. package/tinymce-assets/plugins/help/js/i18n/keynav/uk.js +90 -0
  81. package/tinymce-assets/plugins/help/js/i18n/keynav/vi.js +90 -0
  82. package/tinymce-assets/plugins/help/js/i18n/keynav/zh_CN.js +84 -0
  83. package/tinymce-assets/plugins/help/js/i18n/keynav/zh_TW.js +90 -0
  84. package/tinymce-assets/plugins/help/plugin.js +411 -355
  85. package/tinymce-assets/plugins/help/plugin.min.js +2 -7
  86. package/tinymce-assets/plugins/image/plugin.js +876 -1037
  87. package/tinymce-assets/plugins/image/plugin.min.js +2 -7
  88. package/tinymce-assets/plugins/importcss/plugin.js +146 -144
  89. package/tinymce-assets/plugins/importcss/plugin.min.js +2 -7
  90. package/tinymce-assets/plugins/insertdatetime/plugin.js +93 -88
  91. package/tinymce-assets/plugins/insertdatetime/plugin.min.js +2 -7
  92. package/tinymce-assets/plugins/link/plugin.js +718 -768
  93. package/tinymce-assets/plugins/link/plugin.min.js +2 -7
  94. package/tinymce-assets/plugins/lists/plugin.js +1235 -1375
  95. package/tinymce-assets/plugins/lists/plugin.min.js +2 -7
  96. package/tinymce-assets/plugins/media/plugin.js +614 -756
  97. package/tinymce-assets/plugins/media/plugin.min.js +2 -7
  98. package/tinymce-assets/plugins/nonbreaking/plugin.js +71 -48
  99. package/tinymce-assets/plugins/nonbreaking/plugin.min.js +2 -7
  100. package/tinymce-assets/plugins/pagebreak/plugin.js +53 -40
  101. package/tinymce-assets/plugins/pagebreak/plugin.min.js +2 -7
  102. package/tinymce-assets/plugins/preview/plugin.js +36 -65
  103. package/tinymce-assets/plugins/preview/plugin.min.js +2 -7
  104. package/tinymce-assets/plugins/quickbars/plugin.js +304 -331
  105. package/tinymce-assets/plugins/quickbars/plugin.min.js +2 -7
  106. package/tinymce-assets/plugins/save/plugin.js +49 -50
  107. package/tinymce-assets/plugins/save/plugin.min.js +2 -7
  108. package/tinymce-assets/plugins/searchreplace/plugin.js +499 -571
  109. package/tinymce-assets/plugins/searchreplace/plugin.min.js +2 -7
  110. package/tinymce-assets/plugins/table/plugin.js +2572 -10617
  111. package/tinymce-assets/plugins/table/plugin.min.js +2 -7
  112. package/tinymce-assets/plugins/visualblocks/plugin.js +41 -46
  113. package/tinymce-assets/plugins/visualblocks/plugin.min.js +2 -7
  114. package/tinymce-assets/plugins/visualchars/plugin.js +346 -312
  115. package/tinymce-assets/plugins/visualchars/plugin.min.js +2 -7
  116. package/tinymce-assets/plugins/wordcount/plugin.js +159 -179
  117. package/tinymce-assets/plugins/wordcount/plugin.min.js +2 -7
  118. package/tinymce-assets/skins/content/dark/content.css +2 -8
  119. package/tinymce-assets/skins/content/dark/content.js +2 -0
  120. package/tinymce-assets/skins/content/dark/content.min.css +1 -7
  121. package/tinymce-assets/skins/content/default/content.css +0 -6
  122. package/tinymce-assets/skins/content/default/content.js +2 -0
  123. package/tinymce-assets/skins/content/default/content.min.css +0 -6
  124. package/tinymce-assets/skins/content/document/content.css +0 -6
  125. package/tinymce-assets/skins/content/document/content.js +2 -0
  126. package/tinymce-assets/skins/content/document/content.min.css +0 -6
  127. package/tinymce-assets/skins/content/tinymce-5/content.css +61 -0
  128. package/tinymce-assets/skins/content/tinymce-5/content.js +2 -0
  129. package/tinymce-assets/skins/content/tinymce-5/content.min.css +1 -0
  130. package/tinymce-assets/skins/content/tinymce-5-dark/content.css +66 -0
  131. package/tinymce-assets/skins/content/tinymce-5-dark/content.js +2 -0
  132. package/tinymce-assets/skins/content/tinymce-5-dark/content.min.css +1 -0
  133. package/tinymce-assets/skins/content/writer/content.css +0 -6
  134. package/tinymce-assets/skins/content/writer/content.js +2 -0
  135. package/tinymce-assets/skins/content/writer/content.min.css +0 -6
  136. package/tinymce-assets/skins/ui/oxide/content.css +73 -20
  137. package/tinymce-assets/skins/ui/oxide/content.inline.css +73 -20
  138. package/tinymce-assets/skins/ui/oxide/content.inline.js +2 -0
  139. package/tinymce-assets/skins/ui/oxide/content.inline.min.css +1 -7
  140. package/tinymce-assets/skins/ui/oxide/content.js +2 -0
  141. package/tinymce-assets/skins/ui/oxide/content.min.css +1 -7
  142. package/tinymce-assets/skins/ui/oxide/skin.css +1480 -435
  143. package/tinymce-assets/skins/ui/oxide/skin.js +2 -0
  144. package/tinymce-assets/skins/ui/oxide/skin.min.css +1 -7
  145. package/tinymce-assets/skins/ui/oxide/skin.shadowdom.css +1 -8
  146. package/tinymce-assets/skins/ui/oxide/skin.shadowdom.js +2 -0
  147. package/tinymce-assets/skins/ui/oxide/skin.shadowdom.min.css +1 -7
  148. package/tinymce-assets/skins/ui/oxide-dark/content.css +71 -19
  149. package/tinymce-assets/skins/ui/oxide-dark/content.inline.css +73 -20
  150. package/tinymce-assets/skins/ui/oxide-dark/content.inline.js +2 -0
  151. package/tinymce-assets/skins/ui/oxide-dark/content.inline.min.css +1 -7
  152. package/tinymce-assets/skins/ui/oxide-dark/content.js +2 -0
  153. package/tinymce-assets/skins/ui/oxide-dark/content.min.css +1 -7
  154. package/tinymce-assets/skins/ui/oxide-dark/skin.css +1498 -450
  155. package/tinymce-assets/skins/ui/oxide-dark/skin.js +2 -0
  156. package/tinymce-assets/skins/ui/oxide-dark/skin.min.css +1 -7
  157. package/tinymce-assets/skins/ui/oxide-dark/skin.shadowdom.css +1 -8
  158. package/tinymce-assets/skins/ui/oxide-dark/skin.shadowdom.js +2 -0
  159. package/tinymce-assets/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -7
  160. package/tinymce-assets/skins/ui/tinymce-5/content.css +785 -0
  161. package/tinymce-assets/skins/ui/tinymce-5/content.inline.css +779 -0
  162. package/tinymce-assets/skins/ui/tinymce-5/content.inline.js +2 -0
  163. package/tinymce-assets/skins/ui/tinymce-5/content.inline.min.css +1 -0
  164. package/tinymce-assets/skins/ui/tinymce-5/content.js +2 -0
  165. package/tinymce-assets/skins/ui/tinymce-5/content.min.css +1 -0
  166. package/tinymce-assets/skins/ui/tinymce-5/skin.css +4185 -0
  167. package/tinymce-assets/skins/ui/tinymce-5/skin.js +2 -0
  168. package/tinymce-assets/skins/ui/tinymce-5/skin.min.css +1 -0
  169. package/tinymce-assets/skins/ui/tinymce-5/skin.shadowdom.css +30 -0
  170. package/tinymce-assets/skins/ui/tinymce-5/skin.shadowdom.js +2 -0
  171. package/tinymce-assets/skins/ui/tinymce-5/skin.shadowdom.min.css +1 -0
  172. package/tinymce-assets/skins/ui/tinymce-5-dark/content.css +766 -0
  173. package/tinymce-assets/skins/ui/tinymce-5-dark/content.inline.css +779 -0
  174. package/tinymce-assets/skins/ui/tinymce-5-dark/content.inline.js +2 -0
  175. package/tinymce-assets/skins/ui/tinymce-5-dark/content.inline.min.css +1 -0
  176. package/tinymce-assets/skins/ui/tinymce-5-dark/content.js +2 -0
  177. package/tinymce-assets/skins/ui/tinymce-5-dark/content.min.css +1 -0
  178. package/tinymce-assets/skins/ui/tinymce-5-dark/skin.css +4185 -0
  179. package/tinymce-assets/skins/ui/tinymce-5-dark/skin.js +2 -0
  180. package/tinymce-assets/skins/ui/tinymce-5-dark/skin.min.css +1 -0
  181. package/tinymce-assets/skins/ui/tinymce-5-dark/skin.shadowdom.css +30 -0
  182. package/tinymce-assets/skins/ui/tinymce-5-dark/skin.shadowdom.js +2 -0
  183. package/tinymce-assets/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +1 -0
  184. package/tinymce-assets/themes/silver/theme.js +25226 -28188
  185. package/tinymce-assets/themes/silver/theme.min.js +2 -7
  186. package/tinymce-assets/plugins/bbcode/index.js +0 -7
  187. package/tinymce-assets/plugins/bbcode/plugin.js +0 -99
  188. package/tinymce-assets/plugins/bbcode/plugin.min.js +0 -9
  189. package/tinymce-assets/plugins/colorpicker/index.js +0 -7
  190. package/tinymce-assets/plugins/colorpicker/plugin.js +0 -21
  191. package/tinymce-assets/plugins/colorpicker/plugin.min.js +0 -9
  192. package/tinymce-assets/plugins/contextmenu/index.js +0 -7
  193. package/tinymce-assets/plugins/contextmenu/plugin.js +0 -21
  194. package/tinymce-assets/plugins/contextmenu/plugin.min.js +0 -9
  195. package/tinymce-assets/plugins/fullpage/index.js +0 -7
  196. package/tinymce-assets/plugins/fullpage/plugin.js +0 -544
  197. package/tinymce-assets/plugins/fullpage/plugin.min.js +0 -9
  198. package/tinymce-assets/plugins/hr/index.js +0 -7
  199. package/tinymce-assets/plugins/hr/plugin.js +0 -45
  200. package/tinymce-assets/plugins/hr/plugin.min.js +0 -9
  201. package/tinymce-assets/plugins/imagetools/index.js +0 -7
  202. package/tinymce-assets/plugins/imagetools/plugin.js +0 -1531
  203. package/tinymce-assets/plugins/imagetools/plugin.min.js +0 -9
  204. package/tinymce-assets/plugins/legacyoutput/index.js +0 -7
  205. package/tinymce-assets/plugins/legacyoutput/plugin.js +0 -199
  206. package/tinymce-assets/plugins/legacyoutput/plugin.min.js +0 -9
  207. package/tinymce-assets/plugins/noneditable/index.js +0 -7
  208. package/tinymce-assets/plugins/noneditable/plugin.js +0 -117
  209. package/tinymce-assets/plugins/noneditable/plugin.min.js +0 -9
  210. package/tinymce-assets/plugins/paste/index.js +0 -7
  211. package/tinymce-assets/plugins/paste/plugin.js +0 -1803
  212. package/tinymce-assets/plugins/paste/plugin.min.js +0 -9
  213. package/tinymce-assets/plugins/print/index.js +0 -7
  214. package/tinymce-assets/plugins/print/plugin.js +0 -52
  215. package/tinymce-assets/plugins/print/plugin.min.js +0 -9
  216. package/tinymce-assets/plugins/spellchecker/index.js +0 -7
  217. package/tinymce-assets/plugins/spellchecker/plugin.js +0 -730
  218. package/tinymce-assets/plugins/spellchecker/plugin.min.js +0 -9
  219. package/tinymce-assets/plugins/tabfocus/index.js +0 -7
  220. package/tinymce-assets/plugins/tabfocus/plugin.js +0 -130
  221. package/tinymce-assets/plugins/tabfocus/plugin.min.js +0 -9
  222. package/tinymce-assets/plugins/template/index.js +0 -7
  223. package/tinymce-assets/plugins/template/plugin.js +0 -591
  224. package/tinymce-assets/plugins/template/plugin.min.js +0 -9
  225. package/tinymce-assets/plugins/textcolor/index.js +0 -7
  226. package/tinymce-assets/plugins/textcolor/plugin.js +0 -21
  227. package/tinymce-assets/plugins/textcolor/plugin.min.js +0 -9
  228. package/tinymce-assets/plugins/textpattern/index.js +0 -7
  229. package/tinymce-assets/plugins/textpattern/plugin.js +0 -1374
  230. package/tinymce-assets/plugins/textpattern/plugin.min.js +0 -9
  231. package/tinymce-assets/plugins/toc/index.js +0 -7
  232. package/tinymce-assets/plugins/toc/plugin.js +0 -238
  233. package/tinymce-assets/plugins/toc/plugin.min.js +0 -9
  234. package/tinymce-assets/skins/ui/oxide/content.mobile.css +0 -29
  235. package/tinymce-assets/skins/ui/oxide/content.mobile.min.css +0 -7
  236. package/tinymce-assets/skins/ui/oxide/fonts/tinymce-mobile.woff +0 -0
  237. package/tinymce-assets/skins/ui/oxide/skin.mobile.css +0 -673
  238. package/tinymce-assets/skins/ui/oxide/skin.mobile.min.css +0 -7
  239. package/tinymce-assets/skins/ui/oxide-dark/content.mobile.css +0 -29
  240. package/tinymce-assets/skins/ui/oxide-dark/content.mobile.min.css +0 -7
  241. package/tinymce-assets/skins/ui/oxide-dark/fonts/tinymce-mobile.woff +0 -0
  242. package/tinymce-assets/skins/ui/oxide-dark/skin.mobile.css +0 -673
  243. package/tinymce-assets/skins/ui/oxide-dark/skin.mobile.min.css +0 -7
  244. package/tinymce-assets/themes/mobile/index.js +0 -7
  245. package/tinymce-assets/themes/mobile/theme.js +0 -13130
  246. package/tinymce-assets/themes/mobile/theme.min.js +0 -9
@@ -1,591 +0,0 @@
1
- /**
2
- * Copyright (c) Tiny Technologies, Inc. All rights reserved.
3
- * Licensed under the LGPL or a commercial license.
4
- * For LGPL see License.txt in the project root for license information.
5
- * For commercial licenses see https://www.tiny.cloud/
6
- *
7
- * Version: 5.10.9 (2023-11-15)
8
- */
9
- (function () {
10
- 'use strict';
11
-
12
- var global$4 = tinymce.util.Tools.resolve('tinymce.PluginManager');
13
-
14
- var typeOf = function (x) {
15
- var t = typeof x;
16
- if (x === null) {
17
- return 'null';
18
- } else if (t === 'object' && (Array.prototype.isPrototypeOf(x) || x.constructor && x.constructor.name === 'Array')) {
19
- return 'array';
20
- } else if (t === 'object' && (String.prototype.isPrototypeOf(x) || x.constructor && x.constructor.name === 'String')) {
21
- return 'string';
22
- } else {
23
- return t;
24
- }
25
- };
26
- var isType = function (type) {
27
- return function (value) {
28
- return typeOf(value) === type;
29
- };
30
- };
31
- var isSimpleType = function (type) {
32
- return function (value) {
33
- return typeof value === type;
34
- };
35
- };
36
- var isString = isType('string');
37
- var isFunction = isSimpleType('function');
38
-
39
- var noop = function () {
40
- };
41
- var constant = function (value) {
42
- return function () {
43
- return value;
44
- };
45
- };
46
- var identity = function (x) {
47
- return x;
48
- };
49
- function curry(fn) {
50
- var initialArgs = [];
51
- for (var _i = 1; _i < arguments.length; _i++) {
52
- initialArgs[_i - 1] = arguments[_i];
53
- }
54
- return function () {
55
- var restArgs = [];
56
- for (var _i = 0; _i < arguments.length; _i++) {
57
- restArgs[_i] = arguments[_i];
58
- }
59
- var all = initialArgs.concat(restArgs);
60
- return fn.apply(null, all);
61
- };
62
- }
63
- var never = constant(false);
64
- var always = constant(true);
65
-
66
- var global$3 = tinymce.util.Tools.resolve('tinymce.util.Tools');
67
-
68
- var global$2 = tinymce.util.Tools.resolve('tinymce.util.XHR');
69
-
70
- var getCreationDateClasses = function (editor) {
71
- return editor.getParam('template_cdate_classes', 'cdate');
72
- };
73
- var getModificationDateClasses = function (editor) {
74
- return editor.getParam('template_mdate_classes', 'mdate');
75
- };
76
- var getSelectedContentClasses = function (editor) {
77
- return editor.getParam('template_selected_content_classes', 'selcontent');
78
- };
79
- var getPreviewReplaceValues = function (editor) {
80
- return editor.getParam('template_preview_replace_values');
81
- };
82
- var getContentStyle = function (editor) {
83
- return editor.getParam('content_style', '', 'string');
84
- };
85
- var shouldUseContentCssCors = function (editor) {
86
- return editor.getParam('content_css_cors', false, 'boolean');
87
- };
88
- var getTemplateReplaceValues = function (editor) {
89
- return editor.getParam('template_replace_values');
90
- };
91
- var getTemplates = function (editor) {
92
- return editor.getParam('templates');
93
- };
94
- var getCdateFormat = function (editor) {
95
- return editor.getParam('template_cdate_format', editor.translate('%Y-%m-%d'));
96
- };
97
- var getMdateFormat = function (editor) {
98
- return editor.getParam('template_mdate_format', editor.translate('%Y-%m-%d'));
99
- };
100
- var getBodyClassFromHash = function (editor) {
101
- var bodyClass = editor.getParam('body_class', '', 'hash');
102
- return bodyClass[editor.id] || '';
103
- };
104
- var getBodyClass = function (editor) {
105
- var bodyClass = editor.getParam('body_class', '', 'string');
106
- if (bodyClass.indexOf('=') === -1) {
107
- return bodyClass;
108
- } else {
109
- return getBodyClassFromHash(editor);
110
- }
111
- };
112
-
113
- var addZeros = function (value, len) {
114
- value = '' + value;
115
- if (value.length < len) {
116
- for (var i = 0; i < len - value.length; i++) {
117
- value = '0' + value;
118
- }
119
- }
120
- return value;
121
- };
122
- var getDateTime = function (editor, fmt, date) {
123
- if (date === void 0) {
124
- date = new Date();
125
- }
126
- var daysShort = 'Sun Mon Tue Wed Thu Fri Sat Sun'.split(' ');
127
- var daysLong = 'Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sunday'.split(' ');
128
- var monthsShort = 'Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec'.split(' ');
129
- var monthsLong = 'January February March April May June July August September October November December'.split(' ');
130
- fmt = fmt.replace('%D', '%m/%d/%Y');
131
- fmt = fmt.replace('%r', '%I:%M:%S %p');
132
- fmt = fmt.replace('%Y', '' + date.getFullYear());
133
- fmt = fmt.replace('%y', '' + date.getYear());
134
- fmt = fmt.replace('%m', addZeros(date.getMonth() + 1, 2));
135
- fmt = fmt.replace('%d', addZeros(date.getDate(), 2));
136
- fmt = fmt.replace('%H', '' + addZeros(date.getHours(), 2));
137
- fmt = fmt.replace('%M', '' + addZeros(date.getMinutes(), 2));
138
- fmt = fmt.replace('%S', '' + addZeros(date.getSeconds(), 2));
139
- fmt = fmt.replace('%I', '' + ((date.getHours() + 11) % 12 + 1));
140
- fmt = fmt.replace('%p', '' + (date.getHours() < 12 ? 'AM' : 'PM'));
141
- fmt = fmt.replace('%B', '' + editor.translate(monthsLong[date.getMonth()]));
142
- fmt = fmt.replace('%b', '' + editor.translate(monthsShort[date.getMonth()]));
143
- fmt = fmt.replace('%A', '' + editor.translate(daysLong[date.getDay()]));
144
- fmt = fmt.replace('%a', '' + editor.translate(daysShort[date.getDay()]));
145
- fmt = fmt.replace('%%', '%');
146
- return fmt;
147
- };
148
-
149
- var createTemplateList = function (editor, callback) {
150
- return function () {
151
- var templateList = getTemplates(editor);
152
- if (isFunction(templateList)) {
153
- templateList(callback);
154
- } else if (isString(templateList)) {
155
- global$2.send({
156
- url: templateList,
157
- success: function (text) {
158
- callback(JSON.parse(text));
159
- }
160
- });
161
- } else {
162
- callback(templateList);
163
- }
164
- };
165
- };
166
- var replaceTemplateValues = function (html, templateValues) {
167
- global$3.each(templateValues, function (v, k) {
168
- if (isFunction(v)) {
169
- v = v(k);
170
- }
171
- html = html.replace(new RegExp('\\{\\$' + k + '\\}', 'g'), v);
172
- });
173
- return html;
174
- };
175
- var replaceVals = function (editor, scope) {
176
- var dom = editor.dom, vl = getTemplateReplaceValues(editor);
177
- global$3.each(dom.select('*', scope), function (e) {
178
- global$3.each(vl, function (v, k) {
179
- if (dom.hasClass(e, k)) {
180
- if (isFunction(v)) {
181
- v(e);
182
- }
183
- }
184
- });
185
- });
186
- };
187
- var hasClass = function (n, c) {
188
- return new RegExp('\\b' + c + '\\b', 'g').test(n.className);
189
- };
190
- var insertTemplate = function (editor, _ui, html) {
191
- var dom = editor.dom;
192
- var sel = editor.selection.getContent();
193
- html = replaceTemplateValues(html, getTemplateReplaceValues(editor));
194
- var el = dom.create('div', null, html);
195
- var n = dom.select('.mceTmpl', el);
196
- if (n && n.length > 0) {
197
- el = dom.create('div', null);
198
- el.appendChild(n[0].cloneNode(true));
199
- }
200
- global$3.each(dom.select('*', el), function (n) {
201
- if (hasClass(n, getCreationDateClasses(editor).replace(/\s+/g, '|'))) {
202
- n.innerHTML = getDateTime(editor, getCdateFormat(editor));
203
- }
204
- if (hasClass(n, getModificationDateClasses(editor).replace(/\s+/g, '|'))) {
205
- n.innerHTML = getDateTime(editor, getMdateFormat(editor));
206
- }
207
- if (hasClass(n, getSelectedContentClasses(editor).replace(/\s+/g, '|'))) {
208
- n.innerHTML = sel;
209
- }
210
- });
211
- replaceVals(editor, el);
212
- editor.execCommand('mceInsertContent', false, el.innerHTML);
213
- editor.addVisual();
214
- };
215
-
216
- var none = function () {
217
- return NONE;
218
- };
219
- var NONE = function () {
220
- var call = function (thunk) {
221
- return thunk();
222
- };
223
- var id = identity;
224
- var me = {
225
- fold: function (n, _s) {
226
- return n();
227
- },
228
- isSome: never,
229
- isNone: always,
230
- getOr: id,
231
- getOrThunk: call,
232
- getOrDie: function (msg) {
233
- throw new Error(msg || 'error: getOrDie called on none.');
234
- },
235
- getOrNull: constant(null),
236
- getOrUndefined: constant(undefined),
237
- or: id,
238
- orThunk: call,
239
- map: none,
240
- each: noop,
241
- bind: none,
242
- exists: never,
243
- forall: always,
244
- filter: function () {
245
- return none();
246
- },
247
- toArray: function () {
248
- return [];
249
- },
250
- toString: constant('none()')
251
- };
252
- return me;
253
- }();
254
- var some = function (a) {
255
- var constant_a = constant(a);
256
- var self = function () {
257
- return me;
258
- };
259
- var bind = function (f) {
260
- return f(a);
261
- };
262
- var me = {
263
- fold: function (n, s) {
264
- return s(a);
265
- },
266
- isSome: always,
267
- isNone: never,
268
- getOr: constant_a,
269
- getOrThunk: constant_a,
270
- getOrDie: constant_a,
271
- getOrNull: constant_a,
272
- getOrUndefined: constant_a,
273
- or: self,
274
- orThunk: self,
275
- map: function (f) {
276
- return some(f(a));
277
- },
278
- each: function (f) {
279
- f(a);
280
- },
281
- bind: bind,
282
- exists: bind,
283
- forall: bind,
284
- filter: function (f) {
285
- return f(a) ? me : NONE;
286
- },
287
- toArray: function () {
288
- return [a];
289
- },
290
- toString: function () {
291
- return 'some(' + a + ')';
292
- }
293
- };
294
- return me;
295
- };
296
- var from = function (value) {
297
- return value === null || value === undefined ? NONE : some(value);
298
- };
299
- var Optional = {
300
- some: some,
301
- none: none,
302
- from: from
303
- };
304
-
305
- var map = function (xs, f) {
306
- var len = xs.length;
307
- var r = new Array(len);
308
- for (var i = 0; i < len; i++) {
309
- var x = xs[i];
310
- r[i] = f(x, i);
311
- }
312
- return r;
313
- };
314
- var findUntil = function (xs, pred, until) {
315
- for (var i = 0, len = xs.length; i < len; i++) {
316
- var x = xs[i];
317
- if (pred(x, i)) {
318
- return Optional.some(x);
319
- } else if (until(x, i)) {
320
- break;
321
- }
322
- }
323
- return Optional.none();
324
- };
325
- var find = function (xs, pred) {
326
- return findUntil(xs, pred, never);
327
- };
328
-
329
- var global$1 = tinymce.util.Tools.resolve('tinymce.Env');
330
-
331
- var global = tinymce.util.Tools.resolve('tinymce.util.Promise');
332
-
333
- var hasOwnProperty = Object.hasOwnProperty;
334
- var get = function (obj, key) {
335
- return has(obj, key) ? Optional.from(obj[key]) : Optional.none();
336
- };
337
- var has = function (obj, key) {
338
- return hasOwnProperty.call(obj, key);
339
- };
340
-
341
- var entitiesAttr = {
342
- '"': '&quot;',
343
- '<': '&lt;',
344
- '>': '&gt;',
345
- '&': '&amp;',
346
- '\'': '&#039;'
347
- };
348
- var htmlEscape = function (html) {
349
- return html.replace(/["'<>&]/g, function (match) {
350
- return get(entitiesAttr, match).getOr(match);
351
- });
352
- };
353
-
354
- var getPreviewContent = function (editor, html) {
355
- if (html.indexOf('<html>') === -1) {
356
- var contentCssEntries_1 = '';
357
- var contentStyle = getContentStyle(editor);
358
- var cors_1 = shouldUseContentCssCors(editor) ? ' crossorigin="anonymous"' : '';
359
- global$3.each(editor.contentCSS, function (url) {
360
- contentCssEntries_1 += '<link type="text/css" rel="stylesheet" href="' + editor.documentBaseURI.toAbsolute(url) + '"' + cors_1 + '>';
361
- });
362
- if (contentStyle) {
363
- contentCssEntries_1 += '<style type="text/css">' + contentStyle + '</style>';
364
- }
365
- var bodyClass = getBodyClass(editor);
366
- var encode = editor.dom.encode;
367
- var isMetaKeyPressed = global$1.mac ? 'e.metaKey' : 'e.ctrlKey && !e.altKey';
368
- var preventClicksOnLinksScript = '<script>' + 'document.addEventListener && document.addEventListener("click", function(e) {' + 'for (var elm = e.target; elm; elm = elm.parentNode) {' + 'if (elm.nodeName === "A" && !(' + isMetaKeyPressed + ')) {' + 'e.preventDefault();' + '}' + '}' + '}, false);' + '</script> ';
369
- var directionality = editor.getBody().dir;
370
- var dirAttr = directionality ? ' dir="' + encode(directionality) + '"' : '';
371
- html = '<!DOCTYPE html>' + '<html>' + '<head>' + '<base href="' + encode(editor.documentBaseURI.getURI()) + '">' + contentCssEntries_1 + preventClicksOnLinksScript + '</head>' + '<body class="' + encode(bodyClass) + '"' + dirAttr + '>' + html + '</body>' + '</html>';
372
- }
373
- return replaceTemplateValues(html, getPreviewReplaceValues(editor));
374
- };
375
- var open = function (editor, templateList) {
376
- var createTemplates = function () {
377
- if (!templateList || templateList.length === 0) {
378
- var message = editor.translate('No templates defined.');
379
- editor.notificationManager.open({
380
- text: message,
381
- type: 'info'
382
- });
383
- return Optional.none();
384
- }
385
- return Optional.from(global$3.map(templateList, function (template, index) {
386
- var isUrlTemplate = function (t) {
387
- return t.url !== undefined;
388
- };
389
- return {
390
- selected: index === 0,
391
- text: template.title,
392
- value: {
393
- url: isUrlTemplate(template) ? Optional.from(template.url) : Optional.none(),
394
- content: !isUrlTemplate(template) ? Optional.from(template.content) : Optional.none(),
395
- description: template.description
396
- }
397
- };
398
- }));
399
- };
400
- var createSelectBoxItems = function (templates) {
401
- return map(templates, function (t) {
402
- return {
403
- text: t.text,
404
- value: t.text
405
- };
406
- });
407
- };
408
- var findTemplate = function (templates, templateTitle) {
409
- return find(templates, function (t) {
410
- return t.text === templateTitle;
411
- });
412
- };
413
- var loadFailedAlert = function (api) {
414
- editor.windowManager.alert('Could not load the specified template.', function () {
415
- return api.focus('template');
416
- });
417
- };
418
- var getTemplateContent = function (t) {
419
- return new global(function (resolve, reject) {
420
- t.value.url.fold(function () {
421
- return resolve(t.value.content.getOr(''));
422
- }, function (url) {
423
- return global$2.send({
424
- url: url,
425
- success: function (html) {
426
- resolve(html);
427
- },
428
- error: function (e) {
429
- reject(e);
430
- }
431
- });
432
- });
433
- });
434
- };
435
- var onChange = function (templates, updateDialog) {
436
- return function (api, change) {
437
- if (change.name === 'template') {
438
- var newTemplateTitle = api.getData().template;
439
- findTemplate(templates, newTemplateTitle).each(function (t) {
440
- api.block('Loading...');
441
- getTemplateContent(t).then(function (previewHtml) {
442
- updateDialog(api, t, previewHtml);
443
- }).catch(function () {
444
- updateDialog(api, t, '');
445
- api.disable('save');
446
- loadFailedAlert(api);
447
- });
448
- });
449
- }
450
- };
451
- };
452
- var onSubmit = function (templates) {
453
- return function (api) {
454
- var data = api.getData();
455
- findTemplate(templates, data.template).each(function (t) {
456
- getTemplateContent(t).then(function (previewHtml) {
457
- editor.execCommand('mceInsertTemplate', false, previewHtml);
458
- api.close();
459
- }).catch(function () {
460
- api.disable('save');
461
- loadFailedAlert(api);
462
- });
463
- });
464
- };
465
- };
466
- var openDialog = function (templates) {
467
- var selectBoxItems = createSelectBoxItems(templates);
468
- var buildDialogSpec = function (bodyItems, initialData) {
469
- return {
470
- title: 'Insert Template',
471
- size: 'large',
472
- body: {
473
- type: 'panel',
474
- items: bodyItems
475
- },
476
- initialData: initialData,
477
- buttons: [
478
- {
479
- type: 'cancel',
480
- name: 'cancel',
481
- text: 'Cancel'
482
- },
483
- {
484
- type: 'submit',
485
- name: 'save',
486
- text: 'Save',
487
- primary: true
488
- }
489
- ],
490
- onSubmit: onSubmit(templates),
491
- onChange: onChange(templates, updateDialog)
492
- };
493
- };
494
- var updateDialog = function (dialogApi, template, previewHtml) {
495
- var content = getPreviewContent(editor, previewHtml);
496
- var bodyItems = [
497
- {
498
- type: 'selectbox',
499
- name: 'template',
500
- label: 'Templates',
501
- items: selectBoxItems
502
- },
503
- {
504
- type: 'htmlpanel',
505
- html: '<p aria-live="polite">' + htmlEscape(template.value.description) + '</p>'
506
- },
507
- {
508
- label: 'Preview',
509
- type: 'iframe',
510
- name: 'preview',
511
- sandboxed: false
512
- }
513
- ];
514
- var initialData = {
515
- template: template.text,
516
- preview: content
517
- };
518
- dialogApi.unblock();
519
- dialogApi.redial(buildDialogSpec(bodyItems, initialData));
520
- dialogApi.focus('template');
521
- };
522
- var dialogApi = editor.windowManager.open(buildDialogSpec([], {
523
- template: '',
524
- preview: ''
525
- }));
526
- dialogApi.block('Loading...');
527
- getTemplateContent(templates[0]).then(function (previewHtml) {
528
- updateDialog(dialogApi, templates[0], previewHtml);
529
- }).catch(function () {
530
- updateDialog(dialogApi, templates[0], '');
531
- dialogApi.disable('save');
532
- loadFailedAlert(dialogApi);
533
- });
534
- };
535
- var optTemplates = createTemplates();
536
- optTemplates.each(openDialog);
537
- };
538
-
539
- var showDialog = function (editor) {
540
- return function (templates) {
541
- open(editor, templates);
542
- };
543
- };
544
- var register$1 = function (editor) {
545
- editor.addCommand('mceInsertTemplate', curry(insertTemplate, editor));
546
- editor.addCommand('mceTemplate', createTemplateList(editor, showDialog(editor)));
547
- };
548
-
549
- var setup = function (editor) {
550
- editor.on('PreProcess', function (o) {
551
- var dom = editor.dom, dateFormat = getMdateFormat(editor);
552
- global$3.each(dom.select('div', o.node), function (e) {
553
- if (dom.hasClass(e, 'mceTmpl')) {
554
- global$3.each(dom.select('*', e), function (e) {
555
- if (dom.hasClass(e, getModificationDateClasses(editor).replace(/\s+/g, '|'))) {
556
- e.innerHTML = getDateTime(editor, dateFormat);
557
- }
558
- });
559
- replaceVals(editor, e);
560
- }
561
- });
562
- });
563
- };
564
-
565
- var register = function (editor) {
566
- var onAction = function () {
567
- return editor.execCommand('mceTemplate');
568
- };
569
- editor.ui.registry.addButton('template', {
570
- icon: 'template',
571
- tooltip: 'Insert template',
572
- onAction: onAction
573
- });
574
- editor.ui.registry.addMenuItem('template', {
575
- icon: 'template',
576
- text: 'Insert template...',
577
- onAction: onAction
578
- });
579
- };
580
-
581
- function Plugin () {
582
- global$4.add('template', function (editor) {
583
- register(editor);
584
- register$1(editor);
585
- setup(editor);
586
- });
587
- }
588
-
589
- Plugin();
590
-
591
- }());
@@ -1,9 +0,0 @@
1
- /**
2
- * Copyright (c) Tiny Technologies, Inc. All rights reserved.
3
- * Licensed under the LGPL or a commercial license.
4
- * For LGPL see License.txt in the project root for license information.
5
- * For commercial licenses see https://www.tiny.cloud/
6
- *
7
- * Version: 5.10.9 (2023-11-15)
8
- */
9
- !function(){"use strict";function o(e){return function(){return e}}function e(e){return e}function i(e){return n=typeof(t=e),"string"==(null===t?"null":"object"==n&&(Array.prototype.isPrototypeOf(t)||t.constructor&&"Array"===t.constructor.name)?"array":"object"==n&&(String.prototype.isPrototypeOf(t)||t.constructor&&"String"===t.constructor.name)?"string":n);var t,n}var t,n=tinymce.util.Tools.resolve("tinymce.PluginManager"),u=function(e){return typeof e===t};function s(e){return e.getParam("template_mdate_classes","mdate")}function l(e){return e.getParam("template_replace_values")}function m(e){return e.getParam("template_mdate_format",e.translate("%Y-%m-%d"))}function f(e,t){if((e=""+e).length<t)for(var n=0;n<t-e.length;n++)e="0"+e;return e}function p(e,t,n){void 0===n&&(n=new Date);var r="Sun Mon Tue Wed Thu Fri Sat Sun".split(" "),a="Sunday Monday Tuesday Wednesday Thursday Friday Saturday Sunday".split(" "),o="Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec".split(" "),c="January February March April May June July August September October November December".split(" ");return(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",f(n.getMonth()+1,2))).replace("%d",f(n.getDate(),2))).replace("%H",""+f(n.getHours(),2))).replace("%M",""+f(n.getMinutes(),2))).replace("%S",""+f(n.getSeconds(),2))).replace("%I",""+((n.getHours()+11)%12+1))).replace("%p",n.getHours()<12?"AM":"PM")).replace("%B",""+e.translate(c[n.getMonth()]))).replace("%b",""+e.translate(o[n.getMonth()]))).replace("%A",""+e.translate(a[n.getDay()]))).replace("%a",""+e.translate(r[n.getDay()]))).replace("%%","%")}function x(n,e){return O.each(e,function(e,t){u(e)&&(e=e(t)),n=n.replace(new RegExp("\\{\\$"+t+"\\}","g"),e)}),n}function d(e,t){var r=e.dom,a=l(e);O.each(r.select("*",t),function(n){O.each(a,function(e,t){r.hasClass(n,t)&&u(e)&&e(n)})})}function g(e,t){return new RegExp("\\b"+t+"\\b","g").test(e.className)}function y(t,e,n){var r=t.dom,a=t.selection.getContent();n=x(n,l(t));var o=r.create("div",null,n),c=r.select(".mceTmpl",o);c&&0<c.length&&(o=r.create("div",null)).appendChild(c[0].cloneNode(!0)),O.each(r.select("*",o),function(e){g(e,t.getParam("template_cdate_classes","cdate").replace(/\s+/g,"|"))&&(e.innerHTML=p(t,t.getParam("template_cdate_format",t.translate("%Y-%m-%d")))),g(e,s(t).replace(/\s+/g,"|"))&&(e.innerHTML=p(t,m(t))),g(e,t.getParam("template_selected_content_classes","selcontent").replace(/\s+/g,"|"))&&(e.innerHTML=a)}),d(t,o),t.execCommand("mceInsertContent",!1,o.innerHTML),t.addVisual()}function r(){return b}var c=o(!(t="function")),v=o(!0),O=tinymce.util.Tools.resolve("tinymce.util.Tools"),h=tinymce.util.Tools.resolve("tinymce.util.XHR"),b={fold:function(e,t){return e()},isSome:c,isNone:v,getOr:e,getOrThunk:a,getOrDie:function(e){throw new Error(e||"error: getOrDie called on none.")},getOrNull:o(null),getOrUndefined:o(void 0),or:e,orThunk:a,map:r,each:function(){},bind:r,exists:c,forall:v,filter:function(){return b},toArray:function(){return[]},toString:o("none()")};function a(e){return e()}function T(M,t){function l(e,t){return function(e,t,n){for(var r=0,a=e.length;r<a;r++){var o=e[r];if(t(o,r))return P.some(o);if(n(o,r))break}return P.none()}(e,function(e){return e.text===t},c)}function i(e){M.windowManager.alert("Could not load the specified template.",function(){return e.focus("template")})}function u(e){return new _(function(t,n){e.value.url.fold(function(){return t(e.value.content.getOr(""))},function(e){return h.send({url:e,success:function(e){t(e)},error:function(e){n(e)}})})})}!function(){if(t&&0!==t.length)return P.from(O.map(t,function(e,t){function n(e){return void 0!==e.url}return{selected:0===t,text:e.title,value:{url:n(e)?P.from(e.url):P.none(),content:n(e)?P.none():P.from(e.content),description:e.description}}}));var e=M.translate("No templates defined.");return M.notificationManager.open({text:e,type:"info"}),P.none()}().each(function(o){function b(e,t){return{title:"Insert Template",size:"large",body:{type:"panel",items:e},initialData:t,buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],onSubmit:function(t){var e=t.getData();l(n,e.template).each(function(e){u(e).then(function(e){M.execCommand("mceInsertTemplate",!1,e),t.close()}).catch(function(){t.disable("save"),i(t)})})},onChange:(r=n=o,a=c,function(n,e){var t;"template"===e.name&&(t=n.getData().template,l(r,t).each(function(t){n.block("Loading..."),u(t).then(function(e){a(n,t,e)}).catch(function(){a(n,t,""),n.disable("save"),i(n)})}))})};var r,a,n}var T=function(e){for(var t=e.length,n=new Array(t),r=0;r<t;r++){var a=e[r];n[r]={text:a.text,value:a.text}}return n}(o),c=function(e,t,n){var r,a,o,c,l,i,u,s,m,f,p,d,g,y=(r=M,-1===(a=n).indexOf("<html>")&&(o="",c=r.getParam("content_style","","string"),l=r.getParam("content_css_cors",!1,"boolean")?' crossorigin="anonymous"':"",O.each(r.contentCSS,function(e){o+='<link type="text/css" rel="stylesheet" href="'+r.documentBaseURI.toAbsolute(e)+'"'+l+">"}),c&&(o+='<style type="text/css">'+c+"</style>"),i=-1===(g=(p=r).getParam("body_class","","string")).indexOf("=")?g:(d=p).getParam("body_class","","hash")[d.id]||"",u=r.dom.encode,s='<script>document.addEventListener && document.addEventListener("click", function(e) {for (var elm = e.target; elm; elm = elm.parentNode) {if (elm.nodeName === "A" && !('+(S.mac?"e.metaKey":"e.ctrlKey && !e.altKey")+")) {e.preventDefault();}}}, false);<\/script> ",f=(m=r.getBody().dir)?' dir="'+u(m)+'"':"",a='<!DOCTYPE html><html><head><base href="'+u(r.documentBaseURI.getURI())+'">'+o+s+'</head><body class="'+u(i)+'"'+f+">"+a+"</body></html>"),x(a,r.getParam("template_preview_replace_values"))),v=[{type:"selectbox",name:"template",label:"Templates",items:T},{type:"htmlpanel",html:'<p aria-live="polite">'+t.value.description.replace(/["'<>&]/g,function(e){return(C(t=A,n=e)?P.from(t[n]):P.none()).getOr(e);var t,n})+"</p>"},{label:"Preview",type:"iframe",name:"preview",sandboxed:!1}],h={template:t.text,preview:y};e.unblock(),e.redial(b(v,h)),e.focus("template")},t=M.windowManager.open(b([],{template:"",preview:""}));t.block("Loading..."),u(o[0]).then(function(e){c(t,o[0],e)}).catch(function(){c(t,o[0],""),t.disable("save"),i(t)})})}var M=function(n){function e(){return a}function t(e){return e(n)}var r=o(n),a={fold:function(e,t){return t(n)},isSome:v,isNone:c,getOr:r,getOrThunk:r,getOrDie:r,getOrNull:r,getOrUndefined:r,or:e,orThunk:e,map:function(e){return M(e(n))},each:function(e){e(n)},bind:t,exists:t,forall:t,filter:function(e){return e(n)?a:b},toArray:function(){return[n]},toString:function(){return"some("+n+")"}};return a},P={some:M,none:r,from:function(e){return null==e?b:M(e)}},S=tinymce.util.Tools.resolve("tinymce.Env"),_=tinymce.util.Tools.resolve("tinymce.util.Promise"),w=Object.hasOwnProperty,C=function(e,t){return w.call(e,t)},A={'"':"&quot;","<":"&lt;",">":"&gt;","&":"&amp;","'":"&#039;"};n.add("template",function(e){function t(){return n.execCommand("mceTemplate")}var n,r,a,o,c,l;(n=e).ui.registry.addButton("template",{icon:"template",tooltip:"Insert template",onAction:t}),n.ui.registry.addMenuItem("template",{icon:"template",text:"Insert template...",onAction:t}),(a=e).addCommand("mceInsertTemplate",function(r){for(var a=[],e=1;e<arguments.length;e++)a[e-1]=arguments[e];return function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];var n=a.concat(e);return r.apply(null,n)}}(y,a)),a.addCommand("mceTemplate",(l=o=a,c=function(e){T(l,e)},function(){var e=o.getParam("templates");u(e)?e(c):i(e)?h.send({url:e,success:function(e){c(JSON.parse(e))}}):c(e)})),(r=e).on("PreProcess",function(e){var t=r.dom,n=m(r);O.each(t.select("div",e.node),function(e){t.hasClass(e,"mceTmpl")&&(O.each(t.select("*",e),function(e){t.hasClass(e,s(r).replace(/\s+/g,"|"))&&(e.innerHTML=p(r,n))}),d(r,e))})})})}();
@@ -1,7 +0,0 @@
1
- // Exports the "textcolor" plugin for usage with module loaders
2
- // Usage:
3
- // CommonJS:
4
- // require('tinymce/plugins/textcolor')
5
- // ES2015:
6
- // import 'tinymce/plugins/textcolor'
7
- require('./plugin.js');
@@ -1,21 +0,0 @@
1
- /**
2
- * Copyright (c) Tiny Technologies, Inc. All rights reserved.
3
- * Licensed under the LGPL or a commercial license.
4
- * For LGPL see License.txt in the project root for license information.
5
- * For commercial licenses see https://www.tiny.cloud/
6
- *
7
- * Version: 5.10.9 (2023-11-15)
8
- */
9
- (function () {
10
- 'use strict';
11
-
12
- var global = tinymce.util.Tools.resolve('tinymce.PluginManager');
13
-
14
- function Plugin () {
15
- global.add('textcolor', function () {
16
- });
17
- }
18
-
19
- Plugin();
20
-
21
- }());
@@ -1,9 +0,0 @@
1
- /**
2
- * Copyright (c) Tiny Technologies, Inc. All rights reserved.
3
- * Licensed under the LGPL or a commercial license.
4
- * For LGPL see License.txt in the project root for license information.
5
- * For commercial licenses see https://www.tiny.cloud/
6
- *
7
- * Version: 5.10.9 (2023-11-15)
8
- */
9
- !function(){"use strict";tinymce.util.Tools.resolve("tinymce.PluginManager").add("textcolor",function(){})}();
@@ -1,7 +0,0 @@
1
- // Exports the "textpattern" plugin for usage with module loaders
2
- // Usage:
3
- // CommonJS:
4
- // require('tinymce/plugins/textpattern')
5
- // ES2015:
6
- // import 'tinymce/plugins/textpattern'
7
- require('./plugin.js');