@syncfusion/ej2-richtexteditor 28.1.36 → 28.1.38-680214

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 (183) hide show
  1. package/README.md +1 -1
  2. package/dist/ej2-richtexteditor.min.js +1 -1
  3. package/dist/ej2-richtexteditor.umd.min.js +1 -1
  4. package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
  5. package/dist/es6/ej2-richtexteditor.es2015.js +221 -167
  6. package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
  7. package/dist/es6/ej2-richtexteditor.es5.js +221 -167
  8. package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
  9. package/dist/global/ej2-richtexteditor.min.js +1 -1
  10. package/dist/global/ej2-richtexteditor.min.js.map +1 -1
  11. package/package.json +59 -82
  12. package/src/common/interface.d.ts +8 -8
  13. package/src/common/util.d.ts +1 -2
  14. package/src/common/util.js +49 -95
  15. package/src/editor-manager/base/classes.d.ts +1 -1
  16. package/src/editor-manager/base/classes.js +1 -1
  17. package/src/editor-manager/base/editor-manager.d.ts +3 -3
  18. package/src/editor-manager/base/editor-manager.js +3 -3
  19. package/src/editor-manager/base/enum.d.ts +2 -2
  20. package/src/editor-manager/base/interface.d.ts +17 -9
  21. package/src/editor-manager/base/types.d.ts +1 -1
  22. package/src/editor-manager/plugin/alignments.d.ts +2 -2
  23. package/src/editor-manager/plugin/alignments.js +2 -2
  24. package/src/editor-manager/plugin/audio.d.ts +3 -3
  25. package/src/editor-manager/plugin/audio.js +3 -3
  26. package/src/editor-manager/plugin/clearformat-exec.d.ts +2 -2
  27. package/src/editor-manager/plugin/clearformat-exec.js +2 -2
  28. package/src/editor-manager/plugin/clearformat.d.ts +1 -1
  29. package/src/editor-manager/plugin/clearformat.js +1 -1
  30. package/src/editor-manager/plugin/dom-node.d.ts +36 -36
  31. package/src/editor-manager/plugin/dom-node.js +36 -36
  32. package/src/editor-manager/plugin/format-painter-actions.d.ts +1 -1
  33. package/src/editor-manager/plugin/format-painter-actions.js +1 -1
  34. package/src/editor-manager/plugin/formats.d.ts +2 -2
  35. package/src/editor-manager/plugin/formats.js +2 -2
  36. package/src/editor-manager/plugin/image.d.ts +3 -3
  37. package/src/editor-manager/plugin/image.js +3 -3
  38. package/src/editor-manager/plugin/indents.d.ts +2 -2
  39. package/src/editor-manager/plugin/indents.js +2 -2
  40. package/src/editor-manager/plugin/insert-methods.d.ts +4 -4
  41. package/src/editor-manager/plugin/insert-methods.js +4 -4
  42. package/src/editor-manager/plugin/insert-text.d.ts +2 -2
  43. package/src/editor-manager/plugin/insert-text.js +2 -2
  44. package/src/editor-manager/plugin/inserthtml-exec.d.ts +2 -2
  45. package/src/editor-manager/plugin/inserthtml-exec.js +2 -2
  46. package/src/editor-manager/plugin/inserthtml.d.ts +2 -2
  47. package/src/editor-manager/plugin/inserthtml.js +5 -5
  48. package/src/editor-manager/plugin/isformatted.d.ts +9 -9
  49. package/src/editor-manager/plugin/isformatted.js +9 -9
  50. package/src/editor-manager/plugin/link.d.ts +2 -2
  51. package/src/editor-manager/plugin/link.js +2 -2
  52. package/src/editor-manager/plugin/lists.d.ts +3 -2
  53. package/src/editor-manager/plugin/lists.js +15 -3
  54. package/src/editor-manager/plugin/ms-word-clean-up.d.ts +1 -1
  55. package/src/editor-manager/plugin/ms-word-clean-up.js +1 -1
  56. package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
  57. package/src/editor-manager/plugin/nodecutter.js +6 -6
  58. package/src/editor-manager/plugin/selection-commands.d.ts +1 -1
  59. package/src/editor-manager/plugin/selection-commands.js +2 -1
  60. package/src/editor-manager/plugin/selection-exec.d.ts +2 -2
  61. package/src/editor-manager/plugin/selection-exec.js +2 -2
  62. package/src/editor-manager/plugin/table.d.ts +2 -2
  63. package/src/editor-manager/plugin/table.js +2 -2
  64. package/src/editor-manager/plugin/toolbar-status.d.ts +2 -2
  65. package/src/editor-manager/plugin/toolbar-status.js +2 -2
  66. package/src/editor-manager/plugin/undo.d.ts +6 -6
  67. package/src/editor-manager/plugin/undo.js +6 -6
  68. package/src/editor-manager/plugin/video.d.ts +3 -3
  69. package/src/editor-manager/plugin/video.js +3 -3
  70. package/src/markdown-parser/base/interface.d.ts +10 -10
  71. package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
  72. package/src/markdown-parser/base/markdown-parser.js +3 -3
  73. package/src/markdown-parser/base/types.d.ts +1 -1
  74. package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
  75. package/src/markdown-parser/plugin/clearformat.js +2 -2
  76. package/src/markdown-parser/plugin/formats.d.ts +2 -2
  77. package/src/markdown-parser/plugin/formats.js +2 -2
  78. package/src/markdown-parser/plugin/insert-text.d.ts +2 -2
  79. package/src/markdown-parser/plugin/insert-text.js +2 -2
  80. package/src/markdown-parser/plugin/link.d.ts +2 -2
  81. package/src/markdown-parser/plugin/link.js +2 -2
  82. package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
  83. package/src/markdown-parser/plugin/markdown-selection.js +14 -14
  84. package/src/markdown-parser/plugin/md-selection-formats.d.ts +1 -1
  85. package/src/markdown-parser/plugin/md-selection-formats.js +1 -1
  86. package/src/markdown-parser/plugin/table.d.ts +3 -3
  87. package/src/markdown-parser/plugin/table.js +3 -3
  88. package/src/markdown-parser/plugin/undo.d.ts +6 -6
  89. package/src/markdown-parser/plugin/undo.js +6 -6
  90. package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +9 -9
  91. package/src/rich-text-editor/actions/base-quick-toolbar.js +9 -9
  92. package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
  93. package/src/rich-text-editor/actions/base-toolbar.js +3 -3
  94. package/src/rich-text-editor/actions/color-picker.d.ts +2 -2
  95. package/src/rich-text-editor/actions/color-picker.js +2 -2
  96. package/src/rich-text-editor/actions/count.d.ts +3 -3
  97. package/src/rich-text-editor/actions/count.js +3 -3
  98. package/src/rich-text-editor/actions/dropdown-buttons.d.ts +2 -2
  99. package/src/rich-text-editor/actions/dropdown-buttons.js +2 -2
  100. package/src/rich-text-editor/actions/emoji-picker.d.ts +1 -1
  101. package/src/rich-text-editor/actions/emoji-picker.js +1 -1
  102. package/src/rich-text-editor/actions/enter-key.js +37 -5
  103. package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
  104. package/src/rich-text-editor/actions/full-screen.js +3 -3
  105. package/src/rich-text-editor/actions/html-editor.d.ts +3 -3
  106. package/src/rich-text-editor/actions/html-editor.js +28 -6
  107. package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
  108. package/src/rich-text-editor/actions/keyboard.js +1 -1
  109. package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
  110. package/src/rich-text-editor/actions/markdown-editor.js +2 -2
  111. package/src/rich-text-editor/actions/paste-clean-up.d.ts +1 -1
  112. package/src/rich-text-editor/actions/paste-clean-up.js +27 -11
  113. package/src/rich-text-editor/actions/quick-toolbar.d.ts +9 -9
  114. package/src/rich-text-editor/actions/quick-toolbar.js +9 -9
  115. package/src/rich-text-editor/actions/resize.d.ts +2 -0
  116. package/src/rich-text-editor/actions/resize.js +14 -2
  117. package/src/rich-text-editor/actions/toolbar.d.ts +13 -13
  118. package/src/rich-text-editor/actions/toolbar.js +13 -13
  119. package/src/rich-text-editor/actions/xhtml-validation.d.ts +1 -1
  120. package/src/rich-text-editor/actions/xhtml-validation.js +1 -1
  121. package/src/rich-text-editor/base/classes.d.ts +125 -125
  122. package/src/rich-text-editor/base/classes.js +125 -125
  123. package/src/rich-text-editor/base/constant.d.ts +158 -158
  124. package/src/rich-text-editor/base/constant.js +158 -158
  125. package/src/rich-text-editor/base/enum.d.ts +1 -1
  126. package/src/rich-text-editor/base/enum.js +1 -1
  127. package/src/rich-text-editor/base/interface.d.ts +51 -51
  128. package/src/rich-text-editor/base/interface.js +1 -1
  129. package/src/rich-text-editor/base/rich-text-editor-model.d.ts +1 -1
  130. package/src/rich-text-editor/base/rich-text-editor.d.ts +62 -62
  131. package/src/rich-text-editor/base/rich-text-editor.js +34 -35
  132. package/src/rich-text-editor/base/util.d.ts +1 -1
  133. package/src/rich-text-editor/base/util.js +1 -1
  134. package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
  135. package/src/rich-text-editor/formatter/formatter.js +9 -9
  136. package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
  137. package/src/rich-text-editor/formatter/html-formatter.js +2 -2
  138. package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
  139. package/src/rich-text-editor/formatter/markdown-formatter.js +2 -2
  140. package/src/rich-text-editor/renderer/audio-module.d.ts +1 -1
  141. package/src/rich-text-editor/renderer/audio-module.js +1 -1
  142. package/src/rich-text-editor/renderer/content-renderer.d.ts +6 -6
  143. package/src/rich-text-editor/renderer/content-renderer.js +6 -6
  144. package/src/rich-text-editor/renderer/dialog-renderer.d.ts +2 -2
  145. package/src/rich-text-editor/renderer/dialog-renderer.js +2 -2
  146. package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
  147. package/src/rich-text-editor/renderer/iframe-content-renderer.js +4 -4
  148. package/src/rich-text-editor/renderer/image-module.d.ts +1 -1
  149. package/src/rich-text-editor/renderer/image-module.js +1 -1
  150. package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
  151. package/src/rich-text-editor/renderer/link-module.js +3 -3
  152. package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
  153. package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
  154. package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
  155. package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
  156. package/src/rich-text-editor/renderer/render.d.ts +2 -2
  157. package/src/rich-text-editor/renderer/render.js +2 -2
  158. package/src/rich-text-editor/renderer/table-module.d.ts +3 -2
  159. package/src/rich-text-editor/renderer/table-module.js +44 -41
  160. package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +9 -9
  161. package/src/rich-text-editor/renderer/toolbar-renderer.js +16 -13
  162. package/src/rich-text-editor/renderer/video-module.d.ts +1 -1
  163. package/src/rich-text-editor/renderer/video-module.js +1 -1
  164. package/src/rich-text-editor/renderer/view-source.d.ts +5 -5
  165. package/src/rich-text-editor/renderer/view-source.js +5 -5
  166. package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
  167. package/src/rich-text-editor/services/renderer-factory.js +3 -3
  168. package/src/rich-text-editor/services/service-locator.d.ts +3 -3
  169. package/src/rich-text-editor/services/service-locator.js +3 -3
  170. package/src/selection/selection.d.ts +22 -22
  171. package/src/selection/selection.js +22 -22
  172. package/styles/bootstrap5.3-lite.css +5 -0
  173. package/styles/bootstrap5.3.css +5 -0
  174. package/styles/material3-dark.scss +1 -1
  175. package/styles/material3.scss +1 -1
  176. package/styles/rich-text-editor/_layout.scss +1 -1
  177. package/styles/rich-text-editor/_theme.scss +1 -1
  178. package/styles/rich-text-editor/bootstrap5.3.css +5 -0
  179. package/styles/rich-text-editor/material3-dark.scss +1 -1
  180. package/styles/rich-text-editor/material3.scss +1 -1
  181. package/styles/rich-text-editor/tailwind3.css +5 -0
  182. package/styles/tailwind3-lite.css +5 -0
  183. package/styles/tailwind3.css +5 -0
