@progress/kendo-vue-editor 5.3.0-dev.202410141143 → 5.3.0-develop.2

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 (361) hide show
  1. package/Editor.js +8 -0
  2. package/Editor.mjs +584 -0
  3. package/README.md +25 -31
  4. package/config/defaultStyles.js +204 -0
  5. package/config/defaultStyles.mjs +209 -0
  6. package/config/schema.js +8 -0
  7. package/config/schema.mjs +44 -0
  8. package/config/shortcuts.js +8 -0
  9. package/config/shortcuts.mjs +41 -0
  10. package/config/toolsSettings.js +8 -0
  11. package/config/toolsSettings.mjs +558 -0
  12. package/dialogs/FindReplace.js +8 -0
  13. package/dialogs/FindReplace.mjs +366 -0
  14. package/dialogs/insertImage.js +8 -0
  15. package/dialogs/insertImage.mjs +211 -0
  16. package/dialogs/insertLink.js +8 -0
  17. package/dialogs/insertLink.mjs +164 -0
  18. package/dialogs/viewHtml.js +8 -0
  19. package/dialogs/viewHtml.mjs +128 -0
  20. package/dist/cdn/js/kendo-vue-editor.js +8 -1
  21. package/index.d.mts +2936 -0
  22. package/index.d.ts +2936 -0
  23. package/index.js +8 -0
  24. package/index.mjs +207 -0
  25. package/messages/main.js +8 -0
  26. package/messages/main.mjs +182 -0
  27. package/package-metadata.js +8 -0
  28. package/package-metadata.mjs +18 -0
  29. package/package.json +23 -62
  30. package/tools/align.js +8 -0
  31. package/tools/align.mjs +69 -0
  32. package/tools/applyColor.js +8 -0
  33. package/tools/applyColor.mjs +71 -0
  34. package/tools/cleanFormatting.js +8 -0
  35. package/tools/cleanFormatting.mjs +65 -0
  36. package/tools/findReplace.js +8 -0
  37. package/tools/findReplace.mjs +67 -0
  38. package/tools/fontStyle.js +8 -0
  39. package/tools/fontStyle.mjs +104 -0
  40. package/tools/formatBlock.js +8 -0
  41. package/tools/formatBlock.mjs +96 -0
  42. package/tools/indent.js +8 -0
  43. package/tools/indent.mjs +63 -0
  44. package/tools/inlineFormat.js +8 -0
  45. package/tools/inlineFormat.mjs +80 -0
  46. package/tools/insertImage.js +8 -0
  47. package/tools/insertImage.mjs +77 -0
  48. package/tools/insertLink.js +8 -0
  49. package/tools/insertLink.mjs +76 -0
  50. package/tools/insertTable/popup.js +8 -0
  51. package/tools/insertTable/popup.mjs +105 -0
  52. package/tools/insertTable/popupGrid.js +8 -0
  53. package/tools/insertTable/popupGrid.mjs +83 -0
  54. package/tools/insertTable/tool.js +8 -0
  55. package/tools/insertTable/tool.mjs +98 -0
  56. package/tools/lists.js +8 -0
  57. package/tools/lists.mjs +77 -0
  58. package/tools/outdent.js +8 -0
  59. package/tools/outdent.mjs +75 -0
  60. package/tools/pdf.js +8 -0
  61. package/tools/pdf.mjs +63 -0
  62. package/tools/print.js +8 -0
  63. package/tools/print.mjs +58 -0
  64. package/tools/proseMirrorTool.js +8 -0
  65. package/tools/proseMirrorTool.mjs +61 -0
  66. package/tools/selectAll.js +8 -0
  67. package/tools/selectAll.mjs +56 -0
  68. package/tools/unlink.js +8 -0
  69. package/tools/unlink.mjs +64 -0
  70. package/tools/utils.js +8 -0
  71. package/tools/utils.mjs +18 -0
  72. package/tools/viewHtml.js +8 -0
  73. package/tools/viewHtml.mjs +72 -0
  74. package/utils/browser-detection.js +8 -0
  75. package/utils/browser-detection.mjs +11 -0
  76. package/utils/controlled-value.js +8 -0
  77. package/utils/controlled-value.mjs +18 -0
  78. package/utils/main.js +8 -0
  79. package/utils/main.mjs +162 -0
  80. package/utils/props-key.js +8 -0
  81. package/utils/props-key.mjs +12 -0
  82. package/dist/es/Editor.d.ts +0 -283
  83. package/dist/es/Editor.js +0 -812
  84. package/dist/es/EditorProps.d.ts +0 -194
  85. package/dist/es/EditorProps.js +0 -1
  86. package/dist/es/additionalTypes.ts +0 -21
  87. package/dist/es/config/defaultStyles.d.ts +0 -12
  88. package/dist/es/config/defaultStyles.js +0 -12
  89. package/dist/es/config/pasteSettings.d.ts +0 -6
  90. package/dist/es/config/pasteSettings.js +0 -1
  91. package/dist/es/config/schema.d.ts +0 -8
  92. package/dist/es/config/schema.js +0 -51
  93. package/dist/es/config/shortcuts.d.ts +0 -24
  94. package/dist/es/config/shortcuts.js +0 -61
  95. package/dist/es/config/toolsSettings.d.ts +0 -489
  96. package/dist/es/config/toolsSettings.js +0 -528
  97. package/dist/es/dialogs/EditorDialogProps.d.ts +0 -23
  98. package/dist/es/dialogs/EditorDialogProps.js +0 -1
  99. package/dist/es/dialogs/FindReplace.d.ts +0 -70
  100. package/dist/es/dialogs/FindReplace.js +0 -909
  101. package/dist/es/dialogs/insertImage.d.ts +0 -54
  102. package/dist/es/dialogs/insertImage.js +0 -1164
  103. package/dist/es/dialogs/insertLink.d.ts +0 -52
  104. package/dist/es/dialogs/insertLink.js +0 -826
  105. package/dist/es/dialogs/main.d.ts +0 -1
  106. package/dist/es/dialogs/main.js +0 -42
  107. package/dist/es/dialogs/viewHtml.d.ts +0 -51
  108. package/dist/es/dialogs/viewHtml.js +0 -201
  109. package/dist/es/main.d.ts +0 -192
  110. package/dist/es/main.js +0 -217
  111. package/dist/es/messages/main.d.ts +0 -172
  112. package/dist/es/messages/main.js +0 -503
  113. package/dist/es/package-metadata.d.ts +0 -5
  114. package/dist/es/package-metadata.js +0 -11
  115. package/dist/es/tools/ToolProps.d.ts +0 -35
  116. package/dist/es/tools/ToolProps.js +0 -1
  117. package/dist/es/tools/align.d.ts +0 -42
  118. package/dist/es/tools/align.js +0 -111
  119. package/dist/es/tools/applyColor.d.ts +0 -45
  120. package/dist/es/tools/applyColor.js +0 -100
  121. package/dist/es/tools/cleanFormatting.d.ts +0 -49
  122. package/dist/es/tools/cleanFormatting.js +0 -107
  123. package/dist/es/tools/findReplace.d.ts +0 -43
  124. package/dist/es/tools/findReplace.js +0 -115
  125. package/dist/es/tools/fontStyle.d.ts +0 -55
  126. package/dist/es/tools/fontStyle.js +0 -150
  127. package/dist/es/tools/formatBlock.d.ts +0 -45
  128. package/dist/es/tools/formatBlock.js +0 -145
  129. package/dist/es/tools/history.d.ts +0 -18
  130. package/dist/es/tools/history.js +0 -3
  131. package/dist/es/tools/indent.d.ts +0 -44
  132. package/dist/es/tools/indent.js +0 -121
  133. package/dist/es/tools/inlineFormat.d.ts +0 -74
  134. package/dist/es/tools/inlineFormat.js +0 -120
  135. package/dist/es/tools/insertImage.d.ts +0 -46
  136. package/dist/es/tools/insertImage.js +0 -126
  137. package/dist/es/tools/insertLink.d.ts +0 -46
  138. package/dist/es/tools/insertLink.js +0 -126
  139. package/dist/es/tools/insertTable/popup.d.ts +0 -80
  140. package/dist/es/tools/insertTable/popup.js +0 -177
  141. package/dist/es/tools/insertTable/popupGrid.d.ts +0 -51
  142. package/dist/es/tools/insertTable/popupGrid.js +0 -131
  143. package/dist/es/tools/insertTable/tool.d.ts +0 -53
  144. package/dist/es/tools/insertTable/tool.js +0 -157
  145. package/dist/es/tools/lists.d.ts +0 -48
  146. package/dist/es/tools/lists.js +0 -124
  147. package/dist/es/tools/main.d.ts +0 -95
  148. package/dist/es/tools/main.js +0 -1
  149. package/dist/es/tools/outdent.d.ts +0 -44
  150. package/dist/es/tools/outdent.js +0 -123
  151. package/dist/es/tools/pdf.d.ts +0 -58
  152. package/dist/es/tools/pdf.js +0 -100
  153. package/dist/es/tools/print.d.ts +0 -49
  154. package/dist/es/tools/print.js +0 -103
  155. package/dist/es/tools/proseMirrorTool.d.ts +0 -48
  156. package/dist/es/tools/proseMirrorTool.js +0 -104
  157. package/dist/es/tools/selectAll.d.ts +0 -49
  158. package/dist/es/tools/selectAll.js +0 -97
  159. package/dist/es/tools/tableEdit.d.ts +0 -51
  160. package/dist/es/tools/tableEdit.js +0 -34
  161. package/dist/es/tools/unlink.d.ts +0 -47
  162. package/dist/es/tools/unlink.js +0 -104
  163. package/dist/es/tools/utils.d.ts +0 -18
  164. package/dist/es/tools/utils.js +0 -31
  165. package/dist/es/tools/viewHtml.d.ts +0 -54
  166. package/dist/es/tools/viewHtml.js +0 -121
  167. package/dist/es/utils/browser-detection.d.ts +0 -4
  168. package/dist/es/utils/browser-detection.js +0 -5
  169. package/dist/es/utils/controlled-value.d.ts +0 -5
  170. package/dist/es/utils/controlled-value.js +0 -31
  171. package/dist/es/utils/main.d.ts +0 -357
  172. package/dist/es/utils/main.js +0 -422
  173. package/dist/es/utils/props-key.d.ts +0 -5
  174. package/dist/es/utils/props-key.js +0 -5
  175. package/dist/esm/Editor.d.ts +0 -283
  176. package/dist/esm/Editor.js +0 -812
  177. package/dist/esm/EditorProps.d.ts +0 -194
  178. package/dist/esm/EditorProps.js +0 -1
  179. package/dist/esm/additionalTypes.ts +0 -21
  180. package/dist/esm/config/defaultStyles.d.ts +0 -12
  181. package/dist/esm/config/defaultStyles.js +0 -12
  182. package/dist/esm/config/pasteSettings.d.ts +0 -6
  183. package/dist/esm/config/pasteSettings.js +0 -1
  184. package/dist/esm/config/schema.d.ts +0 -8
  185. package/dist/esm/config/schema.js +0 -51
  186. package/dist/esm/config/shortcuts.d.ts +0 -24
  187. package/dist/esm/config/shortcuts.js +0 -61
  188. package/dist/esm/config/toolsSettings.d.ts +0 -489
  189. package/dist/esm/config/toolsSettings.js +0 -528
  190. package/dist/esm/dialogs/EditorDialogProps.d.ts +0 -23
  191. package/dist/esm/dialogs/EditorDialogProps.js +0 -1
  192. package/dist/esm/dialogs/FindReplace.d.ts +0 -70
  193. package/dist/esm/dialogs/FindReplace.js +0 -909
  194. package/dist/esm/dialogs/insertImage.d.ts +0 -54
  195. package/dist/esm/dialogs/insertImage.js +0 -1164
  196. package/dist/esm/dialogs/insertLink.d.ts +0 -52
  197. package/dist/esm/dialogs/insertLink.js +0 -826
  198. package/dist/esm/dialogs/main.d.ts +0 -1
  199. package/dist/esm/dialogs/main.js +0 -42
  200. package/dist/esm/dialogs/viewHtml.d.ts +0 -51
  201. package/dist/esm/dialogs/viewHtml.js +0 -201
  202. package/dist/esm/main.d.ts +0 -192
  203. package/dist/esm/main.js +0 -217
  204. package/dist/esm/messages/main.d.ts +0 -172
  205. package/dist/esm/messages/main.js +0 -503
  206. package/dist/esm/package-metadata.d.ts +0 -5
  207. package/dist/esm/package-metadata.js +0 -11
  208. package/dist/esm/package.json +0 -3
  209. package/dist/esm/tools/ToolProps.d.ts +0 -35
  210. package/dist/esm/tools/ToolProps.js +0 -1
  211. package/dist/esm/tools/align.d.ts +0 -42
  212. package/dist/esm/tools/align.js +0 -111
  213. package/dist/esm/tools/applyColor.d.ts +0 -45
  214. package/dist/esm/tools/applyColor.js +0 -100
  215. package/dist/esm/tools/cleanFormatting.d.ts +0 -49
  216. package/dist/esm/tools/cleanFormatting.js +0 -107
  217. package/dist/esm/tools/findReplace.d.ts +0 -43
  218. package/dist/esm/tools/findReplace.js +0 -115
  219. package/dist/esm/tools/fontStyle.d.ts +0 -55
  220. package/dist/esm/tools/fontStyle.js +0 -150
  221. package/dist/esm/tools/formatBlock.d.ts +0 -45
  222. package/dist/esm/tools/formatBlock.js +0 -145
  223. package/dist/esm/tools/history.d.ts +0 -18
  224. package/dist/esm/tools/history.js +0 -3
  225. package/dist/esm/tools/indent.d.ts +0 -44
  226. package/dist/esm/tools/indent.js +0 -121
  227. package/dist/esm/tools/inlineFormat.d.ts +0 -74
  228. package/dist/esm/tools/inlineFormat.js +0 -120
  229. package/dist/esm/tools/insertImage.d.ts +0 -46
  230. package/dist/esm/tools/insertImage.js +0 -126
  231. package/dist/esm/tools/insertLink.d.ts +0 -46
  232. package/dist/esm/tools/insertLink.js +0 -126
  233. package/dist/esm/tools/insertTable/popup.d.ts +0 -80
  234. package/dist/esm/tools/insertTable/popup.js +0 -177
  235. package/dist/esm/tools/insertTable/popupGrid.d.ts +0 -51
  236. package/dist/esm/tools/insertTable/popupGrid.js +0 -131
  237. package/dist/esm/tools/insertTable/tool.d.ts +0 -53
  238. package/dist/esm/tools/insertTable/tool.js +0 -157
  239. package/dist/esm/tools/lists.d.ts +0 -48
  240. package/dist/esm/tools/lists.js +0 -124
  241. package/dist/esm/tools/main.d.ts +0 -95
  242. package/dist/esm/tools/main.js +0 -1
  243. package/dist/esm/tools/outdent.d.ts +0 -44
  244. package/dist/esm/tools/outdent.js +0 -123
  245. package/dist/esm/tools/pdf.d.ts +0 -58
  246. package/dist/esm/tools/pdf.js +0 -100
  247. package/dist/esm/tools/print.d.ts +0 -49
  248. package/dist/esm/tools/print.js +0 -103
  249. package/dist/esm/tools/proseMirrorTool.d.ts +0 -48
  250. package/dist/esm/tools/proseMirrorTool.js +0 -104
  251. package/dist/esm/tools/selectAll.d.ts +0 -49
  252. package/dist/esm/tools/selectAll.js +0 -97
  253. package/dist/esm/tools/tableEdit.d.ts +0 -51
  254. package/dist/esm/tools/tableEdit.js +0 -34
  255. package/dist/esm/tools/unlink.d.ts +0 -47
  256. package/dist/esm/tools/unlink.js +0 -104
  257. package/dist/esm/tools/utils.d.ts +0 -18
  258. package/dist/esm/tools/utils.js +0 -31
  259. package/dist/esm/tools/viewHtml.d.ts +0 -54
  260. package/dist/esm/tools/viewHtml.js +0 -121
  261. package/dist/esm/utils/browser-detection.d.ts +0 -4
  262. package/dist/esm/utils/browser-detection.js +0 -5
  263. package/dist/esm/utils/controlled-value.d.ts +0 -5
  264. package/dist/esm/utils/controlled-value.js +0 -31
  265. package/dist/esm/utils/main.d.ts +0 -357
  266. package/dist/esm/utils/main.js +0 -422
  267. package/dist/esm/utils/props-key.d.ts +0 -5
  268. package/dist/esm/utils/props-key.js +0 -5
  269. package/dist/npm/Editor.d.ts +0 -283
  270. package/dist/npm/Editor.js +0 -819
  271. package/dist/npm/EditorProps.d.ts +0 -194
  272. package/dist/npm/EditorProps.js +0 -2
  273. package/dist/npm/additionalTypes.ts +0 -21
  274. package/dist/npm/config/defaultStyles.d.ts +0 -12
  275. package/dist/npm/config/defaultStyles.js +0 -15
  276. package/dist/npm/config/pasteSettings.d.ts +0 -6
  277. package/dist/npm/config/pasteSettings.js +0 -2
  278. package/dist/npm/config/schema.d.ts +0 -8
  279. package/dist/npm/config/schema.js +0 -55
  280. package/dist/npm/config/shortcuts.d.ts +0 -24
  281. package/dist/npm/config/shortcuts.js +0 -68
  282. package/dist/npm/config/toolsSettings.d.ts +0 -489
  283. package/dist/npm/config/toolsSettings.js +0 -531
  284. package/dist/npm/dialogs/EditorDialogProps.d.ts +0 -23
  285. package/dist/npm/dialogs/EditorDialogProps.js +0 -2
  286. package/dist/npm/dialogs/FindReplace.d.ts +0 -70
  287. package/dist/npm/dialogs/FindReplace.js +0 -916
  288. package/dist/npm/dialogs/insertImage.d.ts +0 -54
  289. package/dist/npm/dialogs/insertImage.js +0 -1171
  290. package/dist/npm/dialogs/insertLink.d.ts +0 -52
  291. package/dist/npm/dialogs/insertLink.js +0 -833
  292. package/dist/npm/dialogs/main.d.ts +0 -1
  293. package/dist/npm/dialogs/main.js +0 -42
  294. package/dist/npm/dialogs/viewHtml.d.ts +0 -51
  295. package/dist/npm/dialogs/viewHtml.js +0 -208
  296. package/dist/npm/main.d.ts +0 -192
  297. package/dist/npm/main.js +0 -217
  298. package/dist/npm/messages/main.d.ts +0 -172
  299. package/dist/npm/messages/main.js +0 -506
  300. package/dist/npm/package-metadata.d.ts +0 -5
  301. package/dist/npm/package-metadata.js +0 -14
  302. package/dist/npm/tools/ToolProps.d.ts +0 -35
  303. package/dist/npm/tools/ToolProps.js +0 -2
  304. package/dist/npm/tools/align.d.ts +0 -42
  305. package/dist/npm/tools/align.js +0 -118
  306. package/dist/npm/tools/applyColor.d.ts +0 -45
  307. package/dist/npm/tools/applyColor.js +0 -107
  308. package/dist/npm/tools/cleanFormatting.d.ts +0 -49
  309. package/dist/npm/tools/cleanFormatting.js +0 -114
  310. package/dist/npm/tools/findReplace.d.ts +0 -43
  311. package/dist/npm/tools/findReplace.js +0 -122
  312. package/dist/npm/tools/fontStyle.d.ts +0 -55
  313. package/dist/npm/tools/fontStyle.js +0 -157
  314. package/dist/npm/tools/formatBlock.d.ts +0 -45
  315. package/dist/npm/tools/formatBlock.js +0 -152
  316. package/dist/npm/tools/history.d.ts +0 -18
  317. package/dist/npm/tools/history.js +0 -8
  318. package/dist/npm/tools/indent.d.ts +0 -44
  319. package/dist/npm/tools/indent.js +0 -128
  320. package/dist/npm/tools/inlineFormat.d.ts +0 -74
  321. package/dist/npm/tools/inlineFormat.js +0 -127
  322. package/dist/npm/tools/insertImage.d.ts +0 -46
  323. package/dist/npm/tools/insertImage.js +0 -133
  324. package/dist/npm/tools/insertLink.d.ts +0 -46
  325. package/dist/npm/tools/insertLink.js +0 -133
  326. package/dist/npm/tools/insertTable/popup.d.ts +0 -80
  327. package/dist/npm/tools/insertTable/popup.js +0 -184
  328. package/dist/npm/tools/insertTable/popupGrid.d.ts +0 -51
  329. package/dist/npm/tools/insertTable/popupGrid.js +0 -138
  330. package/dist/npm/tools/insertTable/tool.d.ts +0 -53
  331. package/dist/npm/tools/insertTable/tool.js +0 -164
  332. package/dist/npm/tools/lists.d.ts +0 -48
  333. package/dist/npm/tools/lists.js +0 -131
  334. package/dist/npm/tools/main.d.ts +0 -95
  335. package/dist/npm/tools/main.js +0 -5
  336. package/dist/npm/tools/outdent.d.ts +0 -44
  337. package/dist/npm/tools/outdent.js +0 -130
  338. package/dist/npm/tools/pdf.d.ts +0 -58
  339. package/dist/npm/tools/pdf.js +0 -107
  340. package/dist/npm/tools/print.d.ts +0 -49
  341. package/dist/npm/tools/print.js +0 -110
  342. package/dist/npm/tools/proseMirrorTool.d.ts +0 -48
  343. package/dist/npm/tools/proseMirrorTool.js +0 -111
  344. package/dist/npm/tools/selectAll.d.ts +0 -49
  345. package/dist/npm/tools/selectAll.js +0 -104
  346. package/dist/npm/tools/tableEdit.d.ts +0 -51
  347. package/dist/npm/tools/tableEdit.js +0 -39
  348. package/dist/npm/tools/unlink.d.ts +0 -47
  349. package/dist/npm/tools/unlink.js +0 -111
  350. package/dist/npm/tools/utils.d.ts +0 -18
  351. package/dist/npm/tools/utils.js +0 -39
  352. package/dist/npm/tools/viewHtml.d.ts +0 -54
  353. package/dist/npm/tools/viewHtml.js +0 -128
  354. package/dist/npm/utils/browser-detection.d.ts +0 -4
  355. package/dist/npm/utils/browser-detection.js +0 -8
  356. package/dist/npm/utils/controlled-value.d.ts +0 -5
  357. package/dist/npm/utils/controlled-value.js +0 -35
  358. package/dist/npm/utils/main.d.ts +0 -357
  359. package/dist/npm/utils/main.js +0 -425
  360. package/dist/npm/utils/props-key.d.ts +0 -5
  361. package/dist/npm/utils/props-key.js +0 -8
