create-nextjs-cms 0.5.18 → 0.5.20

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 (272) hide show
  1. package/dist/index.js +9 -5
  2. package/package.json +3 -3
  3. package/templates/default/.uploads/.photos/categories/000e56fada378de1a84a4 +0 -0
  4. package/templates/default/.uploads/.photos/categories/121e7d13ee3b5fa03795b +0 -0
  5. package/templates/default/.uploads/.photos/categories/17a55c5a53eb62293c69e +0 -0
  6. package/templates/default/.uploads/.photos/categories/4c86ad8c1f51f1e3a953b +0 -0
  7. package/templates/default/.uploads/.photos/categories/4d360813741a45744327c +0 -0
  8. package/templates/default/.uploads/.photos/categories/5238fefaa3cbebf388178 +0 -0
  9. package/templates/default/.uploads/.photos/categories/541d7cf8c69895bcb15cd +0 -0
  10. package/templates/default/.uploads/.photos/categories/57a2f689a910a378247ea +0 -0
  11. package/templates/default/.uploads/.photos/categories/6de4bdb341a3e1f70ddc3 +0 -0
  12. package/templates/default/.uploads/.photos/categories/6f52739eaa686441a28f4 +0 -0
  13. package/templates/default/.uploads/.photos/categories/8a21b9fa8ecd88f460a15 +0 -0
  14. package/templates/default/.uploads/.photos/categories/91948abcb073c9445fdec +0 -0
  15. package/templates/default/.uploads/.photos/categories/9ae700d1abfd6b85780e8 +0 -0
  16. package/templates/default/.uploads/.photos/categories/9edee86e932985fc589b5 +0 -0
  17. package/templates/default/.uploads/.photos/categories/a520e77b082f35b575dba +0 -0
  18. package/templates/default/.uploads/.photos/categories/b19c449029330f0a74b20 +0 -0
  19. package/templates/default/.uploads/.photos/categories/b9802010f68afd4edb0e8 +0 -0
  20. package/templates/default/.uploads/.photos/categories/c1d7c3b986739bf496730 +0 -0
  21. package/templates/default/.uploads/.photos/categories/c25dc38567384513ffe93 +0 -0
  22. package/templates/default/.uploads/.photos/categories/cbe3874a3d13afba388df +0 -0
  23. package/templates/default/.uploads/.photos/categories/d450fdeb04f0d070442d6 +0 -0
  24. package/templates/default/.uploads/.photos/categories/f80bf3a4515680ead5a5c +0 -0
  25. package/templates/default/.uploads/.photos/categories/f8639c2d5b0d24cb76fb1 +0 -0
  26. package/templates/default/.uploads/.photos/categories/f8d997149d10aab046e40 +0 -0
  27. package/templates/default/.uploads/.photos/categories/fa2c55690ff96e33a16fe +0 -0
  28. package/templates/default/.uploads/.photos/featured_slider/d00be4edb4c38ca34b5a5 +0 -0
  29. package/templates/default/.uploads/.thumbs/categories/000e56fada378de1a84a4 +0 -0
  30. package/templates/default/.uploads/.thumbs/categories/121e7d13ee3b5fa03795b +0 -0
  31. package/templates/default/.uploads/.thumbs/categories/17a55c5a53eb62293c69e +0 -0
  32. package/templates/default/.uploads/.thumbs/categories/4c86ad8c1f51f1e3a953b +0 -0
  33. package/templates/default/.uploads/.thumbs/categories/4d360813741a45744327c +0 -0
  34. package/templates/default/.uploads/.thumbs/categories/5238fefaa3cbebf388178 +0 -0
  35. package/templates/default/.uploads/.thumbs/categories/541d7cf8c69895bcb15cd +0 -0
  36. package/templates/default/.uploads/.thumbs/categories/57a2f689a910a378247ea +0 -0
  37. package/templates/default/.uploads/.thumbs/categories/6de4bdb341a3e1f70ddc3 +0 -0
  38. package/templates/default/.uploads/.thumbs/categories/6f52739eaa686441a28f4 +0 -0
  39. package/templates/default/.uploads/.thumbs/categories/8a21b9fa8ecd88f460a15 +0 -0
  40. package/templates/default/.uploads/.thumbs/categories/91948abcb073c9445fdec +0 -0
  41. package/templates/default/.uploads/.thumbs/categories/9ae700d1abfd6b85780e8 +0 -0
  42. package/templates/default/.uploads/.thumbs/categories/9edee86e932985fc589b5 +0 -0
  43. package/templates/default/.uploads/.thumbs/categories/a520e77b082f35b575dba +0 -0
  44. package/templates/default/.uploads/.thumbs/categories/b19c449029330f0a74b20 +0 -0
  45. package/templates/default/.uploads/.thumbs/categories/b9802010f68afd4edb0e8 +0 -0
  46. package/templates/default/.uploads/.thumbs/categories/c1d7c3b986739bf496730 +0 -0
  47. package/templates/default/.uploads/.thumbs/categories/c25dc38567384513ffe93 +0 -0
  48. package/templates/default/.uploads/.thumbs/categories/cbe3874a3d13afba388df +0 -0
  49. package/templates/default/.uploads/.thumbs/categories/d450fdeb04f0d070442d6 +0 -0
  50. package/templates/default/.uploads/.thumbs/categories/f80bf3a4515680ead5a5c +0 -0
  51. package/templates/default/.uploads/.thumbs/categories/f8639c2d5b0d24cb76fb1 +0 -0
  52. package/templates/default/.uploads/.thumbs/categories/f8d997149d10aab046e40 +0 -0
  53. package/templates/default/.uploads/.thumbs/categories/fa2c55690ff96e33a16fe +0 -0
  54. package/templates/default/_gitignore +57 -0
  55. package/templates/default/components/form/helpers/_section-hot-reload.ts +11 -0
  56. package/templates/default/next-env.d.ts +6 -0
  57. package/templates/default/package.json +2 -2
  58. package/templates/default/public/tinymce/CHANGELOG.md +3785 -0
  59. package/templates/default/public/tinymce/README.md +77 -0
  60. package/templates/default/public/tinymce/bower.json +27 -0
  61. package/templates/default/public/tinymce/composer.json +52 -0
  62. package/templates/default/public/tinymce/icons/default/icons.js +231 -0
  63. package/templates/default/public/tinymce/icons/default/icons.min.js +1 -0
  64. package/templates/default/public/tinymce/icons/default/index.js +7 -0
  65. package/templates/default/public/tinymce/license.md +6 -0
  66. package/templates/default/public/tinymce/models/dom/index.js +7 -0
  67. package/templates/default/public/tinymce/models/dom/model.js +8994 -0
  68. package/templates/default/public/tinymce/models/dom/model.min.js +1 -0
  69. package/templates/default/public/tinymce/notices.txt +21 -0
  70. package/templates/default/public/tinymce/package.json +32 -0
  71. package/templates/default/public/tinymce/plugins/accordion/index.js +7 -0
  72. package/templates/default/public/tinymce/plugins/accordion/plugin.js +1349 -0
  73. package/templates/default/public/tinymce/plugins/accordion/plugin.min.js +1 -0
  74. package/templates/default/public/tinymce/plugins/advlist/index.js +7 -0
  75. package/templates/default/public/tinymce/plugins/advlist/plugin.js +471 -0
  76. package/templates/default/public/tinymce/plugins/advlist/plugin.min.js +1 -0
  77. package/templates/default/public/tinymce/plugins/anchor/index.js +7 -0
  78. package/templates/default/public/tinymce/plugins/anchor/plugin.js +237 -0
  79. package/templates/default/public/tinymce/plugins/anchor/plugin.min.js +1 -0
  80. package/templates/default/public/tinymce/plugins/autolink/index.js +7 -0
  81. package/templates/default/public/tinymce/plugins/autolink/plugin.js +318 -0
  82. package/templates/default/public/tinymce/plugins/autolink/plugin.min.js +1 -0
  83. package/templates/default/public/tinymce/plugins/autoresize/index.js +7 -0
  84. package/templates/default/public/tinymce/plugins/autoresize/plugin.js +223 -0
  85. package/templates/default/public/tinymce/plugins/autoresize/plugin.min.js +1 -0
  86. package/templates/default/public/tinymce/plugins/autosave/index.js +7 -0
  87. package/templates/default/public/tinymce/plugins/autosave/plugin.js +252 -0
  88. package/templates/default/public/tinymce/plugins/autosave/plugin.min.js +1 -0
  89. package/templates/default/public/tinymce/plugins/charmap/index.js +7 -0
  90. package/templates/default/public/tinymce/plugins/charmap/plugin.js +997 -0
  91. package/templates/default/public/tinymce/plugins/charmap/plugin.min.js +1 -0
  92. package/templates/default/public/tinymce/plugins/code/index.js +7 -0
  93. package/templates/default/public/tinymce/plugins/code/plugin.js +97 -0
  94. package/templates/default/public/tinymce/plugins/code/plugin.min.js +1 -0
  95. package/templates/default/public/tinymce/plugins/codesample/index.js +7 -0
  96. package/templates/default/public/tinymce/plugins/codesample/plugin.js +3654 -0
  97. package/templates/default/public/tinymce/plugins/codesample/plugin.min.js +9 -0
  98. package/templates/default/public/tinymce/plugins/directionality/index.js +7 -0
  99. package/templates/default/public/tinymce/plugins/directionality/plugin.js +636 -0
  100. package/templates/default/public/tinymce/plugins/directionality/plugin.min.js +1 -0
  101. package/templates/default/public/tinymce/plugins/emoticons/index.js +7 -0
  102. package/templates/default/public/tinymce/plugins/emoticons/js/emojiimages.js +1 -0
  103. package/templates/default/public/tinymce/plugins/emoticons/js/emojiimages.min.js +1 -0
  104. package/templates/default/public/tinymce/plugins/emoticons/js/emojis.js +1 -0
  105. package/templates/default/public/tinymce/plugins/emoticons/js/emojis.min.js +1 -0
  106. package/templates/default/public/tinymce/plugins/emoticons/plugin.js +809 -0
  107. package/templates/default/public/tinymce/plugins/emoticons/plugin.min.js +1 -0
  108. package/templates/default/public/tinymce/plugins/fullscreen/index.js +7 -0
  109. package/templates/default/public/tinymce/plugins/fullscreen/plugin.js +1609 -0
  110. package/templates/default/public/tinymce/plugins/fullscreen/plugin.min.js +1 -0
  111. package/templates/default/public/tinymce/plugins/help/index.js +7 -0
  112. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ar.js +93 -0
  113. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/bg_BG.js +93 -0
  114. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ca.js +93 -0
  115. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/cs.js +93 -0
  116. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/da.js +93 -0
  117. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/de.js +93 -0
  118. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/el.js +93 -0
  119. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/en.js +93 -0
  120. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/es.js +93 -0
  121. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/eu.js +93 -0
  122. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/fa.js +93 -0
  123. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/fi.js +93 -0
  124. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/fr_FR.js +93 -0
  125. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/he_IL.js +93 -0
  126. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/hi.js +93 -0
  127. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/hr.js +93 -0
  128. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/hu_HU.js +93 -0
  129. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/id.js +93 -0
  130. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/it.js +93 -0
  131. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ja.js +93 -0
  132. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/kk.js +93 -0
  133. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ko_KR.js +93 -0
  134. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ms.js +93 -0
  135. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/nb_NO.js +93 -0
  136. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/nl.js +93 -0
  137. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/pl.js +93 -0
  138. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/pt_BR.js +93 -0
  139. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/pt_PT.js +93 -0
  140. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ro.js +93 -0
  141. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/ru.js +93 -0
  142. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/sk.js +93 -0
  143. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/sl_SI.js +93 -0
  144. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/sv_SE.js +93 -0
  145. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/th_TH.js +93 -0
  146. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/tr.js +93 -0
  147. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/uk.js +93 -0
  148. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/vi.js +93 -0
  149. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/zh_CN.js +87 -0
  150. package/templates/default/public/tinymce/plugins/help/js/i18n/keynav/zh_TW.js +93 -0
  151. package/templates/default/public/tinymce/plugins/help/plugin.js +828 -0
  152. package/templates/default/public/tinymce/plugins/help/plugin.min.js +1 -0
  153. package/templates/default/public/tinymce/plugins/image/index.js +7 -0
  154. package/templates/default/public/tinymce/plugins/image/plugin.js +1689 -0
  155. package/templates/default/public/tinymce/plugins/image/plugin.min.js +1 -0
  156. package/templates/default/public/tinymce/plugins/importcss/index.js +7 -0
  157. package/templates/default/public/tinymce/plugins/importcss/plugin.js +403 -0
  158. package/templates/default/public/tinymce/plugins/importcss/plugin.min.js +1 -0
  159. package/templates/default/public/tinymce/plugins/insertdatetime/index.js +7 -0
  160. package/templates/default/public/tinymce/plugins/insertdatetime/plugin.js +186 -0
  161. package/templates/default/public/tinymce/plugins/insertdatetime/plugin.min.js +1 -0
  162. package/templates/default/public/tinymce/plugins/link/index.js +7 -0
  163. package/templates/default/public/tinymce/plugins/link/plugin.js +1577 -0
  164. package/templates/default/public/tinymce/plugins/link/plugin.min.js +1 -0
  165. package/templates/default/public/tinymce/plugins/lists/index.js +7 -0
  166. package/templates/default/public/tinymce/plugins/lists/plugin.js +2544 -0
  167. package/templates/default/public/tinymce/plugins/lists/plugin.min.js +1 -0
  168. package/templates/default/public/tinymce/plugins/media/index.js +7 -0
  169. package/templates/default/public/tinymce/plugins/media/plugin.js +1450 -0
  170. package/templates/default/public/tinymce/plugins/media/plugin.min.js +1 -0
  171. package/templates/default/public/tinymce/plugins/nonbreaking/index.js +7 -0
  172. package/templates/default/public/tinymce/plugins/nonbreaking/plugin.js +128 -0
  173. package/templates/default/public/tinymce/plugins/nonbreaking/plugin.min.js +1 -0
  174. package/templates/default/public/tinymce/plugins/pagebreak/index.js +7 -0
  175. package/templates/default/public/tinymce/plugins/pagebreak/plugin.js +123 -0
  176. package/templates/default/public/tinymce/plugins/pagebreak/plugin.min.js +1 -0
  177. package/templates/default/public/tinymce/plugins/preview/index.js +7 -0
  178. package/templates/default/public/tinymce/plugins/preview/plugin.js +765 -0
  179. package/templates/default/public/tinymce/plugins/preview/plugin.min.js +1 -0
  180. package/templates/default/public/tinymce/plugins/quickbars/index.js +7 -0
  181. package/templates/default/public/tinymce/plugins/quickbars/plugin.js +654 -0
  182. package/templates/default/public/tinymce/plugins/quickbars/plugin.min.js +1 -0
  183. package/templates/default/public/tinymce/plugins/save/index.js +7 -0
  184. package/templates/default/public/tinymce/plugins/save/plugin.js +136 -0
  185. package/templates/default/public/tinymce/plugins/save/plugin.min.js +1 -0
  186. package/templates/default/public/tinymce/plugins/searchreplace/index.js +7 -0
  187. package/templates/default/public/tinymce/plugins/searchreplace/plugin.js +1370 -0
  188. package/templates/default/public/tinymce/plugins/searchreplace/plugin.min.js +1 -0
  189. package/templates/default/public/tinymce/plugins/table/index.js +7 -0
  190. package/templates/default/public/tinymce/plugins/table/plugin.js +4019 -0
  191. package/templates/default/public/tinymce/plugins/table/plugin.min.js +1 -0
  192. package/templates/default/public/tinymce/plugins/visualblocks/index.js +7 -0
  193. package/templates/default/public/tinymce/plugins/visualblocks/plugin.js +106 -0
  194. package/templates/default/public/tinymce/plugins/visualblocks/plugin.min.js +1 -0
  195. package/templates/default/public/tinymce/plugins/visualchars/index.js +7 -0
  196. package/templates/default/public/tinymce/plugins/visualchars/plugin.js +809 -0
  197. package/templates/default/public/tinymce/plugins/visualchars/plugin.min.js +1 -0
  198. package/templates/default/public/tinymce/plugins/wordcount/index.js +7 -0
  199. package/templates/default/public/tinymce/plugins/wordcount/plugin.js +480 -0
  200. package/templates/default/public/tinymce/plugins/wordcount/plugin.min.js +1 -0
  201. package/templates/default/public/tinymce/skins/content/dark/content.css +75 -0
  202. package/templates/default/public/tinymce/skins/content/dark/content.js +10 -0
  203. package/templates/default/public/tinymce/skins/content/dark/content.min.css +10 -0
  204. package/templates/default/public/tinymce/skins/content/default/content.css +70 -0
  205. package/templates/default/public/tinymce/skins/content/default/content.js +10 -0
  206. package/templates/default/public/tinymce/skins/content/default/content.min.css +10 -0
  207. package/templates/default/public/tinymce/skins/content/document/content.css +75 -0
  208. package/templates/default/public/tinymce/skins/content/document/content.js +10 -0
  209. package/templates/default/public/tinymce/skins/content/document/content.min.css +10 -0
  210. package/templates/default/public/tinymce/skins/content/tinymce-5/content.css +70 -0
  211. package/templates/default/public/tinymce/skins/content/tinymce-5/content.js +10 -0
  212. package/templates/default/public/tinymce/skins/content/tinymce-5/content.min.css +10 -0
  213. package/templates/default/public/tinymce/skins/content/tinymce-5-dark/content.css +75 -0
  214. package/templates/default/public/tinymce/skins/content/tinymce-5-dark/content.js +10 -0
  215. package/templates/default/public/tinymce/skins/content/tinymce-5-dark/content.min.css +10 -0
  216. package/templates/default/public/tinymce/skins/content/writer/content.css +71 -0
  217. package/templates/default/public/tinymce/skins/content/writer/content.js +10 -0
  218. package/templates/default/public/tinymce/skins/content/writer/content.min.css +10 -0
  219. package/templates/default/public/tinymce/skins/ui/oxide/content.css +893 -0
  220. package/templates/default/public/tinymce/skins/ui/oxide/content.inline.css +887 -0
  221. package/templates/default/public/tinymce/skins/ui/oxide/content.inline.js +10 -0
  222. package/templates/default/public/tinymce/skins/ui/oxide/content.inline.min.css +10 -0
  223. package/templates/default/public/tinymce/skins/ui/oxide/content.js +10 -0
  224. package/templates/default/public/tinymce/skins/ui/oxide/content.min.css +10 -0
  225. package/templates/default/public/tinymce/skins/ui/oxide/skin.css +5141 -0
  226. package/templates/default/public/tinymce/skins/ui/oxide/skin.js +1 -0
  227. package/templates/default/public/tinymce/skins/ui/oxide/skin.min.css +1 -0
  228. package/templates/default/public/tinymce/skins/ui/oxide/skin.shadowdom.css +30 -0
  229. package/templates/default/public/tinymce/skins/ui/oxide/skin.shadowdom.js +1 -0
  230. package/templates/default/public/tinymce/skins/ui/oxide/skin.shadowdom.min.css +1 -0
  231. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.css +881 -0
  232. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.inline.css +887 -0
  233. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.inline.js +10 -0
  234. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.inline.min.css +10 -0
  235. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.js +10 -0
  236. package/templates/default/public/tinymce/skins/ui/oxide-dark/content.min.css +10 -0
  237. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.css +5144 -0
  238. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.js +1 -0
  239. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.min.css +1 -0
  240. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +30 -0
  241. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.js +1 -0
  242. package/templates/default/public/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +1 -0
  243. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.css +893 -0
  244. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.inline.css +887 -0
  245. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.inline.js +10 -0
  246. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.inline.min.css +10 -0
  247. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.js +10 -0
  248. package/templates/default/public/tinymce/skins/ui/tinymce-5/content.min.css +10 -0
  249. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.css +5260 -0
  250. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.js +1 -0
  251. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.min.css +1 -0
  252. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.shadowdom.css +30 -0
  253. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.shadowdom.js +1 -0
  254. package/templates/default/public/tinymce/skins/ui/tinymce-5/skin.shadowdom.min.css +1 -0
  255. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.css +881 -0
  256. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.inline.css +887 -0
  257. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.inline.js +10 -0
  258. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.inline.min.css +10 -0
  259. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.js +10 -0
  260. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/content.min.css +10 -0
  261. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.css +5260 -0
  262. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.js +1 -0
  263. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.min.css +1 -0
  264. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.css +30 -0
  265. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.js +1 -0
  266. package/templates/default/public/tinymce/skins/ui/tinymce-5-dark/skin.shadowdom.min.css +1 -0
  267. package/templates/default/public/tinymce/themes/silver/index.js +7 -0
  268. package/templates/default/public/tinymce/themes/silver/theme.js +34798 -0
  269. package/templates/default/public/tinymce/themes/silver/theme.min.js +1 -0
  270. package/templates/default/public/tinymce/tinymce.d.ts +3350 -0
  271. package/templates/default/public/tinymce/tinymce.js +38694 -0
  272. package/templates/default/public/tinymce/tinymce.min.js +11 -0
