@syncfusion/ej2-richtexteditor 18.4.39 → 18.4.42-70943

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 (210) hide show
  1. package/CHANGELOG.md +782 -728
  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 +249 -145
  6. package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
  7. package/dist/es6/ej2-richtexteditor.es5.js +371 -267
  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 +76 -75
  12. package/src/common/interface.d.ts +6 -6
  13. package/src/editor-manager/base/classes.d.ts +1 -1
  14. package/src/editor-manager/base/classes.js +1 -1
  15. package/src/editor-manager/base/editor-manager.d.ts +3 -3
  16. package/src/editor-manager/base/editor-manager.js +3 -3
  17. package/src/editor-manager/base/interface.d.ts +7 -7
  18. package/src/editor-manager/base/types.d.ts +1 -1
  19. package/src/editor-manager/plugin/alignments.d.ts +2 -2
  20. package/src/editor-manager/plugin/alignments.js +2 -2
  21. package/src/editor-manager/plugin/clearformat-exec.d.ts +2 -2
  22. package/src/editor-manager/plugin/clearformat-exec.js +2 -2
  23. package/src/editor-manager/plugin/clearformat.d.ts +1 -1
  24. package/src/editor-manager/plugin/clearformat.js +1 -1
  25. package/src/editor-manager/plugin/dom-node.d.ts +34 -34
  26. package/src/editor-manager/plugin/dom-node.js +34 -34
  27. package/src/editor-manager/plugin/formats.d.ts +2 -2
  28. package/src/editor-manager/plugin/formats.js +2 -2
  29. package/src/editor-manager/plugin/image.d.ts +3 -3
  30. package/src/editor-manager/plugin/image.js +5 -4
  31. package/src/editor-manager/plugin/indents.d.ts +2 -2
  32. package/src/editor-manager/plugin/indents.js +2 -2
  33. package/src/editor-manager/plugin/insert-methods.d.ts +4 -4
  34. package/src/editor-manager/plugin/insert-methods.js +4 -4
  35. package/src/editor-manager/plugin/insert-text.d.ts +2 -2
  36. package/src/editor-manager/plugin/insert-text.js +2 -2
  37. package/src/editor-manager/plugin/inserthtml-exec.d.ts +2 -2
  38. package/src/editor-manager/plugin/inserthtml-exec.js +2 -2
  39. package/src/editor-manager/plugin/inserthtml.d.ts +2 -2
  40. package/src/editor-manager/plugin/inserthtml.js +16 -12
  41. package/src/editor-manager/plugin/isformatted.d.ts +8 -8
  42. package/src/editor-manager/plugin/isformatted.js +8 -8
  43. package/src/editor-manager/plugin/link.d.ts +2 -2
  44. package/src/editor-manager/plugin/link.js +8 -8
  45. package/src/editor-manager/plugin/lists.d.ts +2 -2
  46. package/src/editor-manager/plugin/lists.js +8 -4
  47. package/src/editor-manager/plugin/ms-word-clean-up.d.ts +1 -1
  48. package/src/editor-manager/plugin/ms-word-clean-up.js +23 -7
  49. package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
  50. package/src/editor-manager/plugin/nodecutter.js +6 -6
  51. package/src/editor-manager/plugin/selection-commands.d.ts +2 -1
  52. package/src/editor-manager/plugin/selection-commands.js +35 -4
  53. package/src/editor-manager/plugin/selection-exec.d.ts +2 -2
  54. package/src/editor-manager/plugin/selection-exec.js +2 -2
  55. package/src/editor-manager/plugin/table.d.ts +2 -2
  56. package/src/editor-manager/plugin/table.js +4 -3
  57. package/src/editor-manager/plugin/toolbar-status.d.ts +2 -2
  58. package/src/editor-manager/plugin/toolbar-status.js +2 -2
  59. package/src/editor-manager/plugin/undo.d.ts +6 -6
  60. package/src/editor-manager/plugin/undo.js +6 -6
  61. package/src/global.d.ts +1 -0
  62. package/src/markdown-parser/base/interface.d.ts +10 -10
  63. package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
  64. package/src/markdown-parser/base/markdown-parser.js +3 -3
  65. package/src/markdown-parser/base/types.d.ts +1 -1
  66. package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
  67. package/src/markdown-parser/plugin/clearformat.js +2 -2
  68. package/src/markdown-parser/plugin/formats.d.ts +2 -2
  69. package/src/markdown-parser/plugin/formats.js +2 -2
  70. package/src/markdown-parser/plugin/link.d.ts +2 -2
  71. package/src/markdown-parser/plugin/link.js +2 -2
  72. package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
  73. package/src/markdown-parser/plugin/markdown-selection.js +14 -14
  74. package/src/markdown-parser/plugin/md-selection-formats.d.ts +2 -2
  75. package/src/markdown-parser/plugin/md-selection-formats.js +2 -2
  76. package/src/markdown-parser/plugin/table.d.ts +3 -3
  77. package/src/markdown-parser/plugin/table.js +3 -3
  78. package/src/markdown-parser/plugin/undo.d.ts +6 -6
  79. package/src/markdown-parser/plugin/undo.js +6 -6
  80. package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +9 -9
  81. package/src/rich-text-editor/actions/base-quick-toolbar.js +9 -9
  82. package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
  83. package/src/rich-text-editor/actions/base-toolbar.js +3 -3
  84. package/src/rich-text-editor/actions/color-picker.d.ts +2 -2
  85. package/src/rich-text-editor/actions/color-picker.js +2 -2
  86. package/src/rich-text-editor/actions/count.d.ts +3 -3
  87. package/src/rich-text-editor/actions/count.js +3 -3
  88. package/src/rich-text-editor/actions/dropdown-buttons.d.ts +2 -2
  89. package/src/rich-text-editor/actions/dropdown-buttons.js +2 -2
  90. package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
  91. package/src/rich-text-editor/actions/full-screen.js +3 -3
  92. package/src/rich-text-editor/actions/html-editor.d.ts +3 -3
  93. package/src/rich-text-editor/actions/html-editor.js +3 -3
  94. package/src/rich-text-editor/actions/keyboard-model.d.ts +13 -13
  95. package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
  96. package/src/rich-text-editor/actions/keyboard.js +22 -21
  97. package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
  98. package/src/rich-text-editor/actions/markdown-editor.js +2 -2
  99. package/src/rich-text-editor/actions/paste-clean-up.d.ts +1 -1
  100. package/src/rich-text-editor/actions/paste-clean-up.js +1 -1
  101. package/src/rich-text-editor/actions/quick-toolbar.d.ts +9 -9
  102. package/src/rich-text-editor/actions/quick-toolbar.js +9 -9
  103. package/src/rich-text-editor/actions/toolbar.d.ts +13 -13
  104. package/src/rich-text-editor/actions/toolbar.js +13 -13
  105. package/src/rich-text-editor/actions/xhtml-validation.d.ts +1 -1
  106. package/src/rich-text-editor/actions/xhtml-validation.js +1 -1
  107. package/src/rich-text-editor/base/classes.d.ts +103 -103
  108. package/src/rich-text-editor/base/classes.js +103 -103
  109. package/src/rich-text-editor/base/constant.d.ts +112 -107
  110. package/src/rich-text-editor/base/constant.js +112 -107
  111. package/src/rich-text-editor/base/enum.d.ts +1 -1
  112. package/src/rich-text-editor/base/enum.js +1 -1
  113. package/src/rich-text-editor/base/interface.d.ts +40 -40
  114. package/src/rich-text-editor/base/interface.js +1 -1
  115. package/src/rich-text-editor/base/rich-text-editor-model.d.ts +701 -701
  116. package/src/rich-text-editor/base/rich-text-editor.d.ts +51 -51
  117. package/src/rich-text-editor/base/rich-text-editor.js +88 -66
  118. package/src/rich-text-editor/base/util.d.ts +1 -1
  119. package/src/rich-text-editor/base/util.js +1 -1
  120. package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
  121. package/src/rich-text-editor/formatter/formatter.js +8 -8
  122. package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
  123. package/src/rich-text-editor/formatter/html-formatter.js +15 -15
  124. package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
  125. package/src/rich-text-editor/formatter/markdown-formatter.js +15 -15
  126. package/src/rich-text-editor/models/iframe-settings-model.d.ts +21 -21
  127. package/src/rich-text-editor/models/iframe-settings.js +19 -19
  128. package/src/rich-text-editor/models/inline-mode-model.d.ts +9 -9
  129. package/src/rich-text-editor/models/inline-mode.js +19 -19
  130. package/src/rich-text-editor/models/toolbar-settings-model.d.ts +328 -328
  131. package/src/rich-text-editor/models/toolbar-settings.js +19 -19
  132. package/src/rich-text-editor/renderer/content-renderer.d.ts +6 -6
  133. package/src/rich-text-editor/renderer/content-renderer.js +6 -6
  134. package/src/rich-text-editor/renderer/dialog-renderer.d.ts +2 -2
  135. package/src/rich-text-editor/renderer/dialog-renderer.js +2 -2
  136. package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
  137. package/src/rich-text-editor/renderer/iframe-content-renderer.js +17 -17
  138. package/src/rich-text-editor/renderer/image-module.d.ts +2 -1
  139. package/src/rich-text-editor/renderer/image-module.js +21 -7
  140. package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
  141. package/src/rich-text-editor/renderer/link-module.js +1 -1
  142. package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
  143. package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
  144. package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
  145. package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
  146. package/src/rich-text-editor/renderer/render.d.ts +2 -2
  147. package/src/rich-text-editor/renderer/render.js +2 -2
  148. package/src/rich-text-editor/renderer/table-module.d.ts +1 -1
  149. package/src/rich-text-editor/renderer/table-module.js +7 -2
  150. package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +8 -8
  151. package/src/rich-text-editor/renderer/toolbar-renderer.js +8 -8
  152. package/src/rich-text-editor/renderer/view-source.d.ts +6 -6
  153. package/src/rich-text-editor/renderer/view-source.js +6 -6
  154. package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
  155. package/src/rich-text-editor/services/renderer-factory.js +3 -3
  156. package/src/rich-text-editor/services/service-locator.d.ts +3 -3
  157. package/src/rich-text-editor/services/service-locator.js +3 -3
  158. package/src/selection/selection.d.ts +22 -22
  159. package/src/selection/selection.js +22 -22
  160. package/styles/_all.scss +2 -2
  161. package/styles/bootstrap-dark.css +13 -1
  162. package/styles/bootstrap.css +13 -1
  163. package/styles/bootstrap4.css +13 -1
  164. package/styles/bootstrap5-dark.css +0 -0
  165. package/styles/bootstrap5-dark.scss +0 -0
  166. package/styles/bootstrap5.css +0 -0
  167. package/styles/bootstrap5.scss +0 -0
  168. package/styles/fabric-dark.css +13 -1
  169. package/styles/fabric.css +13 -1
  170. package/styles/highcontrast-light.css +13 -1
  171. package/styles/highcontrast.css +13 -1
  172. package/styles/material-dark.css +13 -1
  173. package/styles/material.css +13 -1
  174. package/styles/rich-text-editor/_all.scss +2 -2
  175. package/styles/rich-text-editor/_bootstrap-dark-definition.scss +151 -151
  176. package/styles/rich-text-editor/_bootstrap-definition.scss +184 -184
  177. package/styles/rich-text-editor/_bootstrap4-definition.scss +307 -307
  178. package/styles/rich-text-editor/_fabric-dark-definition.scss +150 -150
  179. package/styles/rich-text-editor/_fabric-definition.scss +148 -148
  180. package/styles/rich-text-editor/_highcontrast-definition.scss +148 -148
  181. package/styles/rich-text-editor/_highcontrast-light-definition.scss +148 -148
  182. package/styles/rich-text-editor/_layout.scss +1416 -1404
  183. package/styles/rich-text-editor/_material-dark-definition.scss +151 -151
  184. package/styles/rich-text-editor/_material-definition.scss +150 -150
  185. package/styles/rich-text-editor/_theme.scss +499 -499
  186. package/styles/rich-text-editor/bootstrap-dark.css +13 -1
  187. package/styles/rich-text-editor/bootstrap.css +13 -1
  188. package/styles/rich-text-editor/bootstrap4.css +13 -1
  189. package/styles/rich-text-editor/fabric-dark.css +13 -1
  190. package/styles/rich-text-editor/fabric.css +13 -1
  191. package/styles/rich-text-editor/highcontrast-light.css +13 -1
  192. package/styles/rich-text-editor/highcontrast.css +13 -1
  193. package/styles/rich-text-editor/icons/_bootstrap-dark.scss +289 -289
  194. package/styles/rich-text-editor/icons/_bootstrap.scss +288 -288
  195. package/styles/rich-text-editor/icons/_bootstrap4.scss +288 -288
  196. package/styles/rich-text-editor/icons/_fabric-dark.scss +288 -288
  197. package/styles/rich-text-editor/icons/_fabric.scss +288 -288
  198. package/styles/rich-text-editor/icons/_highcontrast-light.scss +288 -288
  199. package/styles/rich-text-editor/icons/_highcontrast.scss +288 -288
  200. package/styles/rich-text-editor/icons/_material-dark.scss +288 -288
  201. package/styles/rich-text-editor/icons/_material.scss +288 -288
  202. package/styles/rich-text-editor/material-dark.css +13 -1
  203. package/styles/rich-text-editor/material.css +13 -1
  204. package/styles/tailwind-dark.css +0 -0
  205. package/styles/tailwind-dark.scss +0 -0
  206. package/styles/tailwind.css +0 -0
  207. package/styles/tailwind.scss +0 -0
  208. package/dist/global/ej2-richtexteditor.min.js +0 -11
  209. package/dist/global/ej2-richtexteditor.min.js.map +0 -1
  210. package/dist/global/index.d.ts +0 -14