@@ -24,7 +24,7 @@ export declare class UndoRedoCommands {
24
24
  * @function destroy
25
25
  * @returns {void}
26
26
  * @hidden
27
-
27
+ * @deprecated
28
28
  */
29
29
  destroy(): void;
30
30
  /**
@@ -33,7 +33,7 @@ export declare class UndoRedoCommands {
33
33
  * @param {IMarkdownSubCommands} e - specifies the sub commands
34
34
  * @returns {void}
35
35
  * @hidden
36
-
36
+ * @deprecated
37
37
  */
38
38
  onAction(e: IMarkdownSubCommands): void;
39
39
  private keyDown;
@@ -45,7 +45,7 @@ export declare class UndoRedoCommands {
45
45
  * @function saveData
46
46
  * @returns {void}
47
47
  * @hidden
48
-
48
+ * @deprecated
49
49
  */
50
50
  saveData(e?: KeyboardEvent | MouseEvent | IUndoCallBack): void;
51
51
  /**
@@ -55,7 +55,7 @@ export declare class UndoRedoCommands {
55
55
  * @function undo
56
56
  * @returns {void}
57
57
  * @hidden
58
-
58
+ * @deprecated
59
59
  */
60
60
  undo(e?: IMarkdownSubCommands | IMDKeyboardEvent): void;
61
61
  /**
@@ -65,7 +65,7 @@ export declare class UndoRedoCommands {
65
65
  * @function redo
66
66
  * @returns {void}
67
67
  * @hidden
68
-
68
+ * @deprecated
69
69
  */
70
70
  redo(e?: IMarkdownSubCommands | IMDKeyboardEvent): void;
71
71
  private restore;
@@ -74,7 +74,7 @@ export declare class UndoRedoCommands {
74
74
  *
75
75
  * @returns {boolean} - returns the boolean value
76
76
  * @hidden
77
-
77
+ * @deprecated
78
78
  */
79
79
  getUndoStatus(): {
80
80
  [key: string]: boolean;
@@ -47,7 +47,7 @@ var UndoRedoCommands = /** @class */ (function () {
47
47
  * @function destroy
48
48
  * @returns {void}
49
49
  * @hidden
50
-
50
+ * @deprecated
51
51
  */
52
52
  UndoRedoCommands.prototype.destroy = function () {
53
53
  this.removeEventListener();
@@ -58,7 +58,7 @@ var UndoRedoCommands = /** @class */ (function () {
58
58
  * @param {IMarkdownSubCommands} e - specifies the sub commands
59
59
  * @returns {void}
60
60
  * @hidden
61
-
61
+ * @deprecated
62
62
  */
63
63
  UndoRedoCommands.prototype.onAction = function (e) {
64
64
  if (e.subCommand === 'Undo') {
@@ -95,7 +95,7 @@ var UndoRedoCommands = /** @class */ (function () {
95
95
  * @function saveData
96
96
  * @returns {void}
97
97
  * @hidden
98
-
98
+ * @deprecated
99
99
  */
100
100
  UndoRedoCommands.prototype.saveData = function (e) {
101
101
  var textArea = this.parent.element;
@@ -128,7 +128,7 @@ var UndoRedoCommands = /** @class */ (function () {
128
128
  * @function undo
129
129
  * @returns {void}
130
130
  * @hidden
131
-
131
+ * @deprecated
132
132
  */
133
133
  UndoRedoCommands.prototype.undo = function (e) {
134
134
  if (this.steps > 0) {
@@ -149,7 +149,7 @@ var UndoRedoCommands = /** @class */ (function () {
149
149
  * @function redo
150
150
  * @returns {void}
151
151
  * @hidden
152
-
152
+ * @deprecated
153
153
  */
154
154
  UndoRedoCommands.prototype.redo = function (e) {
155
155
  if (this.undoRedoStack[this.steps + 1] != null) {
@@ -179,7 +179,7 @@ var UndoRedoCommands = /** @class */ (function () {
179
179
  *
180
180
  * @returns {boolean} - returns the boolean value
181
181
  * @hidden
182
-
182
+ * @deprecated
183
183
  */
184
184
  UndoRedoCommands.prototype.getUndoStatus = function () {
185
185
  var status = { undo: false, redo: false };
@@ -31,7 +31,7 @@ export declare class BaseQuickToolbar implements IBaseQuickToolbar {
31
31
  * @param {IQuickToolbarOptions} args - specifies the arguments
32
32
  * @returns {void}
33
33
  * @hidden
34
-
34
+ * @deprecated
35
35
  */
36
36
  render(args: IQuickToolbarOptions): void;
37
37
  private createToolbar;
@@ -46,7 +46,7 @@ export declare class BaseQuickToolbar implements IBaseQuickToolbar {
46
46
  * @param {string} type - specifies the type
47
47
  * @returns {void}
48
48
  * @hidden
49
-
49
+ * @deprecated
50
50
  */
51
51
  showPopup(x: number, y: number, target: Element, type?: string): void;
52
52
  private tooltipBeforeRender;
@@ -55,7 +55,7 @@ export declare class BaseQuickToolbar implements IBaseQuickToolbar {
55
55
  *
56
56
  * @returns {void}
57
57
  * @hidden
58
-
58
+ * @deprecated
59
59
  */
60
60
  hidePopup(): void;
61
61
  /**
@@ -63,14 +63,14 @@ export declare class BaseQuickToolbar implements IBaseQuickToolbar {
63
63
  * @param {number} index - specifies the index value
64
64
  * @returns {void}
65
65
  * @hidden
66
-
66
+ * @deprecated
67
67
  */
68
68
  addQTBarItem(item: (string | IToolbarItems)[], index: number): void;
69
69
  /**
70
70
  * @param {number} index - specifies the index value
71
71
  * @returns {void}
72
72
  * @hidden
73
-
73
+ * @deprecated
74
74
  */
75
75
  removeQTBarItem(index: number | HTMLElement[] | Element[]): void;
76
76
  private removeEleFromDOM;
@@ -81,7 +81,7 @@ export declare class BaseQuickToolbar implements IBaseQuickToolbar {
81
81
  * @function destroy
82
82
  * @returns {void}
83
83
  * @hidden
84
-
84
+ * @deprecated
85
85
  */
86
86
  destroy(): void;
87
87
  /**
@@ -89,7 +89,7 @@ export declare class BaseQuickToolbar implements IBaseQuickToolbar {
89
89
  *
90
90
  * @returns {void}
91
91
  * @hidden
92
-
92
+ * @deprecated
93
93
  */
94
94
  addEventListener(): void;
95
95
  /**
@@ -98,7 +98,7 @@ export declare class BaseQuickToolbar implements IBaseQuickToolbar {
98
98
  * @param {RichTextEditorModel} e - specifies the model element
99
99
  * @returns {void}
100
100
  * @hidden
101
-
101
+ * @deprecated
102
102
  */
103
103
  protected onPropertyChanged(e: {
104
104
  [key: string]: RichTextEditorModel;
@@ -108,7 +108,7 @@ export declare class BaseQuickToolbar implements IBaseQuickToolbar {
108
108
  *
109
109
  * @returns {void}
110
110
  * @hidden
111
-
111
+ * @deprecated
112
112
  */
113
113
  removeEventListener(): void;
114
114
  }
@@ -36,7 +36,7 @@ var BaseQuickToolbar = /** @class */ (function () {
36
36
  * @param {IQuickToolbarOptions} args - specifies the arguments
37
37
  * @returns {void}
38
38
  * @hidden
39
-
39
+ * @deprecated
40
40
  */
41
41
  BaseQuickToolbar.prototype.render = function (args) {
42
42
  var className;
@@ -228,7 +228,7 @@ var BaseQuickToolbar = /** @class */ (function () {
228
228
  * @param {string} type - specifies the type
229
229
  * @returns {void}
230
230
  * @hidden
231
-
231
+ * @deprecated
232
232
  */
233
233
  BaseQuickToolbar.prototype.showPopup = function (x, y, target, type) {
234
234
  var _this = this;
@@ -350,7 +350,7 @@ var BaseQuickToolbar = /** @class */ (function () {
350
350
  *
351
351
  * @returns {void}
352
352
  * @hidden
353
-
353
+ * @deprecated
354
354
  */
355
355
  BaseQuickToolbar.prototype.hidePopup = function () {
356
356
  var isSourceCodeEnabled = !isNOU(this.parent.rootContainer) && this.parent.rootContainer.classList.contains('e-source-code-enabled');
@@ -392,7 +392,7 @@ var BaseQuickToolbar = /** @class */ (function () {
392
392
  * @param {number} index - specifies the index value
393
393
  * @returns {void}
394
394
  * @hidden
395
-
395
+ * @deprecated
396
396
  */
397
397
  BaseQuickToolbar.prototype.addQTBarItem = function (item, index) {
398
398
  this.quickTBarObj.toolbarObj.addItems(this.quickTBarObj.getItems(item, 'toolbar'), index);
@@ -401,7 +401,7 @@ var BaseQuickToolbar = /** @class */ (function () {
401
401
  * @param {number} index - specifies the index value
402
402
  * @returns {void}
403
403
  * @hidden
404
-
404
+ * @deprecated
405
405
  */
406
406
  BaseQuickToolbar.prototype.removeQTBarItem = function (index) {
407
407
  this.quickTBarObj.toolbarObj.removeItems(index);
@@ -447,7 +447,7 @@ var BaseQuickToolbar = /** @class */ (function () {
447
447
  * @function destroy
448
448
  * @returns {void}
449
449
  * @hidden
450
-
450
+ * @deprecated
451
451
  */
452
452
  BaseQuickToolbar.prototype.destroy = function () {
453
453
  if (this.isDestroyed) {
@@ -477,7 +477,7 @@ var BaseQuickToolbar = /** @class */ (function () {
477
477
  *
478
478
  * @returns {void}
479
479
  * @hidden
480
-
480
+ * @deprecated
481
481
  */
482
482
  BaseQuickToolbar.prototype.addEventListener = function () {
483
483
  if (this.parent.isDestroyed) {
@@ -495,7 +495,7 @@ var BaseQuickToolbar = /** @class */ (function () {
495
495
  * @param {RichTextEditorModel} e - specifies the model element
496
496
  * @returns {void}
497
497
  * @hidden
498
-
498
+ * @deprecated
499
499
  */
500
500
  BaseQuickToolbar.prototype.onPropertyChanged = function (e) {
501
501
  if (!isNullOrUndefined(e.newProp.inlineMode)) {
@@ -519,7 +519,7 @@ var BaseQuickToolbar = /** @class */ (function () {
519
519
  *
520
520
  * @returns {void}
521
521
  * @hidden
522
-
522
+ * @deprecated
523
523
  */
524
524
  BaseQuickToolbar.prototype.removeEventListener = function () {
525
525
  this.parent.off(events.destroy, this.destroy);
@@ -33,7 +33,7 @@ export declare class BaseToolbar {
33
33
  * @param {string} container - specifies the value of string
34
34
  * @returns {IToolbarItemModel} - returns the model element
35
35
  * @hidden
36
-
36
+ * @deprecated
37
37
  */
38
38
  getObject(item: string, container: string): IToolbarItemModel;
39
39
  /**
@@ -41,7 +41,7 @@ export declare class BaseToolbar {
41
41
  * @param {string} container - specifies the container value
42
42
  * @returns {ItemModel} - retunrs the model element
43
43
  * @hidden
44
-
44
+ * @deprecated
45
45
  */
46
46
  getItems(tbItems: (string | IToolbarItems)[], container: string): ItemModel[];
47
47
  private getToolbarOptions;
@@ -51,7 +51,7 @@ export declare class BaseToolbar {
51
51
  * @param {IToolbarRenderOptions} args - specifies the toolbar options
52
52
  * @returns {void}
53
53
  * @hidden
54
-
54
+ * @deprecated
55
55
  */
56
56
  render(args: IToolbarRenderOptions): void;
57
57
  destroy(): void;
@@ -97,7 +97,7 @@ var BaseToolbar = /** @class */ (function () {
97
97
  * @param {string} container - specifies the value of string
98
98
  * @returns {IToolbarItemModel} - returns the model element
99
99
  * @hidden
100
-
100
+ * @deprecated
101
101
  */
102
102
  BaseToolbar.prototype.getObject = function (item, container) {
103
103
  var itemStr = item.toLowerCase();
@@ -126,7 +126,7 @@ var BaseToolbar = /** @class */ (function () {
126
126
  * @param {string} container - specifies the container value
127
127
  * @returns {ItemModel} - retunrs the model element
128
128
  * @hidden
129
-
129
+ * @deprecated
130
130
  */
131
131
  BaseToolbar.prototype.getItems = function (tbItems, container) {
132
132
  var _this = this;
@@ -217,7 +217,7 @@ var BaseToolbar = /** @class */ (function () {
217
217
  * @param {IToolbarRenderOptions} args - specifies the toolbar options
218
218
  * @returns {void}
219
219
  * @hidden
220
-
220
+ * @deprecated
221
221
  */
222
222
  BaseToolbar.prototype.render = function (args) {
223
223
  this.toolbarRenderer = this.renderFactory.getRenderer(RenderType.Toolbar);
@@ -23,7 +23,7 @@ export declare class ColorPickerInput {
23
23
  * @param {IColorPickerRenderArgs} args - specify the arguments.
24
24
  * @returns {void}
25
25
  * @hidden
26
-
26
+ * @deprecated
27
27
  */
28
28
  renderColorPickerInput(args: IColorPickerRenderArgs): void;
29
29
  destroy(): void;
@@ -32,7 +32,7 @@ export declare class ColorPickerInput {
32
32
  *
33
33
  * @returns {void}
34
34
  * @hidden
35
-
35
+ * @deprecated
36
36
  */
37
37
  destroyColorPicker(): void;
38
38
  private setRtl;
@@ -30,7 +30,7 @@ var ColorPickerInput = /** @class */ (function () {
30
30
  * @param {IColorPickerRenderArgs} args - specify the arguments.
31
31
  * @returns {void}
32
32
  * @hidden
33
-
33
+ * @deprecated
34
34
  */
35
35
  ColorPickerInput.prototype.renderColorPickerInput = function (args) {
36
36
  var _this = this;
@@ -118,7 +118,7 @@ var ColorPickerInput = /** @class */ (function () {
118
118
  *
119
119
  * @returns {void}
120
120
  * @hidden
121
-
121
+ * @deprecated
122
122
  */
123
123
  ColorPickerInput.prototype.destroyColorPicker = function () {
124
124
  if (this.fontColorPicker && !this.fontColorPicker.isDestroyed) {
@@ -23,7 +23,7 @@ export declare class Count {
23
23
  *
24
24
  * @returns {void}
25
25
  * @hidden
26
-
26
+ * @deprecated
27
27
  */
28
28
  renderCount(): void;
29
29
  private appendCount;
@@ -31,7 +31,7 @@ export declare class Count {
31
31
  /**
32
32
  * @returns {void}
33
33
  * @hidden
34
-
34
+ * @deprecated
35
35
  */
36
36
  refresh(): void;
37
37
  /**
@@ -40,7 +40,7 @@ export declare class Count {
40
40
  * @function destroy
41
41
  * @returns {void}
42
42
  * @hidden
43
-
43
+ * @deprecated
44
44
  */
45
45
  destroy(): void;
46
46
  private toggle;
@@ -23,7 +23,7 @@ var Count = /** @class */ (function () {
23
23
  *
24
24
  * @returns {void}
25
25
  * @hidden
26
-
26
+ * @deprecated
27
27
  */
28
28
  Count.prototype.renderCount = function () {
29
29
  this.initializeInstance();
@@ -68,7 +68,7 @@ var Count = /** @class */ (function () {
68
68
  /**
69
69
  * @returns {void}
70
70
  * @hidden
71
-
71
+ * @deprecated
72
72
  */
73
73
  Count.prototype.refresh = function () {
74
74
  if (!isNullOrUndefined(this.editPanel)) {
@@ -84,7 +84,7 @@ var Count = /** @class */ (function () {
84
84
  * @function destroy
85
85
  * @returns {void}
86
86
  * @hidden
87
-
87
+ * @deprecated
88
88
  */
89
89
  Count.prototype.destroy = function () {
90
90
  if (this.isDestroyed) {
@@ -38,7 +38,7 @@ export declare class DropDownButtons {
38
38
  * @param {IDropDownRenderArgs} args - specifies the arguments
39
39
  * @returns {void}
40
40
  * @hidden
41
-
41
+ * @deprecated
42
42
  */
43
43
  renderDropDowns(args: IDropDownRenderArgs): void;
44
44
  private getUpdateItems;
@@ -57,7 +57,7 @@ export declare class DropDownButtons {
57
57
  *
58
58
  * @returns {void}
59
59
  * @hidden
60
-
60
+ * @deprecated
61
61
  */
62
62
  destroyDropDowns(): void;
63
63
  private setRtl;
@@ -36,7 +36,7 @@ var DropDownButtons = /** @class */ (function () {
36
36
  * @param {IDropDownRenderArgs} args - specifies the arguments
37
37
  * @returns {void}
38
38
  * @hidden
39
-
39
+ * @deprecated
40
40
  */
41
41
  DropDownButtons.prototype.renderDropDowns = function (args) {
42
42
  var _this = this;
@@ -401,7 +401,7 @@ var DropDownButtons = /** @class */ (function () {
401
401
  *
402
402
  * @returns {void}
403
403
  * @hidden
404
-
404
+ * @deprecated
405
405
  */
406
406
  DropDownButtons.prototype.destroyDropDowns = function () {
407
407
  if (this.formatDropDown) {
@@ -22,7 +22,7 @@ export declare class EmojiPicker {
22
22
  * @function destroy
23
23
  * @returns {void}
24
24
  * @hidden
25
-
25
+ * @deprecated
26
26
  */
27
27
  destroy(): void;
28
28
  childDestroy(): void;
@@ -20,7 +20,7 @@ var EmojiPicker = /** @class */ (function () {
20
20
  * @function destroy
21
21
  * @returns {void}
22
22
  * @hidden
23
-
23
+ * @deprecated
24
24
  */
25
25
  EmojiPicker.prototype.destroy = function () {
26
26
  if (this.isDestroyed) {
@@ -151,7 +151,7 @@ var EnterKeyAction = /** @class */ (function () {
151
151
  if ((_this.parent.enterKey === 'P' && !shiftKey_1) || (_this.parent.enterKey === 'DIV' && !shiftKey_1) ||
152
152
  (_this.parent.shiftEnterKey === 'P' && shiftKey_1) ||
153
153
  (_this.parent.shiftEnterKey === 'DIV' && shiftKey_1)) {
154
- if ((_this.range.startOffset === 1 && _this.parent.inputElement.childNodes.length === 1 && _this.parent.inputElement.childNodes[0].nodeName === 'TABLE') || (_this.parent.enterKey === 'BR' && shiftKey_1)) {
154
+ if ((_this.range.startOffset === 1 && _this.parent.inputElement.childNodes.length === 1 && _this.parent.inputElement.childNodes[0].nodeName === 'TABLE')) {
155
155
  var newElem = _this.createInsertElement(shiftKey_1);
156
156
  newElem.appendChild(_this.parent.createElement('BR'));
157
157
  _this.parent.inputElement.appendChild(newElem);
@@ -193,7 +193,8 @@ var EnterKeyAction = /** @class */ (function () {
193
193
  && isSplitTextEmpty && !isPreWrapApplied && !isTextWrapApplied;
194
194
  var isCursorAtStartPreWrapWithContent = lastCharBeforeCursor === 32
195
195
  && (isPreWrapApplied || isTextWrapApplied) && isSplitTextEmpty && hasContentAfterCursor;
196
- if (isCursorAtStartNonPreWrap || isCursorAtStartPreWrapWithContent) {
196
+ if ((isCursorAtStartNonPreWrap || isCursorAtStartPreWrapWithContent) &&
197
+ !_this.range.startContainer.previousSibling) {
197
198
  isFocusedFirst = true;
198
199
  }
199
200
  }
@@ -202,15 +203,16 @@ var EnterKeyAction = /** @class */ (function () {
202
203
  }
203
204
  _this.removeBRElement(nearBlockNode);
204
205
  var fireFoxEnterAtMiddle = Browser.userAgent.indexOf('Firefox') !== -1 && _this.range.startOffset === 0 && _this.range.startContainer === _this.range.endContainer &&
205
- _this.range.startContainer.nodeName === '#text' && !_this.parent.formatter.editorManager.domNode.isBlockNode(_this.range.startContainer.previousSibling) &&
206
+ _this.range.startContainer.nodeName === '#text' && !isNOU(_this.range.startContainer.previousSibling) && !_this.parent.formatter.editorManager.domNode.isBlockNode(_this.range.startContainer.previousSibling) &&
206
207
  _this.range.startContainer.parentElement === _this.range.startContainer.previousSibling.parentElement;
207
208
  var preventZeroWithSpace = ((_this.range.startContainer.nodeName === '#text' && _this.range.startContainer.textContent.includes('\u200B') &&
208
209
  _this.range.startContainer.textContent.trim() === '\u200B') ||
209
210
  (_this.range.startContainer.nodeName === '#text' && !isNOU(_this.range.startContainer.textContent[_this.range.startOffset]) &&
210
211
  _this.range.startContainer.textContent[_this.range.startOffset].includes('\u200B') && _this.range.startContainer.textContent[_this.range.startOffset] === '\u200B' &&
211
212
  _this.parent.inputElement.textContent[0] !== '\u200B'));
213
+ var preventEnterkeyShiftKey = (_this.range.startContainer.nodeName === '#text' || _this.range.startContainer.nodeName === 'BR') && (_this.range.startOffset === 0 && _this.range.endOffset === 0) && _this.range.startContainer.parentElement === _this.parent.inputElement && _this.parent.enterKey === 'BR' && shiftKey_1;
212
214
  // eslint-disable-next-line max-len
213
- if (!preventZeroWithSpace && !fireFoxEnterAtMiddle && ((_this.range.startOffset === 0 && _this.range.endOffset === 0) || isFocusedFirst) &&
215
+ if (!preventEnterkeyShiftKey && !preventZeroWithSpace && !fireFoxEnterAtMiddle && ((_this.range.startOffset === 0 && _this.range.endOffset === 0) || isFocusedFirst) &&
214
216
  !(!isNOU(_this.range.startContainer.previousSibling) &&
215
217
  (_this.range.startContainer.previousSibling.nodeName === 'IMG' || _this.range.startContainer.previousSibling.nodeName === 'BR'))) {
216
218
  var isNearBlockLengthZero = void 0;
@@ -275,7 +277,7 @@ var EnterKeyAction = /** @class */ (function () {
275
277
  }
276
278
  _this.parent.formatter.editorManager.nodeSelection.setCursorPoint(_this.parent.contentModule.getDocument(), insertElem.nextElementSibling, 0);
277
279
  }
278
- else if (nearBlockNode.textContent.length === 0 && !(!isNOU(nearBlockNode.childNodes[0]) && nearBlockNode.childNodes[0].nodeName === 'IMG' ||
280
+ else if (nearBlockNode !== _this.parent.inputElement && nearBlockNode.textContent.length === 0 && !(!isNOU(nearBlockNode.childNodes[0]) && nearBlockNode.childNodes[0].nodeName === 'IMG' ||
279
281
  (nearBlockNode.querySelectorAll('video').length > 0) || (nearBlockNode.querySelectorAll('audio').length > 0) || (nearBlockNode.querySelectorAll('img').length > 0))) {
280
282
  if (!isNOU(nearBlockNode.children[0]) && nearBlockNode.children[0].tagName !== 'BR') {
281
283
  var newElem = _this.parent.formatter.editorManager.nodeCutter.SplitNode(_this.range, nearBlockNode, false).cloneNode(true);
@@ -331,6 +333,36 @@ var EnterKeyAction = /** @class */ (function () {
331
333
  _this.parent.videoModule.hideVideoQuickToolbar();
332
334
  }
333
335
  }
336
+ else if (_this.parent.enterKey === 'BR' && shiftKey_1 && _this.range.startContainer.nodeType === Node.TEXT_NODE && _this.range.startContainer.parentElement && _this.range.startContainer.parentElement === _this.parent.inputElement) {
337
+ var range = _this.range;
338
+ var startContainer = range.startContainer;
339
+ var startOffset = range.startOffset;
340
+ var newElement = _this.parent.createElement(_this.parent.shiftEnterKey);
341
+ if (startContainer.nodeType === Node.TEXT_NODE && range.endOffset !== 0 && range.startOffset !== 0) {
342
+ var textNode = startContainer;
343
+ if (startOffset < textNode.length) {
344
+ var newTextNode = textNode.splitText(startOffset);
345
+ newElement.appendChild(newTextNode);
346
+ }
347
+ else {
348
+ newElement.innerHTML = '<br>';
349
+ }
350
+ textNode.parentNode.insertBefore(newElement, textNode.nextSibling);
351
+ _this.parent.formatter.editorManager.nodeSelection.setCursorPoint(_this.parent.contentModule.getDocument(), newElement, 0);
352
+ }
353
+ else if (startOffset === 0 && range.endOffset === 0) {
354
+ newElement.innerHTML = '<br>';
355
+ if (range.endOffset === startContainer.textContent.length) {
356
+ var brElement = _this.parent.createElement('br');
357
+ startContainer.parentNode.insertBefore(brElement, startContainer);
358
+ }
359
+ startContainer.parentNode.insertBefore(newElement, startContainer);
360
+ var cursorTarget = (range.endOffset === startContainer.textContent.length)
361
+ ? newElement : newElement.nextSibling;
362
+ startContainer.parentNode.insertBefore(newElement, startContainer);
363
+ _this.parent.formatter.editorManager.nodeSelection.setCursorPoint(_this.parent.contentModule.getDocument(), cursorTarget, 0);
364
+ }
365
+ }
334
366
  else {
335
367
  var newElem = _this.parent.formatter.editorManager.nodeCutter.SplitNode(_this.range, nearBlockNode, true);
336
368
  if (!isNOU(newElem.childNodes[0]) && newElem.childNodes[0].nodeName === '#text' &&
@@ -13,7 +13,7 @@ export declare class FullScreen {
13
13
  * @param {MouseEvent} event - specifies the mouse event
14
14
  * @returns {void}
15
15
  * @hidden
16
-
16
+ * @deprecated
17
17
  */
18
18
  showFullScreen(event?: MouseEvent | KeyboardEventArgs): void;
19
19
  /**
@@ -22,7 +22,7 @@ export declare class FullScreen {
22
22
  * @param {MouseEvent} event - specifies the mouse event
23
23
  * @returns {void}
24
24
  * @hidden
25
-
25
+ * @deprecated
26
26
  */
27
27
  hideFullScreen(event?: MouseEvent | KeyboardEventArgs): void;
28
28
  private toggleParentOverflow;
@@ -34,7 +34,7 @@ export declare class FullScreen {
34
34
  *
35
35
  * @returns {void}
36
36
  * @hidden
37
-
37
+ * @deprecated
38
38
  */
39
39
  destroy(): void;
40
40
  }
@@ -17,7 +17,7 @@ var FullScreen = /** @class */ (function () {
17
17
  * @param {MouseEvent} event - specifies the mouse event
18
18
  * @returns {void}
19
19
  * @hidden
20
-
20
+ * @deprecated
21
21
  */
22
22
  FullScreen.prototype.showFullScreen = function (event) {
23
23
  var _this = this;
@@ -70,7 +70,7 @@ var FullScreen = /** @class */ (function () {
70
70
  * @param {MouseEvent} event - specifies the mouse event
71
71
  * @returns {void}
72
72
  * @hidden
73
-
73
+ * @deprecated
74
74
  */
75
75
  FullScreen.prototype.hideFullScreen = function (event) {
76
76
  var _this = this;
@@ -156,7 +156,7 @@ var FullScreen = /** @class */ (function () {
156
156
  *
157
157
  * @returns {void}
158
158
  * @hidden
159
-
159
+ * @deprecated
160
160
  */
161
161
  FullScreen.prototype.destroy = function () {
162
162
  if (isNOU(this.parent)) {
@@ -30,14 +30,14 @@ export declare class HtmlEditor {
30
30
  * @function destroy
31
31
  * @returns {void}
32
32
  * @hidden
33
-
33
+ * @deprecated
34
34
  */
35
35
  destroy(): void;
36
36
  /**
37
37
  * @param {string} value - specifies the string value
38
38
  * @returns {void}
39
39
  * @hidden
40
-
40
+ * @deprecated
41
41
  */
42
42
  sanitizeHelper(value: string): string;
43
43
  private addEventListener;
@@ -70,7 +70,7 @@ export declare class HtmlEditor {
70
70
  * @param {RichTextEditorModel} e - specifies the editor model
71
71
  * @returns {void}
72
72
  * @hidden
73
-
73
+ * @deprecated
74
74
  */
75
75
  protected onPropertyChanged(e: {
76
76
  [key: string]: RichTextEditorModel;