@syncfusion/ej2-richtexteditor 27.1.52 → 27.1.57-637881

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 (178) hide show
  1. package/README.md +1 -1
  2. package/dist/ej2-richtexteditor.min.js +1 -0
  3. package/dist/ej2-richtexteditor.umd.min.js +1 -10
  4. package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-richtexteditor.es2015.js +298 -83
  6. package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
  7. package/dist/es6/ej2-richtexteditor.es5.js +299 -82
  8. package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
  9. package/dist/global/ej2-richtexteditor.min.js +1 -10
  10. package/dist/global/ej2-richtexteditor.min.js.map +1 -1
  11. package/dist/global/index.d.ts +0 -9
  12. package/package.json +84 -84
  13. package/src/common/config.d.ts +7 -0
  14. package/src/common/config.js +12 -0
  15. package/src/common/interface.d.ts +8 -8
  16. package/src/editor-manager/base/classes.d.ts +1 -1
  17. package/src/editor-manager/base/classes.js +1 -1
  18. package/src/editor-manager/base/editor-manager.d.ts +3 -3
  19. package/src/editor-manager/base/editor-manager.js +4 -4
  20. package/src/editor-manager/base/enum.d.ts +2 -2
  21. package/src/editor-manager/base/interface.d.ts +11 -11
  22. package/src/editor-manager/base/types.d.ts +1 -1
  23. package/src/editor-manager/plugin/alignments.d.ts +2 -2
  24. package/src/editor-manager/plugin/alignments.js +2 -2
  25. package/src/editor-manager/plugin/audio.d.ts +3 -3
  26. package/src/editor-manager/plugin/audio.js +3 -3
  27. package/src/editor-manager/plugin/clearformat-exec.d.ts +2 -2
  28. package/src/editor-manager/plugin/clearformat-exec.js +2 -2
  29. package/src/editor-manager/plugin/clearformat.d.ts +1 -1
  30. package/src/editor-manager/plugin/clearformat.js +2 -2
  31. package/src/editor-manager/plugin/dom-node.d.ts +36 -36
  32. package/src/editor-manager/plugin/dom-node.js +37 -37
  33. package/src/editor-manager/plugin/format-painter-actions.d.ts +1 -1
  34. package/src/editor-manager/plugin/format-painter-actions.js +1 -1
  35. package/src/editor-manager/plugin/formats.d.ts +2 -2
  36. package/src/editor-manager/plugin/formats.js +2 -2
  37. package/src/editor-manager/plugin/image.d.ts +3 -3
  38. package/src/editor-manager/plugin/image.js +5 -3
  39. package/src/editor-manager/plugin/indents.d.ts +2 -2
  40. package/src/editor-manager/plugin/indents.js +2 -2
  41. package/src/editor-manager/plugin/insert-methods.d.ts +4 -4
  42. package/src/editor-manager/plugin/insert-methods.js +4 -4
  43. package/src/editor-manager/plugin/insert-text.d.ts +2 -2
  44. package/src/editor-manager/plugin/insert-text.js +2 -2
  45. package/src/editor-manager/plugin/inserthtml-exec.d.ts +2 -2
  46. package/src/editor-manager/plugin/inserthtml-exec.js +2 -2
  47. package/src/editor-manager/plugin/inserthtml.d.ts +3 -2
  48. package/src/editor-manager/plugin/inserthtml.js +36 -12
  49. package/src/editor-manager/plugin/isformatted.d.ts +9 -9
  50. package/src/editor-manager/plugin/isformatted.js +9 -9
  51. package/src/editor-manager/plugin/link.d.ts +2 -2
  52. package/src/editor-manager/plugin/link.js +4 -4
  53. package/src/editor-manager/plugin/lists.d.ts +2 -2
  54. package/src/editor-manager/plugin/lists.js +3 -3
  55. package/src/editor-manager/plugin/ms-word-clean-up.d.ts +2 -1
  56. package/src/editor-manager/plugin/ms-word-clean-up.js +17 -1
  57. package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
  58. package/src/editor-manager/plugin/nodecutter.js +6 -6
  59. package/src/editor-manager/plugin/selection-commands.d.ts +1 -1
  60. package/src/editor-manager/plugin/selection-commands.js +3 -3
  61. package/src/editor-manager/plugin/selection-exec.d.ts +2 -2
  62. package/src/editor-manager/plugin/selection-exec.js +2 -2
  63. package/src/editor-manager/plugin/table.d.ts +2 -2
  64. package/src/editor-manager/plugin/table.js +2 -2
  65. package/src/editor-manager/plugin/toolbar-status.d.ts +2 -2
  66. package/src/editor-manager/plugin/toolbar-status.js +3 -3
  67. package/src/editor-manager/plugin/undo.d.ts +6 -6
  68. package/src/editor-manager/plugin/undo.js +9 -9
  69. package/src/editor-manager/plugin/video.d.ts +3 -3
  70. package/src/editor-manager/plugin/video.js +3 -3
  71. package/src/markdown-parser/base/interface.d.ts +10 -10
  72. package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
  73. package/src/markdown-parser/base/markdown-parser.js +3 -3
  74. package/src/markdown-parser/base/types.d.ts +1 -1
  75. package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
  76. package/src/markdown-parser/plugin/clearformat.js +2 -2
  77. package/src/markdown-parser/plugin/formats.d.ts +2 -2
  78. package/src/markdown-parser/plugin/formats.js +2 -2
  79. package/src/markdown-parser/plugin/insert-text.d.ts +2 -2
  80. package/src/markdown-parser/plugin/insert-text.js +2 -2
  81. package/src/markdown-parser/plugin/link.d.ts +2 -2
  82. package/src/markdown-parser/plugin/link.js +2 -2
  83. package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
  84. package/src/markdown-parser/plugin/markdown-selection.js +14 -14
  85. package/src/markdown-parser/plugin/md-selection-formats.d.ts +1 -1
  86. package/src/markdown-parser/plugin/md-selection-formats.js +1 -1
  87. package/src/markdown-parser/plugin/table.d.ts +3 -3
  88. package/src/markdown-parser/plugin/table.js +3 -3
  89. package/src/markdown-parser/plugin/undo.d.ts +6 -6
  90. package/src/markdown-parser/plugin/undo.js +6 -6
  91. package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +9 -9
  92. package/src/rich-text-editor/actions/base-quick-toolbar.js +9 -9
  93. package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
  94. package/src/rich-text-editor/actions/base-toolbar.js +3 -3
  95. package/src/rich-text-editor/actions/color-picker.d.ts +2 -2
  96. package/src/rich-text-editor/actions/color-picker.js +2 -2
  97. package/src/rich-text-editor/actions/count.d.ts +3 -3
  98. package/src/rich-text-editor/actions/count.js +3 -3
  99. package/src/rich-text-editor/actions/dropdown-buttons.d.ts +2 -2
  100. package/src/rich-text-editor/actions/dropdown-buttons.js +2 -2
  101. package/src/rich-text-editor/actions/emoji-picker.d.ts +1 -1
  102. package/src/rich-text-editor/actions/emoji-picker.js +1 -1
  103. package/src/rich-text-editor/actions/enter-key.js +10 -5
  104. package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
  105. package/src/rich-text-editor/actions/full-screen.js +3 -3
  106. package/src/rich-text-editor/actions/html-editor.d.ts +3 -3
  107. package/src/rich-text-editor/actions/html-editor.js +5 -5
  108. package/src/rich-text-editor/actions/import-export.js +1 -1
  109. package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
  110. package/src/rich-text-editor/actions/keyboard.js +1 -1
  111. package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
  112. package/src/rich-text-editor/actions/markdown-editor.js +2 -2
  113. package/src/rich-text-editor/actions/paste-clean-up.d.ts +1 -1
  114. package/src/rich-text-editor/actions/paste-clean-up.js +47 -23
  115. package/src/rich-text-editor/actions/quick-toolbar.d.ts +9 -9
  116. package/src/rich-text-editor/actions/quick-toolbar.js +9 -9
  117. package/src/rich-text-editor/actions/resize.d.ts +3 -0
  118. package/src/rich-text-editor/actions/resize.js +17 -0
  119. package/src/rich-text-editor/actions/toolbar.d.ts +13 -13
  120. package/src/rich-text-editor/actions/toolbar.js +13 -13
  121. package/src/rich-text-editor/actions/xhtml-validation.d.ts +1 -1
  122. package/src/rich-text-editor/actions/xhtml-validation.js +1 -1
  123. package/src/rich-text-editor/base/classes.d.ts +125 -125
  124. package/src/rich-text-editor/base/classes.js +125 -125
  125. package/src/rich-text-editor/base/constant.d.ts +158 -158
  126. package/src/rich-text-editor/base/constant.js +158 -158
  127. package/src/rich-text-editor/base/enum.d.ts +1 -1
  128. package/src/rich-text-editor/base/enum.js +1 -1
  129. package/src/rich-text-editor/base/interface.d.ts +64 -52
  130. package/src/rich-text-editor/base/interface.js +1 -1
  131. package/src/rich-text-editor/base/rich-text-editor-model.d.ts +1 -1
  132. package/src/rich-text-editor/base/rich-text-editor.d.ts +62 -62
  133. package/src/rich-text-editor/base/rich-text-editor.js +48 -34
  134. package/src/rich-text-editor/base/util.d.ts +1 -1
  135. package/src/rich-text-editor/base/util.js +1 -1
  136. package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
  137. package/src/rich-text-editor/formatter/formatter.js +8 -8
  138. package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
  139. package/src/rich-text-editor/formatter/html-formatter.js +2 -2
  140. package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
  141. package/src/rich-text-editor/formatter/markdown-formatter.js +2 -2
  142. package/src/rich-text-editor/renderer/audio-module.d.ts +1 -1
  143. package/src/rich-text-editor/renderer/audio-module.js +8 -2
  144. package/src/rich-text-editor/renderer/content-renderer.d.ts +6 -6
  145. package/src/rich-text-editor/renderer/content-renderer.js +6 -6
  146. package/src/rich-text-editor/renderer/dialog-renderer.d.ts +2 -2
  147. package/src/rich-text-editor/renderer/dialog-renderer.js +2 -2
  148. package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
  149. package/src/rich-text-editor/renderer/iframe-content-renderer.js +4 -4
  150. package/src/rich-text-editor/renderer/image-module.d.ts +1 -1
  151. package/src/rich-text-editor/renderer/image-module.js +64 -23
  152. package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
  153. package/src/rich-text-editor/renderer/link-module.js +9 -2
  154. package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
  155. package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
  156. package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
  157. package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
  158. package/src/rich-text-editor/renderer/render.d.ts +2 -2
  159. package/src/rich-text-editor/renderer/render.js +2 -2
  160. package/src/rich-text-editor/renderer/slash-menu.js +1 -1
  161. package/src/rich-text-editor/renderer/table-module.d.ts +1 -1
  162. package/src/rich-text-editor/renderer/table-module.js +4 -3
  163. package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +9 -9
  164. package/src/rich-text-editor/renderer/toolbar-renderer.js +9 -9
  165. package/src/rich-text-editor/renderer/video-module.d.ts +1 -1
  166. package/src/rich-text-editor/renderer/video-module.js +9 -3
  167. package/src/rich-text-editor/renderer/view-source.d.ts +5 -5
  168. package/src/rich-text-editor/renderer/view-source.js +5 -5
  169. package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
  170. package/src/rich-text-editor/services/renderer-factory.js +3 -3
  171. package/src/rich-text-editor/services/service-locator.d.ts +3 -3
  172. package/src/rich-text-editor/services/service-locator.js +3 -3
  173. package/src/selection/selection.d.ts +27 -22
  174. package/src/selection/selection.js +66 -23
  175. package/styles/material3-dark.scss +1 -1
  176. package/styles/material3.scss +1 -1
  177. package/styles/rich-text-editor/material3-dark.scss +1 -1
  178. package/styles/rich-text-editor/material3.scss +1 -1
