@syncfusion/ej2-richtexteditor 19.3.53-6125 → 19.4.38

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 (196) hide show
  1. package/.eslintrc.json +244 -0
  2. package/.github/PULL_REQUEST_TEMPLATE/Bug.md +41 -0
  3. package/.github/PULL_REQUEST_TEMPLATE/Feature.md +27 -0
  4. package/CHANGELOG.md +1021 -1019
  5. package/README.md +67 -67
  6. package/dist/ej2-richtexteditor.umd.min.js +10 -1
  7. package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
  8. package/dist/es6/ej2-richtexteditor.es2015.js +273 -181
  9. package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
  10. package/dist/es6/ej2-richtexteditor.es5.js +381 -289
  11. package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
  12. package/dist/global/ej2-richtexteditor.min.js +11 -0
  13. package/dist/global/ej2-richtexteditor.min.js.map +1 -0
  14. package/dist/global/index.d.ts +14 -0
  15. package/helpers/e2e/index.js +3 -3
  16. package/license +9 -9
  17. package/package.json +75 -75
  18. package/src/common/interface.d.ts +7 -7
  19. package/src/editor-manager/base/classes.d.ts +1 -1
  20. package/src/editor-manager/base/classes.js +1 -1
  21. package/src/editor-manager/base/editor-manager.d.ts +3 -3
  22. package/src/editor-manager/base/editor-manager.js +3 -3
  23. package/src/editor-manager/base/interface.d.ts +7 -7
  24. package/src/editor-manager/base/types.d.ts +1 -1
  25. package/src/editor-manager/plugin/alignments.d.ts +2 -2
  26. package/src/editor-manager/plugin/alignments.js +2 -2
  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 +1 -1
  31. package/src/editor-manager/plugin/dom-node.d.ts +34 -34
  32. package/src/editor-manager/plugin/dom-node.js +34 -34
  33. package/src/editor-manager/plugin/formats.d.ts +2 -2
  34. package/src/editor-manager/plugin/formats.js +2 -2
  35. package/src/editor-manager/plugin/image.d.ts +3 -3
  36. package/src/editor-manager/plugin/image.js +3 -3
  37. package/src/editor-manager/plugin/indents.d.ts +2 -2
  38. package/src/editor-manager/plugin/indents.js +2 -2
  39. package/src/editor-manager/plugin/insert-methods.d.ts +4 -4
  40. package/src/editor-manager/plugin/insert-methods.js +4 -4
  41. package/src/editor-manager/plugin/insert-text.d.ts +2 -2
  42. package/src/editor-manager/plugin/insert-text.js +2 -2
  43. package/src/editor-manager/plugin/inserthtml-exec.d.ts +2 -2
  44. package/src/editor-manager/plugin/inserthtml-exec.js +2 -2
  45. package/src/editor-manager/plugin/inserthtml.d.ts +2 -2
  46. package/src/editor-manager/plugin/inserthtml.js +2 -4
  47. package/src/editor-manager/plugin/isformatted.d.ts +8 -8
  48. package/src/editor-manager/plugin/isformatted.js +8 -8
  49. package/src/editor-manager/plugin/link.d.ts +2 -2
  50. package/src/editor-manager/plugin/link.js +2 -2
  51. package/src/editor-manager/plugin/lists.d.ts +2 -2
  52. package/src/editor-manager/plugin/lists.js +2 -2
  53. package/src/editor-manager/plugin/ms-word-clean-up.d.ts +1 -1
  54. package/src/editor-manager/plugin/ms-word-clean-up.js +2 -2
  55. package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
  56. package/src/editor-manager/plugin/nodecutter.js +6 -6
  57. package/src/editor-manager/plugin/selection-commands.d.ts +1 -1
  58. package/src/editor-manager/plugin/selection-commands.js +1 -1
  59. package/src/editor-manager/plugin/selection-exec.d.ts +2 -2
  60. package/src/editor-manager/plugin/selection-exec.js +2 -2
  61. package/src/editor-manager/plugin/table.d.ts +2 -2
  62. package/src/editor-manager/plugin/table.js +2 -2
  63. package/src/editor-manager/plugin/toolbar-status.d.ts +2 -2
  64. package/src/editor-manager/plugin/toolbar-status.js +2 -2
  65. package/src/editor-manager/plugin/undo.d.ts +6 -6
  66. package/src/editor-manager/plugin/undo.js +16 -7
  67. package/src/markdown-parser/base/interface.d.ts +10 -10
  68. package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
  69. package/src/markdown-parser/base/markdown-parser.js +3 -3
  70. package/src/markdown-parser/base/types.d.ts +1 -1
  71. package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
  72. package/src/markdown-parser/plugin/clearformat.js +2 -2
  73. package/src/markdown-parser/plugin/formats.d.ts +2 -2
  74. package/src/markdown-parser/plugin/formats.js +2 -2
  75. package/src/markdown-parser/plugin/link.d.ts +2 -2
  76. package/src/markdown-parser/plugin/link.js +2 -2
  77. package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
  78. package/src/markdown-parser/plugin/markdown-selection.js +14 -14
  79. package/src/markdown-parser/plugin/md-selection-formats.d.ts +1 -1
  80. package/src/markdown-parser/plugin/md-selection-formats.js +1 -1
  81. package/src/markdown-parser/plugin/table.d.ts +3 -3
  82. package/src/markdown-parser/plugin/table.js +3 -3
  83. package/src/markdown-parser/plugin/undo.d.ts +6 -6
  84. package/src/markdown-parser/plugin/undo.js +6 -6
  85. package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +9 -9
  86. package/src/rich-text-editor/actions/base-quick-toolbar.js +9 -9
  87. package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
  88. package/src/rich-text-editor/actions/base-toolbar.js +3 -3
  89. package/src/rich-text-editor/actions/color-picker.d.ts +2 -2
  90. package/src/rich-text-editor/actions/color-picker.js +2 -2
  91. package/src/rich-text-editor/actions/count.d.ts +3 -3
  92. package/src/rich-text-editor/actions/count.js +3 -3
  93. package/src/rich-text-editor/actions/dropdown-buttons.d.ts +2 -2
  94. package/src/rich-text-editor/actions/dropdown-buttons.js +2 -12
  95. package/src/rich-text-editor/actions/enter-key.d.ts +1 -0
  96. package/src/rich-text-editor/actions/enter-key.js +85 -34
  97. package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
  98. package/src/rich-text-editor/actions/full-screen.js +3 -3
  99. package/src/rich-text-editor/actions/html-editor.d.ts +3 -3
  100. package/src/rich-text-editor/actions/html-editor.js +5 -5
  101. package/src/rich-text-editor/actions/keyboard-model.d.ts +16 -16
  102. package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
  103. package/src/rich-text-editor/actions/keyboard.js +20 -20
  104. package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
  105. package/src/rich-text-editor/actions/markdown-editor.js +2 -2
  106. package/src/rich-text-editor/actions/paste-clean-up.d.ts +1 -1
  107. package/src/rich-text-editor/actions/paste-clean-up.js +1 -1
  108. package/src/rich-text-editor/actions/quick-toolbar.d.ts +9 -9
  109. package/src/rich-text-editor/actions/quick-toolbar.js +10 -10
  110. package/src/rich-text-editor/actions/toolbar.d.ts +13 -13
  111. package/src/rich-text-editor/actions/toolbar.js +13 -13
  112. package/src/rich-text-editor/actions/xhtml-validation.d.ts +1 -1
  113. package/src/rich-text-editor/actions/xhtml-validation.js +2 -2
  114. package/src/rich-text-editor/base/classes.d.ts +107 -107
  115. package/src/rich-text-editor/base/classes.js +107 -107
  116. package/src/rich-text-editor/base/constant.d.ts +120 -120
  117. package/src/rich-text-editor/base/constant.js +120 -120
  118. package/src/rich-text-editor/base/enum.d.ts +1 -1
  119. package/src/rich-text-editor/base/enum.js +1 -1
  120. package/src/rich-text-editor/base/interface.d.ts +45 -45
  121. package/src/rich-text-editor/base/interface.js +1 -1
  122. package/src/rich-text-editor/base/rich-text-editor-model.d.ts +851 -851
  123. package/src/rich-text-editor/base/rich-text-editor.d.ts +53 -53
  124. package/src/rich-text-editor/base/rich-text-editor.js +65 -65
  125. package/src/rich-text-editor/base/util.d.ts +1 -1
  126. package/src/rich-text-editor/base/util.js +1 -1
  127. package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
  128. package/src/rich-text-editor/formatter/formatter.js +8 -8
  129. package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
  130. package/src/rich-text-editor/formatter/html-formatter.js +15 -15
  131. package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
  132. package/src/rich-text-editor/formatter/markdown-formatter.js +15 -15
  133. package/src/rich-text-editor/models/iframe-settings-model.d.ts +26 -26
  134. package/src/rich-text-editor/models/iframe-settings.js +19 -19
  135. package/src/rich-text-editor/models/inline-mode-model.d.ts +11 -11
  136. package/src/rich-text-editor/models/inline-mode.js +19 -19
  137. package/src/rich-text-editor/models/toolbar-settings-model.d.ts +439 -439
  138. package/src/rich-text-editor/models/toolbar-settings.d.ts +1 -1
  139. package/src/rich-text-editor/models/toolbar-settings.js +19 -19
  140. package/src/rich-text-editor/renderer/content-renderer.d.ts +6 -6
  141. package/src/rich-text-editor/renderer/content-renderer.js +6 -6
  142. package/src/rich-text-editor/renderer/dialog-renderer.d.ts +2 -2
  143. package/src/rich-text-editor/renderer/dialog-renderer.js +2 -2
  144. package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
  145. package/src/rich-text-editor/renderer/iframe-content-renderer.js +17 -17
  146. package/src/rich-text-editor/renderer/image-module.d.ts +1 -1
  147. package/src/rich-text-editor/renderer/image-module.js +50 -5
  148. package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
  149. package/src/rich-text-editor/renderer/link-module.js +1 -1
  150. package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
  151. package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
  152. package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
  153. package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
  154. package/src/rich-text-editor/renderer/render.d.ts +2 -2
  155. package/src/rich-text-editor/renderer/render.js +2 -2
  156. package/src/rich-text-editor/renderer/table-module.d.ts +1 -1
  157. package/src/rich-text-editor/renderer/table-module.js +1 -1
  158. package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +9 -9
  159. package/src/rich-text-editor/renderer/toolbar-renderer.js +9 -9
  160. package/src/rich-text-editor/renderer/view-source.d.ts +6 -6
  161. package/src/rich-text-editor/renderer/view-source.js +6 -6
  162. package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
  163. package/src/rich-text-editor/services/renderer-factory.js +3 -3
  164. package/src/rich-text-editor/services/service-locator.d.ts +3 -3
  165. package/src/rich-text-editor/services/service-locator.js +3 -3
  166. package/src/selection/selection.d.ts +22 -22
  167. package/src/selection/selection.js +22 -22
  168. package/styles/_all.scss +2 -2
  169. package/styles/rich-text-editor/_all.scss +2 -2
  170. package/styles/rich-text-editor/_bootstrap-dark-definition.scss +187 -187
  171. package/styles/rich-text-editor/_bootstrap-definition.scss +244 -244
  172. package/styles/rich-text-editor/_bootstrap4-definition.scss +370 -370
  173. package/styles/rich-text-editor/_bootstrap5-definition.scss +168 -168
  174. package/styles/rich-text-editor/_fabric-dark-definition.scss +168 -168
  175. package/styles/rich-text-editor/_fabric-definition.scss +167 -167
  176. package/styles/rich-text-editor/_fluent-definition.scss +168 -0
  177. package/styles/rich-text-editor/_highcontrast-definition.scss +167 -167
  178. package/styles/rich-text-editor/_highcontrast-light-definition.scss +167 -167
  179. package/styles/rich-text-editor/_layout.scss +1639 -1639
  180. package/styles/rich-text-editor/_material-dark-definition.scss +172 -172
  181. package/styles/rich-text-editor/_material-definition.scss +169 -169
  182. package/styles/rich-text-editor/_tailwind-definition.scss +167 -167
  183. package/styles/rich-text-editor/_theme.scss +626 -626
  184. package/styles/rich-text-editor/icons/_bootstrap-dark.scss +304 -304
  185. package/styles/rich-text-editor/icons/_bootstrap.scss +304 -304
  186. package/styles/rich-text-editor/icons/_bootstrap4.scss +304 -304
  187. package/styles/rich-text-editor/icons/_bootstrap5.scss +303 -303
  188. package/styles/rich-text-editor/icons/_fabric-dark.scss +304 -304
  189. package/styles/rich-text-editor/icons/_fabric.scss +304 -304
  190. package/styles/rich-text-editor/icons/_fluent.scss +303 -0
  191. package/styles/rich-text-editor/icons/_highcontrast-light.scss +304 -304
  192. package/styles/rich-text-editor/icons/_highcontrast.scss +304 -304
  193. package/styles/rich-text-editor/icons/_material-dark.scss +304 -304
  194. package/styles/rich-text-editor/icons/_material.scss +304 -304
  195. package/styles/rich-text-editor/icons/_tailwind.scss +304 -304
  196. package/tslint.json +111 -0
