@syncfusion/ej2-richtexteditor 28.1.38 → 28.1.41-640046

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 (186) hide show
  1. package/.eslintignore +4 -4
  2. package/.eslintrc.json +260 -260
  3. package/README.md +76 -76
  4. package/dist/ej2-richtexteditor.umd.min.js +1 -10
  5. package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
  6. package/dist/es6/ej2-richtexteditor.es2015.js +648 -584
  7. package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
  8. package/dist/es6/ej2-richtexteditor.es5.js +757 -693
  9. package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
  10. package/helpers/e2e/index.js +3 -3
  11. package/helpers/e2e/rte-helper.js +13 -13
  12. package/license +9 -9
  13. package/package.json +84 -84
  14. package/src/common/interface.d.ts +8 -8
  15. package/src/common/util.d.ts +1 -2
  16. package/src/common/util.js +49 -95
  17. package/src/editor-manager/base/classes.d.ts +1 -1
  18. package/src/editor-manager/base/classes.js +1 -1
  19. package/src/editor-manager/base/editor-manager.d.ts +3 -3
  20. package/src/editor-manager/base/editor-manager.js +3 -3
  21. package/src/editor-manager/base/enum.d.ts +2 -2
  22. package/src/editor-manager/base/interface.d.ts +17 -9
  23. package/src/editor-manager/base/types.d.ts +1 -1
  24. package/src/editor-manager/plugin/alignments.d.ts +2 -2
  25. package/src/editor-manager/plugin/alignments.js +2 -2
  26. package/src/editor-manager/plugin/audio.d.ts +3 -3
  27. package/src/editor-manager/plugin/audio.js +3 -3
  28. package/src/editor-manager/plugin/clearformat-exec.d.ts +2 -2
  29. package/src/editor-manager/plugin/clearformat-exec.js +2 -2
  30. package/src/editor-manager/plugin/clearformat.d.ts +1 -1
  31. package/src/editor-manager/plugin/clearformat.js +1 -1
  32. package/src/editor-manager/plugin/dom-node.d.ts +36 -36
  33. package/src/editor-manager/plugin/dom-node.js +36 -36
  34. package/src/editor-manager/plugin/format-painter-actions.d.ts +1 -1
  35. package/src/editor-manager/plugin/format-painter-actions.js +1 -1
  36. package/src/editor-manager/plugin/formats.d.ts +2 -2
  37. package/src/editor-manager/plugin/formats.js +2 -2
  38. package/src/editor-manager/plugin/image.d.ts +3 -3
  39. package/src/editor-manager/plugin/image.js +3 -3
  40. package/src/editor-manager/plugin/indents.d.ts +2 -2
  41. package/src/editor-manager/plugin/indents.js +2 -2
  42. package/src/editor-manager/plugin/insert-methods.d.ts +4 -4
  43. package/src/editor-manager/plugin/insert-methods.js +4 -4
  44. package/src/editor-manager/plugin/insert-text.d.ts +2 -2
  45. package/src/editor-manager/plugin/insert-text.js +2 -2
  46. package/src/editor-manager/plugin/inserthtml-exec.d.ts +2 -2
  47. package/src/editor-manager/plugin/inserthtml-exec.js +2 -2
  48. package/src/editor-manager/plugin/inserthtml.d.ts +2 -2
  49. package/src/editor-manager/plugin/inserthtml.js +5 -5
  50. package/src/editor-manager/plugin/isformatted.d.ts +9 -9
  51. package/src/editor-manager/plugin/isformatted.js +9 -9
  52. package/src/editor-manager/plugin/link.d.ts +2 -2
  53. package/src/editor-manager/plugin/link.js +2 -2
  54. package/src/editor-manager/plugin/lists.d.ts +3 -2
  55. package/src/editor-manager/plugin/lists.js +15 -3
  56. package/src/editor-manager/plugin/ms-word-clean-up.d.ts +1 -1
  57. package/src/editor-manager/plugin/ms-word-clean-up.js +1 -1
  58. package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
  59. package/src/editor-manager/plugin/nodecutter.js +6 -6
  60. package/src/editor-manager/plugin/selection-commands.d.ts +1 -1
  61. package/src/editor-manager/plugin/selection-commands.js +1 -1
  62. package/src/editor-manager/plugin/selection-exec.d.ts +2 -2
  63. package/src/editor-manager/plugin/selection-exec.js +2 -2
  64. package/src/editor-manager/plugin/table.d.ts +2 -2
  65. package/src/editor-manager/plugin/table.js +2 -2
  66. package/src/editor-manager/plugin/toolbar-status.d.ts +2 -2
  67. package/src/editor-manager/plugin/toolbar-status.js +2 -2
  68. package/src/editor-manager/plugin/undo.d.ts +6 -6
  69. package/src/editor-manager/plugin/undo.js +6 -6
  70. package/src/editor-manager/plugin/video.d.ts +3 -3
  71. package/src/editor-manager/plugin/video.js +3 -3
  72. package/src/markdown-parser/base/interface.d.ts +10 -10
  73. package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
  74. package/src/markdown-parser/base/markdown-parser.js +3 -3
  75. package/src/markdown-parser/base/types.d.ts +1 -1
  76. package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
  77. package/src/markdown-parser/plugin/clearformat.js +2 -2
  78. package/src/markdown-parser/plugin/formats.d.ts +2 -2
  79. package/src/markdown-parser/plugin/formats.js +2 -2
  80. package/src/markdown-parser/plugin/insert-text.d.ts +2 -2
  81. package/src/markdown-parser/plugin/insert-text.js +2 -2
  82. package/src/markdown-parser/plugin/link.d.ts +2 -2
  83. package/src/markdown-parser/plugin/link.js +2 -2
  84. package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
  85. package/src/markdown-parser/plugin/markdown-selection.js +14 -14
  86. package/src/markdown-parser/plugin/md-selection-formats.d.ts +1 -1
  87. package/src/markdown-parser/plugin/md-selection-formats.js +1 -1
  88. package/src/markdown-parser/plugin/table.d.ts +3 -3
  89. package/src/markdown-parser/plugin/table.js +3 -3
  90. package/src/markdown-parser/plugin/undo.d.ts +6 -6
  91. package/src/markdown-parser/plugin/undo.js +6 -6
  92. package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +9 -9
  93. package/src/rich-text-editor/actions/base-quick-toolbar.js +9 -9
  94. package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
  95. package/src/rich-text-editor/actions/base-toolbar.js +3 -3
  96. package/src/rich-text-editor/actions/color-picker.d.ts +2 -2
  97. package/src/rich-text-editor/actions/color-picker.js +2 -2
  98. package/src/rich-text-editor/actions/count.d.ts +3 -3
  99. package/src/rich-text-editor/actions/count.js +3 -3
  100. package/src/rich-text-editor/actions/dropdown-buttons.d.ts +2 -2
  101. package/src/rich-text-editor/actions/dropdown-buttons.js +2 -2
  102. package/src/rich-text-editor/actions/emoji-picker.d.ts +1 -1
  103. package/src/rich-text-editor/actions/emoji-picker.js +1 -1
  104. package/src/rich-text-editor/actions/enter-key.js +34 -3
  105. package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
  106. package/src/rich-text-editor/actions/full-screen.js +3 -3
  107. package/src/rich-text-editor/actions/html-editor.d.ts +3 -3
  108. package/src/rich-text-editor/actions/html-editor.js +26 -4
  109. package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
  110. package/src/rich-text-editor/actions/keyboard.js +20 -20
  111. package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
  112. package/src/rich-text-editor/actions/markdown-editor.js +2 -2
  113. package/src/rich-text-editor/actions/paste-clean-up.d.ts +1 -1
  114. package/src/rich-text-editor/actions/paste-clean-up.js +23 -32
  115. package/src/rich-text-editor/actions/quick-toolbar.d.ts +9 -9
  116. package/src/rich-text-editor/actions/quick-toolbar.js +9 -9
  117. package/src/rich-text-editor/actions/resize.d.ts +2 -0
  118. package/src/rich-text-editor/actions/resize.js +13 -2
  119. package/src/rich-text-editor/actions/toolbar.d.ts +13 -13
  120. package/src/rich-text-editor/actions/toolbar.js +13 -13
  121. package/src/rich-text-editor/actions/xhtml-validation.d.ts +1 -1
  122. package/src/rich-text-editor/actions/xhtml-validation.js +1 -1
  123. package/src/rich-text-editor/base/classes.d.ts +125 -125
  124. package/src/rich-text-editor/base/classes.js +125 -125
  125. package/src/rich-text-editor/base/constant.d.ts +158 -158
  126. package/src/rich-text-editor/base/constant.js +158 -158
  127. package/src/rich-text-editor/base/enum.d.ts +1 -1
  128. package/src/rich-text-editor/base/enum.js +1 -1
  129. package/src/rich-text-editor/base/interface.d.ts +51 -51
  130. package/src/rich-text-editor/base/interface.js +1 -1
  131. package/src/rich-text-editor/base/rich-text-editor-model.d.ts +1 -1
  132. package/src/rich-text-editor/base/rich-text-editor.d.ts +62 -62
  133. package/src/rich-text-editor/base/rich-text-editor.js +67 -51
  134. package/src/rich-text-editor/base/util.d.ts +1 -1
  135. package/src/rich-text-editor/base/util.js +1 -1
  136. package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
  137. package/src/rich-text-editor/formatter/formatter.js +8 -8
  138. package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
  139. package/src/rich-text-editor/formatter/html-formatter.js +15 -15
  140. package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
  141. package/src/rich-text-editor/formatter/markdown-formatter.js +15 -15
  142. package/src/rich-text-editor/models/iframe-settings.js +19 -19
  143. package/src/rich-text-editor/models/inline-mode.js +19 -19
  144. package/src/rich-text-editor/models/slash-menu-settings.js +19 -19
  145. package/src/rich-text-editor/models/toolbar-settings.js +19 -19
  146. package/src/rich-text-editor/renderer/audio-module.d.ts +1 -1
  147. package/src/rich-text-editor/renderer/audio-module.js +1 -1
  148. package/src/rich-text-editor/renderer/content-renderer.d.ts +6 -6
  149. package/src/rich-text-editor/renderer/content-renderer.js +6 -6
  150. package/src/rich-text-editor/renderer/dialog-renderer.d.ts +2 -2
  151. package/src/rich-text-editor/renderer/dialog-renderer.js +2 -2
  152. package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
  153. package/src/rich-text-editor/renderer/iframe-content-renderer.js +17 -17
  154. package/src/rich-text-editor/renderer/image-module.d.ts +1 -1
  155. package/src/rich-text-editor/renderer/image-module.js +1 -1
  156. package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
  157. package/src/rich-text-editor/renderer/link-module.js +3 -3
  158. package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
  159. package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
  160. package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
  161. package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
  162. package/src/rich-text-editor/renderer/render.d.ts +2 -2
  163. package/src/rich-text-editor/renderer/render.js +2 -2
  164. package/src/rich-text-editor/renderer/table-module.d.ts +3 -2
  165. package/src/rich-text-editor/renderer/table-module.js +15 -18
  166. package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +9 -9
  167. package/src/rich-text-editor/renderer/toolbar-renderer.js +9 -10
  168. package/src/rich-text-editor/renderer/video-module.d.ts +1 -1
  169. package/src/rich-text-editor/renderer/video-module.js +1 -1
  170. package/src/rich-text-editor/renderer/view-source.d.ts +5 -5
  171. package/src/rich-text-editor/renderer/view-source.js +5 -5
  172. package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
  173. package/src/rich-text-editor/services/renderer-factory.js +3 -3
  174. package/src/rich-text-editor/services/service-locator.d.ts +3 -3
  175. package/src/rich-text-editor/services/service-locator.js +3 -3
  176. package/src/selection/selection.d.ts +22 -22
  177. package/src/selection/selection.js +22 -22
  178. package/styles/material3-dark.scss +1 -1
  179. package/styles/material3.scss +1 -1
  180. package/styles/rich-text-editor/material3-dark.scss +1 -1
  181. package/styles/rich-text-editor/material3.scss +1 -1
  182. package/dist/ej2-richtexteditor.min.js +0 -10
  183. package/dist/global/ej2-richtexteditor.min.js +0 -11
  184. package/dist/global/ej2-richtexteditor.min.js.map +0 -1
  185. package/dist/global/index.d.ts +0 -14
  186. package/tslint.json +0 -111