package/dist/es/Editor.js DELETED
@@ -1,812 +0,0 @@
1
- var __assign = this && this.__assign || function () {
2
- __assign = Object.assign || function (t) {
3
- for (var s, i = 1, n = arguments.length; i < n; i++) {
4
- s = arguments[i];
5
- for (var p in s) {
6
- if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
7
- }
8
- }
9
- return t;
10
- };
11
- return __assign.apply(this, arguments);
12
- };
13
- var __spreadArray = this && this.__spreadArray || function (to, from, pack) {
14
- if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
15
- if (ar || !(i in from)) {
16
- if (!ar) ar = Array.prototype.slice.call(from, 0, i);
17
- ar[i] = from[i];
18
- }
19
- }
20
- return to.concat(ar || Array.prototype.slice.call(from));
21
- };
22
- // @ts-ignore
23
- import * as Vue from 'vue';
24
- var allVue = Vue;
25
- var gh = allVue.h;
26
- var isV3 = allVue.version && allVue.version[0] === '3';
27
- var markRaw = allVue.markRaw;
28
- var toRaw = allVue.toRaw;
29
- import { ButtonGroup, Toolbar, ToolbarSeparator } from '@progress/kendo-vue-buttons';
30
- import { classNames, validatePackage, shouldShowValidationUI, WatermarkOverlay, getTemplate, getListeners, templateRendering, guid, setRef, getRef } from '@progress/kendo-vue-common';
31
- import { EditorState, Plugin, PluginKey, EditorView, Schema, baseKeymap, keymap, history, dropCursor, gapCursor, getMark, spacesFix, tableEditing } from '@progress/kendo-editor-common';
32
- import { marks, nodes } from './config/schema';
33
- import { defaultStyle, tablesStyles, rtlStyles } from './config/defaultStyles';
34
- import { EditorToolsSettings } from './config/toolsSettings';
35
- import { InsertLinkDialog } from './dialogs/insertLink';
36
- import { EditorUtils } from './utils/main';
37
- import { editorPropsKey } from './utils/props-key';
38
- import { updateEditorValue } from './utils/controlled-value';
39
- var link = EditorToolsSettings.link,
40
- bold = EditorToolsSettings.bold,
41
- italic = EditorToolsSettings.italic,
42
- underline = EditorToolsSettings.underline;
43
- import { firefox } from './utils/browser-detection';
44
- import { packageMetadata } from './package-metadata';
45
- import { Align } from './tools/align';
46
- import { Indent } from './tools/indent';
47
- import { List } from './tools/lists';
48
- import { Outdent } from './tools/outdent';
49
- import { InlineFormat } from './tools/inlineFormat';
50
- import { FontName } from './tools/fontStyle';
51
- import { FormatBlock } from './tools/formatBlock';
52
- import { ProseMirror } from './tools/proseMirrorTool';
53
- import { LinkTool } from './tools/insertLink';
54
- import { Unlink } from './tools/unlink';
55
- import { CleanFormatting } from './tools/cleanFormatting';
56
- import { SelectAll } from './tools/selectAll';
57
- import { InsertImage } from './tools/insertImage';
58
- import { InsertTable } from './tools/insertTable/tool';
59
- import { ViewHtml } from './tools/viewHtml';
60
- import { Pdf } from './tools/pdf';
61
- import { Print } from './tools/print';
62
- import { FindAndReplace } from './tools/findReplace';
63
- import { ApplyColor } from './tools/applyColor';
64
- import { messages, keys } from './messages/main';
65
- import { provideLocalizationService } from '@progress/kendo-vue-intl';
66
- /** @hidden */
67
- export var allTools = {
68
- 'Bold': {
69
- comp: InlineFormat,
70
- props: EditorToolsSettings.bold
71
- },
72
- 'Italic': {
73
- comp: InlineFormat,
74
- props: EditorToolsSettings.italic
75
- },
76
- 'Underline': {
77
- comp: InlineFormat,
78
- props: EditorToolsSettings.underline
79
- },
80
- 'Strikethrough': {
81
- comp: InlineFormat,
82
- props: EditorToolsSettings.strikethrough
83
- },
84
- 'Subscript': {
85
- comp: InlineFormat,
86
- props: EditorToolsSettings.subscript
87
- },
88
- 'Superscript': {
89
- comp: InlineFormat,
90
- props: EditorToolsSettings.superscript
91
- },
92
- 'AlignLeft': {
93
- comp: Align,
94
- props: EditorToolsSettings.alignLeft
95
- },
96
- 'AlignCenter': {
97
- comp: Align,
98
- props: EditorToolsSettings.alignCenter
99
- },
100
- 'AlignRight': {
101
- comp: Align,
102
- props: EditorToolsSettings.alignRight
103
- },
104
- 'AlignJustify': {
105
- comp: Align,
106
- props: EditorToolsSettings.alignJustify
107
- },
108
- 'Indent': {
109
- comp: Indent,
110
- props: EditorToolsSettings.indent
111
- },
112
- 'Outdent': {
113
- comp: Outdent,
114
- props: EditorToolsSettings.outdent
115
- },
116
- 'OrderedList': {
117
- comp: List,
118
- props: EditorToolsSettings.orderedList
119
- },
120
- 'UnorderedList': {
121
- comp: List,
122
- props: EditorToolsSettings.bulletList
123
- },
124
- 'FontSize': {
125
- comp: FontName,
126
- props: EditorToolsSettings.fontSize
127
- },
128
- 'FontName': {
129
- comp: FontName,
130
- props: EditorToolsSettings.fontName
131
- },
132
- 'FormatBlock': {
133
- comp: FormatBlock,
134
- props: EditorToolsSettings.formatBlock
135
- },
136
- 'Undo': {
137
- comp: ProseMirror,
138
- props: EditorToolsSettings.undo
139
- },
140
- 'Redo': {
141
- comp: ProseMirror,
142
- props: EditorToolsSettings.redo
143
- },
144
- 'Link': {
145
- comp: LinkTool,
146
- props: EditorToolsSettings.link
147
- },
148
- 'Unlink': {
149
- comp: Unlink,
150
- props: EditorToolsSettings.unlink
151
- },
152
- 'InsertImage': {
153
- comp: InsertImage,
154
- props: EditorToolsSettings.image
155
- },
156
- 'ViewHtml': {
157
- comp: ViewHtml,
158
- props: EditorToolsSettings.viewHtml
159
- },
160
- 'CleanFormatting': {
161
- comp: CleanFormatting,
162
- props: EditorToolsSettings.cleanFormatting
163
- },
164
- 'SelectAll': {
165
- comp: SelectAll,
166
- props: EditorToolsSettings.selectAll
167
- },
168
- 'InsertTable': {
169
- comp: InsertTable,
170
- props: EditorToolsSettings.insertTable
171
- },
172
- 'MergeCells': {
173
- comp: ProseMirror,
174
- props: EditorToolsSettings.mergeCells
175
- },
176
- 'SplitCell': {
177
- comp: ProseMirror,
178
- props: EditorToolsSettings.splitCell
179
- },
180
- 'AddRowBefore': {
181
- comp: ProseMirror,
182
- props: EditorToolsSettings.addRowBefore
183
- },
184
- 'AddRowAfter': {
185
- comp: ProseMirror,
186
- props: EditorToolsSettings.addRowAfter
187
- },
188
- 'AddColumnBefore': {
189
- comp: ProseMirror,
190
- props: EditorToolsSettings.addColumnBefore
191
- },
192
- 'AddColumnAfter': {
193
- comp: ProseMirror,
194
- props: EditorToolsSettings.addColumnAfter
195
- },
196
- 'DeleteRow': {
197
- comp: ProseMirror,
198
- props: EditorToolsSettings.deleteRow
199
- },
200
- 'DeleteColumn': {
201
- comp: ProseMirror,
202
- props: EditorToolsSettings.deleteColumn
203
- },
204
- 'DeleteTable': {
205
- comp: ProseMirror,
206
- props: EditorToolsSettings.deleteTable
207
- },
208
- 'Print': {
209
- comp: Print,
210
- props: EditorToolsSettings.print
211
- },
212
- 'Pdf': {
213
- comp: Pdf,
214
- props: EditorToolsSettings.pdf
215
- },
216
- 'InsertFile': {
217
- comp: LinkTool,
218
- props: EditorToolsSettings.insertFile
219
- },
220
- 'FindAndReplace': {
221
- comp: FindAndReplace,
222
- props: EditorToolsSettings.findAndReplace
223
- },
224
- 'ForeColor': {
225
- comp: ApplyColor,
226
- props: EditorToolsSettings.foreColor
227
- },
228
- 'BackColor': {
229
- comp: ApplyColor,
230
- props: EditorToolsSettings.backColor
231
- }
232
- };
233
- /**
234
- * @hidden
235
- */
236
- var EditorVue2 = {
237
- name: 'KendoEditor',
238
- // @ts-ignore
239
- emits: {
240
- focus: null,
241
- blur: null,
242
- change: null,
243
- loaded: null,
244
- execute: null
245
- },
246
- inject: {
247
- kendoLocalizationService: {
248
- default: null
249
- }
250
- },
251
- props: {
252
- defaultContent: String,
253
- value: [Object, String],
254
- defaultEditMode: {
255
- type: String,
256
- default: 'iframe',
257
- validator: function validator(value) {
258
- return ['iframe', 'div'].includes(value);
259
- }
260
- },
261
- contentStyle: Object,
262
- dir: String,
263
- tools: Array,
264
- keyboardNavigation: {
265
- type: Boolean,
266
- default: true
267
- },
268
- resizable: Boolean,
269
- preserveWhitespace: {
270
- type: [String, Boolean],
271
- default: 'full',
272
- validator: function validator(value) {
273
- return [true, false, 'full'].includes(value);
274
- }
275
- },
276
- pasteHtml: Function,
277
- extendView: Function,
278
- ariaDescribedBy: String,
279
- ariaLabelledBy: String,
280
- ariaLabel: String
281
- },
282
- data: function data() {
283
- return {
284
- updateGuid: guid(),
285
- view: undefined,
286
- linkDialog: false,
287
- showLicenseWatermark: false
288
- };
289
- },
290
- created: function created() {
291
- this._view = undefined;
292
- this.trOnChange = null;
293
- this.valueisUpdated = false;
294
- this._prevValue = this.$props.value;
295
- validatePackage(packageMetadata);
296
- this.showLicenseWatermark = shouldShowValidationUI(packageMetadata);
297
- },
298
- mounted: function mounted() {
299
- this.iframe = getRef(this, 'iframe');
300
- this.contentElement = getRef(this, 'contentElement');
301
- if (!this.iframe || !firefox) {
302
- this.initialize();
303
- }
304
- },
305
- watch: {
306
- value: function value(_newNextMatch, oldMatch) {
307
- this.valueisUpdated = true;
308
- this._prevValue = oldMatch;
309
- }
310
- },
311
- updated: function updated() {
312
- var value = this.$props.value;
313
- var view = this.getView();
314
- if (value === undefined || !this.valueisUpdated || !view) {
315
- return;
316
- }
317
- updateEditorValue(view, this.computedValue(), this._prevValue, this.trOnChange, this.htmlOnChange);
318
- this.valueisUpdated = false;
319
- this.trOnChange = null;
320
- this.htmlOnChange = null;
321
- },
322
- destroyed: !!isV3 ? undefined : function () {
323
- if (this.getView()) {
324
- this.getView().destroy();
325
- }
326
- this.view = undefined;
327
- this._view = undefined;
328
- },
329
- // @ts-ignore
330
- unmounted: function unmounted() {
331
- if (this.getView()) {
332
- this.getView().destroy();
333
- }
334
- this.view = undefined;
335
- this._view = undefined;
336
- },
337
- // @ts-ignore
338
- setup: !isV3 ? undefined : function () {
339
- var v3 = !!isV3;
340
- return {
341
- v3: v3
342
- };
343
- },
344
- // @ts-ignore
345
- render: function render(createElement) {
346
- var h = gh || createElement;
347
- var toolindex = 100;
348
- var _a = this.$props,
349
- _b = _a.tools,
350
- tools = _b === void 0 ? [] : _b,
351
- _c = _a.defaultEditMode,
352
- defaultEditMode = _c === void 0 ? 'iframe' : _c,
353
- _d = _a.preserveWhitespace,
354
- preserveWhitespace = _d === void 0 ? 'full' : _d,
355
- style = _a.style,
356
- value = _a.value;
357
- var view = this.getView();
358
- var ls = provideLocalizationService(this);
359
- var watermark = this.showLicenseWatermark ? h(WatermarkOverlay) : null;
360
- if (this.view) {
361
- var editorProps = editorPropsKey.getState(this.view.state);
362
- editorProps.preserveWhitespace = preserveWhitespace;
363
- }
364
- var cs = this.$props.contentStyle;
365
- // vue 2 needs the value inside render in order to update correctly
366
- var contentStyle = this.v3 ? cs : value ? cs : cs;
367
- if (contentStyle === undefined && (style || {}).height === undefined) {
368
- contentStyle = {
369
- height: '300px'
370
- };
371
- }
372
- var renderDialog = function renderDialog() {
373
- return this.linkDialog &&
374
- // @ts-ignore function children
375
- h(InsertLinkDialog, {
376
- view: view,
377
- attrs: this.v3 ? undefined : {
378
- view: view,
379
- settings: link,
380
- dir: this.$props.dir
381
- },
382
- settings: link,
383
- dir: this.$props.dir,
384
- onClose: this.handleClose,
385
- on: this.v3 ? undefined : {
386
- "close": this.handleClose
387
- }
388
- });
389
- };
390
- var renderTool = function renderTool(currentTool, _index) {
391
- var ct = allTools[currentTool] || currentTool;
392
- var getAriaLabel = function getAriaLabel() {
393
- var ariaLabel;
394
- if (currentTool === 'ForeColor') {
395
- ariaLabel = ls.toLanguageString(keys.foregroundColorAriaLabel, messages[keys.foregroundColorAriaLabel]);
396
- } else if (currentTool === 'BackColor') {
397
- ariaLabel = ls.toLanguageString(keys.backgroundColor, messages[keys.backgroundColor]);
398
- }
399
- return ariaLabel;
400
- };
401
- if (allTools[currentTool]) {
402
- toolindex++;
403
- var toolProps = __assign(__assign({
404
- view: view,
405
- dir: this.$props.dir,
406
- key: toolindex,
407
- updateGuid: this.updateGuid,
408
- settings: allTools[currentTool].props
409
- }, allTools[currentTool].props), {
410
- ariaLabel: getAriaLabel()
411
- });
412
- return h(this.v3 ? markRaw(allTools[currentTool].comp) : allTools[currentTool].comp, this.v3 ? toolProps : {
413
- props: toolProps
414
- });
415
- } else if (ct === 'Separator') {
416
- return (
417
- // @ts-ignore
418
- h(ToolbarSeparator, {
419
- key: toolindex
420
- })
421
- );
422
- } else {
423
- var tool = templateRendering.call(this, ct.render, getListeners.call(this));
424
- return getTemplate.call(this, {
425
- h: h,
426
- template: tool,
427
- defaultRendering: null,
428
- additionalListeners: {},
429
- additionalProps: {
430
- view: view,
431
- dir: this.$props.dir,
432
- updateGuid: this.updateGuid,
433
- key: toolindex,
434
- settings: ct.props
435
- }
436
- });
437
- }
438
- };
439
- var renderTools = function renderTools(item, index) {
440
- return item.map(function (it) {
441
- return renderTool.call(this, it, index);
442
- }, this);
443
- };
444
- var buttons = tools.map(function (item, index) {
445
- var _this2 = this;
446
- return Array.isArray(item) ?
447
- // @ts-ignore function children
448
- h(ButtonGroup, {
449
- key: index
450
- }, this.v3 ? function () {
451
- return [renderTools.call(_this2, item, index)];
452
- } : [renderTools.call(_this2, item, index)]) : renderTool.call(this, item, index);
453
- }, this);
454
- return h("div", {
455
- "class": classNames('k-editor', {
456
- 'k-editor-resizable': this.$props.resizable
457
- }),
458
- dir: this.$props.dir,
459
- attrs: this.v3 ? undefined : {
460
- dir: this.$props.dir
461
- }
462
- }, [buttons.length > 0 &&
463
- // @ts-ignore function children
464
- h(Toolbar, {
465
- "class": 'k-editor-toolbar',
466
- keyboardNavigation: this.$props.keyboardNavigation,
467
- attrs: this.v3 ? undefined : {
468
- keyboardNavigation: this.$props.keyboardNavigation
469
- }
470
- }, this.v3 ? function () {
471
- return [buttons];
472
- } : [buttons]), defaultEditMode === 'iframe' ? h("div", {
473
- "class": "k-editor-content"
474
- }, [h("iframe", {
475
- onLoad: this.iframeLoad,
476
- on: this.v3 ? undefined : {
477
- "load": this.iframeLoad
478
- },
479
- ref: setRef(this, 'iframe'),
480
- frameborder: "0",
481
- attrs: this.v3 ? undefined : {
482
- frameborder: "0",
483
- title: ls.toLanguageString(keys.iframeTitle, messages[keys.iframeTitle])
484
- },
485
- title: ls.toLanguageString(keys.iframeTitle, messages[keys.iframeTitle]),
486
- style: contentStyle,
487
- "class": "k-iframe"
488
- })]) : h("div", {
489
- style: contentStyle,
490
- "class": "k-editor-content"
491
- }, [h("div", {
492
- ref: setRef(this, 'contentElement'),
493
- role: "textbox",
494
- attrs: this.v3 ? undefined : {
495
- role: "textbox",
496
- "aria-labelledby": this.$props.ariaLabelledBy,
497
- "aria-describedby": this.$props.ariaDescribedBy,
498
- "aria-label": this.$props.ariaLabel
499
- },
500
- "aria-labelledby": this.$props.ariaLabelledBy,
501
- "aria-describedby": this.$props.ariaDescribedBy,
502
- "aria-label": this.$props.ariaLabel
503
- })]), renderDialog.call(this), watermark]);
504
- },
505
- methods: {
506
- getView: function getView() {
507
- return this.view;
508
- },
509
- getHTML: function getHTML() {
510
- var view = this.getView();
511
- if (view) {
512
- return EditorUtils.getHtml(view.state);
513
- }
514
- return '';
515
- },
516
- setHTML: function setHTML(value) {
517
- var view = this.getView();
518
- if (view) {
519
- EditorUtils.setHtml(view, value);
520
- }
521
- },
522
- focus: function focus() {
523
- if (this.getView()) {
524
- this.getView().focus();
525
- }
526
- },
527
- updateTools: function updateTools(view) {
528
- if (this.v3) {
529
- this.view = view;
530
- } else {
531
- this._view = view;
532
- }
533
- if (this.v3) {
534
- this.updateGuid = guid();
535
- }
536
- },
537
- iframeLoad: function iframeLoad() {
538
- if (firefox) {
539
- this.initialize();
540
- }
541
- },
542
- initialize: function initialize() {
543
- var _this = this;
544
- var iframeWindow = this.iframe && this.iframe.contentWindow;
545
- if (iframeWindow) {
546
- var iframeDocument_1 = iframeWindow.document;
547
- [defaultStyle, tablesStyles, this.$props.dir === 'rtl' ? rtlStyles : undefined].forEach(function (styles) {
548
- if (styles) {
549
- var style = iframeDocument_1.createElement('style');
550
- style.appendChild(iframeDocument_1.createTextNode(styles));
551
- iframeDocument_1.head.appendChild(style);
552
- }
553
- });
554
- var meta = iframeDocument_1.createElement('meta');
555
- meta.setAttribute('charset', 'utf-8');
556
- iframeDocument_1.head.appendChild(meta);
557
- // The content has to be wrapped because the `dropCursor`
558
- // plugin raises a `body.offsetParent is null` error.
559
- this.contentElement = iframeDocument_1.createElement('div');
560
- iframeDocument_1.body.appendChild(this.contentElement);
561
- this.contentElement.classList.add('k-content');
562
- this.contentElement.setAttribute('role', 'main');
563
- }
564
- var dom = this.contentElement;
565
- if (!dom) {
566
- return;
567
- }
568
- var _a = this.$props.preserveWhitespace,
569
- preserveWhitespace = _a === void 0 ? 'full' : _a;
570
- var target = this;
571
- var plugins = [
572
- // https://prosemirror.net/docs/ref/#state.PluginSpec
573
- new Plugin({
574
- view: function view() {
575
- return {
576
- update: _this.updateTools
577
- };
578
- },
579
- key: new PluginKey('toolbar-tools-update-plugin')
580
- }), new Plugin({
581
- filterTransaction: this.filterTransaction,
582
- key: new PluginKey('onExecute-event-plugin')
583
- }), new Plugin({
584
- key: editorPropsKey,
585
- state: {
586
- init: function init() {
587
- return {
588
- preserveWhitespace: preserveWhitespace
589
- };
590
- },
591
- apply: function apply(_, val) {
592
- return val;
593
- }
594
- }
595
- }), spacesFix(), history(), dropCursor(), gapCursor(), tableEditing()];
596
- var shortcuts = __assign(__assign({}, EditorUtils.getShortcuts({
597
- types: {
598
- listItem: 'list_item',
599
- hardBreak: 'hard_break'
600
- },
601
- toolsSettings: {
602
- bold: bold,
603
- italic: italic,
604
- underline: underline
605
- }
606
- })), {
607
- 'Mod-k': function ModK() {
608
- var linkDialog = _this.$data.linkDialog;
609
- var editorView = _this.getView();
610
- if (editorView) {
611
- var editorState = editorView.state;
612
- var collapsed = editorState.selection.empty;
613
- var linkMark = getMark(editorState, editorState.schema.marks[link.mark]);
614
- var disabled = collapsed && !linkMark;
615
- if (!linkDialog && !disabled) {
616
- _this.linkDialog = true;
617
- }
618
- }
619
- return !linkDialog;
620
- }
621
- });
622
- var _b = this.$props,
623
- _c = _b.defaultContent,
624
- defaultContent = _c === void 0 ? '' : _c,
625
- value = _b.value;
626
- var doc = value && typeof value !== 'string' ? this.v3 ? toRaw(value) : value : EditorUtils.createDocument(new Schema({
627
- nodes: nodes,
628
- marks: marks
629
- }), value || defaultContent, {
630
- preserveWhitespace: preserveWhitespace
631
- });
632
- var viewProps = {
633
- state: EditorState.create({
634
- plugins: __spreadArray(__spreadArray([], plugins, true), [keymap(shortcuts), keymap(baseKeymap)], false),
635
- doc: doc
636
- }),
637
- transformPastedHTML: this.onPasteHtml,
638
- dispatchTransaction: this.dispatchTransaction,
639
- handleDOMEvents: {
640
- focus: this.onFocus,
641
- blur: this.onBlur,
642
- paste: this.onPaste
643
- }
644
- };
645
- var mountEvent = {
646
- plugins: plugins,
647
- shortcuts: shortcuts,
648
- target: target,
649
- viewProps: viewProps,
650
- dom: dom
651
- };
652
- this.$emit('loaded', mountEvent);
653
- var view = this.$props.extendView && this.$props.extendView(mountEvent) || new EditorView({
654
- mount: dom
655
- }, viewProps);
656
- this.view = this.v3 ? markRaw(view) : view;
657
- },
658
- filterTransaction: function filterTransaction(transaction, state) {
659
- var event = {
660
- target: this,
661
- transaction: transaction,
662
- state: state
663
- };
664
- this.$emit('execute', event);
665
- return true;
666
- },
667
- onPasteHtml: function onPasteHtml(html) {
668
- if (this.$props.pasteHtml && this.pasteEvent) {
669
- var event_1 = {
670
- target: this,
671
- pastedHtml: html,
672
- event: this.pasteEvent
673
- };
674
- var newHtml = this.$props.pasteHtml(event_1);
675
- this.pasteEvent = undefined;
676
- if (typeof newHtml === 'string') {
677
- return newHtml;
678
- }
679
- }
680
- return html;
681
- },
682
- dispatchTransaction: function dispatchTransaction(transaction) {
683
- var docChanged = transaction.docChanged;
684
- if (docChanged) {
685
- this.trOnChange = transaction;
686
- var doc_1 = transaction.doc,
687
- schema_1 = transaction.doc.type.schema;
688
- var target_1 = this;
689
- var event_2 = {
690
- target: target_1,
691
- value: doc_1,
692
- get html() {
693
- target_1.htmlOnChange = EditorUtils.getHtml({
694
- doc: doc_1,
695
- schema: schema_1
696
- });
697
- return target_1.htmlOnChange;
698
- },
699
- transaction: transaction,
700
- schema: schema_1
701
- };
702
- this.$emit('change', event_2);
703
- }
704
- if (this.getView() && (this.$props.value === undefined || !docChanged)) {
705
- this.getView().updateState(this.getView().state.apply(transaction));
706
- }
707
- },
708
- onFocus: function onFocus(_view, e) {
709
- var event = {
710
- target: this,
711
- event: e
712
- };
713
- this.$emit('focus', event);
714
- return false;
715
- },
716
- onBlur: function onBlur(_view, e) {
717
- var event = {
718
- target: this,
719
- event: e
720
- };
721
- this.$emit('blur', event);
722
- return false;
723
- },
724
- onPaste: function onPaste(_view, nativeEvent) {
725
- if (this.$props.pasteHtml) {
726
- this.pasteEvent = nativeEvent;
727
- }
728
- return false;
729
- },
730
- handleClose: function handleClose() {
731
- this.linkDialog = false;
732
- },
733
- computedValue: function computedValue() {
734
- if (this.trOnChange !== null) {
735
- return this.trOnChange.doc;
736
- } else if (this.$props.value !== undefined) {
737
- return this.$props.value;
738
- } else if (this.getView()) {
739
- return this.getView().state.doc;
740
- }
741
- return this.$props.defaultContent || '';
742
- }
743
- }
744
- };
745
- /**
746
- * Represents the [Kendo UI for Vue Editor component]({% slug overview_editor %}).
747
- *
748
- * ```jsx
749
- * <template>
750
- * <div>
751
- * <Editor
752
- * :tools="tools"
753
- * :content-style="{
754
- * height: '690px',
755
- * }"
756
- * :default-content="content"
757
- * />
758
- * </div>
759
- * </template>
760
- *
761
- * <script>
762
- * import { Editor } from "@progress/kendo-vue-editor";
763
- * import content from "./content-overview";
764
- *
765
- * export default {
766
- * components: {
767
- * Editor,
768
- * },
769
- * data() {
770
- * return {
771
- * tools: [
772
- * ["Bold", "Italic", "Underline", "Strikethrough"],
773
- * ["Subscript", "Superscript"],
774
- * ["AlignLeft", "AlignCenter", "AlignRight", "AlignJustify"],
775
- * ["Indent", "Outdent"],
776
- * ["OrderedList", "UnorderedList"],
777
- * "FontSize",
778
- * "FontName",
779
- * "FormatBlock",
780
- * ["Undo", "Redo"],
781
- * ["Link", "Unlink", "InsertImage", "ViewHtml"],
782
- * ["InsertTable"],
783
- * ["AddRowBefore", "AddRowAfter", "AddColumnBefore", "AddColumnAfter"],
784
- * ["DeleteRow", "DeleteColumn", "DeleteTable"],
785
- * ["MergeCells", "SplitCell"],
786
- * ],
787
- * content: content,
788
- * };
789
- * },
790
- * };
791
- * </script>
792
- * ```
793
- *
794
- *
795
- *
796
- * ### props <span class='code'>Readonly&lt;[EditorProps]({% slug api_editor_editorprops %})</span>
797
- * The props of the Editor component.
798
- *
799
- * ### contentElement <span class='code'>HTMLDivElement</span>
800
- * Returns the content-editable DOM element of the Editor.
801
- *
802
- * ### element <span class='code'>HTMLElement</span>
803
- * Returns the DOM element of the Editor.
804
- *
805
- * ### value <span class='code'>Node | string</span>
806
- * The value of the Editor.
807
- *
808
- * ### view <span class='code'>EditorView&lt;any&gt;</span>
809
- * Returns the `view` object of the Editor.
810
- */
811
- var Editor = EditorVue2;
812
- export { Editor, EditorVue2 };