@@ -345,7 +345,7 @@ export declare class QuickToolbarSettings extends ChildProperty<QuickToolbarSett
345
345
  * Specifies the items to render in quick toolbar, when text selected.
346
346
  *
347
347
  * @default ['Cut', 'Copy', 'Paste']
348
- * @deprecated
348
+
349
349
  */
350
350
  text: (string | IToolbarItems)[];
351
351
  /**
@@ -1,22 +1,22 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
14
- var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
- var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
- if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
- else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
- return c > 3 && r && Object.defineProperty(target, key, r), r;
19
- };
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
+ var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
15
+ var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
16
+ if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
17
+ else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
18
+ return c > 3 && r && Object.defineProperty(target, key, r), r;
19
+ };
20
20
  import { Property, ChildProperty, Complex } from '@syncfusion/ej2-base';
21
21
  import { AjaxSettings, ContextMenuSettings } from '@syncfusion/ej2-filemanager';
22
22
  import { DetailsViewSettings, NavigationPaneSettings } from '@syncfusion/ej2-filemanager';
@@ -4,7 +4,7 @@ import { ServiceLocator } from '../services/service-locator';
4
4
  * Content module is used to render Rich Text Editor content
5
5
  *
6
6
  * @hidden
7
- * @deprecated
7
+
8
8
  */
