@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
package/.eslintrc.json ADDED
@@ -0,0 +1,244 @@
1
+ {
2
+ "env": {
3
+ "browser": true,
4
+ "es2021": true
5
+ },
6
+ "extends": [
7
+ "eslint:recommended",
8
+ "plugin:@typescript-eslint/recommended",
9
+ "plugin:jsdoc/recommended"
10
+ ],
11
+ "parser": "@typescript-eslint/parser",
12
+ "parserOptions": {
13
+ "ecmaFeatures": { "js": true },
14
+ "ecmaVersion": 2018,
15
+ "project": "./tsconfig.json",
16
+ "sourceType": "module"
17
+ },
18
+ "plugins": [
19
+ "@typescript-eslint",
20
+ "@typescript-eslint/tslint",
21
+ "jsdoc"
22
+ ],
23
+ "rules": {
24
+ "use-isnan": "error",
25
+ "@typescript-eslint/no-inferrable-types": "off",
26
+ "@typescript-eslint/ban-types": ["warn", {
27
+ "types": {
28
+ "Object": false,
29
+ "object": false,
30
+ "{}": false,
31
+ "Function": false
32
+ }
33
+ }],
34
+ "jsdoc/check-tag-names": 0,
35
+ "@typescript-eslint/tslint/config": [
36
+ "error",
37
+ {
38
+ "rules": {
39
+ "ban": true,
40
+ "chai-vague-errors": true,
41
+ "max-func-body-length": [
42
+ true,
43
+ 120,
44
+ {
45
+ "ignore-parameters-to-function-regex": "describe"
46
+ }
47
+ ],
48
+ "missing-jsdoc": true,
49
+ "no-backbone-get-set-outside-model": false,
50
+ "no-cookies": false,
51
+ "no-delete-expression": false,
52
+ "no-disable-auto-sanitization": true,
53
+ "no-duplicate-case": true,
54
+ "no-duplicate-parameter-names": true,
55
+ "no-empty-interfaces": false,
56
+ "no-exec-script": true,
57
+ "no-function-expression": false,
58
+ "no-multiple-var-decl": false,
59
+ "no-string-based-set-immediate": false,
60
+ "no-string-based-set-interval": false,
61
+ "no-unnecessary-bind": false,
62
+ "no-unused-imports": true,
63
+ "no-with-statement": false,
64
+ "prefer-array-literal": false,
65
+ "typedef": [
66
+ true,
67
+ "call-signature",
68
+ "parameter",
69
+ "property-declaration",
70
+ "variable-declaration",
71
+ "arrow-parameter",
72
+ "member-variable-declaration"
73
+ ],
74
+ "use-named-parameter": false,
75
+ "valid-typeof": true,
76
+ "whitespace": [
77
+ true,
78
+ "check-branch",
79
+ "check-decl",
80
+ "check-operator",
81
+ "check-separator",
82
+ "check-type"
83
+ ]
84
+ }
85
+ }
86
+ ],
87
+ "no-control-regex": "error",
88
+ "no-constant-condition": "error",
89
+ "no-invalid-regexp": "error",
90
+ "curly": "error",
91
+ "eol-last": [
92
+ "error",
93
+ "always"
94
+ ],
95
+ "guard-for-in": "error",
96
+ "no-labels": "error",
97
+ "max-len": [
98
+ "error",
99
+ {
100
+ "code": 140,
101
+ "tabWidth": 4,
102
+ "ignoreComments": true,
103
+ "ignoreStrings": true,
104
+ "ignoreTemplateLiterals": true,
105
+ "ignoreRegExpLiterals": true
106
+ }
107
+ ],
108
+ "no-console": [
109
+ "error",
110
+ {
111
+ "allow": [
112
+ "warn",
113
+ "dir",
114
+ "timeLog",
115
+ "assert",
116
+ "clear",
117
+ "count",
118
+ "countReset",
119
+ "group",
120
+ "groupEnd",
121
+ "table",
122
+ "dirxml",
123
+ "error",
124
+ "groupCollapsed",
125
+ "Console",
126
+ "profile",
127
+ "profileEnd",
128
+ "timeStamp",
129
+ "context"
130
+ ]
131
+ }
132
+ ],
133
+ "no-redeclare": [
134
+ "error",
135
+ {
136
+ "builtinGlobals": true
137
+ }
138
+ ],
139
+ "@typescript-eslint/no-parameter-properties": "error",
140
+ "@typescript-eslint/indent": [
141
+ "error",
142
+ 4,
143
+ {
144
+ "CallExpression": {
145
+ "arguments": "first"
146
+ },
147
+ "FunctionDeclaration": {
148
+ "parameters": "first"
149
+ },
150
+ "FunctionExpression": {
151
+ "parameters": "first"
152
+ }
153
+ }
154
+ ],
155
+ "no-debugger": "error",
156
+ "no-eval": "error",
157
+ "no-extra-semi": "error",
158
+ "no-throw-literal": "error",
159
+ "no-fallthrough": "error",
160
+ "comma-dangle": [
161
+ "error",
162
+ "never"
163
+ ],
164
+ "no-trailing-spaces": "error",
165
+ "@typescript-eslint/no-unused-expressions": "error",
166
+ "@typescript-eslint/no-var-requires": "error",
167
+ "one-var": [
168
+ "error",
169
+ "never"
170
+ ],
171
+ "@typescript-eslint/no-explicit-any": "error",
172
+ "no-cond-assign": [
173
+ "error",
174
+ "always"
175
+ ],
176
+ "@typescript-eslint/consistent-type-assertions": "off",
177
+ "jsdoc/check-alignment": "error",
178
+ "no-empty": "error",
179
+ "quotes": [
180
+ "error",
181
+ "single"
182
+ ],
183
+ "semi": [
184
+ "error",
185
+ "always"
186
+ ],
187
+ "eqeqeq": [
188
+ "error",
189
+ "smart"
190
+ ],
191
+ "valid-typeof": [
192
+ "error",
193
+ {
194
+ "requireStringLiterals": true
195
+ }
196
+ ],
197
+ "camelcase": [
198
+ "error",
199
+ {
200
+ "properties": "always",
201
+ "ignoreDestructuring": true,
202
+ "ignoreImports": true
203
+ }
204
+ ],
205
+ "no-irregular-whitespace": [
206
+ "error",
207
+ {
208
+ "skipStrings": true,
209
+ "skipComments": true,
210
+ "skipRegExps": true,
211
+ "skipTemplates": true
212
+ }
213
+ ],
214
+ "valid-jsdoc": [
215
+ "error",
216
+ {
217
+ "prefer": {
218
+ "arg": "param",
219
+ "argument": "param",
220
+ "class": "constructor",
221
+ "return": "returns",
222
+ "virtual": "abstract"
223
+ }
224
+ }
225
+ ],
226
+ "no-var": "error",
227
+ "radix": "error"
228
+ },
229
+ "reportUnusedDisableDirectives": true,
230
+ "overrides": [
231
+ {
232
+ "files": [
233
+ "node_modules",
234
+ "dist",
235
+ "public",
236
+ "coverage",
237
+ "test-report"
238
+ ],
239
+ "rules": {
240
+ "no-unused-expressions": "off"
241
+ }
242
+ }
243
+ ]
244
+ }
@@ -0,0 +1,41 @@
1
+ ### Bug description
2
+
3
+ (Clearly and concisely describe the problem.)
4
+
5
+ ### Root Cause / Analysis
6
+
7
+ (Briefly describe root cause/analysis of the problem. If there is an internal discussion on the forum, provide the link.)
8
+
9
+ ### Reason for not identifying earlier
10
+
11
+ (Explain how it was missed to identify in our earlier testing/development.)
12
+
13
+ ### Is Breaking issue.?
14
+
15
+ (If it is a breaking issue, provide the commit detail which caused this break.)
16
+
17
+ ### Is reported by customer in incident/forum.?
18
+
19
+ (If it is reported by customer, provide the incident or forum details.)
20
+
21
+ ### Solution Description
22
+
23
+ (Describe your code changes in detail for reviewers.)
24
+
25
+ ### Areas affected and ensured
26
+
27
+ (List out the areas are affected by your code changes.)
28
+
29
+ ### E2E report details against this fix
30
+
31
+ (Run E2E locally and mention the details with mail attachment.)
32
+
33
+ ### Did you included unit test cases.?
34
+
35
+ (Provide unit testing spec coverage details.)
36
+
37
+ ### Is there any API name changes.?
38
+
39
+ /label ~bug
40
+ /assign @ScrumMaster
41
+ /cc @ProductOwner
@@ -0,0 +1,27 @@
1
+ ### Feature description
2
+
3
+ (Clearly and concisely describe the feature.)
4
+
5
+ ### Analysis / Design
6
+
7
+ (Briefly describe analysis of the feature. If there is an internal discussion on the Forum, provide the link.)
8
+
9
+ ### Solution Description
10
+
11
+ (Describe your code changes in detail for reviewers.)
12
+
13
+ ### Areas affected and ensured
14
+
15
+ (List out the areas are affected by your code changes.)
16
+
17
+ ### Did you included unit test cases.?
18
+
19
+ (Provide unit testing spec coverage details.)
20
+
21
+ ### Is there any API name changes.?
22
+
23
+ (Provide new or update of API details)
24
+
25
+ /label ~bug
26
+ /assign @ScrumMaster
27
+ /cc @ProductOwner