@@ -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';
@@ -3,7 +3,7 @@ import { ServiceLocator } from '../services/service-locator';
3
3
  /**
4
4
  * Content module is used to render Rich Text Editor content
5
5
  * @hidden
6
-
6
+ * @deprecated
7
7
  */
8
8
  export declare class ContentRender implements IRenderer {
9
9
  protected contentPanel: Element;
@@ -17,21 +17,21 @@ export declare class ContentRender implements IRenderer {
17
17
  /**
18
18
  * The function is used to render Rich Text Editor content div
19
19
  * @hidden
20
-
20
+ * @deprecated
21
21
  */
22
22
  renderPanel(): void;
23
23
  /**
24
24
  * Get the content div element of RichTextEditor
25
25
  * @return {Element}
26
26
  * @hidden
27
-
27
+ * @deprecated
28
28
  */
29
29
  getPanel(): Element;
30
30
  /**
31
31
  * Get the editable element of RichTextEditor
32
32
  * @return {Element}
33
33
  * @hidden
34
-
34
+ * @deprecated
35
35
  */
36
36
  getEditPanel(): Element;
37
37
  /**
@@ -43,14 +43,14 @@ export declare class ContentRender implements IRenderer {
43
43
  * Set the content div element of RichTextEditor
44
44
  * @param {Element} panel
45
45
  * @hidden
46
-
46
+ * @deprecated
47
47
  */
48
48
  setPanel(panel: Element): void;
49
49
  /**
50
50
  * Get the document of RichTextEditor
51
51
  * @return {Document}
52
52
  * @hidden
53
-
53
+ * @deprecated
54
54
  */
55
55
  getDocument(): Document;
56
56
  }
@@ -2,7 +2,7 @@ import { getEditValue } from '../base/util';
2
2
  /**
3
3
  * Content module is used to render Rich Text Editor content
4
4
  * @hidden
5
-
5
+ * @deprecated
6
6
  */
7
7
  var ContentRender = /** @class */ (function () {
8
8
  /**
@@ -15,7 +15,7 @@ var ContentRender = /** @class */ (function () {
15
15
  /**
16
16
  * The function is used to render Rich Text Editor content div
17
17
  * @hidden
18
-
18
+ * @deprecated
19
19
  */
20
20
  ContentRender.prototype.renderPanel = function () {
21
21
  var rteObj = this.parent;
@@ -37,7 +37,7 @@ var ContentRender = /** @class */ (function () {
37
37
  * Get the content div element of RichTextEditor
38
38
  * @return {Element}
39
39
  * @hidden
40
-
40
+ * @deprecated
41
41
  */
42
42
  ContentRender.prototype.getPanel = function () {
43
43
  return this.contentPanel;
@@ -46,7 +46,7 @@ var ContentRender = /** @class */ (function () {
46
46
  * Get the editable element of RichTextEditor
47
47
  * @return {Element}
48
48
  * @hidden
49
-
49
+ * @deprecated
50
50
  */
51
51
  ContentRender.prototype.getEditPanel = function () {
52
52
  return this.editableElement;
@@ -62,7 +62,7 @@ var ContentRender = /** @class */ (function () {
62
62
  * Set the content div element of RichTextEditor
63
63
  * @param {Element} panel
64
64
  * @hidden
65
-
65
+ * @deprecated
66
66
  */
67
67
  ContentRender.prototype.setPanel = function (panel) {
68
68
  this.contentPanel = panel;
@@ -71,7 +71,7 @@ var ContentRender = /** @class */ (function () {
71
71
  * Get the document of RichTextEditor
72
72
  * @return {Document}
73
73
  * @hidden
74
-
74
+ * @deprecated
75
75
  */
76
76
  ContentRender.prototype.getDocument = function () {
77
77
  return this.getEditPanel().ownerDocument;
@@ -10,7 +10,7 @@ export declare class DialogRenderer {
10
10
  /**
11
11
  * dialog render method
12
12
  * @hidden
13
-
13
+ * @deprecated
14
14
  */
15
15
  render(e: DialogModel): Dialog;
16
16
  private beforeOpen;
@@ -19,7 +19,7 @@ export declare class DialogRenderer {
19
19
  /**
20
20
  * dialog close method
21
21
  * @hidden
22
-
22
+ * @deprecated
23
23
  */
24
24
  close(args: Object): void;
25
25
  }
@@ -11,7 +11,7 @@ var DialogRenderer = /** @class */ (function () {
11
11
  /**
12
12
  * dialog render method
13
13
  * @hidden
14
-
14
+ * @deprecated
15
15
  */
16
16
  DialogRenderer.prototype.render = function (e) {
17
17
  var dlgObj;
@@ -43,7 +43,7 @@ var DialogRenderer = /** @class */ (function () {
43
43
  /**
44
44
  * dialog close method
45
45
  * @hidden
46
-
46
+ * @deprecated
47
47
  */
48
48
  DialogRenderer.prototype.close = function (args) {
49
49
  this.parent.trigger(events.dialogClose, args);
@@ -2,13 +2,13 @@ import { ContentRender } from '../renderer/content-renderer';
2
2
  /**
3
3
  * Content module is used to render Rich Text Editor content
4
4
  * @hidden
5
-
5
+ * @deprecated
6
6
  */
7
7
  export declare class IframeContentRender extends ContentRender {
8
8
  /**
9
9
  * The function is used to render Rich Text Editor iframe
10
10
  * @hidden
11
-
11
+ * @deprecated
12
12
  */
13
13
  renderPanel(): void;
14
14
  private setThemeColor;
@@ -16,14 +16,14 @@ export declare class IframeContentRender extends ContentRender {
16
16
  * Get the editable element of RichTextEditor
17
17
  * @return {Element}
18
18
  * @hidden
19
-
19
+ * @deprecated
20
20
  */
21
21
  getEditPanel(): Element;
22
22
  /**
23
23
  * Get the document of RichTextEditor
24
24
  * @param {Document}
25
25
  * @hidden
26
-
26
+ * @deprecated
27
27
  */
28
28
  getDocument(): Document;
29
29
  }
@@ -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';
@@ -20,7 +20,7 @@ var IFRAMEHEADER = "\n<!DOCTYPE html> \n <html>\n <head>\n
20
20
  /**
21
21
  * Content module is used to render Rich Text Editor content
22
22
  * @hidden
23
-
23
+ * @deprecated
24
24
  */
25
25
  var IframeContentRender = /** @class */ (function (_super) {
26
26
  __extends(IframeContentRender, _super);
@@ -30,7 +30,7 @@ var IframeContentRender = /** @class */ (function (_super) {
30
30
  /**
31
31
  * The function is used to render Rich Text Editor iframe
32
32
  * @hidden
33
-
33
+ * @deprecated
34
34
  */
35
35
  IframeContentRender.prototype.renderPanel = function () {
36
36
  var rteObj = this.parent;
@@ -64,7 +64,7 @@ var IframeContentRender = /** @class */ (function (_super) {
64
64
  * Get the editable element of RichTextEditor
65
65
  * @return {Element}
66
66
  * @hidden
67
-
67
+ * @deprecated
68
68
  */
69
69
  IframeContentRender.prototype.getEditPanel = function () {
70
70
  var editNode;
@@ -80,7 +80,7 @@ var IframeContentRender = /** @class */ (function (_super) {
80
80
  * Get the document of RichTextEditor
81
81
  * @param {Document}
82
82
  * @hidden
83
-
83
+ * @deprecated
84
84
  */
85
85
  IframeContentRender.prototype.getDocument = function () {
86
86
  return this.getEditPanel().ownerDocument;
@@ -46,6 +46,7 @@ export declare class Image {
46
46
  private imgResizePos;
47
47
  private calcPos;
48
48
  private setAspectRatio;
49
+ private onWindowResize;
49
50
  private pixToPerc;
50
51
  private imgDupMouseMove;
51
52
  private resizing;
@@ -122,7 +123,7 @@ export declare class Image {
122
123
  * @method destroy
123
124
  * @return {void}
124
125
  * @hidden
125
-
126
+ * @deprecated
126
127
  */
127
128
  destroy(): void;
128
129
  /**
@@ -31,6 +31,7 @@ var Image = /** @class */ (function () {
31
31
  this.parent.on(events.keyDown, this.onKeyDown, this);
32
32
  this.parent.on(events.keyUp, this.onKeyUp, this);
33
33
  this.parent.on(events.insertImage, this.insertImage, this);
34
+ this.parent.on(events.windowResize, this.onWindowResize, this);
34
35
  this.parent.on(events.insertCompleted, this.showImageQuickToolbar, this);
35
36
  this.parent.on(events.imageToolbarAction, this.onToolbarAction, this);
36
37
  this.parent.on(events.imageCaption, this.caption, this);
@@ -51,6 +52,7 @@ var Image = /** @class */ (function () {
51
52
  }
52
53
  this.parent.off(events.keyDown, this.onKeyDown);
53
54
  this.parent.off(events.keyUp, this.onKeyUp);
55
+ this.parent.off(events.windowResize, this.onWindowResize);
54
56
  this.parent.off(events.insertImage, this.insertImage);
55
57
  this.parent.off(events.insertCompleted, this.showImageQuickToolbar);
56
58
  this.parent.off(events.imageCaption, this.caption);
@@ -273,7 +275,6 @@ var Image = /** @class */ (function () {
273
275
  Image.prototype.calcPos = function (elem) {
274
276
  var ignoreOffset = ['TD', 'TH', 'TABLE', 'A'];
275
277
  var parentOffset = { top: 0, left: 0 };
276
- var offset = elem.getBoundingClientRect();
277
278
  var doc = elem.ownerDocument;
278
279
  var offsetParent = ((elem.offsetParent && (elem.offsetParent.classList.contains('e-img-caption') ||
279
280
  ignoreOffset.indexOf(elem.offsetParent.tagName) > -1)) ?
@@ -287,8 +288,8 @@ var Image = /** @class */ (function () {
287
288
  parentOffset = offsetParent.getBoundingClientRect();
288
289
  }
289
290
  return {
290
- top: offset.top - parentOffset.top,
291
- left: offset.left - parentOffset.left
291
+ top: elem.offsetTop,
292
+ left: elem.offsetLeft
292
293
  };
293
294
  };
294
295
  Image.prototype.setAspectRatio = function (img, expectedX, expectedY) {
@@ -343,6 +344,11 @@ var Image = /** @class */ (function () {
343
344
  }
344
345
  }
345
346
  };
347
+ Image.prototype.onWindowResize = function () {
348
+ if (!isNOU(this.contentModule.getEditPanel().querySelector('.e-img-resize'))) {
349
+ this.cancelResizeAction();
350
+ }
351
+ };
346
352
  Image.prototype.pixToPerc = function (expected, parentEle) {
347
353
  return expected / parseFloat(getComputedStyle(parentEle).width) * 100;
348
354
  };
@@ -355,7 +361,8 @@ var Image = /** @class */ (function () {
355
361
  }
356
362
  else {
357
363
  if ((parseInt(_this.parent.insertImageSettings.minWidth, 10) >= parseInt(width, 10) ||
358
- parseInt(_this.parent.getInsertImgMaxWidth(), 10) <= parseInt(width, 10))) {
364
+ (parseInt(_this.parent.getInsertImgMaxWidth(), 10) <= parseInt(width, 10) &&
365
+ isNOU(_this.imgEle.style.width)))) {
359
366
  return;
360
367
  }
361
368
  if (!_this.parent.insertImageSettings.resizeByPercent &&
@@ -980,7 +987,11 @@ var Image = /** @class */ (function () {
980
987
  }
981
988
  };
982
989
  Image.prototype.imageRemovePost = function (src) {
983
- var ajax = new Ajax(this.parent.insertImageSettings.removeUrl, 'POST', true, null);
990
+ var removeUrl = this.parent.insertImageSettings.removeUrl;
991
+ if (isNOU(removeUrl) || removeUrl === '') {
992
+ return;
993
+ }
994
+ var ajax = new Ajax(removeUrl, 'POST', true, null);
984
995
  var formData = new FormData();
985
996
  formData.append(name, src);
986
997
  ajax.send(formData);
@@ -1216,7 +1227,10 @@ var Image = /** @class */ (function () {
1216
1227
  if (target.tagName !== 'IMG') {
1217
1228
  this.removeResizeEle();
1218
1229
  }
1219
- if (!isNOU(this.prevSelectedImgEle)) {
1230
+ if (target.tagName !== 'IMG' && !isNOU(this.imgEle)) {
1231
+ this.imgEle.style.outline = '';
1232
+ }
1233
+ else if (!isNOU(this.prevSelectedImgEle) && this.prevSelectedImgEle !== target) {
1220
1234
  this.prevSelectedImgEle.style.outline = '';
1221
1235
  }
1222
1236
  }
@@ -1945,7 +1959,7 @@ var Image = /** @class */ (function () {
1945
1959
  * @method destroy
1946
1960
  * @return {void}
1947
1961
  * @hidden
1948
-
1962
+ * @deprecated
1949
1963
  */
1950
1964
  Image.prototype.destroy = function () {
1951
1965
  this.prevSelectedImgEle = undefined;
@@ -38,7 +38,7 @@ export declare class Link {
38
38
  * @method destroy
39
39
  * @return {void}
40
40
  * @hidden
41
-
41
+ * @deprecated
42
42
  */
43
43
  destroy(): void;
44
44
  /**
@@ -445,7 +445,7 @@ var Link = /** @class */ (function () {
445
445
  * @method destroy
446
446
  * @return {void}
447
447
  * @hidden
448
-
448
+ * @deprecated
449
449
  */
450
450
  Link.prototype.destroy = function () {
451
451
  this.removeEventListener();
@@ -2,7 +2,7 @@ import { IRenderer, IRichTextEditor } from '../base/interface';
2
2
  /**
3
3
  * Markdown module is used to render Rich Text Editor as Markdown editor content
4
4
  * @hidden
5
-
5
+ * @deprecated
6
6
  */
7
7
  export declare class MarkdownRender implements IRenderer {
8
8
  private contentPanel;
@@ -15,21 +15,21 @@ export declare class MarkdownRender implements IRenderer {
15
15
  /**
16
16
  * The function is used to render Rich Text Editor content div
17
17
  * @hidden
18
-
18
+ * @deprecated
19
19
  */
20
20
  renderPanel(): void;
21
21
  /**
22
22
  * Get the content div element of RichTextEditor
23
23
  * @return {Element}
24
24
  * @hidden
25
-
25
+ * @deprecated
26
26
  */
27
27
  getPanel(): Element;
28
28
  /**
29
29
  * Get the editable element of RichTextEditor
30
30
  * @return {Element}
31
31
  * @hidden
32
-
32
+ * @deprecated
33
33
  */
34
34
  getEditPanel(): Element;
35
35
  /**
@@ -41,14 +41,14 @@ export declare class MarkdownRender implements IRenderer {
41
41
  * Set the content div element of RichTextEditor
42
42
  * @param {Element} panel
43
43
  * @hidden
44
-
44
+ * @deprecated
45
45
  */
46
46
  setPanel(panel: Element): void;
47
47
  /**
48
48
  * Get the document of RichTextEditor
49
49
  * @param {Document}
50
50
  * @hidden
51
-
51
+ * @deprecated
52
52
  */
53
53
  getDocument(): Document;
54
54
  }
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * Markdown module is used to render Rich Text Editor as Markdown editor content
3
3
  * @hidden
4
-
4
+ * @deprecated
5
5
  */
6
6
  var MarkdownRender = /** @class */ (function () {
7
7
  /**
@@ -13,7 +13,7 @@ var MarkdownRender = /** @class */ (function () {
13
13
  /**
14
14
  * The function is used to render Rich Text Editor content div
15
15
  * @hidden
16
-
16
+ * @deprecated
17
17
  */
18
18
  MarkdownRender.prototype.renderPanel = function () {
19
19
  var rteObj = this.parent;
@@ -30,7 +30,7 @@ var MarkdownRender = /** @class */ (function () {
30
30
  * Get the content div element of RichTextEditor
31
31
  * @return {Element}
32
32
  * @hidden
33
-
33
+ * @deprecated
34
34
  */
35
35
  MarkdownRender.prototype.getPanel = function () {
36
36
  return this.contentPanel;
@@ -39,7 +39,7 @@ var MarkdownRender = /** @class */ (function () {
39
39
  * Get the editable element of RichTextEditor
40
40
  * @return {Element}
41
41
  * @hidden
42
-
42
+ * @deprecated
43
43
  */
44
44
  MarkdownRender.prototype.getEditPanel = function () {
45
45
  return this.editableElement;
@@ -55,7 +55,7 @@ var MarkdownRender = /** @class */ (function () {
55
55
  * Set the content div element of RichTextEditor
56
56
  * @param {Element} panel
57
57
  * @hidden
58
-
58
+ * @deprecated
59
59
  */
60
60
  MarkdownRender.prototype.setPanel = function (panel) {
61
61
  this.contentPanel = panel;
@@ -64,7 +64,7 @@ var MarkdownRender = /** @class */ (function () {
64
64
  * Get the document of RichTextEditor
65
65
  * @param {Document}
66
66
  * @hidden
67
-
67
+ * @deprecated
68
68
  */
69
69
  MarkdownRender.prototype.getDocument = function () {
70
70
  return this.getEditPanel().ownerDocument;
@@ -3,7 +3,7 @@ import { BaseQuickToolbar } from '../actions/base-quick-toolbar';
3
3
  /**
4
4
  * `Popup renderer` module is used to render popup in RichTextEditor.
5
5
  * @hidden
6
-
6
+ * @deprecated
7
7
  */
8
8
  export declare class PopupRenderer implements IRenderer {
9
9
  private popupObj;
@@ -17,27 +17,27 @@ export declare class PopupRenderer implements IRenderer {
17
17
  /**
18
18
  * renderPopup method
19
19
  * @hidden
20
-
20
+ * @deprecated
21
21
  */
22
22
  renderPopup(args: BaseQuickToolbar): void;
23
23
  /**
24
24
  * The function is used to add popup class in Quick Toolbar
25
25
  * @hidden
26
-
26
+ * @deprecated
27
27
  */
28
28
  renderPanel(): void;
29
29
  /**
30
30
  * Get the popup element of RichTextEditor
31
31
  * @return {Element}
32
32
  * @hidden
33
-
33
+ * @deprecated
34
34
  */
35
35
  getPanel(): Element;
36
36
  /**
37
37
  * Set the popup element of RichTextEditor
38
38
  * @param {Element} panel
39
39
  * @hidden
40
-
40
+ * @deprecated
41
41
  */
42
42
  setPanel(panel: Element): void;
43
43
  }
@@ -5,7 +5,7 @@ import * as events from '../base/constant';
5
5
  /**
6
6
  * `Popup renderer` module is used to render popup in RichTextEditor.
7
7
  * @hidden
8
-
8
+ * @deprecated
9
9
  */
10
10
  var PopupRenderer = /** @class */ (function () {
11
11
  /**
@@ -21,7 +21,7 @@ var PopupRenderer = /** @class */ (function () {
21
21
  /**
22
22
  * renderPopup method
23
23
  * @hidden
24
-
24
+ * @deprecated
25
25
  */
26
26
  PopupRenderer.prototype.renderPopup = function (args) {
27
27
  this.setPanel(args.element);
@@ -37,7 +37,7 @@ var PopupRenderer = /** @class */ (function () {
37
37
  /**
38
38
  * The function is used to add popup class in Quick Toolbar
39
39
  * @hidden
40
-
40
+ * @deprecated
41
41
  */
42
42
  PopupRenderer.prototype.renderPanel = function () {
43
43
  this.getPanel().classList.add(CLS_QUICK_POP);
@@ -46,7 +46,7 @@ var PopupRenderer = /** @class */ (function () {
46
46
  * Get the popup element of RichTextEditor
47
47
  * @return {Element}
48
48
  * @hidden
49
-
49
+ * @deprecated
50
50
  */
51
51
  PopupRenderer.prototype.getPanel = function () {
52
52
  return this.popupPanel;
@@ -55,7 +55,7 @@ var PopupRenderer = /** @class */ (function () {
55
55
  * Set the popup element of RichTextEditor
56
56
  * @param {Element} panel
57
57
  * @hidden
58
-
58
+ * @deprecated
59
59
  */
60
60
  PopupRenderer.prototype.setPanel = function (panel) {
61
61
  this.popupPanel = panel;
@@ -3,7 +3,7 @@ import { ServiceLocator } from '../services/service-locator';
3
3
  /**
4
4
  * Content module is used to render Rich Text Editor content
5
5
  * @hidden
6
-
6
+ * @deprecated
7
7
  */
8
8
  export declare class Render {
9
9
  private parent;
@@ -17,7 +17,7 @@ export declare class Render {
17
17
  /**
18
18
  * To initialize Rich Text Editor header, content and footer rendering
19
19
  * @hidden
20
-
20
+ * @deprecated
21
21
  */
22
22
  render(): void;
23
23
  /**
@@ -3,7 +3,7 @@ import * as events from '../base/constant';
3
3
  /**
4
4
  * Content module is used to render Rich Text Editor content
5
5
  * @hidden
6
-
6
+ * @deprecated
7
7
  */
8
8
  var Render = /** @class */ (function () {
9
9
  /**
@@ -18,7 +18,7 @@ var Render = /** @class */ (function () {
18
18
  /**
19
19
  * To initialize Rich Text Editor header, content and footer rendering
20
20
  * @hidden
21
-
21
+ * @deprecated
22
22
  */
23
23
  Render.prototype.render = function () {
24
24
  var rteObj = this.parent;
@@ -87,7 +87,7 @@ export declare class Table {
87
87
  * @method destroy
88
88
  * @return {void}
89
89
  * @hidden
90
-
90
+ * @deprecated
91
91
  */
92
92
  destroy(): void;
93
93
  /**
@@ -450,6 +450,11 @@ var Table = /** @class */ (function () {
450
450
  }
451
451
  var target = e.target || e.targetTouches[0].target;
452
452
  var closestTable = closest(target, 'table');
453
+ if (!isNOU(this.curTable) && !isNOU(closestTable) && closestTable !== this.curTable) {
454
+ this.removeResizeElement();
455
+ this.removeHelper(e);
456
+ this.cancelResizeAction();
457
+ }
453
458
  if (target.nodeName === 'TABLE' || target.nodeName === 'TD' || target.nodeName === 'TH') {
454
459
  this.curTable = (closestTable && this.parent.contentModule.getEditPanel().contains(closestTable))
455
460
  && (target.nodeName === 'TD' || target.nodeName === 'TH') ?
@@ -701,7 +706,7 @@ var Table = /** @class */ (function () {
701
706
  'px; left:' + (_this.calcPos(_this.curTable).left + tableWidth - 4) + 'px;';
702
707
  _this.updateHelper();
703
708
  }
704
- else if (_this.resizeBtnStat.tableBox) {
709
+ else if (_this.resizeBtnStat.tableBox && !isNullOrUndefined(tableReBox)) {
705
710
  if (!Browser.isDevice) {
706
711
  EventHandler.remove(_this.contentModule.getEditPanel(), 'mouseover', _this.resizeHelper);
707
712
  }
@@ -1106,7 +1111,7 @@ var Table = /** @class */ (function () {
1106
1111
  * @method destroy
1107
1112
  * @return {void}
1108
1113
  * @hidden
1109
-
1114
+ * @deprecated
1110
1115
  */
1111
1116
  Table.prototype.destroy = function () {
1112
1117
  this.removeEventListener();