@@ -82,7 +82,7 @@ var RichTextEditor = /** @class */ (function (_super) {
82
82
  *
83
83
  * @returns {ModuleDeclaration[]} - specifies the declaration.
84
84
  * @hidden
85
-
85
+ * @deprecated
86
86
  */
87
87
  RichTextEditor.prototype.requiredModules = function () {
88
88
  var modules = [];
@@ -169,7 +169,7 @@ var RichTextEditor = /** @class */ (function (_super) {
169
169
  *
170
170
  * @returns {void}
171
171
  * @hidden
172
-
172
+ * @deprecated
173
173
  */
174
174
  RichTextEditor.prototype.setEnable = function () {
175
175
  this.updateEnable();
@@ -268,7 +268,7 @@ var RichTextEditor = /** @class */ (function (_super) {
268
268
  *
269
269
  * @returns {void}
270
270
  * @hidden
271
-
271
+ * @deprecated
272
272
  */
273
273
  RichTextEditor.prototype.getPersistData = function () {
274
274
  return this.addOnPersist(['value']);
@@ -357,6 +357,17 @@ var RichTextEditor = /** @class */ (function (_super) {
357
357
  * @public
358
358
  */
359
359
  RichTextEditor.prototype.executeCommand = function (commandName, value, option) {
360
+ if (commandName === 'importWord') {
361
+ var importContainer = this.createElement('div');
362
+ importContainer.innerHTML = value;
363
+ var tableElement = importContainer.querySelectorAll('table:not(.e-rte-table):not(.e-rte-paste-table)');
364
+ for (var i = 0; i < tableElement.length; i++) {
365
+ tableElement[i].classList.add('e-rte-paste-table');
366
+ }
367
+ value = importContainer.innerHTML;
368
+ importContainer.remove();
369
+ commandName = 'insertHTML';
370
+ }
360
371
  value = this.htmlPurifier(commandName, value);
361
372
  var internalValue;
362
373
  if (this.editorMode === 'HTML') {
@@ -556,7 +567,7 @@ var RichTextEditor = /** @class */ (function (_super) {
556
567
  *
557
568
  * @returns {void}
558
569
  * @private
559
-
570
+ * @deprecated
560
571
  */
561
572
  RichTextEditor.prototype.render = function () {
562
573
  if (this.value && !this.valueTemplate) {
@@ -594,7 +605,7 @@ var RichTextEditor = /** @class */ (function (_super) {
594
605
  *
595
606
  * @returns {void}
596
607
  * @hidden
597
-
608
+ * @deprecated
598
609
  */
599
610
  RichTextEditor.prototype.addAudioVideoWrapper = function () {
600
611
  var _this = this;
@@ -656,7 +667,7 @@ var RichTextEditor = /** @class */ (function (_super) {
656
667
  *
657
668
  * @returns {void}
658
669
  * @private
659
-
670
+ * @deprecated
660
671
  * @hidden
661
672
  */
662
673
  RichTextEditor.prototype.eventInitializer = function () {
@@ -707,7 +718,7 @@ var RichTextEditor = /** @class */ (function (_super) {
707
718
  * @param {KeyboardEvent} e - specifies the event.
708
719
  * @returns {void}
709
720
  * @private
710
-
721
+ * @deprecated
711
722
  * @hidden
712
723
  */
713
724
  RichTextEditor.prototype.keyDown = function (e) {
@@ -879,7 +890,7 @@ var RichTextEditor = /** @class */ (function (_super) {
879
890
  * @param {string} value - specifies the value.
880
891
  * @returns {void}
881
892
  * @hidden
882
-
893
+ * @deprecated
883
894
  */
884
895
  RichTextEditor.prototype.serializeValue = function (value) {
885
896
  if (this.editorMode === 'HTML' && !isNOU(value)) {
@@ -910,7 +921,7 @@ var RichTextEditor = /** @class */ (function (_super) {
910
921
  * @param {string} value - specifies the string value.
911
922
  * @returns {void}
912
923
  * @hidden
913
-
924
+ * @deprecated
914
925
  */
915
926
  RichTextEditor.prototype.updateValue = function (value) {
916
927
  if (isNOU(value)) {
@@ -969,7 +980,7 @@ var RichTextEditor = /** @class */ (function (_super) {
969
980
  * @param {Function} module - specifies the module function.
970
981
  * @returns {void}
971
982
  * @hidden
972
-
983
+ * @deprecated
973
984
  */
974
985
  RichTextEditor.prototype.ensureModuleInjected = function (module) {
975
986
  return this.getInjectedModules().indexOf(module) >= 0;
@@ -977,7 +988,7 @@ var RichTextEditor = /** @class */ (function (_super) {
977
988
  /**
978
989
  * @returns {void}
979
990
  * @hidden
980
-
991
+ * @deprecated
981
992
  */
982
993
  RichTextEditor.prototype.onCopy = function () {
983
994
  this.contentModule.getDocument().execCommand('copy', false, null);
@@ -985,7 +996,7 @@ var RichTextEditor = /** @class */ (function (_super) {
985
996
  /**
986
997
  * @returns {void}
987
998
  * @hidden
988
-
999
+ * @deprecated
989
1000
  */
990
1001
  RichTextEditor.prototype.onCut = function () {
991
1002
  this.contentModule.getDocument().execCommand('cut', false, null);
@@ -994,7 +1005,7 @@ var RichTextEditor = /** @class */ (function (_super) {
994
1005
  * @param {KeyboardEvent} e - specifies the keyboard event.
995
1006
  * @returns {void}
996
1007
  * @hidden
997
-
1008
+ * @deprecated
998
1009
  */
999
1010
  RichTextEditor.prototype.onPaste = function (e) {
1000
1011
  var _this = this;
@@ -1061,7 +1072,7 @@ var RichTextEditor = /** @class */ (function (_super) {
1061
1072
  * @param {MouseEvent} event - specifies the event.
1062
1073
  * @returns {void}
1063
1074
  * @hidden
1064
-
1075
+ * @deprecated
1065
1076
  */
1066
1077
  RichTextEditor.prototype.clipboardAction = function (action, event) {
1067
1078
  switch (action.toLowerCase()) {
@@ -1270,7 +1281,7 @@ var RichTextEditor = /** @class */ (function (_super) {
1270
1281
  *
1271
1282
  * @returns {void}
1272
1283
  * @private
1273
-
1284
+ * @deprecated
1274
1285
  */
1275
1286
  RichTextEditor.prototype.getModuleName = function () {
1276
1287
  return 'richtexteditor';
@@ -1282,7 +1293,7 @@ var RichTextEditor = /** @class */ (function (_super) {
1282
1293
  * @param {RichTextEditorModel} oldProp - specifies the old property.
1283
1294
  * @returns {void}
1284
1295
  * @hidden
1285
-
1296
+ * @deprecated
1286
1297
  */
1287
1298
  /* eslint-disable */
1288
1299
  RichTextEditor.prototype.onPropertyChanged = function (newProp, oldProp) {
@@ -1435,7 +1446,7 @@ var RichTextEditor = /** @class */ (function (_super) {
1435
1446
  /**
1436
1447
  * @hidden
1437
1448
  * @returns {void}
1438
-
1449
+ * @deprecated
1439
1450
  */
1440
1451
  RichTextEditor.prototype.updateValueData = function () {
1441
1452
  if (this.enableHtmlEncode) {
@@ -1530,7 +1541,7 @@ var RichTextEditor = /** @class */ (function (_super) {
1530
1541
  *
1531
1542
  * @returns {void}
1532
1543
  * @hidden
1533
-
1544
+ * @deprecated
1534
1545
  */
1535
1546
  RichTextEditor.prototype.setPlaceHolder = function () {
1536
1547
  if (this.inputElement && this.placeholder && this.iframeSettings.enable !== true) {
@@ -1608,7 +1619,7 @@ var RichTextEditor = /** @class */ (function (_super) {
1608
1619
  * @param {boolean} initial - specifies the boolean value
1609
1620
  * @returns {void}
1610
1621
  * @hidden
1611
-
1622
+ * @deprecated
1612
1623
  */
1613
1624
  RichTextEditor.prototype.setReadOnly = function (initial) {
1614
1625
  this.updateReadOnly();
@@ -1709,7 +1720,7 @@ var RichTextEditor = /** @class */ (function (_super) {
1709
1720
  *
1710
1721
  * @returns {void}
1711
1722
  * @public
1712
-
1723
+ * @deprecated
1713
1724
  */
1714
1725
  RichTextEditor.prototype.getRange = function () {
1715
1726
  return this.formatter.editorManager.nodeSelection.getRange(this.contentModule.getDocument());
@@ -1824,7 +1835,10 @@ var RichTextEditor = /** @class */ (function (_super) {
1824
1835
  var item = compiledTemplate[i];
1825
1836
  append([item], appendElem);
1826
1837
  }
1827
- this.setProperties({ value: appendElem.innerHTML.trim() });
1838
+ var content = appendElem.innerHTML.trim();
1839
+ if (content.length > 0) {
1840
+ this.setProperties({ value: content });
1841
+ }
1828
1842
  this.renderReactTemplates();
1829
1843
  }
1830
1844
  }
@@ -1854,7 +1868,7 @@ var RichTextEditor = /** @class */ (function (_super) {
1854
1868
  *
1855
1869
  * @returns {void}
1856
1870
  * @hidden
1857
-
1871
+ * @deprecated
1858
1872
  */
1859
1873
  RichTextEditor.prototype.getInsertImgMaxWidth = function () {
1860
1874
  var maxWidth = this.insertImageSettings.maxWidth;
@@ -1880,7 +1894,7 @@ var RichTextEditor = /** @class */ (function (_super) {
1880
1894
  *
1881
1895
  * @returns {void}
1882
1896
  * @hidden
1883
-
1897
+ * @deprecated
1884
1898
  */
1885
1899
  RichTextEditor.prototype.getInsertVidMaxWidth = function () {
1886
1900
  var maxWidth = this.insertVideoSettings.maxWidth;
@@ -1999,7 +2013,7 @@ var RichTextEditor = /** @class */ (function (_super) {
1999
2013
  /**
2000
2014
  * @returns {void}
2001
2015
  * @hidden
2002
-
2016
+ * @deprecated
2003
2017
  */
2004
2018
  RichTextEditor.prototype.getBaseToolbarObject = function () {
2005
2019
  var tbObj;
@@ -2014,7 +2028,7 @@ var RichTextEditor = /** @class */ (function (_super) {
2014
2028
  /**
2015
2029
  * @returns {void}
2016
2030
  * @hidden
2017
-
2031
+ * @deprecated
2018
2032
  */
2019
2033
  RichTextEditor.prototype.getToolbar = function () {
2020
2034
  return this.toolbarModule ? this.toolbarModule.getToolbarElement() : null;
@@ -2022,7 +2036,7 @@ var RichTextEditor = /** @class */ (function (_super) {
2022
2036
  /**
2023
2037
  * @returns {void}
2024
2038
  * @hidden
2025
-
2039
+ * @deprecated
2026
2040
  */
2027
2041
  RichTextEditor.prototype.getToolbarElement = function () {
2028
2042
  return this.toolbarModule && this.toolbarModule.getToolbarElement();
@@ -2032,7 +2046,7 @@ var RichTextEditor = /** @class */ (function (_super) {
2032
2046
  * getID method
2033
2047
  *
2034
2048
  * @hidden
2035
-
2049
+ * @deprecated
2036
2050
  */
2037
2051
  RichTextEditor.prototype.getID = function () {
2038
2052
  return this.internalID;
@@ -2043,7 +2057,7 @@ var RichTextEditor = /** @class */ (function (_super) {
2043
2057
  * @param {boolean} [isSpace] - Specifies whether to include a space before the CSS class.
2044
2058
  * @returns {string} The CSS class.
2045
2059
  * @hidden
2046
-
2060
+ * @deprecated
2047
2061
  */
2048
2062
  RichTextEditor.prototype.getCssClass = function (isSpace) {
2049
2063
  return (isNOU(this.cssClass) ? '' : isSpace ? ' ' + this.cssClass : this.cssClass);
@@ -2067,7 +2081,7 @@ var RichTextEditor = /** @class */ (function (_super) {
2067
2081
  * @param {FocusEvent} e - specifies the event.
2068
2082
  * @returns {void}
2069
2083
  * @hidden
2070
-
2084
+ * @deprecated
2071
2085
  */
2072
2086
  // eslint-disable-next-line
2073
2087
  RichTextEditor.prototype.preventDefaultResize = function (e) {
@@ -2310,7 +2324,7 @@ var RichTextEditor = /** @class */ (function (_super) {
2310
2324
  *
2311
2325
  * @returns {void}
2312
2326
  * @hidden
2313
-
2327
+ * @deprecated
2314
2328
  */
2315
2329
  RichTextEditor.prototype.contentChanged = function () {
2316
2330
  if (this.autoSaveOnIdle) {
@@ -2325,7 +2339,7 @@ var RichTextEditor = /** @class */ (function (_super) {
2325
2339
  *
2326
2340
  * @returns {void}
2327
2341
  * @hidden
2328
-
2342
+ * @deprecated
2329
2343
  */
2330
2344
  RichTextEditor.prototype.invokeChangeEvent = function () {
2331
2345
  var currentValue;
@@ -2347,7 +2361,7 @@ var RichTextEditor = /** @class */ (function (_super) {
2347
2361
  /**
2348
2362
  * @returns {void}
2349
2363
  * @hidden
2350
-
2364
+ * @deprecated
2351
2365
  */
2352
2366
  RichTextEditor.prototype.wireScrollElementsEvents = function () {
2353
2367
  this.scrollParentElements = getScrollableParent(this.element);
@@ -2377,7 +2391,7 @@ var RichTextEditor = /** @class */ (function (_super) {
2377
2391
  /**
2378
2392
  * @returns {void}
2379
2393
  * @hidden
2380
-
2394
+ * @deprecated
2381
2395
  */
2382
2396
  RichTextEditor.prototype.unWireScrollElementsEvents = function () {
2383
2397
  this.scrollParentElements = getScrollableParent(this.element);
@@ -2414,7 +2428,7 @@ var RichTextEditor = /** @class */ (function (_super) {
2414
2428
  /**
2415
2429
  * @returns {void}
2416
2430
  * @hidden
2417
-
2431
+ * @deprecated
2418
2432
  */
2419
2433
  RichTextEditor.prototype.autoResize = function () {
2420
2434
  if (!this.element || !this.originalElement || !this.valueContainer) {
@@ -88,7 +88,7 @@ export declare function updateUndoRedoStatus(baseToolbar: BaseToolbar, undoRedoS
88
88
  * @param {string} type - specifies the string type.
89
89
  * @returns {void}
90
90
  * @hidden
91
-
91
+ * @deprecated
92
92
  */
93
93
  export declare function dispatchEvent(element: Element | HTMLDocument, type: string): void;
94
94
  /**
@@ -332,7 +332,7 @@ export function updateUndoRedoStatus(baseToolbar, undoRedoStatus) {
332
332
  * @param {string} type - specifies the string type.
333
333
  * @returns {void}
334
334
  * @hidden
335
-
335
+ * @deprecated
336
336
  */
337
337
  export function dispatchEvent(element, type) {
338
338
  var evt = document.createEvent('HTMLEvents');
@@ -7,7 +7,7 @@ import { IHtmlUndoRedoData } from '../../editor-manager/base/interface';
7
7
  * Formatter
8
8
  *
9
9
  * @hidden
10
-
10
+ * @deprecated
11
11
  */
12
12
  export declare class Formatter {
13
13
  editorManager: IEditorModel;
@@ -21,7 +21,7 @@ export declare class Formatter {
21
21
  * @param {IItemCollectionArgs} value - specifies the collection arguments
22
22
  * @returns {void}
23
23
  * @hidden
24
-
24
+ * @deprecated
25
25
  */
26
26
  process(self: IRichTextEditor, args: ActionBeginEventArgs, event: MouseEvent | KeyboardEvent, value: IItemCollectionArgs): void;
27
27
  private getAncestorNode;
@@ -32,7 +32,7 @@ export declare class Formatter {
32
32
  * @param {KeyboardEvent} e - specifies the keyboard event.
33
33
  * @returns {void}
34
34
  * @hidden
35
-
35
+ * @deprecated
36
36
  */
37
37
  onKeyHandler(self: IRichTextEditor, e: KeyboardEvent): void;
38
38
  /**
@@ -42,7 +42,7 @@ export declare class Formatter {
42
42
  * @param {IMarkdownFormatterCallBack} events - specifies the event call back
43
43
  * @returns {void}
44
44
  * @hidden
45
-
45
+ * @deprecated
46
46
  */
47
47
  onSuccess(self: IRichTextEditor, events: IMarkdownFormatterCallBack | IHtmlFormatterCallBack): void;
48
48
  /**
@@ -51,7 +51,7 @@ export declare class Formatter {
51
51
  * @param {KeyboardEvent} e - specifies the keyboard event.
52
52
  * @returns {void}
53
53
  * @hidden
54
-
54
+ * @deprecated
55
55
  */
56
56
  saveData(e?: KeyboardEvent | MouseEvent | IUndoCallBack): void;
57
57
  /**
@@ -59,7 +59,7 @@ export declare class Formatter {
59
59
  *
60
60
  * @returns {void}
61
61
  * @hidden
62
-
62
+ * @deprecated
63
63
  */
64
64
  getUndoStatus(): {
65
65
  [key: string]: boolean;
@@ -70,7 +70,7 @@ export declare class Formatter {
70
70
  * @param {IHtmlUndoRedoData} - specifies the redo data.
71
71
  * @returns {void}
72
72
  * @hidden
73
-
73
+ * @deprecated
74
74
  */
75
75
  getUndoRedoStack(): IHtmlUndoRedoData[] | MarkdownUndoRedoData[];
76
76
  /**
@@ -79,7 +79,7 @@ export declare class Formatter {
79
79
  * @param {IRichTextEditor} self - specifies the self element.
80
80
  * @returns {void}
81
81
  * @hidden
82
-
82
+ * @deprecated
83
83
  */
84
84
  enableUndo(self: IRichTextEditor): void;
85
85
  beforeSlashMenuApply(): void;
@@ -6,7 +6,7 @@ import { KEY_DOWN, KEY_UP } from './../../common/constant';
6
6
  * Formatter
7
7
  *
8
8
  * @hidden
9
-
9
+ * @deprecated
10
10
  */
11
11
  var Formatter = /** @class */ (function () {
12
12
  function Formatter() {
@@ -20,7 +20,7 @@ var Formatter = /** @class */ (function () {
20
20
  * @param {IItemCollectionArgs} value - specifies the collection arguments
21
21
  * @returns {void}
22
22
  * @hidden
23
-
23
+ * @deprecated
24
24
  */
25
25
  Formatter.prototype.process = function (self, args, event, value) {
26
26
  var _this = this;
@@ -172,7 +172,7 @@ var Formatter = /** @class */ (function () {
172
172
  * @param {KeyboardEvent} e - specifies the keyboard event.
173
173
  * @returns {void}
174
174
  * @hidden
175
-
175
+ * @deprecated
176
176
  */
177
177
  Formatter.prototype.onKeyHandler = function (self, e) {
178
178
  var _this = this;
@@ -191,7 +191,7 @@ var Formatter = /** @class */ (function () {
191
191
  * @param {IMarkdownFormatterCallBack} events - specifies the event call back
192
192
  * @returns {void}
193
193
  * @hidden
194
-
194
+ * @deprecated
195
195
  */
196
196
  Formatter.prototype.onSuccess = function (self, events) {
197
197
  self.notify(CONSTANT.contentChanged, {});
@@ -225,7 +225,7 @@ var Formatter = /** @class */ (function () {
225
225
  * @param {KeyboardEvent} e - specifies the keyboard event.
226
226
  * @returns {void}
227
227
  * @hidden
228
-
228
+ * @deprecated
229
229
  */
230
230
  Formatter.prototype.saveData = function (e) {
231
231
  this.editorManager.undoRedoManager.saveData(e);
@@ -235,7 +235,7 @@ var Formatter = /** @class */ (function () {
235
235
  *
236
236
  * @returns {void}
237
237
  * @hidden
238
-
238
+ * @deprecated
239
239
  */
240
240
  Formatter.prototype.getUndoStatus = function () {
241
241
  return this.editorManager.undoRedoManager.getUndoStatus();
@@ -247,7 +247,7 @@ var Formatter = /** @class */ (function () {
247
247
  * @param {IHtmlUndoRedoData} - specifies the redo data.
248
248
  * @returns {void}
249
249
  * @hidden
250
-
250
+ * @deprecated
251
251
  */
252
252
  /* eslint-enable */
253
253
  Formatter.prototype.getUndoRedoStack = function () {
@@ -259,7 +259,7 @@ var Formatter = /** @class */ (function () {
259
259
  * @param {IRichTextEditor} self - specifies the self element.
260
260
  * @returns {void}
261
261
  * @hidden
262
-
262
+ * @deprecated
263
263
  */
264
264
  Formatter.prototype.enableUndo = function (self) {
265
265
  var status = this.getUndoStatus();
@@ -5,7 +5,7 @@ import { FormatPainterSettingsModel } from '../models';
5
5
  * HTML adapter
6
6
  *
7
7
  * @hidden
8
-
8
+ * @deprecated
9
9
  */
10
10
  export declare class HTMLFormatter extends Formatter {
11
11
  keyConfig: {
@@ -26,7 +26,7 @@ export declare class HTMLFormatter extends Formatter {
26
26
  * @param {FormatPainterSettingsModel} formatPainterSettings - specifies the format painter settings
27
27
  * @returns {void}
28
28
  * @hidden
29
-
29
+ * @deprecated
30
30
  */
31
31
  updateFormatter(editElement: Element, doc?: Document, options?: {
32
32
  [key: string]: number;
@@ -19,7 +19,7 @@ import { htmlKeyConfig } from './../../common/config';
19
19
  * HTML adapter
20
20
  *
21
21
  * @hidden
22
-
22
+ * @deprecated
23
23
  */
24
24
  var HTMLFormatter = /** @class */ (function (_super) {
25
25
  __extends(HTMLFormatter, _super);
@@ -44,7 +44,7 @@ var HTMLFormatter = /** @class */ (function (_super) {
44
44
  * @param {FormatPainterSettingsModel} formatPainterSettings - specifies the format painter settings
45
45
  * @returns {void}
46
46
  * @hidden
47
-
47
+ * @deprecated
48
48
  */
49
49
  HTMLFormatter.prototype.updateFormatter = function (editElement, doc, options, formatPainterSettings) {
50
50
  if (editElement && doc) {
@@ -4,7 +4,7 @@ import { IEditorModel, IMarkdownFormatterModel } from './../base/interface';
4
4
  * Markdown adapter
5
5
  *
6
6
  * @hidden
7
-
7
+ * @deprecated
8
8
  */
9
9
  export declare class MarkdownFormatter extends Formatter {
10
10
  keyConfig: {
@@ -31,7 +31,7 @@ export declare class MarkdownFormatter extends Formatter {
31
31
  * @param {number} options - specifies the options
32
32
  * @returns {void}
33
33
  * @hidden
34
-
34
+ * @deprecated
35
35
  */
36
36
  updateFormatter(editElement: Element, doc?: Document, options?: {
37
37
  [key: string]: number;
@@ -19,7 +19,7 @@ import { markdownKeyConfig, markdownListsTags, markdownFormatTags, markdownSelec
19
19
  * Markdown adapter
20
20
  *
21
21
  * @hidden
22
-
22
+ * @deprecated
23
23
  */
24
24
  var MarkdownFormatter = /** @class */ (function (_super) {
25
25
  __extends(MarkdownFormatter, _super);
@@ -46,7 +46,7 @@ var MarkdownFormatter = /** @class */ (function (_super) {
46
46
  * @param {number} options - specifies the options
47
47
  * @returns {void}
48
48
  * @hidden
49
-
49
+ * @deprecated
50
50
  */
51
51
  MarkdownFormatter.prototype.updateFormatter = function (editElement, doc, options) {
52
52
  if (editElement) {
@@ -69,7 +69,7 @@ export declare class Audio {
69
69
  * @method destroy
70
70
  * @returns {void}
71
71
  * @hidden
72
-
72
+ * @deprecated
73
73
  */
74
74
  destroy(): void;
75
75
  /**
@@ -844,6 +844,9 @@ var Audio = /** @class */ (function () {
844
844
  proxy.uploadUrl.cssClass = (proxy.parent.insertAudioSettings.layoutOption === 'Inline' ?
845
845
  classes.CLS_AUDIOINLINE : classes.CLS_AUDIOBREAK);
846
846
  proxy.dialogObj.hide({ returnValue: false });
847
+ if (proxy.dialogObj !== null) {
848
+ return;
849
+ }
847
850
  proxy.parent.formatter.process(proxy.parent, this.args, this.args.originalEvent, proxy.uploadUrl);
848
851
  proxy.uploadUrl.url = '';
849
852
  }
@@ -862,8 +865,11 @@ var Audio = /** @class */ (function () {
862
865
  url: url, selection: this.selection, fileName: name_1,
863
866
  selectParent: this.selectParent
864
867
  };
865
- proxy.parent.formatter.process(proxy.parent, this.args, this.args.originalEvent, value);
866
868
  proxy.dialogObj.hide({ returnValue: false });
869
+ if (proxy.dialogObj !== null) {
870
+ return;
871
+ }
872
+ proxy.parent.formatter.process(proxy.parent, this.args, this.args.originalEvent, value);
867
873
  }
868
874
  };
869
875
  /* eslint-disable */
@@ -873,7 +879,7 @@ var Audio = /** @class */ (function () {
873
879
  * @method destroy
874
880
  * @returns {void}
875
881
  * @hidden
876
-
882
+ * @deprecated
877
883
  */
878
884
  /* eslint-enable */
879
885
  Audio.prototype.destroy = function () {
@@ -3,7 +3,7 @@ import { IRenderer, IRichTextEditor } from '../base/interface';
3
3
  * Content module is used to render Rich Text Editor content
4
4
  *
5
5
  * @hidden
6
-
6
+ * @deprecated
7
7
  */
8
8
  export declare class ContentRender implements IRenderer {
9
9
  protected contentPanel: Element;
@@ -20,7 +20,7 @@ export declare class ContentRender 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 ContentRender 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 ContentRender implements IRenderer {
36
36
  *
37
37
  * @returns {Element} - specifies the return element.
38
38
  * @hidden
39
-
39
+ * @deprecated
40
40
  */
41
41
  getEditPanel(): Element;
42
42
  /**
@@ -51,7 +51,7 @@ export declare class ContentRender implements IRenderer {
51
51
  * @param {Element} panel - specifies the panel 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 ContentRender implements IRenderer {
59
59
  *
60
60
  * @returns {Document} - specifies the document.
61
61
  * @hidden
62
-
62
+ * @deprecated
63
63
  */
64
64
  getDocument(): Document;
65
65
  }