9
9
  export declare class ContentRender implements IRenderer {
10
10
  protected contentPanel: Element;
@@ -24,7 +24,7 @@ export declare class ContentRender implements IRenderer {
24
24
  *
25
25
  * @returns {void}
26
26
  * @hidden
27
- * @deprecated
27
+
28
28
  */
29
29
  renderPanel(): void;
30
30
  /**
@@ -32,7 +32,7 @@ export declare class ContentRender implements IRenderer {
32
32
  *
33
33
  * @returns {Element} - specifies the element.
34
34
  * @hidden
35
- * @deprecated
35
+
36
36
  */
37
37
  getPanel(): Element;
38
38
  /**
@@ -40,7 +40,7 @@ export declare class ContentRender implements IRenderer {
40
40
  *
41
41
  * @returns {Element} - specifies the return element.
42
42
  * @hidden
43
- * @deprecated
43
+
44
44
  */
45
45
  getEditPanel(): Element;
46
46
  /**
@@ -55,7 +55,7 @@ export declare class ContentRender implements IRenderer {
55
55
  * @param {Element} panel - specifies the panel element.
56
56
  * @returns {void}
57
57
  * @hidden
58
- * @deprecated
58
+
59
59
  */
60
60
  setPanel(panel: Element): void;
61
61
  /**
@@ -63,7 +63,7 @@ export declare class ContentRender implements IRenderer {
63
63
  *
64
64
  * @returns {Document} - specifies the document.
65
65
  * @hidden
66
- * @deprecated
66
+
67
67
  */
68
68
  getDocument(): Document;
69
69
  }
@@ -3,7 +3,7 @@ import { getEditValue } from '../base/util';
3
3
  * Content module is used to render Rich Text Editor content
4
4
  *
5
5
  * @hidden
6
- * @deprecated
6
+
7
7
  */
8
8
  var ContentRender = /** @class */ (function () {
9
9
  /**
@@ -22,7 +22,7 @@ var ContentRender = /** @class */ (function () {
22
22
  *
23
23
  * @returns {void}
24
24
  * @hidden
25
- * @deprecated
25
+
26
26
  */
27
27
  ContentRender.prototype.renderPanel = function () {
28
28
  var rteObj = this.parent;
@@ -45,7 +45,7 @@ var ContentRender = /** @class */ (function () {
45
45
  *
46
46
  * @returns {Element} - specifies the element.
47
47
  * @hidden
48
- * @deprecated
48
+
49
49
  */
50
50
  ContentRender.prototype.getPanel = function () {
51
51
  return this.contentPanel;
@@ -55,7 +55,7 @@ var ContentRender = /** @class */ (function () {
55
55
  *
56
56
  * @returns {Element} - specifies the return element.
57
57
  * @hidden
58
- * @deprecated
58
+
59
59
  */
60
60
  ContentRender.prototype.getEditPanel = function () {
61
61
  return this.editableElement;
@@ -74,7 +74,7 @@ var ContentRender = /** @class */ (function () {
74
74
  * @param {Element} panel - specifies the panel element.
75
75
  * @returns {void}
76
76
  * @hidden
77
- * @deprecated
77
+
78
78
  */
79
79
  ContentRender.prototype.setPanel = function (panel) {
80
80
  this.contentPanel = panel;
@@ -84,7 +84,7 @@ var ContentRender = /** @class */ (function () {
84
84
  *
85
85
  * @returns {Document} - specifies the document.
86
86
  * @hidden
87
- * @deprecated
87
+
88
88
  */
89
89
  ContentRender.prototype.getDocument = function () {
90
90
  return this.getEditPanel().ownerDocument;
@@ -13,7 +13,7 @@ export declare class DialogRenderer {
13
13
  * @param {DialogModel} e - specifies the dialog model.
14
14
  * @returns {void}
15
15
  * @hidden
16
- * @deprecated
16
+
17
17
  */
18
18
  render(e: DialogModel): Dialog;
19
19
  private beforeOpen;
@@ -26,7 +26,7 @@ export declare class DialogRenderer {
26
26
  * @param {Object} args - specifies the arguments.
27
27
  * @returns {void}
28
28
  * @hidden
29
- * @deprecated
29
+
30
30
  */
31
31
  close(args: Object): void;
32
32
  }
@@ -14,7 +14,7 @@ var DialogRenderer = /** @class */ (function () {
14
14
  * @param {DialogModel} e - specifies the dialog model.
15
15
  * @returns {void}
16
16
  * @hidden
17
- * @deprecated
17
+
18
18
  */
19
19
  DialogRenderer.prototype.render = function (e) {
20
20
  var dlgObj;
@@ -55,7 +55,7 @@ var DialogRenderer = /** @class */ (function () {
55
55
  * @param {Object} args - specifies the arguments.
56
56
  * @returns {void}
57
57
  * @hidden
58
- * @deprecated
58
+
59
59
  */
60
60
  DialogRenderer.prototype.close = function (args) {
61
61
  this.parent.trigger(events.dialogClose, args);
@@ -3,14 +3,14 @@ import { ContentRender } from '../renderer/content-renderer';
3
3
  * Content module is used to render Rich Text Editor content
4
4
  *
5
5
  * @hidden
6
- * @deprecated
6
+
7
7
  */
8
8
  export declare class IframeContentRender extends ContentRender {
9
9
  /**
10
10
  * The function is used to render Rich Text Editor iframe
11
11
  *
12
12
  * @hidden
13
- * @deprecated
13
+
14
14
  */
15
15
  renderPanel(): void;
16
16
  private setThemeColor;
@@ -19,7 +19,7 @@ export declare class IframeContentRender extends ContentRender {
19
19
  *
20
20
  * @returns {Element} - specifies the element.
21
21
  * @hidden
22
- * @deprecated
22
+
23
23
  */
24
24
  getEditPanel(): Element;
25
25
  /**
@@ -27,7 +27,7 @@ export declare class IframeContentRender extends ContentRender {
27
27
  *
28
28
  * @returns {void}
29
29
  * @hidden
30
- * @deprecated
30
+
31
31
  */
32
32
  getDocument(): Document;
33
33
  }
@@ -1,16 +1,16 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- extendStatics(d, b);
10
- function __() { this.constructor = d; }
11
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
- };
13
- })();
1
+ var __extends = (this && this.__extends) || (function () {
2
+ var extendStatics = function (d, b) {
3
+ extendStatics = Object.setPrototypeOf ||
4
+ ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
+ function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
6
+ return extendStatics(d, b);
7
+ };
8
+ return function (d, b) {
9
+ extendStatics(d, b);
10
+ function __() { this.constructor = d; }
11
+ d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
12
+ };
13
+ })();
14
14
  import { ContentRender } from '../renderer/content-renderer';
15
15
  import { isNullOrUndefined } from '@syncfusion/ej2-base';
16
16
  import { getEditValue } from '../base/util';
@@ -19,7 +19,7 @@ var IFRAMEHEADER = "\n<!DOCTYPE html> \n <html>\n <head>\n
19
19
  * Content module is used to render Rich Text Editor content
20
20
  *
21
21
  * @hidden
22
- * @deprecated
22
+
23
23
  */
24
24
  var IframeContentRender = /** @class */ (function (_super) {
25
25
  __extends(IframeContentRender, _super);
@@ -30,7 +30,7 @@ var IframeContentRender = /** @class */ (function (_super) {
30
30
  * The function is used to render Rich Text Editor iframe
31
31
  *
32
32
  * @hidden
33
- * @deprecated
33
+
34
34
  */
35
35
  IframeContentRender.prototype.renderPanel = function () {
36
36
  var rteObj = this.parent;
@@ -65,7 +65,7 @@ var IframeContentRender = /** @class */ (function (_super) {
65
65
  *
66
66
  * @returns {Element} - specifies the element.
67
67
  * @hidden
68
- * @deprecated
68
+
69
69
  */
70
70
  IframeContentRender.prototype.getEditPanel = function () {
71
71
  var editNode;
@@ -82,7 +82,7 @@ var IframeContentRender = /** @class */ (function (_super) {
82
82
  *
83
83
  * @returns {void}
84
84
  * @hidden
85
- * @deprecated
85
+
86
86
  */
87
87
  IframeContentRender.prototype.getDocument = function () {
88
88
  return this.getEditPanel().ownerDocument;
@@ -156,7 +156,7 @@ export declare class Image {
156
156
  * @method destroy
157
157
  * @returns {void}
158
158
  * @hidden
159
- * @deprecated
159
+
160
160
  */
161
161
  destroy(): void;
162
162
  /**
@@ -328,10 +328,14 @@ var Image = /** @class */ (function () {
328
328
  img.style.height = expectedY + 'px';
329
329
  }
330
330
  else if (img.style.width !== '' && img.style.height === '') {
331
- img.style.width = ((width / height * expectedY) + width / height).toString() + 'px';
331
+ var currentWidth = ((width / height * expectedY) + width / height) < (this.parent.inputElement.getBoundingClientRect().right - 32) ?
332
+ ((width / height * expectedY) + width / height) : (this.parent.inputElement.getBoundingClientRect().right - 32);
333
+ img.style.width = currentWidth.toString() + 'px';
332
334
  }
333
335
  else if (img.style.width !== '') {
334
- img.style.width = (width / height * expectedY) + 'px';
336
+ var currentWidth = (width / height * expectedY) < (this.parent.inputElement.getBoundingClientRect().right - 32) ?
337
+ (width / height * expectedY) : (this.parent.inputElement.getBoundingClientRect().right - 32);
338
+ img.style.width = currentWidth + 'px';
335
339
  img.style.height = expectedY + 'px';
336
340
  }
337
341
  else {
@@ -440,7 +444,7 @@ var Image = /** @class */ (function () {
440
444
  };
441
445
  Image.prototype.resizeImgDupPos = function (e) {
442
446
  this.imgDupPos = {
443
- width: (e.style.height !== '') ? this.imgEle.style.width : e.width + 'px',
447
+ width: (e.style.width !== '') ? this.imgEle.style.width : e.width + 'px',
444
448
  height: (e.style.height !== '') ? this.imgEle.style.height : e.height + 'px'
445
449
  };
446
450
  };
@@ -608,6 +612,27 @@ var Image = /** @class */ (function () {
608
612
  var src = this.deletedImg[i].src;
609
613
  this.imageRemovePost(src);
610
614
  }
615
+ if (range.startContainer.nodeType === 3) {
616
+ if (originalEvent.code === 'Backspace') {
617
+ if (range.startContainer.previousElementSibling && range.startOffset === 0 &&
618
+ range.startContainer.previousElementSibling.classList.contains(classes.CLS_CAPTION) &&
619
+ range.startContainer.previousElementSibling.classList.contains(classes.CLS_CAPINLINE)) {
620
+ detach(range.startContainer.previousElementSibling);
621
+ }
622
+ }
623
+ else {
624
+ if (range.startContainer.nextElementSibling &&
625
+ range.endContainer.textContent.length === range.endOffset &&
626
+ range.startContainer.nextElementSibling.classList.contains(classes.CLS_CAPTION) &&
627
+ range.startContainer.nextElementSibling.classList.contains(classes.CLS_CAPINLINE)) {
628
+ detach(range.startContainer.nextElementSibling);
629
+ }
630
+ }
631
+ }
632
+ else if ((range.startContainer.nodeType === 1 &&
633
+ range.startContainer.querySelector('.' + classes.CLS_CAPTION + '.' + classes.CLS_CAPINLINE))) {
634
+ detach(range.startContainer.querySelector('.' + classes.CLS_CAPTION + '.' + classes.CLS_CAPINLINE));
635
+ }
611
636
  break;
612
637
  case 'insert-image':
613
638
  this.openDialog(true, originalEvent, save, selectNodeEle, selectParentEle);
@@ -813,7 +838,7 @@ var Image = /** @class */ (function () {
813
838
  var target = args.target;
814
839
  this.contentModule = this.rendererFactory.getRenderer(RenderType.Content);
815
840
  var isPopupOpen = this.quickToolObj.imageQTBar.element.classList.contains('e-rte-pop');
816
- if (target.nodeName === 'IMG' && this.parent.quickToolbarModule && this.parent.getRange().startOffset === this.parent.getRange().endOffset) {
841
+ if (target.nodeName === 'IMG' && this.parent.quickToolbarModule) {
817
842
  if (isPopupOpen) {
818
843
  return;
819
844
  }
@@ -1054,6 +1079,9 @@ var Image = /** @class */ (function () {
1054
1079
  Image.prototype.imageRemovePost = function (src) {
1055
1080
  var proxy = this;
1056
1081
  var absoluteUrl = '';
1082
+ if (isNOU(this.parent.insertImageSettings.removeUrl) || this.parent.insertImageSettings.removeUrl === '') {
1083
+ return;
1084
+ }
1057
1085
  if (src.indexOf('http://') > -1 || src.indexOf('https://') > -1) {
1058
1086
  absoluteUrl = src;
1059
1087
  }
@@ -1899,6 +1927,7 @@ var Image = /** @class */ (function () {
1899
1927
  imageTag.addEventListener('load', function () {
1900
1928
  _this.parent.trigger(events.actionComplete, e);
1901
1929
  });
1930
+ detach(parentElement);
1902
1931
  };
1903
1932
  /**
1904
1933
  * Rendering uploader and popup for drag and drop
@@ -1934,6 +1963,9 @@ var Image = /** @class */ (function () {
1934
1963
  _this.popupObj.destroy();
1935
1964
  detach(_this.popupObj.element);
1936
1965
  _this.popupObj = null;
1966
+ if (!_this.parent.inlineMode.enable) {
1967
+ _this.parent.toolbarModule.baseToolbar.toolbarObj.disable(false);
1968
+ }
1937
1969
  }
1938
1970
  });
1939
1971
  this.popupObj.element.style.display = 'none';
@@ -1965,6 +1997,10 @@ var Image = /** @class */ (function () {
1965
1997
  isUploading = false;
1966
1998
  detach(imageElement);
1967
1999
  _this.popupObj.close();
2000
+ _this.quickToolObj.imageQTBar.hidePopup();
2001
+ setTimeout(function () {
2002
+ _this.uploadObj.destroy();
2003
+ }, 900);
1968
2004
  },
1969
2005
  beforeUpload: function (args) {
1970
2006
  if (_this.parent.isServerRendered) {
@@ -1976,6 +2012,9 @@ var Image = /** @class */ (function () {
1976
2012
  if (beforeUploadArgs.cancel) {
1977
2013
  return;
1978
2014
  }
2015
+ if (!_this.parent.inlineMode.enable) {
2016
+ _this.parent.toolbarModule.baseToolbar.toolbarObj.disable(true);
2017
+ }
1979
2018
  /* eslint-disable */
1980
2019
  _this.uploadObj.currentRequestHeader = beforeUploadArgs.currentRequest ?
1981
2020
  beforeUploadArgs.currentRequest : _this.uploadObj.currentRequestHeader;
@@ -1988,6 +2027,9 @@ var Image = /** @class */ (function () {
1988
2027
  }
1989
2028
  else {
1990
2029
  _this.parent.trigger(events.beforeImageUpload, args);
2030
+ if (!_this.parent.inlineMode.enable) {
2031
+ _this.parent.toolbarModule.baseToolbar.toolbarObj.disable(true);
2032
+ }
1991
2033
  }
1992
2034
  },
1993
2035
  uploading: function (e) {
@@ -2030,6 +2072,9 @@ var Image = /** @class */ (function () {
2030
2072
  }, 900);
2031
2073
  },
2032
2074
  success: function (e) {
2075
+ if (e.operation === "cancel") {
2076
+ return;
2077
+ }
2033
2078
  isUploading = false;
2034
2079
  _this.parent.inputElement.contentEditable = 'true';
2035
2080
  var args = {
@@ -2167,7 +2212,7 @@ var Image = /** @class */ (function () {
2167
2212
  * @method destroy
2168
2213
  * @returns {void}
2169
2214
  * @hidden
2170
- * @deprecated
2215
+
2171
2216
  */
2172
2217
  /* eslint-enable */
2173
2218
  Image.prototype.destroy = function () {
@@ -43,7 +43,7 @@ export declare class Link {
43
43
  * @function destroy
44
44
  * @returns {void}
45
45
  * @hidden
46
- * @deprecated
46
+
47
47
  */
48
48
  destroy(): void;
49
49
  /**
@@ -496,7 +496,7 @@ var Link = /** @class */ (function () {
496
496
  * @function destroy
497
497
  * @returns {void}
498
498
  * @hidden
499
- * @deprecated
499
+
500
500
  */
501
501
  Link.prototype.destroy = function () {
502
502
  this.removeEventListener();
@@ -3,7 +3,7 @@ import { IRenderer, IRichTextEditor } from '../base/interface';
3
3
  * Markdown module is used to render Rich Text Editor as Markdown editor content
4
4
  *
5
5
  * @hidden
6
- * @deprecated
6
+
7
7
  */
8
8
  export declare class MarkdownRender implements IRenderer {
9
9
  private contentPanel;
@@ -20,7 +20,7 @@ export declare class MarkdownRender implements IRenderer {
20
20
  *
21
21
  * @returns {void}
22
22
  * @hidden
23
- * @deprecated
23
+
24
24
  */
25
25
  renderPanel(): void;
26
26
  /**
@@ -28,7 +28,7 @@ export declare class MarkdownRender implements IRenderer {
28
28
  *
29
29
  * @returns {Element} - specifies the element
30
30
  * @hidden
31
- * @deprecated
31
+
32
32
  */
33
33
  getPanel(): Element;
34
34
  /**
@@ -36,7 +36,7 @@ export declare class MarkdownRender implements IRenderer {
36
36
  *
37
37
  * @returns {Element} - specifies the element
38
38
  * @hidden
39
- * @deprecated
39
+
40
40
  */
41
41
  getEditPanel(): Element;
42
42
  /**
@@ -51,7 +51,7 @@ export declare class MarkdownRender implements IRenderer {
51
51
  * @param {Element} panel - specifies the element.
52
52
  * @returns {void}
53
53
  * @hidden
54
- * @deprecated
54
+
55
55
  */
56
56
  setPanel(panel: Element): void;
57
57
  /**
@@ -59,7 +59,7 @@ export declare class MarkdownRender implements IRenderer {
59
59
  *
60
60
  * @returns {void}
61
61
  * @hidden
62
- * @deprecated
62
+
63
63
  */
64
64
  getDocument(): Document;
65
65
  }
@@ -2,7 +2,7 @@
2
2
  * Markdown module is used to render Rich Text Editor as Markdown editor content
3
3
  *
4
4
  * @hidden
5
- * @deprecated
5
+
6
6
  */
7
7
  var MarkdownRender = /** @class */ (function () {
8
8
  /**
@@ -18,7 +18,7 @@ var MarkdownRender = /** @class */ (function () {
18
18
  *
19
19
  * @returns {void}
20
20
  * @hidden
21
- * @deprecated
21
+
22
22
  */
23
23
  MarkdownRender.prototype.renderPanel = function () {
24
24
  var rteObj = this.parent;
@@ -36,7 +36,7 @@ var MarkdownRender = /** @class */ (function () {
36
36
  *
37
37
  * @returns {Element} - specifies the element
38
38
  * @hidden
39
- * @deprecated
39
+
40
40
  */
41
41
  MarkdownRender.prototype.getPanel = function () {
42
42
  return this.contentPanel;
@@ -46,7 +46,7 @@ var MarkdownRender = /** @class */ (function () {
46
46
  *
47
47
  * @returns {Element} - specifies the element
48
48
  * @hidden
49
- * @deprecated
49
+
50
50
  */
51
51
  MarkdownRender.prototype.getEditPanel = function () {
52
52
  return this.editableElement;
@@ -65,7 +65,7 @@ var MarkdownRender = /** @class */ (function () {
65
65
  * @param {Element} panel - specifies the element.
66
66
  * @returns {void}
67
67
  * @hidden
68
- * @deprecated
68
+
69
69
  */
70
70
  MarkdownRender.prototype.setPanel = function (panel) {
71
71
  this.contentPanel = panel;
@@ -75,7 +75,7 @@ var MarkdownRender = /** @class */ (function () {
75
75
  *
76
76
  * @returns {void}
77
77
  * @hidden
78
- * @deprecated
78
+
79
79
  */
80
80
  MarkdownRender.prototype.getDocument = function () {
81
81
  return this.getEditPanel().ownerDocument;
@@ -4,7 +4,7 @@ import { BaseQuickToolbar } from '../actions/base-quick-toolbar';
4
4
  * `Popup renderer` module is used to render popup in RichTextEditor.
5
5
  *
6
6
  * @hidden
7
- * @deprecated
7
+
8
8
  */
9
9
  export declare class PopupRenderer implements IRenderer {
10
10
  private popupObj;
@@ -23,7 +23,7 @@ export declare class PopupRenderer implements IRenderer {
23
23
  * @param {BaseQuickToolbar} args - specifies the arguments.
24
24
  * @returns {void}
25
25
  * @hidden
26
- * @deprecated
26
+
27
27
  */
28
28
  renderPopup(args: BaseQuickToolbar): void;
29
29
  /**
@@ -31,7 +31,7 @@ export declare class PopupRenderer implements IRenderer {
31
31
  *
32
32
  * @returns {void}
33
33
  * @hidden
34
- * @deprecated
34
+
35
35
  */
36
36
  renderPanel(): void;
37
37
  /**
@@ -39,7 +39,7 @@ export declare class PopupRenderer implements IRenderer {
39
39
  *
40
40
  * @returns {Element} - specifies the element
41
41
  * @hidden
42
- * @deprecated
42
+
43
43
  */
44
44
  getPanel(): Element;
45
45
  /**
@@ -48,7 +48,7 @@ export declare class PopupRenderer implements IRenderer {
48
48
  * @returns {void}
49
49
  * @param {Element} panel - specifies the element
50
50
  * @hidden
51
- * @deprecated
51
+
52
52
  */
53
53
  setPanel(panel: Element): void;
54
54
  }
@@ -5,7 +5,7 @@ import * as events from '../base/constant';
5
5
  * `Popup renderer` module is used to render popup in RichTextEditor.
6
6
  *
7
7
  * @hidden
8
- * @deprecated
8
+
9
9
  */
10
10
  var PopupRenderer = /** @class */ (function () {
11
11
  /**
@@ -26,7 +26,7 @@ var PopupRenderer = /** @class */ (function () {
26
26
  * @param {BaseQuickToolbar} args - specifies the arguments.
27
27
  * @returns {void}
28
28
  * @hidden
29
- * @deprecated
29
+
30
30
  */
31
31
  PopupRenderer.prototype.renderPopup = function (args) {
32
32
  this.setPanel(args.element);
@@ -44,7 +44,7 @@ var PopupRenderer = /** @class */ (function () {
44
44
  *
45
45
  * @returns {void}
46
46
  * @hidden
47
- * @deprecated
47
+
48
48
  */
49
49
  PopupRenderer.prototype.renderPanel = function () {
50
50
  this.getPanel().classList.add(CLS_QUICK_POP);
@@ -54,7 +54,7 @@ var PopupRenderer = /** @class */ (function () {
54
54
  *
55
55
  * @returns {Element} - specifies the element
56
56
  * @hidden
57
- * @deprecated
57
+
58
58
  */
59
59
  PopupRenderer.prototype.getPanel = function () {
60
60
  return this.popupPanel;
@@ -65,7 +65,7 @@ var PopupRenderer = /** @class */ (function () {
65
65
  * @returns {void}
66
66
  * @param {Element} panel - specifies the element
67
67
  * @hidden
68
- * @deprecated
68
+
69
69
  */
70
70
  PopupRenderer.prototype.setPanel = function (panel) {
71
71
  this.popupPanel = panel;
@@ -4,7 +4,7 @@ import { ServiceLocator } from '../services/service-locator';
4
4
  * Content module is used to render Rich Text Editor content
5
5
  *
6
6
  * @hidden
7
- * @deprecated
7
+
8
8
  */
9
9
  export declare class Render {
10
10
  private parent;
@@ -24,7 +24,7 @@ export declare class Render {
24
24
  *
25
25
  * @returns {void}
26
26
  * @hidden
27
- * @deprecated
27
+
28
28
  */
29
29
  render(): void;
30
30
  /**