@@ -1,8 +1,8 @@
1
1
  define(["require", "exports", "./rte-helper"], function (require, exports, rte_helper_1) {
2
2
  "use strict";
3
- function __export(m) {
4
- for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
5
- }
3
+ function __export(m) {
4
+ for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
5
+ }
6
6
  Object.defineProperty(exports, "__esModule", { value: true });
7
7
  __export(rte_helper_1);
8
8
  });
@@ -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
  define(["require", "exports", "@syncfusion/ej2-base/helpers/e2e"], function (require, exports, e2e_1) {
15
15
  "use strict";
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
package/license CHANGED
@@ -1,10 +1,10 @@
1
- Essential JS 2 library is available under the Syncfusion Essential Studio program, and can be licensed either under the Syncfusion Community License Program or the Syncfusion commercial license.
2
-
3
- To be qualified for the Syncfusion Community License Program you must have a gross revenue of less than one (1) million U.S. dollars ($1,000,000.00 USD) per year and have less than five (5) developers in your organization, and agree to be bound by Syncfusion’s terms and conditions.
4
-
5
- Customers who do not qualify for the community license can contact sales@syncfusion.com for commercial licensing options.
6
-
7
- Under no circumstances can you use this product without (1) either a Community License or a commercial license and (2) without agreeing and abiding by Syncfusion’s license containing all terms and conditions.
8
-
9
- The Syncfusion license that contains the terms and conditions can be found at
1
+ Essential JS 2 library is available under the Syncfusion Essential Studio program, and can be licensed either under the Syncfusion Community License Program or the Syncfusion commercial license.
2
+
3
+ To be qualified for the Syncfusion Community License Program you must have a gross revenue of less than one (1) million U.S. dollars ($1,000,000.00 USD) per year and have less than five (5) developers in your organization, and agree to be bound by Syncfusion’s terms and conditions.
4
+
5
+ Customers who do not qualify for the community license can contact sales@syncfusion.com for commercial licensing options.
6
+
7
+ Under no circumstances can you use this product without (1) either a Community License or a commercial license and (2) without agreeing and abiding by Syncfusion’s license containing all terms and conditions.
8
+
9
+ The Syncfusion license that contains the terms and conditions can be found at
10
10
  https://www.syncfusion.com/content/downloads/syncfusion_license.pdf
package/package.json CHANGED
@@ -1,85 +1,85 @@
1
- {
2
- "_from": "@syncfusion/ej2-richtexteditor@*",
3
- "_id": "@syncfusion/ej2-richtexteditor@28.1.37",
4
- "_inBundle": false,
5
- "_integrity": "sha512-LcoACNENKzPU49FmsncrsED1lWXsHPU9w6nV7nSn1wOipA3bqUwEVvbJimIw8Ll29E/RrzcR80mBsWYj7LhNzw==",
6
- "_location": "/@syncfusion/ej2-richtexteditor",
7
- "_phantomChildren": {},
8
- "_requested": {
9
- "type": "range",
10
- "registry": true,
11
- "raw": "@syncfusion/ej2-richtexteditor@*",
12
- "name": "@syncfusion/ej2-richtexteditor",
13
- "escapedName": "@syncfusion%2fej2-richtexteditor",
14
- "scope": "@syncfusion",
15
- "rawSpec": "*",
16
- "saveSpec": null,
17
- "fetchSpec": "*"
18
- },
19
- "_requiredBy": [
20
- "/",
21
- "/@syncfusion/ej2",
22
- "/@syncfusion/ej2-angular-richtexteditor",
23
- "/@syncfusion/ej2-gantt",
24
- "/@syncfusion/ej2-inplace-editor",
25
- "/@syncfusion/ej2-react-richtexteditor",
26
- "/@syncfusion/ej2-vue-richtexteditor"
27
- ],
28
- "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-28.1.37.tgz",
29
- "_shasum": "8e8379aba1b398d91e5704b67386f3fac2be2b87",
30
- "_spec": "@syncfusion/ej2-richtexteditor@*",
31
- "_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
32
- "author": {
33
- "name": "Syncfusion Inc."
34
- },
35
- "bugs": {
36
- "url": "https://github.com/syncfusion/ej2-javascript-ui-controls/issues"
37
- },
38
- "bundleDependencies": false,
39
- "dependencies": {
40
- "@syncfusion/ej2-base": "~28.1.33",
41
- "@syncfusion/ej2-buttons": "~28.1.37",
42
- "@syncfusion/ej2-dropdowns": "~28.1.38",
43
- "@syncfusion/ej2-filemanager": "~28.1.36",
44
- "@syncfusion/ej2-inputs": "~28.1.37",
45
- "@syncfusion/ej2-navigations": "~28.1.37",
46
- "@syncfusion/ej2-popups": "~28.1.38",
47
- "@syncfusion/ej2-splitbuttons": "~28.1.37"
48
- },
49
- "deprecated": false,
50
- "description": "Essential JS 2 RichTextEditor component",
51
- "devDependencies": {},
52
- "es2015": "./dist/es6/ej2-richtexteditor.es5.js",
53
- "homepage": "https://www.syncfusion.com/javascript-ui-controls",
54
- "keywords": [
55
- "ej2",
56
- "syncfusion",
57
- "HTML5-rich-text-editor",
58
- "wysiwyg-html-editor",
59
- "rich-text-editor",
60
- "markdown-editor",
61
- "wysiwyg-markdown-editor",
62
- "editor",
63
- "rich text editor",
64
- "editing",
65
- "rich text",
66
- "rich editor",
67
- "text editor",
68
- "contenteditable",
69
- "wysiwyg",
70
- "html",
71
- "text",
72
- "markdown"
73
- ],
74
- "license": "SEE LICENSE IN license",
75
- "main": "./dist/ej2-richtexteditor.umd.min.js",
76
- "module": "./index.js",
77
- "name": "@syncfusion/ej2-richtexteditor",
78
- "repository": {
79
- "type": "git",
80
- "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
81
- },
82
- "typings": "index.d.ts",
83
- "version": "28.1.38",
84
- "sideEffects": false
1
+ {
2
+ "_from": "@syncfusion/ej2-richtexteditor@*",
3
+ "_id": "@syncfusion/ej2-richtexteditor@28.1.39",
4
+ "_inBundle": false,
5
+ "_integrity": "sha512-0KqSNDw/9+yUG6PLOvq4wOdLHA1K+yc4GQpGzG8C2ObKSx+5gVmtQFIQ6aVkJMlMIiDf7Z1hnYwjEI9336U1jA==",
6
+ "_location": "/@syncfusion/ej2-richtexteditor",
7
+ "_phantomChildren": {},
8
+ "_requested": {
9
+ "type": "range",
10
+ "registry": true,
11
+ "raw": "@syncfusion/ej2-richtexteditor@*",
12
+ "name": "@syncfusion/ej2-richtexteditor",
13
+ "escapedName": "@syncfusion%2fej2-richtexteditor",
14
+ "scope": "@syncfusion",
15
+ "rawSpec": "*",
16
+ "saveSpec": null,
17
+ "fetchSpec": "*"
18
+ },
19
+ "_requiredBy": [
20
+ "/",
21
+ "/@syncfusion/ej2",
22
+ "/@syncfusion/ej2-angular-richtexteditor",
23
+ "/@syncfusion/ej2-gantt",
24
+ "/@syncfusion/ej2-inplace-editor",
25
+ "/@syncfusion/ej2-react-richtexteditor",
26
+ "/@syncfusion/ej2-vue-richtexteditor"
27
+ ],
28
+ "_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-28.1.39.tgz",
29
+ "_shasum": "4ba1fd2991037302c8e01fa5181ed21d0d8199dc",
30
+ "_spec": "@syncfusion/ej2-richtexteditor@*",
31
+ "_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
32
+ "author": {
33
+ "name": "Syncfusion Inc."
34
+ },
35
+ "bugs": {
36
+ "url": "https://github.com/syncfusion/ej2-javascript-ui-controls/issues"
37
+ },
38
+ "bundleDependencies": false,
39
+ "dependencies": {
40
+ "@syncfusion/ej2-base": "~28.1.33",
41
+ "@syncfusion/ej2-buttons": "~28.1.39",
42
+ "@syncfusion/ej2-dropdowns": "~28.1.41",
43
+ "@syncfusion/ej2-filemanager": "~28.1.39",
44
+ "@syncfusion/ej2-inputs": "~28.1.41",
45
+ "@syncfusion/ej2-navigations": "~28.1.41",
46
+ "@syncfusion/ej2-popups": "~28.1.39",
47
+ "@syncfusion/ej2-splitbuttons": "~28.1.41"
48
+ },
49
+ "deprecated": false,
50
+ "description": "Essential JS 2 RichTextEditor component",
51
+ "devDependencies": {},
52
+ "es2015": "./dist/es6/ej2-richtexteditor.es5.js",
53
+ "homepage": "https://www.syncfusion.com/javascript-ui-controls",
54
+ "keywords": [
55
+ "ej2",
56
+ "syncfusion",
57
+ "HTML5-rich-text-editor",
58
+ "wysiwyg-html-editor",
59
+ "rich-text-editor",
60
+ "markdown-editor",
61
+ "wysiwyg-markdown-editor",
62
+ "editor",
63
+ "rich text editor",
64
+ "editing",
65
+ "rich text",
66
+ "rich editor",
67
+ "text editor",
68
+ "contenteditable",
69
+ "wysiwyg",
70
+ "html",
71
+ "text",
72
+ "markdown"
73
+ ],
74
+ "license": "SEE LICENSE IN license",
75
+ "main": "./dist/ej2-richtexteditor.umd.min.js",
76
+ "module": "./index.js",
77
+ "name": "@syncfusion/ej2-richtexteditor",
78
+ "repository": {
79
+ "type": "git",
80
+ "url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
81
+ },
82
+ "typings": "index.d.ts",
83
+ "version": "28.1.41-640046",
84
+ "sideEffects": false
85
85
  }
@@ -2,11 +2,11 @@
2
2
  * Specifies common models interfaces.
3
3
  *
4
4
  * @hidden
5
-
5
+ * @deprecated
6
6
  */
7
7
  import { EditorMode } from './types';
8
8
  /**
9
-
9
+ * @deprecated
10
10
  */
11
11
  export interface IAdvanceListItem {
12
12
  listStyle?: string;
@@ -14,7 +14,7 @@ export interface IAdvanceListItem {
14
14
  type?: string;
15
15
  }
16
16
  /**
17
-
17
+ * @deprecated
18
18
  */
19
19
  export interface IMarkdownFormatterCallBack {
20
20
  selectedText?: string;
@@ -24,7 +24,7 @@ export interface IMarkdownFormatterCallBack {
24
24
  requestType?: string;
25
25
  }
26
26
  /**
27
-
27
+ * @deprecated
28
28
  */
29
29
  export interface IHtmlFormatterCallBack {
30
30
  selectedNode?: Element;
@@ -37,7 +37,7 @@ export interface IHtmlFormatterCallBack {
37
37
  event?: KeyboardEvent | MouseEvent;
38
38
  }
39
39
  /**
40
-
40
+ * @deprecated
41
41
  */
42
42
  export interface IMarkdownToolbarStatus {
43
43
  OrderedList: boolean;
@@ -45,14 +45,14 @@ export interface IMarkdownToolbarStatus {
45
45
  Formats: string;
46
46
  }
47
47
  /**
48
-
48
+ * @deprecated
49
49
  */
50
50
  export interface IUndoCallBack {
51
51
  callBack?: Function;
52
52
  event?: Object;
53
53
  }
54
54
  /**
55
-
55
+ * @deprecated
56
56
  */
57
57
  export interface IToolbarStatus {
58
58
  bold?: boolean;
@@ -80,7 +80,7 @@ export interface IToolbarStatus {
80
80
  InlineCode?: boolean;
81
81
  }
82
82
  /**
83
-
83
+ * @deprecated
84
84
  * @private
85
85
  *
86
86
  *
@@ -13,11 +13,10 @@ export declare function isIDevice(): boolean;
13
13
  export declare function setEditFrameFocus(editableElement: Element, selector: string): void;
14
14
  /**
15
15
  * @param {string} value - specifies the string value
16
- * @param {string} enterAction - specifies the enter key action API
17
16
  * @returns {void}
18
17
  * @hidden
19
18
  */
20
- export declare function updateTextNode(value: string, enterAction?: string): string;
19
+ export declare function updateTextNode(value: string): string;
21
20
  /**
22
21
  * @param {Node} startChildNodes - specifies the node
23
22
  * @returns {void}
@@ -1,12 +1,7 @@
1
1
  /**
2
2
  * Defines common util methods used by Rich Text Editor.
3
3
  */
4
- import { isNullOrUndefined, Browser, createElement, detach, removeClass } from '@syncfusion/ej2-base';
5
- var inlineNode = ['a', 'abbr', 'acronym', 'audio', 'b', 'bdi', 'bdo', 'big', 'br', 'button',
6
- 'canvas', 'cite', 'code', 'data', 'datalist', 'del', 'dfn', 'em', 'embed', 'font', 'i', 'iframe', 'img', 'input',
7
- 'ins', 'kbd', 'label', 'map', 'mark', 'meter', 'noscript', 'object', 'output', 'picture', 'progress',
8
- 'q', 'ruby', 's', 'samp', 'script', 'select', 'slot', 'small', 'span', 'strong', 'strike', 'sub', 'sup', 'svg',
9
- 'template', 'textarea', 'time', 'u', 'tt', 'var', 'video', 'wbr'];
4
+ import { isNullOrUndefined, Browser, removeClass } from '@syncfusion/ej2-base';
10
5
  /**
11
6
  * @returns {void}
12
7
  * @hidden
@@ -34,109 +29,68 @@ export function setEditFrameFocus(editableElement, selector) {
34
29
  }
35
30
  /**
36
31
  * @param {string} value - specifies the string value
37
- * @param {string} enterAction - specifies the enter key action API
38
32
  * @returns {void}
39
33
  * @hidden
40
34
  */
41
- export function updateTextNode(value, enterAction) {
42
- var tempNode = document.createElement('div');
43
- tempNode.innerHTML = value;
44
- tempNode.setAttribute('class', 'tempDiv');
35
+ export function updateTextNode(value) {
45
36
  var resultElm = document.createElement('div');
46
- var childNodes = tempNode.childNodes;
47
- if (childNodes.length > 0) {
48
- var isPreviousInlineElem = void 0;
49
- var previousParent = void 0;
50
- var paraElm = void 0;
51
- while (tempNode.firstChild) {
52
- if ((tempNode.firstChild.nodeName === '#text' &&
53
- (tempNode.firstChild.textContent.indexOf('\n') < 0 || tempNode.firstChild.textContent.trim() !== '')) ||
54
- inlineNode.indexOf(tempNode.firstChild.nodeName.toLocaleLowerCase()) >= 0) {
55
- if (!isPreviousInlineElem) {
56
- if (enterAction === 'BR') {
57
- resultElm.appendChild(tempNode.firstChild);
58
- previousParent = resultElm;
59
- }
60
- else {
61
- paraElm = createElement('p');
62
- resultElm.appendChild(paraElm);
63
- paraElm.appendChild(tempNode.firstChild);
64
- previousParent = paraElm;
65
- isPreviousInlineElem = true;
66
- }
67
- }
68
- else {
69
- previousParent.appendChild(tempNode.firstChild);
70
- previousParent = paraElm;
71
- isPreviousInlineElem = true;
72
- }
73
- }
74
- else if (tempNode.firstChild.nodeName === '#text' && (tempNode.firstChild.textContent === '\n' ||
75
- (tempNode.firstChild.textContent.indexOf('\n') >= 0 && tempNode.firstChild.textContent.trim() === ''))) {
76
- detach(tempNode.firstChild);
37
+ resultElm.innerHTML = value;
38
+ var tableElm = resultElm.querySelectorAll('table');
39
+ for (var i = 0; i < tableElm.length; i++) {
40
+ if (tableElm[i].classList.length > 0 &&
41
+ !tableElm[i].classList.contains('e-rte-table') && !tableElm[i].classList.contains('e-rte-custom-table')) {
42
+ tableElm[i].classList.add('e-rte-paste-table');
43
+ if (tableElm[i].classList.contains('e-rte-paste-word-table')) {
44
+ tableElm[i].classList.remove('e-rte-paste-word-table');
45
+ continue; // Skiping the removal of the border if the source is from word.
77
46
  }
78
- else {
79
- resultElm.appendChild(tempNode.firstChild);
80
- isPreviousInlineElem = false;
81
- }
82
- }
83
- var tableElm = resultElm.querySelectorAll('table');
84
- for (var i = 0; i < tableElm.length; i++) {
85
- if (tableElm[i].classList.length > 0 &&
86
- !tableElm[i].classList.contains('e-rte-table') && !tableElm[i].classList.contains('e-rte-custom-table')) {
87
- tableElm[i].classList.add('e-rte-paste-table');
88
- if (tableElm[i].classList.contains('e-rte-paste-word-table')) {
89
- tableElm[i].classList.remove('e-rte-paste-word-table');
90
- continue; // Skiping the removal of the border if the source is from word.
47
+ else if (tableElm[i].classList.contains('e-rte-paste-excel-table')) {
48
+ tableElm[i].classList.remove('e-rte-paste-excel-table');
49
+ if (tableElm[i].getAttribute('border') === '0') {
50
+ tableElm[i].removeAttribute('border');
91
51
  }
92
- else if (tableElm[i].classList.contains('e-rte-paste-excel-table')) {
93
- tableElm[i].classList.remove('e-rte-paste-excel-table');
94
- if (tableElm[i].getAttribute('border') === '0') {
95
- tableElm[i].removeAttribute('border');
52
+ var tdElm = tableElm[i].querySelectorAll('td');
53
+ for (var j = 0; j < tdElm.length; j++) {
54
+ if (tdElm[j].style.borderLeft === 'none') {
55
+ tdElm[j].style.removeProperty('border-left');
96
56
  }
97
- var tdElm = tableElm[i].querySelectorAll('td');
98
- for (var j = 0; j < tdElm.length; j++) {
99
- if (tdElm[j].style.borderLeft === 'none') {
100
- tdElm[j].style.removeProperty('border-left');
101
- }
102
- if (tdElm[j].style.borderRight === 'none') {
103
- tdElm[j].style.removeProperty('border-right');
104
- }
105
- if (tdElm[j].style.borderBottom === 'none') {
106
- tdElm[j].style.removeProperty('border-bottom');
107
- }
108
- if (tdElm[j].style.borderTop === 'none') {
109
- tdElm[j].style.removeProperty('border-top');
110
- }
111
- if (tdElm[j].style.border === 'none') {
112
- tdElm[j].style.removeProperty('border');
113
- }
57
+ if (tdElm[j].style.borderRight === 'none') {
58
+ tdElm[j].style.removeProperty('border-right');
59
+ }
60
+ if (tdElm[j].style.borderBottom === 'none') {
61
+ tdElm[j].style.removeProperty('border-bottom');
62
+ }
63
+ if (tdElm[j].style.borderTop === 'none') {
64
+ tdElm[j].style.removeProperty('border-top');
65
+ }
66
+ if (tdElm[j].style.border === 'none') {
67
+ tdElm[j].style.removeProperty('border');
114
68
  }
115
69
  }
116
- else if (tableElm[i].classList.contains('e-rte-paste-onenote-table')) {
117
- tableElm[i].classList.remove('e-rte-paste-onenote-table');
118
- continue;
119
- }
120
- else if (tableElm[i].classList.contains('e-rte-paste-html-table')) {
121
- tableElm[i].classList.remove('e-rte-paste-html-table');
122
- continue;
123
- }
124
- }
125
- }
126
- var imageElm = resultElm.querySelectorAll('img');
127
- for (var i = 0; i < imageElm.length; i++) {
128
- if (imageElm[i].classList.contains('e-rte-image-unsupported')) {
129
- continue; // Should not add the class if the image is Broken.
130
70
  }
131
- if (!imageElm[i].classList.contains('e-rte-image')) {
132
- imageElm[i].classList.add('e-rte-image');
71
+ else if (tableElm[i].classList.contains('e-rte-paste-onenote-table')) {
72
+ tableElm[i].classList.remove('e-rte-paste-onenote-table');
73
+ continue;
133
74
  }
134
- if (!(imageElm[i].classList.contains('e-imginline') ||
135
- imageElm[i].classList.contains('e-imgbreak'))) {
136
- imageElm[i].classList.add('e-imginline');
75
+ else if (tableElm[i].classList.contains('e-rte-paste-html-table')) {
76
+ tableElm[i].classList.remove('e-rte-paste-html-table');
77
+ continue;
137
78
  }
138
79
  }
139
80
  }
81
+ var imageElm = resultElm.querySelectorAll('img');
82
+ for (var i = 0; i < imageElm.length; i++) {
83
+ if (imageElm[i].classList.contains('e-rte-image-unsupported')) {
84
+ continue; // Should not add the class if the image is Broken.
85
+ }
86
+ if (!imageElm[i].classList.contains('e-rte-image')) {
87
+ imageElm[i].classList.add('e-rte-image');
88
+ }
89
+ if (!(imageElm[i].classList.contains('e-imginline') ||
90
+ imageElm[i].classList.contains('e-imgbreak'))) {
91
+ imageElm[i].classList.add('e-imginline');
92
+ }
93
+ }
140
94
  return resultElm.innerHTML;
141
95
  }
142
96
  /**
@@ -3,7 +3,7 @@
3
3
  */
4
4
  /**
5
5
  * @hidden
6
-
6
+ * @deprecated
7
7
  */
8
8
  export declare const CLASS_IMAGE_RIGHT: string;
9
9
  export declare const CLASS_IMAGE_LEFT: string;
@@ -3,7 +3,7 @@
3
3
  */
4
4
  /**
5
5
  * @hidden
6
-
6
+ * @deprecated
7
7
  */
8
8
  export var CLASS_IMAGE_RIGHT = 'e-imgright';
9
9
  export var CLASS_IMAGE_LEFT = 'e-imgleft';
@@ -25,7 +25,7 @@ import { TableSelection } from '../plugin/table-selection';
25
25
  * EditorManager internal component
26
26
  *
27
27
  * @hidden
28
-
28
+ * @deprecated
29
29
  */
30
30
  export declare class EditorManager {
31
31
  currentDocument: HTMLDocument;
@@ -59,7 +59,7 @@ export declare class EditorManager {
59
59
  * Constructor for creating the component
60
60
  *
61
61
  * @hidden
62
-
62
+ * @deprecated
63
63
  * @param {ICommandModel} options - specifies the command Model
64
64
  */
65
65
  constructor(options: ICommandModel);
@@ -82,7 +82,7 @@ export declare class EditorManager {
82
82
  * @param {string} selector - specifies the selector values
83
83
  * @returns {void}
84
84
  * @hidden
85
-
85
+ * @deprecated
86
86
  */
87
87
  execCommand<T>(command: ExecCommand, value: T, event?: Event, callBack?: Function, text?: string | Node, exeValue?: T, selector?: string, enterAction?: string): void;
88
88
  private editorMouseDown;
@@ -27,14 +27,14 @@ import { DOMMethods } from '../plugin/dom-tree';
27
27
  * EditorManager internal component
28
28
  *
29
29
  * @hidden
30
-
30
+ * @deprecated
31
31
  */
32
32
  var EditorManager = /** @class */ (function () {
33
33
  /**
34
34
  * Constructor for creating the component
35
35
  *
36
36
  * @hidden
37
-
37
+ * @deprecated
38
38
  * @param {ICommandModel} options - specifies the command Model
39
39
  */
40
40
  function EditorManager(options) {
@@ -115,7 +115,7 @@ var EditorManager = /** @class */ (function () {
115
115
  * @param {string} selector - specifies the selector values
116
116
  * @returns {void}
117
117
  * @hidden
118
-
118
+ * @deprecated
119
119
  */
120
120
  /* eslint-enable */
121
121
  EditorManager.prototype.execCommand = function (command, value, event, callBack, text, exeValue, selector, enterAction) {
@@ -3,14 +3,14 @@
3
3
  */
4
4
  /**
5
5
  *
6
-
6
+ * @deprecated
7
7
  * @hidden
8
8
  * Defines the context or contexts in which styles will be copied.
9
9
  */
10
10
  export declare type IFormatPainterContext = 'Text' | 'List' | 'Table';
11
11
  /**
12
12
  *
13
-
13
+ * @deprecated
14
14
  * @hidden
15
15
  * Defines the action values for format painter.
16
16
  */