@syncfusion/ej2-richtexteditor 19.3.43 → 19.3.47-6125

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 (220) hide show
  1. package/CHANGELOG.md +999 -955
  2. package/README.md +67 -67
  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 +323 -204
  6. package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
  7. package/dist/es6/ej2-richtexteditor.es5.js +428 -313
  8. package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
  9. package/helpers/e2e/index.js +3 -3
  10. package/license +9 -9
  11. package/package.json +55 -74
  12. package/src/common/constant.d.ts +8 -8
  13. package/src/common/constant.js +8 -8
  14. package/src/common/interface.d.ts +7 -7
  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 +4 -4
  19. package/src/editor-manager/base/interface.d.ts +7 -7
  20. package/src/editor-manager/base/types.d.ts +1 -1
  21. package/src/editor-manager/plugin/alignments.d.ts +2 -2
  22. package/src/editor-manager/plugin/alignments.js +2 -2
  23. package/src/editor-manager/plugin/clearformat-exec.d.ts +2 -2
  24. package/src/editor-manager/plugin/clearformat-exec.js +2 -2
  25. package/src/editor-manager/plugin/clearformat.d.ts +2 -1
  26. package/src/editor-manager/plugin/clearformat.js +2 -1
  27. package/src/editor-manager/plugin/dom-node.d.ts +34 -34
  28. package/src/editor-manager/plugin/dom-node.js +34 -34
  29. package/src/editor-manager/plugin/formats.d.ts +2 -2
  30. package/src/editor-manager/plugin/formats.js +2 -2
  31. package/src/editor-manager/plugin/image.d.ts +3 -3
  32. package/src/editor-manager/plugin/image.js +15 -20
  33. package/src/editor-manager/plugin/indents.d.ts +2 -2
  34. package/src/editor-manager/plugin/indents.js +2 -2
  35. package/src/editor-manager/plugin/insert-methods.d.ts +4 -4
  36. package/src/editor-manager/plugin/insert-methods.js +4 -4
  37. package/src/editor-manager/plugin/insert-text.d.ts +2 -2
  38. package/src/editor-manager/plugin/insert-text.js +2 -2
  39. package/src/editor-manager/plugin/inserthtml-exec.d.ts +2 -2
  40. package/src/editor-manager/plugin/inserthtml-exec.js +2 -2
  41. package/src/editor-manager/plugin/inserthtml.d.ts +2 -2
  42. package/src/editor-manager/plugin/inserthtml.js +18 -8
  43. package/src/editor-manager/plugin/isformatted.d.ts +8 -8
  44. package/src/editor-manager/plugin/isformatted.js +8 -8
  45. package/src/editor-manager/plugin/link.d.ts +2 -2
  46. package/src/editor-manager/plugin/link.js +2 -2
  47. package/src/editor-manager/plugin/lists.d.ts +2 -2
  48. package/src/editor-manager/plugin/lists.js +2 -3
  49. package/src/editor-manager/plugin/ms-word-clean-up.d.ts +1 -1
  50. package/src/editor-manager/plugin/ms-word-clean-up.js +2 -1
  51. package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
  52. package/src/editor-manager/plugin/nodecutter.js +6 -6
  53. package/src/editor-manager/plugin/selection-commands.d.ts +2 -1
  54. package/src/editor-manager/plugin/selection-commands.js +53 -3
  55. package/src/editor-manager/plugin/selection-exec.d.ts +2 -2
  56. package/src/editor-manager/plugin/selection-exec.js +2 -2
  57. package/src/editor-manager/plugin/table.d.ts +2 -2
  58. package/src/editor-manager/plugin/table.js +5 -5
  59. package/src/editor-manager/plugin/toolbar-status.d.ts +2 -2
  60. package/src/editor-manager/plugin/toolbar-status.js +5 -5
  61. package/src/editor-manager/plugin/undo.d.ts +6 -6
  62. package/src/editor-manager/plugin/undo.js +6 -6
  63. package/src/global.d.ts +1 -0
  64. package/src/markdown-parser/base/interface.d.ts +10 -10
  65. package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
  66. package/src/markdown-parser/base/markdown-parser.js +3 -3
  67. package/src/markdown-parser/base/types.d.ts +1 -1
  68. package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
  69. package/src/markdown-parser/plugin/clearformat.js +2 -2
  70. package/src/markdown-parser/plugin/formats.d.ts +2 -2
  71. package/src/markdown-parser/plugin/formats.js +2 -2
  72. package/src/markdown-parser/plugin/link.d.ts +2 -2
  73. package/src/markdown-parser/plugin/link.js +2 -2
  74. package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
  75. package/src/markdown-parser/plugin/markdown-selection.js +14 -14
  76. package/src/markdown-parser/plugin/md-selection-formats.d.ts +1 -1
  77. package/src/markdown-parser/plugin/md-selection-formats.js +1 -1
  78. package/src/markdown-parser/plugin/table.d.ts +3 -3
  79. package/src/markdown-parser/plugin/table.js +3 -3
  80. package/src/markdown-parser/plugin/undo.d.ts +6 -6
  81. package/src/markdown-parser/plugin/undo.js +6 -6
  82. package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +9 -9
  83. package/src/rich-text-editor/actions/base-quick-toolbar.js +9 -9
  84. package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
  85. package/src/rich-text-editor/actions/base-toolbar.js +3 -3
  86. package/src/rich-text-editor/actions/color-picker.d.ts +2 -2
  87. package/src/rich-text-editor/actions/color-picker.js +2 -2
  88. package/src/rich-text-editor/actions/count.d.ts +3 -3
  89. package/src/rich-text-editor/actions/count.js +3 -3
  90. package/src/rich-text-editor/actions/dropdown-buttons.d.ts +2 -2
  91. package/src/rich-text-editor/actions/dropdown-buttons.js +2 -2
  92. package/src/rich-text-editor/actions/enter-key.js +5 -16
  93. package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
  94. package/src/rich-text-editor/actions/full-screen.js +3 -3
  95. package/src/rich-text-editor/actions/html-editor.d.ts +4 -3
  96. package/src/rich-text-editor/actions/html-editor.js +34 -4
  97. package/src/rich-text-editor/actions/keyboard-model.d.ts +16 -16
  98. package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
  99. package/src/rich-text-editor/actions/keyboard.js +20 -20
  100. package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
  101. package/src/rich-text-editor/actions/markdown-editor.js +2 -2
  102. package/src/rich-text-editor/actions/paste-clean-up.d.ts +1 -1
  103. package/src/rich-text-editor/actions/paste-clean-up.js +1 -1
  104. package/src/rich-text-editor/actions/quick-toolbar.d.ts +9 -9
  105. package/src/rich-text-editor/actions/quick-toolbar.js +14 -11
  106. package/src/rich-text-editor/actions/toolbar.d.ts +13 -13
  107. package/src/rich-text-editor/actions/toolbar.js +13 -13
  108. package/src/rich-text-editor/actions/xhtml-validation.d.ts +2 -1
  109. package/src/rich-text-editor/actions/xhtml-validation.js +6 -4
  110. package/src/rich-text-editor/base/classes.d.ts +107 -107
  111. package/src/rich-text-editor/base/classes.js +107 -107
  112. package/src/rich-text-editor/base/constant.d.ts +120 -120
  113. package/src/rich-text-editor/base/constant.js +120 -120
  114. package/src/rich-text-editor/base/enum.d.ts +1 -1
  115. package/src/rich-text-editor/base/enum.js +1 -1
  116. package/src/rich-text-editor/base/interface.d.ts +45 -45
  117. package/src/rich-text-editor/base/interface.js +1 -1
  118. package/src/rich-text-editor/base/rich-text-editor-model.d.ts +851 -851
  119. package/src/rich-text-editor/base/rich-text-editor.d.ts +53 -53
  120. package/src/rich-text-editor/base/rich-text-editor.js +65 -66
  121. package/src/rich-text-editor/base/util.d.ts +2 -1
  122. package/src/rich-text-editor/base/util.js +2 -1
  123. package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
  124. package/src/rich-text-editor/formatter/formatter.js +8 -8
  125. package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
  126. package/src/rich-text-editor/formatter/html-formatter.js +15 -15
  127. package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
  128. package/src/rich-text-editor/formatter/markdown-formatter.js +15 -15
  129. package/src/rich-text-editor/models/iframe-settings-model.d.ts +26 -26
  130. package/src/rich-text-editor/models/iframe-settings.js +19 -19
  131. package/src/rich-text-editor/models/inline-mode-model.d.ts +11 -11
  132. package/src/rich-text-editor/models/inline-mode.js +19 -19
  133. package/src/rich-text-editor/models/toolbar-settings-model.d.ts +439 -439
  134. package/src/rich-text-editor/models/toolbar-settings.d.ts +1 -1
  135. package/src/rich-text-editor/models/toolbar-settings.js +19 -19
  136. package/src/rich-text-editor/renderer/content-renderer.d.ts +6 -6
  137. package/src/rich-text-editor/renderer/content-renderer.js +6 -6
  138. package/src/rich-text-editor/renderer/dialog-renderer.d.ts +2 -2
  139. package/src/rich-text-editor/renderer/dialog-renderer.js +2 -2
  140. package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
  141. package/src/rich-text-editor/renderer/iframe-content-renderer.js +17 -17
  142. package/src/rich-text-editor/renderer/image-module.d.ts +3 -1
  143. package/src/rich-text-editor/renderer/image-module.js +40 -13
  144. package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
  145. package/src/rich-text-editor/renderer/link-module.js +6 -4
  146. package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
  147. package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
  148. package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
  149. package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
  150. package/src/rich-text-editor/renderer/render.d.ts +2 -2
  151. package/src/rich-text-editor/renderer/render.js +2 -2
  152. package/src/rich-text-editor/renderer/table-module.d.ts +1 -1
  153. package/src/rich-text-editor/renderer/table-module.js +11 -4
  154. package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +9 -10
  155. package/src/rich-text-editor/renderer/toolbar-renderer.js +10 -10
  156. package/src/rich-text-editor/renderer/view-source.d.ts +6 -6
  157. package/src/rich-text-editor/renderer/view-source.js +6 -6
  158. package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
  159. package/src/rich-text-editor/services/renderer-factory.js +3 -3
  160. package/src/rich-text-editor/services/service-locator.d.ts +3 -3
  161. package/src/rich-text-editor/services/service-locator.js +3 -3
  162. package/src/selection/selection.d.ts +22 -22
  163. package/src/selection/selection.js +22 -22
  164. package/styles/_all.scss +2 -2
  165. package/styles/bootstrap-dark.css +1 -1
  166. package/styles/bootstrap.css +1 -1
  167. package/styles/bootstrap4.css +1 -1
  168. package/styles/bootstrap5-dark.css +1 -1
  169. package/styles/bootstrap5.css +1 -1
  170. package/styles/fabric-dark.css +1 -1
  171. package/styles/fabric.css +1 -1
  172. package/styles/highcontrast-light.css +1 -1
  173. package/styles/highcontrast.css +1 -1
  174. package/styles/material-dark.css +1 -1
  175. package/styles/material.css +1 -1
  176. package/styles/rich-text-editor/_all.scss +2 -2
  177. package/styles/rich-text-editor/_bootstrap-dark-definition.scss +187 -187
  178. package/styles/rich-text-editor/_bootstrap-definition.scss +244 -244
  179. package/styles/rich-text-editor/_bootstrap4-definition.scss +370 -370
  180. package/styles/rich-text-editor/_bootstrap5-definition.scss +168 -168
  181. package/styles/rich-text-editor/_fabric-dark-definition.scss +168 -168
  182. package/styles/rich-text-editor/_fabric-definition.scss +167 -167
  183. package/styles/rich-text-editor/_highcontrast-definition.scss +167 -167
  184. package/styles/rich-text-editor/_highcontrast-light-definition.scss +167 -167
  185. package/styles/rich-text-editor/_layout.scss +1635 -1635
  186. package/styles/rich-text-editor/_material-dark-definition.scss +172 -172
  187. package/styles/rich-text-editor/_material-definition.scss +169 -169
  188. package/styles/rich-text-editor/_tailwind-definition.scss +167 -167
  189. package/styles/rich-text-editor/_theme.scss +626 -626
  190. package/styles/rich-text-editor/bootstrap-dark.css +1 -1
  191. package/styles/rich-text-editor/bootstrap.css +1 -1
  192. package/styles/rich-text-editor/bootstrap4.css +1 -1
  193. package/styles/rich-text-editor/bootstrap5-dark.css +1 -1
  194. package/styles/rich-text-editor/bootstrap5.css +1 -1
  195. package/styles/rich-text-editor/fabric-dark.css +1 -1
  196. package/styles/rich-text-editor/fabric.css +1 -1
  197. package/styles/rich-text-editor/highcontrast-light.css +1 -1
  198. package/styles/rich-text-editor/highcontrast.css +1 -1
  199. package/styles/rich-text-editor/icons/_bootstrap-dark.scss +304 -304
  200. package/styles/rich-text-editor/icons/_bootstrap.scss +304 -304
  201. package/styles/rich-text-editor/icons/_bootstrap4.scss +304 -304
  202. package/styles/rich-text-editor/icons/_bootstrap5.scss +303 -303
  203. package/styles/rich-text-editor/icons/_fabric-dark.scss +304 -304
  204. package/styles/rich-text-editor/icons/_fabric.scss +304 -304
  205. package/styles/rich-text-editor/icons/_highcontrast-light.scss +304 -304
  206. package/styles/rich-text-editor/icons/_highcontrast.scss +304 -304
  207. package/styles/rich-text-editor/icons/_material-dark.scss +304 -304
  208. package/styles/rich-text-editor/icons/_material.scss +304 -304
  209. package/styles/rich-text-editor/icons/_tailwind.scss +304 -304
  210. package/styles/rich-text-editor/material-dark.css +1 -1
  211. package/styles/rich-text-editor/material.css +1 -1
  212. package/styles/rich-text-editor/tailwind-dark.css +1 -1
  213. package/styles/rich-text-editor/tailwind.css +1 -1
  214. package/styles/tailwind-dark.css +1 -1
  215. package/styles/tailwind.css +1 -1
  216. package/.eslintrc.json +0 -244
  217. package/dist/global/ej2-richtexteditor.min.js +0 -11
  218. package/dist/global/ej2-richtexteditor.min.js.map +0 -1
  219. package/dist/global/index.d.ts +0 -14
  220. package/tslint.json +0 -111
