@syncfusion/ej2-richtexteditor 23.2.7 → 24.1.41-569421

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/.eslintrc.json +259 -259
  2. package/CHANGELOG.md +1953 -1749
  3. package/README.md +76 -76
  4. package/dist/ej2-richtexteditor.umd.min.js +1 -10
  5. package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-richtexteditor.es2015.js +9971 -8025
  7. package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
  8. package/dist/es6/ej2-richtexteditor.es5.js +8445 -6498
  9. package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
  10. package/helpers/e2e/index.js +3 -3
  11. package/helpers/e2e/rte-helper.js +13 -13
  12. package/license +9 -9
  13. package/package.json +74 -74
  14. package/src/common/config.d.ts +7 -0
  15. package/src/common/config.js +12 -1
  16. package/src/common/constant.d.ts +6 -0
  17. package/src/common/constant.js +6 -0
  18. package/src/common/interface.d.ts +19 -7
  19. package/src/common/types.d.ts +6 -0
  20. package/src/common/util.d.ts +6 -0
  21. package/src/common/util.js +61 -20
  22. package/src/editor-manager/base/classes.d.ts +1 -1
  23. package/src/editor-manager/base/classes.js +1 -1
  24. package/src/editor-manager/base/constant.d.ts +6 -0
  25. package/src/editor-manager/base/constant.js +6 -0
  26. package/src/editor-manager/base/editor-manager.d.ts +8 -3
  27. package/src/editor-manager/base/editor-manager.js +62 -3
  28. package/src/editor-manager/base/enum.d.ts +2 -2
  29. package/src/editor-manager/base/interface.d.ts +17 -9
  30. package/src/editor-manager/base/types.d.ts +1 -1
  31. package/src/editor-manager/plugin/alignments.d.ts +2 -2
  32. package/src/editor-manager/plugin/alignments.js +2 -2
  33. package/src/editor-manager/plugin/audio.d.ts +3 -3
  34. package/src/editor-manager/plugin/audio.js +16 -6
  35. package/src/editor-manager/plugin/clearformat-exec.d.ts +2 -2
  36. package/src/editor-manager/plugin/clearformat-exec.js +2 -2
  37. package/src/editor-manager/plugin/clearformat.d.ts +1 -1
  38. package/src/editor-manager/plugin/clearformat.js +1 -1
  39. package/src/editor-manager/plugin/dom-node.d.ts +39 -35
  40. package/src/editor-manager/plugin/dom-node.js +203 -62
  41. package/src/editor-manager/plugin/format-painter-actions.d.ts +2 -1
  42. package/src/editor-manager/plugin/format-painter-actions.js +20 -2
  43. package/src/editor-manager/plugin/formats.d.ts +3 -2
  44. package/src/editor-manager/plugin/formats.js +40 -5
  45. package/src/editor-manager/plugin/image.d.ts +3 -3
  46. package/src/editor-manager/plugin/image.js +41 -18
  47. package/src/editor-manager/plugin/indents.d.ts +2 -2
  48. package/src/editor-manager/plugin/indents.js +3 -3
  49. package/src/editor-manager/plugin/insert-methods.d.ts +4 -4
  50. package/src/editor-manager/plugin/insert-methods.js +4 -4
  51. package/src/editor-manager/plugin/insert-text.d.ts +2 -2
  52. package/src/editor-manager/plugin/insert-text.js +2 -2
  53. package/src/editor-manager/plugin/inserthtml-exec.d.ts +2 -2
  54. package/src/editor-manager/plugin/inserthtml-exec.js +2 -2
  55. package/src/editor-manager/plugin/inserthtml.d.ts +3 -2
  56. package/src/editor-manager/plugin/inserthtml.js +85 -22
  57. package/src/editor-manager/plugin/isformatted.d.ts +8 -8
  58. package/src/editor-manager/plugin/isformatted.js +8 -8
  59. package/src/editor-manager/plugin/link.d.ts +2 -2
  60. package/src/editor-manager/plugin/link.js +10 -5
  61. package/src/editor-manager/plugin/lists.d.ts +2 -2
  62. package/src/editor-manager/plugin/lists.js +161 -72
  63. package/src/editor-manager/plugin/ms-word-clean-up.d.ts +4 -1
  64. package/src/editor-manager/plugin/ms-word-clean-up.js +216 -86
  65. package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
  66. package/src/editor-manager/plugin/nodecutter.js +11 -8
  67. package/src/editor-manager/plugin/selection-commands.d.ts +3 -1
  68. package/src/editor-manager/plugin/selection-commands.js +249 -5
  69. package/src/editor-manager/plugin/selection-exec.d.ts +2 -2
  70. package/src/editor-manager/plugin/selection-exec.js +2 -2
  71. package/src/editor-manager/plugin/table.d.ts +6 -3
  72. package/src/editor-manager/plugin/table.js +97 -51
  73. package/src/editor-manager/plugin/toolbar-status.d.ts +4 -4
  74. package/src/editor-manager/plugin/toolbar-status.js +22 -12
  75. package/src/editor-manager/plugin/undo.d.ts +7 -6
  76. package/src/editor-manager/plugin/undo.js +27 -7
  77. package/src/editor-manager/plugin/video.d.ts +3 -3
  78. package/src/editor-manager/plugin/video.js +3 -3
  79. package/src/global.d.ts +1 -0
  80. package/src/markdown-parser/base/interface.d.ts +10 -10
  81. package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
  82. package/src/markdown-parser/base/markdown-parser.js +3 -3
  83. package/src/markdown-parser/base/types.d.ts +1 -1
  84. package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
  85. package/src/markdown-parser/plugin/clearformat.js +2 -2
  86. package/src/markdown-parser/plugin/formats.d.ts +2 -2
  87. package/src/markdown-parser/plugin/formats.js +2 -2
  88. package/src/markdown-parser/plugin/insert-text.d.ts +2 -2
  89. package/src/markdown-parser/plugin/insert-text.js +2 -2
  90. package/src/markdown-parser/plugin/link.d.ts +2 -2
  91. package/src/markdown-parser/plugin/link.js +2 -2
  92. package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
  93. package/src/markdown-parser/plugin/markdown-selection.js +14 -14
  94. package/src/markdown-parser/plugin/md-selection-formats.d.ts +1 -1
  95. package/src/markdown-parser/plugin/md-selection-formats.js +1 -1
  96. package/src/markdown-parser/plugin/table.d.ts +3 -3
  97. package/src/markdown-parser/plugin/table.js +3 -3
  98. package/src/markdown-parser/plugin/undo.d.ts +6 -6
  99. package/src/markdown-parser/plugin/undo.js +6 -6
  100. package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +13 -12
  101. package/src/rich-text-editor/actions/base-quick-toolbar.js +70 -23
  102. package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
  103. package/src/rich-text-editor/actions/base-toolbar.js +36 -37
  104. package/src/rich-text-editor/actions/color-picker.d.ts +3 -2
  105. package/src/rich-text-editor/actions/color-picker.js +15 -5
  106. package/src/rich-text-editor/actions/count.d.ts +3 -3
  107. package/src/rich-text-editor/actions/count.js +4 -4
  108. package/src/rich-text-editor/actions/dropdown-buttons.d.ts +3 -2
  109. package/src/rich-text-editor/actions/dropdown-buttons.js +13 -7
  110. package/src/rich-text-editor/actions/emoji-picker.d.ts +1 -1
  111. package/src/rich-text-editor/actions/emoji-picker.js +17 -8
  112. package/src/rich-text-editor/actions/enter-key.js +10 -5
  113. package/src/rich-text-editor/actions/file-manager.js +1 -1
  114. package/src/rich-text-editor/actions/format-painter.js +5 -2
  115. package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
  116. package/src/rich-text-editor/actions/full-screen.js +8 -7
  117. package/src/rich-text-editor/actions/html-editor.d.ts +5 -3
  118. package/src/rich-text-editor/actions/html-editor.js +134 -22
  119. package/src/rich-text-editor/actions/keyboard-model.d.ts +16 -16
  120. package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
  121. package/src/rich-text-editor/actions/keyboard.js +23 -21
  122. package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
  123. package/src/rich-text-editor/actions/markdown-editor.js +5 -3
  124. package/src/rich-text-editor/actions/paste-clean-up.d.ts +6 -1
  125. package/src/rich-text-editor/actions/paste-clean-up.js +157 -29
  126. package/src/rich-text-editor/actions/quick-toolbar.d.ts +17 -9
  127. package/src/rich-text-editor/actions/quick-toolbar.js +68 -21
  128. package/src/rich-text-editor/actions/resize.js +2 -1
  129. package/src/rich-text-editor/actions/toolbar-action.js +1 -1
  130. package/src/rich-text-editor/actions/toolbar.d.ts +16 -16
  131. package/src/rich-text-editor/actions/toolbar.js +48 -109
  132. package/src/rich-text-editor/actions/xhtml-validation.d.ts +1 -1
  133. package/src/rich-text-editor/actions/xhtml-validation.js +1 -1
  134. package/src/rich-text-editor/base/classes.d.ts +125 -125
  135. package/src/rich-text-editor/base/classes.js +125 -125
  136. package/src/rich-text-editor/base/constant.d.ts +195 -150
  137. package/src/rich-text-editor/base/constant.js +364 -150
  138. package/src/rich-text-editor/base/enum.d.ts +1 -1
  139. package/src/rich-text-editor/base/enum.js +1 -1
  140. package/src/rich-text-editor/base/interface.d.ts +96 -52
  141. package/src/rich-text-editor/base/interface.js +1 -1
  142. package/src/rich-text-editor/base/rich-text-editor-model.d.ts +891 -891
  143. package/src/rich-text-editor/base/rich-text-editor.d.ts +76 -64
  144. package/src/rich-text-editor/base/rich-text-editor.js +247 -160
  145. package/src/rich-text-editor/base/util.d.ts +1 -1
  146. package/src/rich-text-editor/base/util.js +23 -5
  147. package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
  148. package/src/rich-text-editor/formatter/formatter.js +24 -12
  149. package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
  150. package/src/rich-text-editor/formatter/html-formatter.js +15 -15
  151. package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
  152. package/src/rich-text-editor/formatter/markdown-formatter.js +15 -15
  153. package/src/rich-text-editor/models/default-locale.js +31 -25
  154. package/src/rich-text-editor/models/iframe-settings-model.d.ts +26 -26
  155. package/src/rich-text-editor/models/iframe-settings.js +19 -19
  156. package/src/rich-text-editor/models/inline-mode-model.d.ts +11 -11
  157. package/src/rich-text-editor/models/inline-mode.js +19 -19
  158. package/src/rich-text-editor/models/items.js +3 -3
  159. package/src/rich-text-editor/models/toolbar-settings-model.d.ts +760 -760
  160. package/src/rich-text-editor/models/toolbar-settings.d.ts +1 -1
  161. package/src/rich-text-editor/models/toolbar-settings.js +20 -20
  162. package/src/rich-text-editor/renderer/audio-module.d.ts +2 -1
  163. package/src/rich-text-editor/renderer/audio-module.js +23 -5
  164. package/src/rich-text-editor/renderer/content-renderer.d.ts +6 -6
  165. package/src/rich-text-editor/renderer/content-renderer.js +6 -6
  166. package/src/rich-text-editor/renderer/dialog-renderer.d.ts +4 -2
  167. package/src/rich-text-editor/renderer/dialog-renderer.js +24 -4
  168. package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
  169. package/src/rich-text-editor/renderer/iframe-content-renderer.js +19 -18
  170. package/src/rich-text-editor/renderer/image-module.d.ts +10 -2
  171. package/src/rich-text-editor/renderer/image-module.js +265 -221
  172. package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
  173. package/src/rich-text-editor/renderer/link-module.js +54 -25
  174. package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
  175. package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
  176. package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
  177. package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
  178. package/src/rich-text-editor/renderer/render.d.ts +2 -2
  179. package/src/rich-text-editor/renderer/render.js +2 -2
  180. package/src/rich-text-editor/renderer/table-module.d.ts +11 -2
  181. package/src/rich-text-editor/renderer/table-module.js +344 -169
  182. package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +12 -15
  183. package/src/rich-text-editor/renderer/toolbar-renderer.js +115 -110
  184. package/src/rich-text-editor/renderer/video-module.d.ts +4 -1
  185. package/src/rich-text-editor/renderer/video-module.js +83 -42
  186. package/src/rich-text-editor/renderer/view-source.d.ts +7 -6
  187. package/src/rich-text-editor/renderer/view-source.js +21 -11
  188. package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
  189. package/src/rich-text-editor/services/renderer-factory.js +3 -3
  190. package/src/rich-text-editor/services/service-locator.d.ts +3 -3
  191. package/src/rich-text-editor/services/service-locator.js +3 -3
  192. package/src/selection/selection.d.ts +22 -22
  193. package/src/selection/selection.js +25 -22
  194. package/styles/_all.scss +1 -1
  195. package/styles/bootstrap-dark.css +353 -103
  196. package/styles/bootstrap.css +357 -112
  197. package/styles/bootstrap4.css +338 -96
  198. package/styles/bootstrap5-dark.css +344 -97
  199. package/styles/bootstrap5.css +344 -97
  200. package/styles/fabric-dark.css +332 -90
  201. package/styles/fabric.css +333 -91
  202. package/styles/fluent-dark.css +360 -98
  203. package/styles/fluent.css +360 -98
  204. package/styles/highcontrast-light.css +332 -90
  205. package/styles/highcontrast.css +336 -91
  206. package/styles/material-dark.css +339 -92
  207. package/styles/material.css +339 -92
  208. package/styles/material3-dark.css +348 -100
  209. package/styles/material3-dark.scss +1 -1
  210. package/styles/material3.css +348 -100
  211. package/styles/material3.scss +1 -1
  212. package/styles/rich-text-editor/_all.scss +2 -2
  213. package/styles/rich-text-editor/_bds-definition.scss +279 -0
  214. package/styles/rich-text-editor/_bootstrap-dark-definition.scss +281 -277
  215. package/styles/rich-text-editor/_bootstrap-definition.scss +337 -334
  216. package/styles/rich-text-editor/_bootstrap4-definition.scss +464 -460
  217. package/styles/rich-text-editor/_bootstrap5-definition.scss +266 -262
  218. package/styles/rich-text-editor/_fabric-dark-definition.scss +263 -259
  219. package/styles/rich-text-editor/_fabric-definition.scss +261 -257
  220. package/styles/rich-text-editor/_fluent-definition.scss +267 -263
  221. package/styles/rich-text-editor/_fusionnew-definition.scss +265 -261
  222. package/styles/rich-text-editor/_highcontrast-definition.scss +261 -257
  223. package/styles/rich-text-editor/_highcontrast-light-definition.scss +261 -257
  224. package/styles/rich-text-editor/_layout.scss +2249 -2072
  225. package/styles/rich-text-editor/_material-dark-definition.scss +266 -262
  226. package/styles/rich-text-editor/_material-definition.scss +264 -260
  227. package/styles/rich-text-editor/_material3-definition.scss +266 -262
  228. package/styles/rich-text-editor/_tailwind-definition.scss +261 -257
  229. package/styles/rich-text-editor/_theme.scss +926 -837
  230. package/styles/rich-text-editor/bootstrap-dark.css +353 -103
  231. package/styles/rich-text-editor/bootstrap.css +357 -112
  232. package/styles/rich-text-editor/bootstrap4.css +338 -96
  233. package/styles/rich-text-editor/bootstrap5-dark.css +344 -97
  234. package/styles/rich-text-editor/bootstrap5.css +344 -97
  235. package/styles/rich-text-editor/fabric-dark.css +332 -90
  236. package/styles/rich-text-editor/fabric.css +333 -91
  237. package/styles/rich-text-editor/fluent-dark.css +360 -98
  238. package/styles/rich-text-editor/fluent.css +360 -98
  239. package/styles/rich-text-editor/highcontrast-light.css +332 -90
  240. package/styles/rich-text-editor/highcontrast.css +336 -91
  241. package/styles/rich-text-editor/icons/_bds.scss +348 -0
  242. package/styles/rich-text-editor/icons/_bootstrap-dark.scss +349 -349
  243. package/styles/rich-text-editor/icons/_bootstrap.scss +349 -349
  244. package/styles/rich-text-editor/icons/_bootstrap4.scss +349 -349
  245. package/styles/rich-text-editor/icons/_bootstrap5.scss +348 -348
  246. package/styles/rich-text-editor/icons/_fabric-dark.scss +349 -349
  247. package/styles/rich-text-editor/icons/_fabric.scss +349 -349
  248. package/styles/rich-text-editor/icons/_fluent.scss +348 -348
  249. package/styles/rich-text-editor/icons/_fusionnew.scss +348 -348
  250. package/styles/rich-text-editor/icons/_highcontrast-light.scss +349 -349
  251. package/styles/rich-text-editor/icons/_highcontrast.scss +349 -349
  252. package/styles/rich-text-editor/icons/_material-dark.scss +349 -349
  253. package/styles/rich-text-editor/icons/_material.scss +349 -349
  254. package/styles/rich-text-editor/icons/_material3.scss +348 -348
  255. package/styles/rich-text-editor/icons/_tailwind.scss +348 -348
  256. package/styles/rich-text-editor/material-dark.css +339 -92
  257. package/styles/rich-text-editor/material.css +339 -92
  258. package/styles/rich-text-editor/material3-dark.css +348 -100
  259. package/styles/rich-text-editor/material3-dark.scss +1 -1
  260. package/styles/rich-text-editor/material3.css +348 -100
  261. package/styles/rich-text-editor/material3.scss +1 -1
  262. package/styles/rich-text-editor/tailwind-dark.css +383 -113
  263. package/styles/rich-text-editor/tailwind.css +383 -113
  264. package/styles/tailwind-dark.css +383 -113
  265. package/styles/tailwind.css +383 -113
  266. package/.github/PULL_REQUEST_TEMPLATE/Bug.md +0 -41
  267. package/.github/PULL_REQUEST_TEMPLATE/Feature.md +0 -27
  268. package/dist/ej2-richtexteditor.min.js +0 -10
  269. package/dist/global/ej2-richtexteditor.min.js +0 -11
  270. package/dist/global/ej2-richtexteditor.min.js.map +0 -1
  271. package/dist/global/index.d.ts +0 -14
  272. package/tslint.json +0 -111