@@ -0,0 +1,237 @@
1
+ /**
2
+ * TinyMCE version 7.9.1 (2025-05-29)
3
+ */
4
+
5
+ (function () {
6
+ 'use strict';
7
+
8
+ var global$2 = tinymce.util.Tools.resolve('tinymce.PluginManager');
9
+
10
+ var global$1 = tinymce.util.Tools.resolve('tinymce.dom.RangeUtils');
11
+
12
+ var global = tinymce.util.Tools.resolve('tinymce.util.Tools');
13
+
14
+ const option = (name) => (editor) => editor.options.get(name);
15
+ const register$2 = (editor) => {
16
+ const registerOption = editor.options.register;
17
+ registerOption('allow_html_in_named_anchor', {
18
+ processor: 'boolean',
19
+ default: false
20
+ });
21
+ };
22
+ const allowHtmlInNamedAnchor = option('allow_html_in_named_anchor');
23
+
24
+ const namedAnchorSelector = 'a:not([href])';
25
+ const isEmptyString = (str) => !str;
26
+ const getIdFromAnchor = (elm) => {
27
+ const id = elm.getAttribute('id') || elm.getAttribute('name');
28
+ return id || '';
29
+ };
30
+ const isAnchor = (elm) => elm.nodeName.toLowerCase() === 'a';
31
+ const isNamedAnchor = (elm) => isAnchor(elm) && !elm.getAttribute('href') && getIdFromAnchor(elm) !== '';
32
+ const isEmptyNamedAnchor = (elm) => isNamedAnchor(elm) && !elm.firstChild;
33
+
34
+ const removeEmptyNamedAnchorsInSelection = (editor) => {
35
+ const dom = editor.dom;
36
+ global$1(dom).walk(editor.selection.getRng(), (nodes) => {
37
+ global.each(nodes, (node) => {
38
+ if (isEmptyNamedAnchor(node)) {
39
+ dom.remove(node, false);
40
+ }
41
+ });
42
+ });
43
+ };
44
+ const isValidId = (id) =>
45
+ // Follows HTML4 rules: https://www.w3.org/TR/html401/types.html#type-id
46
+ /^[A-Za-z][A-Za-z0-9\-:._]*$/.test(id);
47
+ const getNamedAnchor = (editor) => editor.dom.getParent(editor.selection.getStart(), namedAnchorSelector);
48
+ const getId = (editor) => {
49
+ const anchor = getNamedAnchor(editor);
50
+ if (anchor) {
51
+ return getIdFromAnchor(anchor);
52
+ }
53
+ else {
54
+ return '';
55
+ }
56
+ };
57
+ const createAnchor = (editor, id) => {
58
+ editor.undoManager.transact(() => {
59
+ if (!allowHtmlInNamedAnchor(editor)) {
60
+ editor.selection.collapse(true);
61
+ }
62
+ if (editor.selection.isCollapsed()) {
63
+ editor.insertContent(editor.dom.createHTML('a', { id }));
64
+ }
65
+ else {
66
+ // Remove any empty named anchors in the selection as they cannot be removed by the formatter since they are cef
67
+ removeEmptyNamedAnchorsInSelection(editor);
68
+ // Format is set up to truncate any partially selected named anchors so that they are not completely removed
69
+ editor.formatter.remove('namedAnchor', undefined, undefined, true);
70
+ // Insert new anchor using the formatter - will wrap selected content in anchor
71
+ editor.formatter.apply('namedAnchor', { value: id });
72
+ // Need to add visual classes to anchors if required
73
+ editor.addVisual();
74
+ }
75
+ });
76
+ };
77
+ const updateAnchor = (editor, id, anchorElement) => {
78
+ anchorElement.removeAttribute('name');
79
+ anchorElement.id = id;
80
+ editor.addVisual(); // Need to add visual classes to anchors if required
81
+ editor.undoManager.add();
82
+ };
83
+ const insert = (editor, id) => {
84
+ const anchor = getNamedAnchor(editor);
85
+ if (anchor) {
86
+ updateAnchor(editor, id, anchor);
87
+ }
88
+ else {
89
+ createAnchor(editor, id);
90
+ }
91
+ editor.focus();
92
+ };
93
+
94
+ const insertAnchor = (editor, newId) => {
95
+ if (!isValidId(newId)) {
96
+ editor.windowManager.alert('ID should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores.');
97
+ return false;
98
+ }
99
+ else {
100
+ insert(editor, newId);
101
+ return true;
102
+ }
103
+ };
104
+ const open = (editor) => {
105
+ const currentId = getId(editor);
106
+ editor.windowManager.open({
107
+ title: 'Anchor',
108
+ size: 'normal',
109
+ body: {
110
+ type: 'panel',
111
+ items: [
112
+ {
113
+ name: 'id',
114
+ type: 'input',
115
+ label: 'ID',
116
+ placeholder: 'example'
117
+ }
118
+ ]
119
+ },
120
+ buttons: [
121
+ {
122
+ type: 'cancel',
123
+ name: 'cancel',
124
+ text: 'Cancel'
125
+ },
126
+ {
127
+ type: 'submit',
128
+ name: 'save',
129
+ text: 'Save',
130
+ primary: true
131
+ }
132
+ ],
133
+ initialData: {
134
+ id: currentId
135
+ },
136
+ onSubmit: (api) => {
137
+ if (insertAnchor(editor, api.getData().id)) { // TODO we need a better way to do validation
138
+ api.close();
139
+ }
140
+ }
141
+ });
142
+ };
143
+
144
+ const register$1 = (editor) => {
145
+ editor.addCommand('mceAnchor', () => {
146
+ open(editor);
147
+ });
148
+ };
149
+
150
+ // Note: node.firstChild check is for the 'allow_html_in_named_anchor' setting
151
+ // Only want to add contenteditable attributes if there is no text within the anchor
152
+ const isNamedAnchorNode = (node) => isEmptyString(node.attr('href')) && !isEmptyString(node.attr('id') || node.attr('name'));
153
+ const isEmptyNamedAnchorNode = (node) => isNamedAnchorNode(node) && !node.firstChild;
154
+ const setContentEditable = (state) => (nodes) => {
155
+ for (let i = 0; i < nodes.length; i++) {
156
+ const node = nodes[i];
157
+ if (isEmptyNamedAnchorNode(node)) {
158
+ node.attr('contenteditable', state);
159
+ }
160
+ }
161
+ };
162
+ const setup = (editor) => {
163
+ editor.on('PreInit', () => {
164
+ editor.parser.addNodeFilter('a', setContentEditable('false'));
165
+ editor.serializer.addNodeFilter('a', setContentEditable(null));
166
+ });
167
+ };
168
+
169
+ const registerFormats = (editor) => {
170
+ editor.formatter.register('namedAnchor', {
171
+ inline: 'a',
172
+ selector: namedAnchorSelector,
173
+ remove: 'all',
174
+ split: true,
175
+ deep: true,
176
+ attributes: {
177
+ id: '%value'
178
+ },
179
+ onmatch: (node, _fmt, _itemName) => {
180
+ return isNamedAnchor(node);
181
+ }
182
+ });
183
+ };
184
+
185
+ const onSetupEditable = (editor) => (api) => {
186
+ const nodeChanged = () => {
187
+ api.setEnabled(editor.selection.isEditable());
188
+ };
189
+ editor.on('NodeChange', nodeChanged);
190
+ nodeChanged();
191
+ return () => {
192
+ editor.off('NodeChange', nodeChanged);
193
+ };
194
+ };
195
+ const register = (editor) => {
196
+ const onAction = () => editor.execCommand('mceAnchor');
197
+ editor.ui.registry.addToggleButton('anchor', {
198
+ icon: 'bookmark',
199
+ tooltip: 'Anchor',
200
+ onAction,
201
+ onSetup: (buttonApi) => {
202
+ const unbindSelectorChanged = editor.selection.selectorChangedWithUnbind('a:not([href])', buttonApi.setActive).unbind;
203
+ const unbindEditableChanged = onSetupEditable(editor)(buttonApi);
204
+ return () => {
205
+ unbindSelectorChanged();
206
+ unbindEditableChanged();
207
+ };
208
+ }
209
+ });
210
+ editor.ui.registry.addMenuItem('anchor', {
211
+ icon: 'bookmark',
212
+ text: 'Anchor...',
213
+ onAction,
214
+ onSetup: onSetupEditable(editor)
215
+ });
216
+ };
217
+
218
+ var Plugin = () => {
219
+ global$2.add('anchor', (editor) => {
220
+ register$2(editor);
221
+ setup(editor);
222
+ register$1(editor);
223
+ register(editor);
224
+ editor.on('PreInit', () => {
225
+ registerFormats(editor);
226
+ });
227
+ });
228
+ };
229
+
230
+ Plugin();
231
+ /** *****
232
+ * DO NOT EXPORT ANYTHING
233
+ *
234
+ * IF YOU DO ROLLUP WILL LEAVE A GLOBAL ON THE PAGE
235
+ *******/
236
+
237
+ })();
@@ -0,0 +1 @@
1
+ !function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager"),t=tinymce.util.Tools.resolve("tinymce.dom.RangeUtils"),o=tinymce.util.Tools.resolve("tinymce.util.Tools");const n=e=>e.options.get("allow_html_in_named_anchor");const a="a:not([href])",r=e=>!e,i=e=>e.getAttribute("id")||e.getAttribute("name")||"",l=e=>(e=>"a"===e.nodeName.toLowerCase())(e)&&!e.getAttribute("href")&&""!==i(e),s=e=>e.dom.getParent(e.selection.getStart(),a),d=(e,a)=>{const r=s(e);r?((e,t,o)=>{o.removeAttribute("name"),o.id=t,e.addVisual(),e.undoManager.add()})(e,a,r):((e,a)=>{e.undoManager.transact((()=>{n(e)||e.selection.collapse(!0),e.selection.isCollapsed()?e.insertContent(e.dom.createHTML("a",{id:a})):((e=>{const n=e.dom;t(n).walk(e.selection.getRng(),(e=>{o.each(e,(e=>{var t;l(t=e)&&!t.firstChild&&n.remove(e,!1)}))}))})(e),e.formatter.remove("namedAnchor",void 0,void 0,!0),e.formatter.apply("namedAnchor",{value:a}),e.addVisual())}))})(e,a),e.focus()},c=e=>(e=>r(e.attr("href"))&&!r(e.attr("id")||e.attr("name")))(e)&&!e.firstChild,m=e=>t=>{for(let o=0;o<t.length;o++){const n=t[o];c(n)&&n.attr("contenteditable",e)}},u=e=>t=>{const o=()=>{t.setEnabled(e.selection.isEditable())};return e.on("NodeChange",o),o(),()=>{e.off("NodeChange",o)}};e.add("anchor",(e=>{(e=>{(0,e.options.register)("allow_html_in_named_anchor",{processor:"boolean",default:!1})})(e),(e=>{e.on("PreInit",(()=>{e.parser.addNodeFilter("a",m("false")),e.serializer.addNodeFilter("a",m(null))}))})(e),(e=>{e.addCommand("mceAnchor",(()=>{(e=>{const t=(e=>{const t=s(e);return t?i(t):""})(e);e.windowManager.open({title:"Anchor",size:"normal",body:{type:"panel",items:[{name:"id",type:"input",label:"ID",placeholder:"example"}]},buttons:[{type:"cancel",name:"cancel",text:"Cancel"},{type:"submit",name:"save",text:"Save",primary:!0}],initialData:{id:t},onSubmit:t=>{((e,t)=>/^[A-Za-z][A-Za-z0-9\-:._]*$/.test(t)?(d(e,t),!0):(e.windowManager.alert("ID should start with a letter, followed only by letters, numbers, dashes, dots, colons or underscores."),!1))(e,t.getData().id)&&t.close()}})})(e)}))})(e),(e=>{const t=()=>e.execCommand("mceAnchor");e.ui.registry.addToggleButton("anchor",{icon:"bookmark",tooltip:"Anchor",onAction:t,onSetup:t=>{const o=e.selection.selectorChangedWithUnbind("a:not([href])",t.setActive).unbind,n=u(e)(t);return()=>{o(),n()}}}),e.ui.registry.addMenuItem("anchor",{icon:"bookmark",text:"Anchor...",onAction:t,onSetup:u(e)})})(e),e.on("PreInit",(()=>{(e=>{e.formatter.register("namedAnchor",{inline:"a",selector:a,remove:"all",split:!0,deep:!0,attributes:{id:"%value"},onmatch:(e,t,o)=>l(e)})})(e)}))}))}();
@@ -0,0 +1,7 @@
1
+ // Exports the "autolink" plugin for usage with module loaders
2
+ // Usage:
3
+ // CommonJS:
4
+ // require('tinymce/plugins/autolink')
5
+ // ES2015:
6
+ // import 'tinymce/plugins/autolink'
7
+ require('./plugin.js');
@@ -0,0 +1,318 @@
1
+ /**
2
+ * TinyMCE version 7.9.1 (2025-05-29)
3
+ */
4
+
5
+ (function () {
6
+ 'use strict';
7
+
8
+ var global$1 = tinymce.util.Tools.resolve('tinymce.PluginManager');
9
+
10
+ /* eslint-disable @typescript-eslint/no-wrapper-object-types */
11
+ const hasProto = (v, constructor, predicate) => {
12
+ var _a;
13
+ if (predicate(v, constructor.prototype)) {
14
+ return true;
15
+ }
16
+ else {
17
+ // String-based fallback time
18
+ return ((_a = v.constructor) === null || _a === void 0 ? void 0 : _a.name) === constructor.name;
19
+ }
20
+ };
21
+ const typeOf = (x) => {
22
+ const t = typeof x;
23
+ if (x === null) {
24
+ return 'null';
25
+ }
26
+ else if (t === 'object' && Array.isArray(x)) {
27
+ return 'array';
28
+ }
29
+ else if (t === 'object' && hasProto(x, String, (o, proto) => proto.isPrototypeOf(o))) {
30
+ return 'string';
31
+ }
32
+ else {
33
+ return t;
34
+ }
35
+ };
36
+ const isType = (type) => (value) => typeOf(value) === type;
37
+ const eq = (t) => (a) => t === a;
38
+ const isString = isType('string');
39
+ const isUndefined = eq(undefined);
40
+ const isNullable = (a) => a === null || a === undefined;
41
+ const isNonNullable = (a) => !isNullable(a);
42
+
43
+ const not = (f) => (t) => !f(t);
44
+
45
+ // eslint-disable-next-line @typescript-eslint/unbound-method
46
+ const hasOwnProperty = Object.hasOwnProperty;
47
+ const has = (obj, key) => hasOwnProperty.call(obj, key);
48
+
49
+ const checkRange = (str, substr, start) => substr === '' || str.length >= substr.length && str.substr(start, start + substr.length) === substr;
50
+ const contains = (str, substr, start = 0, end) => {
51
+ const idx = str.indexOf(substr, start);
52
+ if (idx !== -1) {
53
+ return isUndefined(end) ? true : idx + substr.length <= end;
54
+ }
55
+ else {
56
+ return false;
57
+ }
58
+ };
59
+ /** Does 'str' start with 'prefix'?
60
+ * Note: all strings start with the empty string.
61
+ * More formally, for all strings x, startsWith(x, "").
62
+ * This is so that for all strings x and y, startsWith(y + x, y)
63
+ */
64
+ const startsWith = (str, prefix) => {
65
+ return checkRange(str, prefix, 0);
66
+ };
67
+
68
+ const zeroWidth = '\uFEFF';
69
+ const isZwsp = (char) => char === zeroWidth;
70
+ const removeZwsp = (s) => s.replace(/\uFEFF/g, '');
71
+
72
+ /*
73
+ The RegEx parses the following components (https://www.rfc-editor.org/rfc/rfc3986.txt):
74
+
75
+ scheme:[//[user:password@]host[:port]][/]path[?query][#fragment]
76
+
77
+ foo://example.com:8042/over/there?name=ferret#nose
78
+ \_/ \______________/\_________/ \_________/ \__/
79
+ | | | | |
80
+ scheme authority path query fragment
81
+
82
+ Originally from:
83
+ http://blog.mattheworiordan.com/post/13174566389/url-regular-expression-for-links-with-or-without-the
84
+
85
+ Modified to:
86
+ - include port numbers
87
+ - allow full stops in email addresses
88
+ - allow [-.~*+=!&;:'%@?^${}(),\/\w] after the #
89
+ - allow [-.~*+=!&;:'%@?^${}(),\/\w] after the ?
90
+ - move allow -_.~*+=!&;:'%@?^${}() in email usernames to the first @ match (TBIO-4809)
91
+ - enforce domains to be [A-Za-z0-9-]+(?:\.[A-Za-z0-9-]+)* so they can't end in a period (TBIO-4809)
92
+ - removed a bunch of escaping, made every group non-capturing (during TBIO-4809)
93
+ - colons are only valid when followed directly by // or some text and then @ (TBIO-4867)
94
+ - only include the fragment '#' if it has 1 or more trailing matches
95
+ - only include the query '?' if it has 1 or more trailing matches
96
+ - allow commas in URL path
97
+ - exclude trailing comma and period in URL path
98
+ - allow up to 15 character schemes including all valid characters from the spec https://url.spec.whatwg.org/#url-scheme-string (TINY-5074)
99
+ - changed instances of 0-9 to be \d (TINY-5074)
100
+ - reduced duplication (TINY-5074)
101
+ - allow [*!;:'@$] in the path segment as they are valid characters per the spec: https://url.spec.whatwg.org/#url-path-segment-string (TINY-8069)
102
+
103
+ (?:
104
+ (?:
105
+ [A-Za-z][A-Za-z\d.+-]{0,14}:\/\/(?:[-.~*+=!&;:'%@?^${}(),\w]+@)?
106
+ | www\.
107
+ | [-;:&=+$,.\w]+@
108
+ )
109
+ [A-Za-z\d-]+
110
+ (?:\.[A-Za-z\d-]+)*
111
+ )
112
+ (?::\d+)?
113
+ (?:
114
+ \/
115
+ (?:
116
+ [-.~*+=!;:'%@$(),\/\w]*[-~*+=%@$()\/\w]
117
+ )?
118
+ )?
119
+ (?:
120
+ \?
121
+ (?:
122
+ [-.~*+=!&;:'%@?^${}(),\/\w]+
123
+ )
124
+ )?
125
+ (?:
126
+ #
127
+ (?:
128
+ [-.~*+=!&;:'%@?^${}(),\/\w]+
129
+ )
130
+ )?
131
+ */
132
+ const link = () =>
133
+ // eslint-disable-next-line max-len
134
+ /(?:[A-Za-z][A-Za-z\d.+-]{0,14}:\/\/(?:[-.~*+=!&;:'%@?^${}(),\w]+@)?|www\.|[-;:&=+$,.\w]+@)[A-Za-z\d-]+(?:\.[A-Za-z\d-]+)*(?::\d+)?(?:\/(?:[-.~*+=!;:'%@$(),\/\w]*[-~*+=%@$()\/\w])?)?(?:\?(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?(?:#(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?/g;
135
+
136
+ const option = (name) => (editor) => editor.options.get(name);
137
+ const register = (editor) => {
138
+ const registerOption = editor.options.register;
139
+ registerOption('autolink_pattern', {
140
+ processor: 'regexp',
141
+ // Use the Polaris link detection, however for autolink we need to make it be an exact match
142
+ default: new RegExp('^' + link().source + '$', 'i')
143
+ });
144
+ registerOption('link_default_target', {
145
+ processor: 'string'
146
+ });
147
+ registerOption('link_default_protocol', {
148
+ processor: 'string',
149
+ default: 'https'
150
+ });
151
+ };
152
+ const getAutoLinkPattern = option('autolink_pattern');
153
+ const getDefaultLinkTarget = option('link_default_target');
154
+ const getDefaultLinkProtocol = option('link_default_protocol');
155
+ const allowUnsafeLinkTarget = option('allow_unsafe_link_target');
156
+
157
+ var global = tinymce.util.Tools.resolve('tinymce.dom.TextSeeker');
158
+
159
+ const isTextNode = (node) => node.nodeType === 3;
160
+ const isElement = (node) => node.nodeType === 1;
161
+ const isBracketOrSpace = (char) => /^[(\[{ \u00a0]$/.test(char);
162
+ // Note: This is similar to the Polaris protocol detection, except it also handles `mailto` and any length scheme
163
+ const hasProtocol = (url) => /^([A-Za-z][A-Za-z\d.+-]*:\/\/)|mailto:/.test(url);
164
+ // A limited list of punctuation characters that might be used after a link
165
+ const isPunctuation = (char) => /[?!,.;:]/.test(char);
166
+ const findChar = (text, index, predicate) => {
167
+ for (let i = index - 1; i >= 0; i--) {
168
+ const char = text.charAt(i);
169
+ if (!isZwsp(char) && predicate(char)) {
170
+ return i;
171
+ }
172
+ }
173
+ return -1;
174
+ };
175
+ const freefallRtl = (container, offset) => {
176
+ let tempNode = container;
177
+ let tempOffset = offset;
178
+ while (isElement(tempNode) && tempNode.childNodes[tempOffset]) {
179
+ tempNode = tempNode.childNodes[tempOffset];
180
+ tempOffset = isTextNode(tempNode) ? tempNode.data.length : tempNode.childNodes.length;
181
+ }
182
+ return { container: tempNode, offset: tempOffset };
183
+ };
184
+
185
+ const parseCurrentLine = (editor, offset) => {
186
+ var _a;
187
+ const voidElements = editor.schema.getVoidElements();
188
+ const autoLinkPattern = getAutoLinkPattern(editor);
189
+ const { dom, selection } = editor;
190
+ // Never create a link when we are inside a link
191
+ if (dom.getParent(selection.getNode(), 'a[href]') !== null || editor.mode.isReadOnly()) {
192
+ return null;
193
+ }
194
+ const rng = selection.getRng();
195
+ const textSeeker = global(dom, (node) => {
196
+ return dom.isBlock(node) || has(voidElements, node.nodeName.toLowerCase()) || dom.getContentEditable(node) === 'false' || dom.getParent(node, 'a[href]') !== null;
197
+ });
198
+ // Descend down the end container to find the text node
199
+ const { container: endContainer, offset: endOffset } = freefallRtl(rng.endContainer, rng.endOffset);
200
+ // Find the root container to use when walking
201
+ const root = (_a = dom.getParent(endContainer, dom.isBlock)) !== null && _a !== void 0 ? _a : dom.getRoot();
202
+ // Move the selection backwards to the start of the potential URL to account for the pressed character
203
+ // while also excluding the last full stop from a word like "www.site.com."
204
+ const endSpot = textSeeker.backwards(endContainer, endOffset + offset, (node, offset) => {
205
+ const text = node.data;
206
+ const idx = findChar(text, offset, not(isBracketOrSpace));
207
+ // Move forward one so the offset is after the found character unless the found char is a punctuation char
208
+ return idx === -1 || isPunctuation(text[idx]) ? idx : idx + 1;
209
+ }, root);
210
+ if (!endSpot) {
211
+ return null;
212
+ }
213
+ // Walk backwards until we find a boundary or a bracket/space
214
+ let lastTextNode = endSpot.container;
215
+ const startSpot = textSeeker.backwards(endSpot.container, endSpot.offset, (node, offset) => {
216
+ lastTextNode = node;
217
+ const idx = findChar(node.data, offset, isBracketOrSpace);
218
+ // Move forward one so that the offset is after the bracket/space
219
+ return idx === -1 ? idx : idx + 1;
220
+ }, root);
221
+ const newRng = dom.createRng();
222
+ if (!startSpot) {
223
+ newRng.setStart(lastTextNode, 0);
224
+ }
225
+ else {
226
+ newRng.setStart(startSpot.container, startSpot.offset);
227
+ }
228
+ newRng.setEnd(endSpot.container, endSpot.offset);
229
+ const rngText = removeZwsp(newRng.toString());
230
+ const matches = rngText.match(autoLinkPattern);
231
+ if (matches) {
232
+ let url = matches[0];
233
+ if (startsWith(url, 'www.')) {
234
+ const protocol = getDefaultLinkProtocol(editor);
235
+ url = protocol + '://' + url;
236
+ }
237
+ else if (contains(url, '@') && !hasProtocol(url)) {
238
+ url = 'mailto:' + url;
239
+ }
240
+ return { rng: newRng, url };
241
+ }
242
+ else {
243
+ return null;
244
+ }
245
+ };
246
+ const convertToLink = (editor, result) => {
247
+ const { dom, selection } = editor;
248
+ const { rng, url } = result;
249
+ const bookmark = selection.getBookmark();
250
+ selection.setRng(rng);
251
+ // Needs to be a native createlink command since this is executed in a keypress event handler
252
+ // so the pending character that is to be inserted needs to be inserted after the link. That will not
253
+ // happen if we use the formatter create link version. Since we're using the native command
254
+ // then we also need to ensure the exec command events are fired for backwards compatibility.
255
+ const command = 'createlink';
256
+ const args = { command, ui: false, value: url };
257
+ const beforeExecEvent = editor.dispatch('BeforeExecCommand', args);
258
+ if (!beforeExecEvent.isDefaultPrevented()) {
259
+ editor.getDoc().execCommand(command, false, url);
260
+ editor.dispatch('ExecCommand', args);
261
+ const defaultLinkTarget = getDefaultLinkTarget(editor);
262
+ if (isString(defaultLinkTarget)) {
263
+ const anchor = selection.getNode();
264
+ dom.setAttrib(anchor, 'target', defaultLinkTarget);
265
+ // Ensure noopener is added for blank targets to prevent window opener attacks
266
+ if (defaultLinkTarget === '_blank' && !allowUnsafeLinkTarget(editor)) {
267
+ dom.setAttrib(anchor, 'rel', 'noopener');
268
+ }
269
+ }
270
+ }
271
+ selection.moveToBookmark(bookmark);
272
+ editor.nodeChanged();
273
+ };
274
+ const handleSpacebar = (editor) => {
275
+ const result = parseCurrentLine(editor, -1);
276
+ if (isNonNullable(result)) {
277
+ convertToLink(editor, result);
278
+ }
279
+ };
280
+ const handleBracket = handleSpacebar;
281
+ const handleEnter = (editor) => {
282
+ const result = parseCurrentLine(editor, 0);
283
+ if (isNonNullable(result)) {
284
+ convertToLink(editor, result);
285
+ }
286
+ };
287
+ const setup = (editor) => {
288
+ editor.on('keydown', (e) => {
289
+ if (e.keyCode === 13 && !e.isDefaultPrevented()) {
290
+ handleEnter(editor);
291
+ }
292
+ });
293
+ editor.on('keyup', (e) => {
294
+ if (e.keyCode === 32) {
295
+ handleSpacebar(editor);
296
+ // One of the closing bracket keys: ), ] or }
297
+ }
298
+ else if (e.keyCode === 48 && e.shiftKey || e.keyCode === 221) {
299
+ handleBracket(editor);
300
+ }
301
+ });
302
+ };
303
+
304
+ var Plugin = () => {
305
+ global$1.add('autolink', (editor) => {
306
+ register(editor);
307
+ setup(editor);
308
+ });
309
+ };
310
+
311
+ Plugin();
312
+ /** *****
313
+ * DO NOT EXPORT ANYTHING
314
+ *
315
+ * IF YOU DO ROLLUP WILL LEAVE A GLOBAL ON THE PAGE
316
+ *******/
317
+
318
+ })();
@@ -0,0 +1 @@
1
+ !function(){"use strict";var e=tinymce.util.Tools.resolve("tinymce.PluginManager");const t=e=>"string"===(e=>{const t=typeof e;return null===e?"null":"object"===t&&Array.isArray(e)?"array":"object"===t&&(n=o=e,(r=String).prototype.isPrototypeOf(n)||(null===(a=o.constructor)||void 0===a?void 0:a.name)===r.name)?"string":t;var n,o,r,a})(e);const n=e=>undefined===e;const o=e=>!(e=>null==e)(e),r=Object.hasOwnProperty,a=e=>"\ufeff"===e,s=e=>t=>t.options.get(e),l=s("autolink_pattern"),i=s("link_default_target"),c=s("link_default_protocol"),d=s("allow_unsafe_link_target");var u=tinymce.util.Tools.resolve("tinymce.dom.TextSeeker");const f=e=>/^[(\[{ \u00a0]$/.test(e),g=(e,t,n)=>{for(let o=t-1;o>=0;o--){const t=e.charAt(o);if(!a(t)&&n(t))return o}return-1},m=(e,t)=>{var o;const a=e.schema.getVoidElements(),s=l(e),{dom:i,selection:d}=e;if(null!==i.getParent(d.getNode(),"a[href]")||e.mode.isReadOnly())return null;const m=d.getRng(),k=u(i,(e=>{return i.isBlock(e)||(t=a,n=e.nodeName.toLowerCase(),r.call(t,n))||"false"===i.getContentEditable(e)||null!==i.getParent(e,"a[href]");var t,n})),{container:p,offset:y}=((e,t)=>{let n=e,o=t;for(;1===n.nodeType&&n.childNodes[o];)n=n.childNodes[o],o=3===n.nodeType?n.data.length:n.childNodes.length;return{container:n,offset:o}})(m.endContainer,m.endOffset),w=null!==(o=i.getParent(p,i.isBlock))&&void 0!==o?o:i.getRoot(),h=k.backwards(p,y+t,((e,t)=>{const n=e.data,o=g(n,t,(r=f,e=>!r(e)));var r,a;return-1===o||(a=n[o],/[?!,.;:]/.test(a))?o:o+1}),w);if(!h)return null;let v=h.container;const _=k.backwards(h.container,h.offset,((e,t)=>{v=e;const n=g(e.data,t,f);return-1===n?n:n+1}),w),A=i.createRng();_?A.setStart(_.container,_.offset):A.setStart(v,0),A.setEnd(h.container,h.offset);const C=A.toString().replace(/\uFEFF/g,"").match(s);if(C){let t=C[0];return P="www.",(b=t).length>=4&&b.substr(0,4)===P?t=c(e)+"://"+t:((e,t,o=0,r)=>{const a=e.indexOf(t,o);return-1!==a&&(!!n(r)||a+t.length<=r)})(t,"@")&&!(e=>/^([A-Za-z][A-Za-z\d.+-]*:\/\/)|mailto:/.test(e))(t)&&(t="mailto:"+t),{rng:A,url:t}}var b,P;return null},k=(e,n)=>{const{dom:o,selection:r}=e,{rng:a,url:s}=n,l=r.getBookmark();r.setRng(a);const c="createlink",u={command:c,ui:!1,value:s};if(!e.dispatch("BeforeExecCommand",u).isDefaultPrevented()){e.getDoc().execCommand(c,!1,s),e.dispatch("ExecCommand",u);const n=i(e);if(t(n)){const t=r.getNode();o.setAttrib(t,"target",n),"_blank"!==n||d(e)||o.setAttrib(t,"rel","noopener")}}r.moveToBookmark(l),e.nodeChanged()},p=e=>{const t=m(e,-1);o(t)&&k(e,t)},y=p;e.add("autolink",(e=>{(e=>{const t=e.options.register;t("autolink_pattern",{processor:"regexp",default:new RegExp("^"+/(?:[A-Za-z][A-Za-z\d.+-]{0,14}:\/\/(?:[-.~*+=!&;:'%@?^${}(),\w]+@)?|www\.|[-;:&=+$,.\w]+@)[A-Za-z\d-]+(?:\.[A-Za-z\d-]+)*(?::\d+)?(?:\/(?:[-.~*+=!;:'%@$(),\/\w]*[-~*+=%@$()\/\w])?)?(?:\?(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?(?:#(?:[-.~*+=!&;:'%@?^${}(),\/\w]+))?/g.source+"$","i")}),t("link_default_target",{processor:"string"}),t("link_default_protocol",{processor:"string",default:"https"})})(e),(e=>{e.on("keydown",(t=>{13!==t.keyCode||t.isDefaultPrevented()||(e=>{const t=m(e,0);o(t)&&k(e,t)})(e)})),e.on("keyup",(t=>{32===t.keyCode?p(e):(48===t.keyCode&&t.shiftKey||221===t.keyCode)&&y(e)}))})(e)}))}();
@@ -0,0 +1,7 @@
1
+ // Exports the "autoresize" plugin for usage with module loaders
2
+ // Usage:
3
+ // CommonJS:
4
+ // require('tinymce/plugins/autoresize')
5
+ // ES2015:
6
+ // import 'tinymce/plugins/autoresize'
7
+ require('./plugin.js');