@@ -1,4 +1,4 @@
1
- import { select, isNullOrUndefined, Browser, addClass, removeClass, EventHandler, closest } from '@syncfusion/ej2-base';
1
+ import { select, isNullOrUndefined, Browser, addClass, removeClass, EventHandler, closest, isNullOrUndefined as isNOU } from '@syncfusion/ej2-base';
2
2
  import { RenderType } from '../base/enum';
3
3
  import * as events from '../base/constant';
4
4
  import { pageYOffset, hasClass, isIDevice } from '../base/util';
@@ -58,7 +58,7 @@ var QuickToolbar = /** @class */ (function () {
58
58
  * @param {RenderType} type - specifies the render type.
59
59
  * @returns {BaseQuickToolbar} - specifies the quick toolbar
60
60
  * @hidden
61
-
61
+ * @deprecated
62
62
  */
63
63
  QuickToolbar.prototype.createQTBar = function (popupType, mode, items, type) {
64
64
  if (items.length < 1) {
@@ -121,7 +121,7 @@ var QuickToolbar = /** @class */ (function () {
121
121
  * @param {HTMLElement} target - specifies the target element.
122
122
  * @returns {void}
123
123
  * @hidden
124
-
124
+ * @deprecated
125
125
  */
126
126
  QuickToolbar.prototype.showInlineQTBar = function (x, y, target) {
127
127
  if (this.parent.readonly) {
@@ -134,7 +134,7 @@ var QuickToolbar = /** @class */ (function () {
134
134
  *
135
135
  * @returns {void}
136
136
  * @hidden
137
-
137
+ * @deprecated
138
138
  */
139
139
  QuickToolbar.prototype.hideInlineQTBar = function () {
140
140
  if (this.inlineQTBar && !hasClass(this.inlineQTBar.element, 'e-popup-close')) {
@@ -146,7 +146,7 @@ var QuickToolbar = /** @class */ (function () {
146
146
  *
147
147
  * @returns {void}
148
148
  * @hidden
149
-
149
+ * @deprecated
150
150
  */
151
151
  QuickToolbar.prototype.hideQuickToolbars = function () {
152
152
  if (this.linkQTBar && !hasClass(this.linkQTBar.element, 'e-popup-close') && document.body.contains(this.linkQTBar.element)) {
@@ -193,7 +193,10 @@ var QuickToolbar = /** @class */ (function () {
193
193
  else {
194
194
  var closestAnchor = closest(target, 'a');
195
195
  target = closestAnchor ? closestAnchor : target;
196
- if (target.tagName !== 'IMG' && target.tagName !== 'A' && (!closest(target, 'td,th') || !range.collapsed)) {
196
+ var startNode = this.parent.getRange().startContainer.parentElement;
197
+ var endNode = this.parent.getRange().endContainer.parentElement;
198
+ if ((isNOU(closest(startNode, 'A')) || isNOU(closest(endNode, 'A'))) && (!closest(target, 'td,th') || !range.collapsed) &&
199
+ (target.tagName !== 'IMG' || this.parent.getRange().startOffset !== this.parent.getRange().endOffset)) {
197
200
  if (this.parent.inlineMode.onSelection && range.collapsed) {
198
201
  return;
199
202
  }
@@ -246,7 +249,7 @@ var QuickToolbar = /** @class */ (function () {
246
249
  *
247
250
  * @returns {void}
248
251
  * @hidden
249
-
252
+ * @deprecated
250
253
  */
251
254
  QuickToolbar.prototype.getInlineBaseToolbar = function () {
252
255
  return this.inlineQTBar && this.inlineQTBar.quickTBarObj;
@@ -257,7 +260,7 @@ var QuickToolbar = /** @class */ (function () {
257
260
  * @function destroy
258
261
  * @returns {void}
259
262
  * @hidden
260
-
263
+ * @deprecated
261
264
  */
262
265
  QuickToolbar.prototype.destroy = function () {
263
266
  if (this.linkQTBar) {
@@ -318,7 +321,7 @@ var QuickToolbar = /** @class */ (function () {
318
321
  *
319
322
  * @returns {void}
320
323
  * @hidden
321
-
324
+ * @deprecated
322
325
  */
323
326
  QuickToolbar.prototype.addEventListener = function () {
324
327
  if (this.parent.isDestroyed) {
@@ -368,7 +371,7 @@ var QuickToolbar = /** @class */ (function () {
368
371
  *
369
372
  * @returns {void}
370
373
  * @hidden
371
-
374
+ * @deprecated
372
375
  */
373
376
  QuickToolbar.prototype.removeEventListener = function () {
374
377
  if (this.parent.isDestroyed) {
@@ -396,7 +399,7 @@ var QuickToolbar = /** @class */ (function () {
396
399
  * @param {RichTextEditorModel} e - specifies the element.
397
400
  * @returns {void}
398
401
  * @hidden
399
-
402
+ * @deprecated
400
403
  */
401
404
  QuickToolbar.prototype.onPropertyChanged = function (e) {
402
405
  if (!isNullOrUndefined(e.newProp.quickToolbarSettings)) {
@@ -42,7 +42,7 @@ export declare class Toolbar {
42
42
  *
43
43
  * @returns {void}
44
44
  * @hidden
45
-
45
+ * @deprecated
46
46
  */
47
47
  addFixedTBarClass(): void;
48
48
  /**
@@ -50,7 +50,7 @@ export declare class Toolbar {
50
50
  *
51
51
  * @returns {void}
52
52
  * @hidden
53
-
53
+ * @deprecated
54
54
  */
55
55
  removeFixedTBarClass(): void;
56
56
  private showFixedTBar;
@@ -61,7 +61,7 @@ export declare class Toolbar {
61
61
  * @param {IUpdateItemsModel} args - specifies the arguments.
62
62
  * @returns {void}
63
63
  * @hidden
64
-
64
+ * @deprecated
65
65
  */
66
66
  updateItem(args: IUpdateItemsModel): void;
67
67
  private updateToolbarStatus;
@@ -72,7 +72,7 @@ export declare class Toolbar {
72
72
  *
73
73
  * @returns {void}
74
74
  * @hidden
75
-
75
+ * @deprecated
76
76
  */
77
77
  getBaseToolbar(): BaseToolbar;
78
78
  /**
@@ -82,7 +82,7 @@ export declare class Toolbar {
82
82
  * @param {number} index - specifies the index value.
83
83
  * @returns {void}
84
84
  * @hidden
85
-
85
+ * @deprecated
86
86
  */
87
87
  addTBarItem(args: IUpdateItemsModel, index: number): void;
88
88
  /**
@@ -94,7 +94,7 @@ export declare class Toolbar {
94
94
  * @param {boolean} muteToolbarUpdate - specifies the toolbar.
95
95
  * @returns {void}
96
96
  * @hidden
97
-
97
+ * @deprecated
98
98
  */
99
99
  enableTBarItems(baseToolbar: BaseToolbar, items: string | string[], isEnable: boolean, muteToolbarUpdate?: boolean): void;
100
100
  /**
@@ -103,7 +103,7 @@ export declare class Toolbar {
103
103
  * @param {string} items - specifies the string value.
104
104
  * @returns {void}
105
105
  * @hidden
106
-
106
+ * @deprecated
107
107
  */
108
108
  removeTBarItems(items: string | string[]): void;
109
109
  /**
@@ -111,7 +111,7 @@ export declare class Toolbar {
111
111
  *
112
112
  * @returns {void}
113
113
  * @hidden
114
-
114
+ * @deprecated
115
115
  */
116
116
  getExpandTBarPopHeight(): number;
117
117
  /**
@@ -119,7 +119,7 @@ export declare class Toolbar {
119
119
  *
120
120
  * @returns {void}
121
121
  * @hidden
122
-
122
+ * @deprecated
123
123
  */
124
124
  getToolbarHeight(): number;
125
125
  /**
@@ -127,7 +127,7 @@ export declare class Toolbar {
127
127
  *
128
128
  * @returns {void}
129
129
  * @hidden
130
-
130
+ * @deprecated
131
131
  */
132
132
  getToolbarElement(): Element;
133
133
  /**
@@ -135,7 +135,7 @@ export declare class Toolbar {
135
135
  *
136
136
  * @returns {void}
137
137
  * @hidden
138
-
138
+ * @deprecated
139
139
  */
140
140
  refreshToolbarOverflow(): void;
141
141
  private isToolbarDestroyed;
@@ -146,7 +146,7 @@ export declare class Toolbar {
146
146
  * @function destroy
147
147
  * @returns {void}
148
148
  * @hidden
149
-
149
+ * @deprecated
150
150
  */
151
151
  destroy(): void;
152
152
  private scrollHandler;
@@ -168,7 +168,7 @@ export declare class Toolbar {
168
168
  * @param {RichTextEditorModel} e - specifies the string value
169
169
  * @returns {void}
170
170
  * @hidden
171
-
171
+ * @deprecated
172
172
  */
173
173
  protected onPropertyChanged(e: {
174
174
  [key: string]: RichTextEditorModel;
@@ -268,7 +268,7 @@ var Toolbar = /** @class */ (function () {
268
268
  *
269
269
  * @returns {void}
270
270
  * @hidden
271
-
271
+ * @deprecated
272
272
  */
273
273
  Toolbar.prototype.addFixedTBarClass = function () {
274
274
  addClass([this.tbElement], [classes.CLS_TB_FIXED]);
@@ -278,7 +278,7 @@ var Toolbar = /** @class */ (function () {
278
278
  *
279
279
  * @returns {void}
280
280
  * @hidden
281
-
281
+ * @deprecated
282
282
  */
283
283
  Toolbar.prototype.removeFixedTBarClass = function () {
284
284
  removeClass([this.tbElement], [classes.CLS_TB_FIXED]);
@@ -299,7 +299,7 @@ var Toolbar = /** @class */ (function () {
299
299
  * @param {IUpdateItemsModel} args - specifies the arguments.
300
300
  * @returns {void}
301
301
  * @hidden
302
-
302
+ * @deprecated
303
303
  */
304
304
  Toolbar.prototype.updateItem = function (args) {
305
305
  var item = this.tools[args.updateItem.toLocaleLowerCase()];
@@ -341,7 +341,7 @@ var Toolbar = /** @class */ (function () {
341
341
  *
342
342
  * @returns {void}
343
343
  * @hidden
344
-
344
+ * @deprecated
345
345
  */
346
346
  Toolbar.prototype.getBaseToolbar = function () {
347
347
  return this.baseToolbar;
@@ -353,7 +353,7 @@ var Toolbar = /** @class */ (function () {
353
353
  * @param {number} index - specifies the index value.
354
354
  * @returns {void}
355
355
  * @hidden
356
-
356
+ * @deprecated
357
357
  */
358
358
  Toolbar.prototype.addTBarItem = function (args, index) {
359
359
  args.baseToolbar.toolbarObj.addItems([args.baseToolbar.getObject(args.updateItem, 'toolbar')], index);
@@ -367,7 +367,7 @@ var Toolbar = /** @class */ (function () {
367
367
  * @param {boolean} muteToolbarUpdate - specifies the toolbar.
368
368
  * @returns {void}
369
369
  * @hidden
370
-
370
+ * @deprecated
371
371
  */
372
372
  Toolbar.prototype.enableTBarItems = function (baseToolbar, items, isEnable, muteToolbarUpdate) {
373
373
  var trgItems = getTBarItemsIndex(getCollection(items), baseToolbar.toolbarObj.items);
@@ -388,7 +388,7 @@ var Toolbar = /** @class */ (function () {
388
388
  * @param {string} items - specifies the string value.
389
389
  * @returns {void}
390
390
  * @hidden
391
-
391
+ * @deprecated
392
392
  */
393
393
  Toolbar.prototype.removeTBarItems = function (items) {
394
394
  if (isNullOrUndefined(this.baseToolbar.toolbarObj)) {
@@ -406,7 +406,7 @@ var Toolbar = /** @class */ (function () {
406
406
  *
407
407
  * @returns {void}
408
408
  * @hidden
409
-
409
+ * @deprecated
410
410
  */
411
411
  Toolbar.prototype.getExpandTBarPopHeight = function () {
412
412
  var popHeight = 0;
@@ -429,7 +429,7 @@ var Toolbar = /** @class */ (function () {
429
429
  *
430
430
  * @returns {void}
431
431
  * @hidden
432
-
432
+ * @deprecated
433
433
  */
434
434
  Toolbar.prototype.getToolbarHeight = function () {
435
435
  return this.tbElement.offsetHeight;
@@ -439,7 +439,7 @@ var Toolbar = /** @class */ (function () {
439
439
  *
440
440
  * @returns {void}
441
441
  * @hidden
442
-
442
+ * @deprecated
443
443
  */
444
444
  Toolbar.prototype.getToolbarElement = function () {
445
445
  return select('.' + classes.CLS_TOOLBAR, this.parent.element);
@@ -449,7 +449,7 @@ var Toolbar = /** @class */ (function () {
449
449
  *
450
450
  * @returns {void}
451
451
  * @hidden
452
-
452
+ * @deprecated
453
453
  */
454
454
  Toolbar.prototype.refreshToolbarOverflow = function () {
455
455
  this.baseToolbar.toolbarObj.refreshOverflow();
@@ -483,7 +483,7 @@ var Toolbar = /** @class */ (function () {
483
483
  * @function destroy
484
484
  * @returns {void}
485
485
  * @hidden
486
-
486
+ * @deprecated
487
487
  */
488
488
  Toolbar.prototype.destroy = function () {
489
489
  if (this.isToolbarDestroyed()) {
@@ -630,7 +630,7 @@ var Toolbar = /** @class */ (function () {
630
630
  * @param {RichTextEditorModel} e - specifies the string value
631
631
  * @returns {void}
632
632
  * @hidden
633
-
633
+ * @deprecated
634
634
  */
635
635
  Toolbar.prototype.onPropertyChanged = function (e) {
636
636
  if (!isNullOrUndefined(e.newProp.inlineMode)) {
@@ -11,8 +11,9 @@ export declare class XhtmlValidation {
11
11
  private enableXhtmlValidation;
12
12
  /**
13
13
  * @param {string} currentValue - specifies the string value.
14
+ * @param {number} valueLength - specifies the length of the current value.
14
15
  * @returns {void}
15
-
16
+ * @deprecated
16
17
  */
17
18
  selfEncloseValidation(currentValue: string, valueLength?: number): string;
18
19
  private AddRootElement;
@@ -29,22 +29,24 @@ var XhtmlValidation = /** @class */ (function () {
29
29
  this.ImageTags();
30
30
  this.removeTags();
31
31
  this.RemoveUnsupported();
32
- this.currentElement.innerHTML = this.selfEncloseValidation(this.currentElement.innerHTML, this.currentElement.innerText === "\n" ? this.currentElement.innerText.length : this.currentElement.innerText.trim().length);
32
+ this.currentElement.innerHTML = this.selfEncloseValidation(this.currentElement.innerHTML, this.currentElement.innerText === '\n' ?
33
+ this.currentElement.innerText.length : this.currentElement.innerText.trim().length);
33
34
  this.parent.setProperties({ value: this.currentElement.innerHTML }, true);
34
35
  }
35
36
  };
36
37
  /**
37
38
  * @param {string} currentValue - specifies the string value.
39
+ * @param {number} valueLength - specifies the length of the current value.
38
40
  * @returns {void}
39
-
41
+ * @deprecated
40
42
  */
41
43
  XhtmlValidation.prototype.selfEncloseValidation = function (currentValue, valueLength) {
42
44
  if (valueLength === 0 && currentValue.indexOf('table') < 0 && currentValue.indexOf('img') < 0) {
43
45
  var arrayValue = currentValue.split('&nbsp;');
44
- arrayValue[arrayValue.length - 1] = "&#8203;" + arrayValue[arrayValue.length - 1];
46
+ arrayValue[arrayValue.length - 1] = '&#8203;' + arrayValue[arrayValue.length - 1];
45
47
  currentValue = arrayValue.join('');
46
48
  }
47
- currentValue = currentValue.replace(/<br>/g, '<br/>').replace(/<hr>/g, '<hr/>').replace(/&nbsp;/gi, ' ').replace(/ /g, ' ');
49
+ currentValue = currentValue.replace(/<br>/g, '<br/>').replace(/<hr>/g, '<hr/>').replace(/ /g, ' ');
48
50
  var valueTemp;
49
51
  var valueDupe = [];
50
52
  var valueOriginal = [];