@@ -45,7 +45,7 @@ export declare class Link {
45
45
  * @function destroy
46
46
  * @returns {void}
47
47
  * @hidden
48
-
48
+ * @deprecated
49
49
  */
50
50
  destroy(): void;
51
51
  private moduleDestroy;
@@ -129,7 +129,7 @@ var Link = /** @class */ (function () {
129
129
  pageY = (this.parent.iframeSettings.enable) ? window.pageYOffset + parentTop + args.clientY : args.pageY;
130
130
  }
131
131
  if (this.quickToolObj.linkQTBar) {
132
- this.quickToolObj.linkQTBar.showPopup(pageX, pageY, range.endContainer);
132
+ this.quickToolObj.linkQTBar.showPopup(pageX, pageY, range.endContainer, 'link');
133
133
  }
134
134
  }
135
135
  };
@@ -160,12 +160,32 @@ var Link = /** @class */ (function () {
160
160
  if (isPopupOpen) {
161
161
  return;
162
162
  }
163
- this.showLinkQuickToolbar({
164
- args: args,
165
- isNotify: false,
166
- type: 'Links',
167
- elements: [args.target]
168
- });
163
+ if (e.args.ctrlKey === false) {
164
+ this.showLinkQuickToolbar({
165
+ args: args,
166
+ isNotify: false,
167
+ type: 'Links',
168
+ elements: [args.target]
169
+ });
170
+ }
171
+ else {
172
+ var selection = this.parent.formatter.editorManager.nodeSelection;
173
+ var range = selection.getRange(this.parent.contentModule.getDocument());
174
+ var args_1 = {
175
+ args: {
176
+ item: {
177
+ subCommand: 'OpenLink',
178
+ command: 'Links',
179
+ name: ''
180
+ },
181
+ originalEvent: e.args
182
+ },
183
+ selectNode: selection.getNodeCollection(range),
184
+ selectParent: selection.getParentNodeCollection(range),
185
+ selection: selection.save(range, this.parent.contentModule.getDocument())
186
+ };
187
+ this.parent.notify(events.openLink, args_1);
188
+ }
169
189
  }
170
190
  else {
171
191
  this.hideLinkQuickToolbar();
@@ -222,7 +242,7 @@ var Link = /** @class */ (function () {
222
242
  };
223
243
  Link.prototype.showDialog = function () {
224
244
  this.openDialog(false);
225
- this.setCssClass({ cssClass: this.parent.cssClass });
245
+ this.setCssClass({ cssClass: this.parent.getCssClass() });
226
246
  };
227
247
  Link.prototype.closeDialog = function () {
228
248
  if (this.dialogObj) {
@@ -255,22 +275,22 @@ var Link = /** @class */ (function () {
255
275
  var textPlace = this.i10n.getConstant('textPlaceholder');
256
276
  var title = this.i10n.getConstant('linkTitle');
257
277
  var linkDialogEle = this.parent.createElement('div', {
258
- className: 'e-rte-link-dialog' + ' ' + this.parent.cssClass, id: this.rteID + '_rtelink'
278
+ className: 'e-rte-link-dialog' + this.parent.getCssClass(true), id: this.rteID + '_rtelink'
259
279
  });
260
280
  this.parent.element.appendChild(linkDialogEle);
261
281
  var linkContent = this.parent.createElement('div', {
262
- className: 'e-rte-linkcontent' + ' ' + this.parent.cssClass, id: this.rteID + '_linkContent'
282
+ className: 'e-rte-linkcontent' + this.parent.getCssClass(true), id: this.rteID + '_linkContent'
263
283
  });
264
284
  var htmlTextbox = (this.parent.editorMode === 'HTML') ? '<label>' + linkTooltip +
265
- '</label></div><div class="e-rte-field' + ' ' + this.parent.cssClass + '">' +
266
- '<input type="text" data-role ="none" spellcheck="false" placeholder = "' + title + '"aria-label="' + this.i10n.getConstant('linkTitle') + '" class="e-input e-rte-linkTitle' + ' ' + this.parent.cssClass + '"></div>' +
267
- '<div class="e-rte-label' + ' ' + this.parent.cssClass + '"></div>' + '<div class="e-rte-field' + ' ' + this.parent.cssClass + '">' +
268
- '<input type="checkbox" class="e-rte-linkTarget' + ' ' + this.parent.cssClass + '" data-role ="none"></div>' : '';
269
- var content = '<div class="e-rte-label' + ' ' + this.parent.cssClass + '"><label>' + linkWebAddress + '</label></div>' + '<div class="e-rte-field' + ' ' + this.parent.cssClass + '">' +
270
- '<input type="text" data-role ="none" spellcheck="false" placeholder="' + urlPlace + '"aria-label="' + this.i10n.getConstant('linkWebUrl') + '" class="e-input e-rte-linkurl' + ' ' + this.parent.cssClass + '"/></div>' +
271
- '<div class="e-rte-label' + ' ' + this.parent.cssClass + '">' + '<label>' + linkDisplayText + '</label></div><div class="e-rte-field' + ' ' + this.parent.cssClass + '"> ' +
272
- '<input type="text" data-role ="none" spellcheck="false" class="e-input e-rte-linkText' + ' ' + this.parent.cssClass + '"aria-label="' + this.i10n.getConstant('linkText') + '" placeholder="' + textPlace + '">' +
273
- '</div><div class="e-rte-label' + ' ' + this.parent.cssClass + '">' + htmlTextbox;
285
+ '</label></div><div class="e-rte-field' + this.parent.getCssClass(true) + '">' +
286
+ '<input type="text" data-role ="none" spellcheck="false" placeholder = "' + title + '"aria-label="' + this.i10n.getConstant('linkTitle') + '" class="e-input e-rte-linkTitle' + this.parent.getCssClass(true) + '"></div>' +
287
+ '<div class="e-rte-label' + this.parent.getCssClass(true) + '"></div>' + '<div class="e-rte-field' + this.parent.getCssClass(true) + '">' +
288
+ '<input type="checkbox" class="e-rte-linkTarget' + this.parent.getCssClass(true) + '" data-role ="none"></div>' : '';
289
+ var content = '<div class="e-rte-label' + this.parent.getCssClass(true) + '"><label>' + linkWebAddress + '</label></div>' + '<div class="e-rte-field' + this.parent.getCssClass(true) + '">' +
290
+ '<input type="text" data-role ="none" spellcheck="false" placeholder="' + urlPlace + '"aria-label="' + this.i10n.getConstant('linkWebUrl') + '" class="e-input e-rte-linkurl' + this.parent.getCssClass(true) + '"/></div>' +
291
+ '<div class="e-rte-label' + this.parent.getCssClass(true) + '">' + '<label>' + linkDisplayText + '</label></div><div class="e-rte-field' + this.parent.getCssClass(true) + '"> ' +
292
+ '<input type="text" data-role ="none" spellcheck="false" class="e-input e-rte-linkText' + this.parent.getCssClass(true) + '"aria-label="' + this.i10n.getConstant('linkText') + '" placeholder="' + textPlace + '">' +
293
+ '</div><div class="e-rte-label' + this.parent.getCssClass(true) + '">' + htmlTextbox;
274
294
  var contentElem = parseHtml(content);
275
295
  linkContent.appendChild(contentElem);
276
296
  var linkTarget = linkContent.querySelector('.e-rte-linkTarget');
@@ -279,7 +299,7 @@ var Link = /** @class */ (function () {
279
299
  var linkTitle = linkContent.querySelector('.e-rte-linkTitle');
280
300
  var linkOpenLabel = this.i10n.getConstant('linkOpenInNewWindow');
281
301
  this.checkBoxObj = new CheckBox({ label: linkOpenLabel, checked: true, enableRtl: this.parent.enableRtl,
282
- cssClass: this.parent.cssClass });
302
+ cssClass: this.parent.getCssClass() });
283
303
  this.checkBoxObj.isStringTemplate = true;
284
304
  this.checkBoxObj.createElement = this.parent.createElement;
285
305
  this.checkBoxObj.appendTo(linkTarget);
@@ -292,16 +312,16 @@ var Link = /** @class */ (function () {
292
312
  var dialogModel = {
293
313
  header: this.i10n.getConstant('linkHeader'),
294
314
  content: linkContent,
295
- cssClass: CLS_RTE_ELEMENTS + ' ' + this.parent.cssClass,
315
+ cssClass: CLS_RTE_ELEMENTS + this.parent.getCssClass(true),
296
316
  enableRtl: this.parent.enableRtl,
297
317
  locale: this.parent.locale,
298
318
  showCloseIcon: true, closeOnEscape: true, width: (Browser.isDevice) ? '290px' : '310px',
299
319
  isModal: Browser.isDevice,
300
320
  buttons: [{
301
321
  click: this.insertlink.bind(selectObj),
302
- buttonModel: { content: linkInsert, cssClass: 'e-flat e-insertLink' + ' ' + this.parent.cssClass, isPrimary: true }
322
+ buttonModel: { content: linkInsert, cssClass: 'e-flat e-insertLink' + this.parent.getCssClass(true), isPrimary: true }
303
323
  },
304
- { click: this.cancelDialog.bind(selectObj), buttonModel: { cssClass: 'e-flat' + ' ' + this.parent.cssClass, content: linkCancel } }],
324
+ { click: this.cancelDialog.bind(selectObj), buttonModel: { cssClass: 'e-flat' + this.parent.getCssClass(true), content: linkCancel } }],
305
325
  target: (Browser.isDevice) ? document.body : this.parent.element,
306
326
  animationSettings: { effect: 'None' },
307
327
  close: function (event) {
@@ -366,12 +386,20 @@ var Link = /** @class */ (function () {
366
386
  }
367
387
  var target = (this.selfLink.checkBoxObj.checked) ? '_blank' : null;
368
388
  var linkLabel = (this.selfLink.checkBoxObj.checked) ? this.selfLink.i10n.getConstant('linkAriaLabel') : null;
389
+ if (this.selfLink.parent.editorMode === 'Markdown' && linkUrl === '') {
390
+ linkUrl = 'http://';
391
+ }
369
392
  if (linkUrl === '') {
370
393
  this.selfLink.checkUrl(true);
371
394
  return;
372
395
  }
373
396
  if (!this.selfLink.isUrl(linkUrl)) {
374
- linkText = (linkText === '') ? linkUrl : linkText;
397
+ if (this.selfLink.parent.editorMode === 'Markdown') {
398
+ linkText = (linkText !== '') ? linkText : '';
399
+ }
400
+ else {
401
+ linkText = (linkText === '') ? linkUrl : linkText;
402
+ }
375
403
  if (!this.selfLink.parent.enableAutoUrl) {
376
404
  linkUrl = linkUrl.indexOf('http') > -1 ? linkUrl : 'http://' + linkUrl;
377
405
  }
@@ -512,6 +540,7 @@ var Link = /** @class */ (function () {
512
540
  this.parent.inlineMode.enable && !closest(target, '#' + this.dialogObj.element.id)) &&
513
541
  !closest(target, '#' + this.parent.getID() + '_toolbar_CreateLink') &&
514
542
  !target.querySelector('#' + this.parent.getID() + '_toolbar_CreateLink')))) {
543
+ this.parent.notify(events.documentClickClosedBy, { closedBy: "outside click" });
515
544
  this.dialogObj.hide({ returnValue: true });
516
545
  EventHandler.remove(this.parent.element.ownerDocument, 'mousedown', this.onDocumentClick);
517
546
  this.parent.isBlur = true;
@@ -524,7 +553,7 @@ var Link = /** @class */ (function () {
524
553
  * @function destroy
525
554
  * @returns {void}
526
555
  * @hidden
527
-
556
+ * @deprecated
528
557
  */
529
558
  Link.prototype.destroy = function () {
530
559
  if (isNOU(this.parent)) {
@@ -3,7 +3,7 @@ import { IRenderer, IRichTextEditor } from '../base/interface';
3
3
  * Markdown module is used to render Rich Text Editor as Markdown editor content
4
4
  *
5
5
  * @hidden
6
-
6
+ * @deprecated
7
7
  */
8
8
  export declare class MarkdownRender implements IRenderer {
9
9
  private contentPanel;
@@ -20,7 +20,7 @@ export declare class MarkdownRender implements IRenderer {
20
20
  *
21
21
  * @returns {void}
22
22
  * @hidden
23
-
23
+ * @deprecated
24
24
  */
25
25
  renderPanel(): void;
26
26
  /**
@@ -28,7 +28,7 @@ export declare class MarkdownRender implements IRenderer {
28
28
  *
29
29
  * @returns {Element} - specifies the element
30
30
  * @hidden
31
-
31
+ * @deprecated
32
32
  */
33
33
  getPanel(): Element;
34
34
  /**
@@ -36,7 +36,7 @@ export declare class MarkdownRender implements IRenderer {
36
36
  *
37
37
  * @returns {Element} - specifies the element
38
38
  * @hidden
39
-
39
+ * @deprecated
40
40
  */
41
41
  getEditPanel(): Element;
42
42
  /**
@@ -51,7 +51,7 @@ export declare class MarkdownRender implements IRenderer {
51
51
  * @param {Element} panel - specifies the element.
52
52
  * @returns {void}
53
53
  * @hidden
54
-
54
+ * @deprecated
55
55
  */
56
56
  setPanel(panel: Element): void;
57
57
  /**
@@ -59,7 +59,7 @@ export declare class MarkdownRender implements IRenderer {
59
59
  *
60
60
  * @returns {void}
61
61
  * @hidden
62
-
62
+ * @deprecated
63
63
  */
64
64
  getDocument(): Document;
65
65
  }
@@ -2,7 +2,7 @@
2
2
  * Markdown module is used to render Rich Text Editor as Markdown editor content
3
3
  *
4
4
  * @hidden
5
-
5
+ * @deprecated
6
6
  */
7
7
  var MarkdownRender = /** @class */ (function () {
8
8
  /**
@@ -18,7 +18,7 @@ var MarkdownRender = /** @class */ (function () {
18
18
  *
19
19
  * @returns {void}
20
20
  * @hidden
21
-
21
+ * @deprecated
22
22
  */
23
23
  MarkdownRender.prototype.renderPanel = function () {
24
24
  var rteObj = this.parent;
@@ -37,7 +37,7 @@ var MarkdownRender = /** @class */ (function () {
37
37
  *
38
38
  * @returns {Element} - specifies the element
39
39
  * @hidden
40
-
40
+ * @deprecated
41
41
  */
42
42
  MarkdownRender.prototype.getPanel = function () {
43
43
  return this.contentPanel;
@@ -47,7 +47,7 @@ var MarkdownRender = /** @class */ (function () {
47
47
  *
48
48
  * @returns {Element} - specifies the element
49
49
  * @hidden
50
-
50
+ * @deprecated
51
51
  */
52
52
  MarkdownRender.prototype.getEditPanel = function () {
53
53
  return this.editableElement;
@@ -66,7 +66,7 @@ var MarkdownRender = /** @class */ (function () {
66
66
  * @param {Element} panel - specifies the element.
67
67
  * @returns {void}
68
68
  * @hidden
69
-
69
+ * @deprecated
70
70
  */
71
71
  MarkdownRender.prototype.setPanel = function (panel) {
72
72
  this.contentPanel = panel;
@@ -76,7 +76,7 @@ var MarkdownRender = /** @class */ (function () {
76
76
  *
77
77
  * @returns {void}
78
78
  * @hidden
79
-
79
+ * @deprecated
80
80
  */
81
81
  MarkdownRender.prototype.getDocument = function () {
82
82
  return this.getEditPanel().ownerDocument;
@@ -4,7 +4,7 @@ import { BaseQuickToolbar } from '../actions/base-quick-toolbar';
4
4
  * `Popup renderer` module is used to render popup in RichTextEditor.
5
5
  *
6
6
  * @hidden
7
-
7
+ * @deprecated
8
8
  */
9
9
  export declare class PopupRenderer implements IRenderer {
10
10
  private popupObj;
@@ -23,7 +23,7 @@ export declare class PopupRenderer implements IRenderer {
23
23
  * @param {BaseQuickToolbar} args - specifies the arguments.
24
24
  * @returns {void}
25
25
  * @hidden
26
-
26
+ * @deprecated
27
27
  */
28
28
  renderPopup(args: BaseQuickToolbar): void;
29
29
  /**
@@ -31,7 +31,7 @@ export declare class PopupRenderer implements IRenderer {
31
31
  *
32
32
  * @returns {void}
33
33
  * @hidden
34
-
34
+ * @deprecated
35
35
  */
36
36
  renderPanel(): void;
37
37
  /**
@@ -39,7 +39,7 @@ export declare class PopupRenderer implements IRenderer {
39
39
  *
40
40
  * @returns {Element} - specifies the element
41
41
  * @hidden
42
-
42
+ * @deprecated
43
43
  */
44
44
  getPanel(): Element;
45
45
  /**
@@ -48,7 +48,7 @@ export declare class PopupRenderer implements IRenderer {
48
48
  * @returns {void}
49
49
  * @param {Element} panel - specifies the element
50
50
  * @hidden
51
-
51
+ * @deprecated
52
52
  */
53
53
  setPanel(panel: Element): void;
54
54
  }
@@ -5,7 +5,7 @@ import * as events from '../base/constant';
5
5
  * `Popup renderer` module is used to render popup in RichTextEditor.
6
6
  *
7
7
  * @hidden
8
-
8
+ * @deprecated
9
9
  */
10
10
  var PopupRenderer = /** @class */ (function () {
11
11
  /**
@@ -26,7 +26,7 @@ var PopupRenderer = /** @class */ (function () {
26
26
  * @param {BaseQuickToolbar} args - specifies the arguments.
27
27
  * @returns {void}
28
28
  * @hidden
29
-
29
+ * @deprecated
30
30
  */
31
31
  PopupRenderer.prototype.renderPopup = function (args) {
32
32
  this.setPanel(args.element);
@@ -44,7 +44,7 @@ var PopupRenderer = /** @class */ (function () {
44
44
  *
45
45
  * @returns {void}
46
46
  * @hidden
47
-
47
+ * @deprecated
48
48
  */
49
49
  PopupRenderer.prototype.renderPanel = function () {
50
50
  this.getPanel().classList.add(CLS_QUICK_POP);
@@ -54,7 +54,7 @@ var PopupRenderer = /** @class */ (function () {
54
54
  *
55
55
  * @returns {Element} - specifies the element
56
56
  * @hidden
57
-
57
+ * @deprecated
58
58
  */
59
59
  PopupRenderer.prototype.getPanel = function () {
60
60
  return this.popupPanel;
@@ -65,7 +65,7 @@ var PopupRenderer = /** @class */ (function () {
65
65
  * @returns {void}
66
66
  * @param {Element} panel - specifies the element
67
67
  * @hidden
68
-
68
+ * @deprecated
69
69
  */
70
70
  PopupRenderer.prototype.setPanel = function (panel) {
71
71
  this.popupPanel = panel;
@@ -4,7 +4,7 @@ import { ServiceLocator } from '../services/service-locator';
4
4
  * Content module is used to render Rich Text Editor content
5
5
  *
6
6
  * @hidden
7
-
7
+ * @deprecated
8
8
  */
9
9
  export declare class Render {
10
10
  private parent;
@@ -24,7 +24,7 @@ export declare class Render {
24
24
  *
25
25
  * @returns {void}
26
26
  * @hidden
27
-
27
+ * @deprecated
28
28
  */
29
29
  render(): void;
30
30
  /**
@@ -5,7 +5,7 @@ import { isNullOrUndefined } from '@syncfusion/ej2-base';
5
5
  * Content module is used to render Rich Text Editor content
6
6
  *
7
7
  * @hidden
8
-
8
+ * @deprecated
9
9
  */
10
10
  var Render = /** @class */ (function () {
11
11
  /**
@@ -26,7 +26,7 @@ var Render = /** @class */ (function () {
26
26
  *
27
27
  * @returns {void}
28
28
  * @hidden
29
-
29
+ * @deprecated
30
30
  */
31
31
  Render.prototype.render = function () {
32
32
  // eslint-disable-next-line
@@ -33,8 +33,8 @@ export declare class Table {
33
33
  private helper;
34
34
  private dialogRenderObj;
35
35
  private currentColumnResize;
36
- private currentMarginLeft;
37
36
  private previousTableElement;
37
+ private resizeEndTime;
38
38
  private constructor();
39
39
  protected addEventListener(): void;
40
40
  protected removeEventListener(): void;
@@ -46,6 +46,7 @@ export declare class Table {
46
46
  private UpdateCells;
47
47
  private keyUp;
48
48
  private keyDown;
49
+ private handleSelectAll;
49
50
  private tableModulekeyUp;
50
51
  private openDialog;
51
52
  private showDialog;
@@ -54,11 +55,13 @@ export declare class Table {
54
55
  private verticalAlign;
55
56
  private tableStyles;
56
57
  private insideList;
58
+ private removeEmptyTextNodes;
57
59
  private tabSelection;
58
60
  private tableArrowNavigation;
59
61
  private setBGColor;
60
62
  private hideTableQuickToolbar;
61
63
  private tableHeader;
64
+ private getAnchorNode;
62
65
  private editAreaClickHandler;
63
66
  private tableCellSelect;
64
67
  private tableMouseUp;
@@ -74,23 +77,27 @@ export declare class Table {
74
77
  private getPointX;
75
78
  private getPointY;
76
79
  private resizeStart;
80
+ private getCellIndex;
77
81
  private removeHelper;
78
82
  private appendHelper;
79
83
  private setHelperHeight;
80
84
  private updateHelper;
81
85
  private calMaxCol;
82
86
  private resizing;
87
+ private getCurrentColWidth;
83
88
  private getCurrentTableWidth;
84
89
  private findFirstLastColCells;
85
90
  private convertPixelToPercentage;
86
91
  private cancelResizeAction;
87
92
  private resizeEnd;
93
+ private resetResizeHelper;
88
94
  private resizeBtnInit;
89
95
  private addRow;
90
96
  private addColumn;
91
97
  private removeRowColumn;
92
98
  private removeTable;
93
99
  private renderDlgContent;
100
+ private onIframeMouseDown;
94
101
  private docClick;
95
102
  private drawTable;
96
103
  private editTable;
@@ -108,7 +115,7 @@ export declare class Table {
108
115
  * @function destroy
109
116
  * @returns {void}
110
117
  * @hidden
111
-
118
+ * @deprecated
112
119
  */
113
120
  destroy(): void;
114
121
  private moduleDestroy;
@@ -118,4 +125,6 @@ export declare class Table {
118
125
  * @returns {void}
119
126
  */
120
127
  private getModuleName;
128
+ private afterKeyDown;
129
+ private updateResizeIconPosition;
121
130
  }