@syncfusion/ej2-richtexteditor 19.3.45 → 19.3.53-6125
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1019 -977
- package/README.md +67 -67
- package/dist/ej2-richtexteditor.umd.min.js +1 -10
- package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es2015.js +217 -137
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +326 -246
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- package/helpers/e2e/index.js +3 -3
- package/license +9 -9
- package/package.json +75 -75
- package/src/common/interface.d.ts +7 -7
- package/src/editor-manager/base/classes.d.ts +1 -1
- package/src/editor-manager/base/classes.js +1 -1
- package/src/editor-manager/base/editor-manager.d.ts +3 -3
- package/src/editor-manager/base/editor-manager.js +3 -3
- package/src/editor-manager/base/interface.d.ts +7 -7
- package/src/editor-manager/base/types.d.ts +1 -1
- package/src/editor-manager/plugin/alignments.d.ts +2 -2
- package/src/editor-manager/plugin/alignments.js +2 -2
- package/src/editor-manager/plugin/clearformat-exec.d.ts +2 -2
- package/src/editor-manager/plugin/clearformat-exec.js +2 -2
- package/src/editor-manager/plugin/clearformat.d.ts +1 -1
- package/src/editor-manager/plugin/clearformat.js +1 -1
- package/src/editor-manager/plugin/dom-node.d.ts +34 -34
- package/src/editor-manager/plugin/dom-node.js +34 -34
- package/src/editor-manager/plugin/formats.d.ts +2 -2
- package/src/editor-manager/plugin/formats.js +2 -2
- package/src/editor-manager/plugin/image.d.ts +3 -3
- package/src/editor-manager/plugin/image.js +3 -3
- package/src/editor-manager/plugin/indents.d.ts +2 -2
- package/src/editor-manager/plugin/indents.js +2 -2
- package/src/editor-manager/plugin/insert-methods.d.ts +4 -4
- package/src/editor-manager/plugin/insert-methods.js +4 -4
- package/src/editor-manager/plugin/insert-text.d.ts +2 -2
- package/src/editor-manager/plugin/insert-text.js +2 -2
- package/src/editor-manager/plugin/inserthtml-exec.d.ts +2 -2
- package/src/editor-manager/plugin/inserthtml-exec.js +2 -2
- package/src/editor-manager/plugin/inserthtml.d.ts +2 -2
- package/src/editor-manager/plugin/inserthtml.js +13 -3
- package/src/editor-manager/plugin/isformatted.d.ts +8 -8
- package/src/editor-manager/plugin/isformatted.js +8 -8
- package/src/editor-manager/plugin/link.d.ts +2 -2
- package/src/editor-manager/plugin/link.js +2 -2
- package/src/editor-manager/plugin/lists.d.ts +2 -2
- package/src/editor-manager/plugin/lists.js +2 -2
- package/src/editor-manager/plugin/ms-word-clean-up.d.ts +1 -1
- package/src/editor-manager/plugin/ms-word-clean-up.js +1 -1
- package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
- package/src/editor-manager/plugin/nodecutter.js +6 -6
- package/src/editor-manager/plugin/selection-commands.d.ts +1 -1
- package/src/editor-manager/plugin/selection-commands.js +19 -2
- package/src/editor-manager/plugin/selection-exec.d.ts +2 -2
- package/src/editor-manager/plugin/selection-exec.js +2 -2
- package/src/editor-manager/plugin/table.d.ts +2 -2
- package/src/editor-manager/plugin/table.js +2 -2
- package/src/editor-manager/plugin/toolbar-status.d.ts +2 -2
- package/src/editor-manager/plugin/toolbar-status.js +2 -2
- package/src/editor-manager/plugin/undo.d.ts +6 -6
- package/src/editor-manager/plugin/undo.js +6 -6
- package/src/markdown-parser/base/interface.d.ts +10 -10
- package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
- package/src/markdown-parser/base/markdown-parser.js +3 -3
- package/src/markdown-parser/base/types.d.ts +1 -1
- package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
- package/src/markdown-parser/plugin/clearformat.js +2 -2
- package/src/markdown-parser/plugin/formats.d.ts +2 -2
- package/src/markdown-parser/plugin/formats.js +2 -2
- package/src/markdown-parser/plugin/link.d.ts +2 -2
- package/src/markdown-parser/plugin/link.js +2 -2
- package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
- package/src/markdown-parser/plugin/markdown-selection.js +14 -14
- package/src/markdown-parser/plugin/md-selection-formats.d.ts +1 -1
- package/src/markdown-parser/plugin/md-selection-formats.js +1 -1
- package/src/markdown-parser/plugin/table.d.ts +3 -3
- package/src/markdown-parser/plugin/table.js +3 -3
- package/src/markdown-parser/plugin/undo.d.ts +6 -6
- package/src/markdown-parser/plugin/undo.js +6 -6
- package/src/rich-text-editor/actions/base-quick-toolbar.d.ts +9 -9
- package/src/rich-text-editor/actions/base-quick-toolbar.js +9 -9
- package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
- package/src/rich-text-editor/actions/base-toolbar.js +3 -3
- package/src/rich-text-editor/actions/color-picker.d.ts +2 -2
- package/src/rich-text-editor/actions/color-picker.js +2 -2
- package/src/rich-text-editor/actions/count.d.ts +3 -3
- package/src/rich-text-editor/actions/count.js +3 -3
- package/src/rich-text-editor/actions/dropdown-buttons.d.ts +2 -2
- package/src/rich-text-editor/actions/dropdown-buttons.js +12 -2
- package/src/rich-text-editor/actions/enter-key.js +1 -0
- package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
- package/src/rich-text-editor/actions/full-screen.js +3 -3
- package/src/rich-text-editor/actions/html-editor.d.ts +3 -3
- package/src/rich-text-editor/actions/html-editor.js +3 -3
- package/src/rich-text-editor/actions/keyboard-model.d.ts +16 -16
- package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
- package/src/rich-text-editor/actions/keyboard.js +20 -20
- package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
- package/src/rich-text-editor/actions/markdown-editor.js +2 -2
- package/src/rich-text-editor/actions/paste-clean-up.d.ts +1 -1
- package/src/rich-text-editor/actions/paste-clean-up.js +1 -1
- package/src/rich-text-editor/actions/quick-toolbar.d.ts +10 -9
- package/src/rich-text-editor/actions/quick-toolbar.js +29 -11
- package/src/rich-text-editor/actions/toolbar.d.ts +13 -13
- package/src/rich-text-editor/actions/toolbar.js +13 -13
- package/src/rich-text-editor/actions/xhtml-validation.d.ts +1 -1
- package/src/rich-text-editor/actions/xhtml-validation.js +1 -1
- package/src/rich-text-editor/base/classes.d.ts +107 -107
- package/src/rich-text-editor/base/classes.js +107 -107
- package/src/rich-text-editor/base/constant.d.ts +120 -120
- package/src/rich-text-editor/base/constant.js +120 -120
- package/src/rich-text-editor/base/enum.d.ts +1 -1
- package/src/rich-text-editor/base/enum.js +1 -1
- package/src/rich-text-editor/base/interface.d.ts +47 -45
- package/src/rich-text-editor/base/interface.js +1 -1
- package/src/rich-text-editor/base/rich-text-editor-model.d.ts +851 -851
- package/src/rich-text-editor/base/rich-text-editor.d.ts +53 -53
- package/src/rich-text-editor/base/rich-text-editor.js +65 -66
- package/src/rich-text-editor/base/util.d.ts +1 -1
- package/src/rich-text-editor/base/util.js +1 -1
- package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
- package/src/rich-text-editor/formatter/formatter.js +11 -11
- package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
- package/src/rich-text-editor/formatter/html-formatter.js +15 -15
- package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
- package/src/rich-text-editor/formatter/markdown-formatter.js +15 -15
- package/src/rich-text-editor/models/iframe-settings-model.d.ts +26 -26
- package/src/rich-text-editor/models/iframe-settings.js +19 -19
- package/src/rich-text-editor/models/inline-mode-model.d.ts +11 -11
- package/src/rich-text-editor/models/inline-mode.js +19 -19
- package/src/rich-text-editor/models/toolbar-settings-model.d.ts +439 -439
- package/src/rich-text-editor/models/toolbar-settings.d.ts +1 -1
- package/src/rich-text-editor/models/toolbar-settings.js +19 -19
- package/src/rich-text-editor/renderer/content-renderer.d.ts +6 -6
- package/src/rich-text-editor/renderer/content-renderer.js +6 -6
- package/src/rich-text-editor/renderer/dialog-renderer.d.ts +2 -2
- package/src/rich-text-editor/renderer/dialog-renderer.js +2 -2
- package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
- package/src/rich-text-editor/renderer/iframe-content-renderer.js +17 -17
- package/src/rich-text-editor/renderer/image-module.d.ts +3 -1
- package/src/rich-text-editor/renderer/image-module.js +24 -3
- package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/link-module.js +4 -3
- package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
- package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
- package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
- package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
- package/src/rich-text-editor/renderer/render.d.ts +2 -2
- package/src/rich-text-editor/renderer/render.js +2 -2
- package/src/rich-text-editor/renderer/table-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/table-module.js +4 -3
- package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +9 -9
- package/src/rich-text-editor/renderer/toolbar-renderer.js +12 -11
- package/src/rich-text-editor/renderer/view-source.d.ts +6 -6
- package/src/rich-text-editor/renderer/view-source.js +6 -6
- package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
- package/src/rich-text-editor/services/renderer-factory.js +3 -3
- package/src/rich-text-editor/services/service-locator.d.ts +3 -3
- package/src/rich-text-editor/services/service-locator.js +3 -3
- package/src/selection/selection.d.ts +22 -22
- package/src/selection/selection.js +24 -23
- package/styles/_all.scss +2 -2
- package/styles/bootstrap-dark.css +4 -0
- package/styles/bootstrap.css +4 -0
- package/styles/bootstrap4.css +4 -0
- package/styles/bootstrap5-dark.css +4 -0
- package/styles/bootstrap5.css +4 -0
- package/styles/fabric-dark.css +4 -0
- package/styles/fabric.css +4 -0
- package/styles/highcontrast-light.css +4 -0
- package/styles/highcontrast.css +4 -0
- package/styles/material-dark.css +4 -0
- package/styles/material.css +4 -0
- package/styles/rich-text-editor/_all.scss +2 -2
- package/styles/rich-text-editor/_bootstrap-dark-definition.scss +187 -187
- package/styles/rich-text-editor/_bootstrap-definition.scss +244 -244
- package/styles/rich-text-editor/_bootstrap4-definition.scss +370 -370
- package/styles/rich-text-editor/_bootstrap5-definition.scss +168 -168
- package/styles/rich-text-editor/_fabric-dark-definition.scss +168 -168
- package/styles/rich-text-editor/_fabric-definition.scss +167 -167
- package/styles/rich-text-editor/_highcontrast-definition.scss +167 -167
- package/styles/rich-text-editor/_highcontrast-light-definition.scss +167 -167
- package/styles/rich-text-editor/_layout.scss +1639 -1635
- package/styles/rich-text-editor/_material-dark-definition.scss +172 -172
- package/styles/rich-text-editor/_material-definition.scss +169 -169
- package/styles/rich-text-editor/_tailwind-definition.scss +167 -167
- package/styles/rich-text-editor/_theme.scss +626 -626
- package/styles/rich-text-editor/bootstrap-dark.css +4 -0
- package/styles/rich-text-editor/bootstrap.css +4 -0
- package/styles/rich-text-editor/bootstrap4.css +4 -0
- package/styles/rich-text-editor/bootstrap5-dark.css +4 -0
- package/styles/rich-text-editor/bootstrap5.css +4 -0
- package/styles/rich-text-editor/fabric-dark.css +4 -0
- package/styles/rich-text-editor/fabric.css +4 -0
- package/styles/rich-text-editor/highcontrast-light.css +4 -0
- package/styles/rich-text-editor/highcontrast.css +4 -0
- package/styles/rich-text-editor/icons/_bootstrap-dark.scss +304 -304
- package/styles/rich-text-editor/icons/_bootstrap.scss +304 -304
- package/styles/rich-text-editor/icons/_bootstrap4.scss +304 -304
- package/styles/rich-text-editor/icons/_bootstrap5.scss +303 -303
- package/styles/rich-text-editor/icons/_fabric-dark.scss +304 -304
- package/styles/rich-text-editor/icons/_fabric.scss +304 -304
- package/styles/rich-text-editor/icons/_highcontrast-light.scss +304 -304
- package/styles/rich-text-editor/icons/_highcontrast.scss +304 -304
- package/styles/rich-text-editor/icons/_material-dark.scss +304 -304
- package/styles/rich-text-editor/icons/_material.scss +304 -304
- package/styles/rich-text-editor/icons/_tailwind.scss +304 -304
- package/styles/rich-text-editor/material-dark.css +4 -0
- package/styles/rich-text-editor/material.css +4 -0
- package/styles/rich-text-editor/tailwind-dark.css +4 -0
- package/styles/rich-text-editor/tailwind.css +4 -0
- package/styles/tailwind-dark.css +4 -0
- package/styles/tailwind.css +4 -0
- package/.eslintrc.json +0 -244
- package/dist/global/ej2-richtexteditor.min.js +0 -11
- package/dist/global/ej2-richtexteditor.min.js.map +0 -1
- package/dist/global/index.d.ts +0 -14
- package/tslint.json +0 -111
|
@@ -5,7 +5,7 @@ import { isIDevice, setEditFrameFocus } from '../../common/util';
|
|
|
5
5
|
* Indents internal component
|
|
6
6
|
*
|
|
7
7
|
* @hidden
|
|
8
|
-
|
|
8
|
+
* @deprecated
|
|
9
9
|
*/
|
|
10
10
|
var Indents = /** @class */ (function () {
|
|
11
11
|
/**
|
|
@@ -13,7 +13,7 @@ var Indents = /** @class */ (function () {
|
|
|
13
13
|
*
|
|
14
14
|
* @param {EditorManager} parent - specifies the parent element
|
|
15
15
|
* @hidden
|
|
16
|
-
|
|
16
|
+
* @deprecated
|
|
17
17
|
*/
|
|
18
18
|
function Indents(parent) {
|
|
19
19
|
this.indentValue = 20;
|
|
@@ -12,7 +12,7 @@ export declare class InsertMethods {
|
|
|
12
12
|
* @param {boolean} isAfter - specifies the boolean value
|
|
13
13
|
* @returns {Text} - returns the text value
|
|
14
14
|
* @hidden
|
|
15
|
-
|
|
15
|
+
* @deprecated
|
|
16
16
|
*/
|
|
17
17
|
static WrapBefore(textNode: Text, parentNode: HTMLElement, isAfter?: boolean): Text;
|
|
18
18
|
/**
|
|
@@ -22,7 +22,7 @@ export declare class InsertMethods {
|
|
|
22
22
|
* @param {HTMLElement} parentNode - specifies the parent node.
|
|
23
23
|
* @returns {HTMLElement} - returns the element
|
|
24
24
|
* @hidden
|
|
25
|
-
|
|
25
|
+
* @deprecated
|
|
26
26
|
*/
|
|
27
27
|
static Wrap(childNode: HTMLElement, parentNode: HTMLElement): HTMLElement;
|
|
28
28
|
/**
|
|
@@ -31,7 +31,7 @@ export declare class InsertMethods {
|
|
|
31
31
|
* @param {Node} node - specifies the node element.
|
|
32
32
|
* @returns {Node[]} - returns the array of value
|
|
33
33
|
* @hidden
|
|
34
|
-
|
|
34
|
+
* @deprecated
|
|
35
35
|
*/
|
|
36
36
|
static unwrap(node: Node | HTMLElement): Node[];
|
|
37
37
|
/**
|
|
@@ -42,7 +42,7 @@ export declare class InsertMethods {
|
|
|
42
42
|
* @param {boolean} isAfter - specifies the boolean value
|
|
43
43
|
* @returns {void}
|
|
44
44
|
* @hidden
|
|
45
|
-
|
|
45
|
+
* @deprecated
|
|
46
46
|
*/
|
|
47
47
|
static AppendBefore(textNode: HTMLElement | Text | DocumentFragment, parentNode: HTMLElement | Text | DocumentFragment, isAfter?: boolean): HTMLElement | Text | DocumentFragment;
|
|
48
48
|
}
|
|
@@ -14,7 +14,7 @@ var InsertMethods = /** @class */ (function () {
|
|
|
14
14
|
* @param {boolean} isAfter - specifies the boolean value
|
|
15
15
|
* @returns {Text} - returns the text value
|
|
16
16
|
* @hidden
|
|
17
|
-
|
|
17
|
+
* @deprecated
|
|
18
18
|
*/
|
|
19
19
|
InsertMethods.WrapBefore = function (textNode, parentNode, isAfter) {
|
|
20
20
|
parentNode.innerText = textNode.textContent;
|
|
@@ -32,7 +32,7 @@ var InsertMethods = /** @class */ (function () {
|
|
|
32
32
|
* @param {HTMLElement} parentNode - specifies the parent node.
|
|
33
33
|
* @returns {HTMLElement} - returns the element
|
|
34
34
|
* @hidden
|
|
35
|
-
|
|
35
|
+
* @deprecated
|
|
36
36
|
*/
|
|
37
37
|
InsertMethods.Wrap = function (childNode, parentNode) {
|
|
38
38
|
this.AppendBefore(parentNode, childNode);
|
|
@@ -45,7 +45,7 @@ var InsertMethods = /** @class */ (function () {
|
|
|
45
45
|
* @param {Node} node - specifies the node element.
|
|
46
46
|
* @returns {Node[]} - returns the array of value
|
|
47
47
|
* @hidden
|
|
48
|
-
|
|
48
|
+
* @deprecated
|
|
49
49
|
*/
|
|
50
50
|
InsertMethods.unwrap = function (node) {
|
|
51
51
|
var parent = node.parentNode;
|
|
@@ -64,7 +64,7 @@ var InsertMethods = /** @class */ (function () {
|
|
|
64
64
|
* @param {boolean} isAfter - specifies the boolean value
|
|
65
65
|
* @returns {void}
|
|
66
66
|
* @hidden
|
|
67
|
-
|
|
67
|
+
* @deprecated
|
|
68
68
|
*/
|
|
69
69
|
InsertMethods.AppendBefore = function (textNode, parentNode, isAfter) {
|
|
70
70
|
return (parentNode.parentNode) ? ((!isAfter) ? parentNode.parentNode.insertBefore(textNode, parentNode)
|
|
@@ -3,7 +3,7 @@ import { EditorManager } from '../base/editor-manager';
|
|
|
3
3
|
* Insert a Text Node or Text
|
|
4
4
|
*
|
|
5
5
|
* @hidden
|
|
6
|
-
|
|
6
|
+
* @deprecated
|
|
7
7
|
*/
|
|
8
8
|
export declare class InsertTextExec {
|
|
9
9
|
private parent;
|
|
@@ -12,7 +12,7 @@ export declare class InsertTextExec {
|
|
|
12
12
|
*
|
|
13
13
|
* @param {EditorManager} parent - specifies the parent element
|
|
14
14
|
* @hidden
|
|
15
|
-
|
|
15
|
+
* @deprecated
|
|
16
16
|
*/
|
|
17
17
|
constructor(parent: EditorManager);
|
|
18
18
|
private addEventListener;
|
|
@@ -4,7 +4,7 @@ import { InsertHtml } from './inserthtml';
|
|
|
4
4
|
* Insert a Text Node or Text
|
|
5
5
|
*
|
|
6
6
|
* @hidden
|
|
7
|
-
|
|
7
|
+
* @deprecated
|
|
8
8
|
*/
|
|
9
9
|
var InsertTextExec = /** @class */ (function () {
|
|
10
10
|
/**
|
|
@@ -12,7 +12,7 @@ var InsertTextExec = /** @class */ (function () {
|
|
|
12
12
|
*
|
|
13
13
|
* @param {EditorManager} parent - specifies the parent element
|
|
14
14
|
* @hidden
|
|
15
|
-
|
|
15
|
+
* @deprecated
|
|
16
16
|
*/
|
|
17
17
|
function InsertTextExec(parent) {
|
|
18
18
|
this.parent = parent;
|
|
@@ -3,7 +3,7 @@ import { EditorManager } from './../base/editor-manager';
|
|
|
3
3
|
* Selection EXEC internal component
|
|
4
4
|
*
|
|
5
5
|
* @hidden
|
|
6
|
-
|
|
6
|
+
* @deprecated
|
|
7
7
|
*/
|
|
8
8
|
export declare class InsertHtmlExec {
|
|
9
9
|
private parent;
|
|
@@ -12,7 +12,7 @@ export declare class InsertHtmlExec {
|
|
|
12
12
|
*
|
|
13
13
|
* @param {EditorManager} parent - sepcifies the parent element
|
|
14
14
|
* @hidden
|
|
15
|
-
|
|
15
|
+
* @deprecated
|
|
16
16
|
*/
|
|
17
17
|
constructor(parent: EditorManager);
|
|
18
18
|
private addEventListener;
|
|
@@ -4,7 +4,7 @@ import { InsertHtml } from './inserthtml';
|
|
|
4
4
|
* Selection EXEC internal component
|
|
5
5
|
*
|
|
6
6
|
* @hidden
|
|
7
|
-
|
|
7
|
+
* @deprecated
|
|
8
8
|
*/
|
|
9
9
|
var InsertHtmlExec = /** @class */ (function () {
|
|
10
10
|
/**
|
|
@@ -12,7 +12,7 @@ var InsertHtmlExec = /** @class */ (function () {
|
|
|
12
12
|
*
|
|
13
13
|
* @param {EditorManager} parent - sepcifies the parent element
|
|
14
14
|
* @hidden
|
|
15
|
-
|
|
15
|
+
* @deprecated
|
|
16
16
|
*/
|
|
17
17
|
function InsertHtmlExec(parent) {
|
|
18
18
|
this.parent = parent;
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
* Insert a HTML Node or Text
|
|
3
3
|
*
|
|
4
4
|
* @hidden
|
|
5
|
-
|
|
5
|
+
* @deprecated
|
|
6
6
|
*/
|
|
7
7
|
export declare class InsertHtml {
|
|
8
8
|
/**
|
|
9
9
|
* Insert method
|
|
10
10
|
*
|
|
11
11
|
* @hidden
|
|
12
|
-
|
|
12
|
+
* @deprecated
|
|
13
13
|
*/
|
|
14
14
|
static inlineNode: string[];
|
|
15
15
|
static Insert(docElement: Document, insertNode: Node | string, editNode?: Element, isExternal?: boolean): void;
|
|
@@ -8,7 +8,7 @@ import { updateTextNode } from './../../common/util';
|
|
|
8
8
|
* Insert a HTML Node or Text
|
|
9
9
|
*
|
|
10
10
|
* @hidden
|
|
11
|
-
|
|
11
|
+
* @deprecated
|
|
12
12
|
*/
|
|
13
13
|
var InsertHtml = /** @class */ (function () {
|
|
14
14
|
function InsertHtml() {
|
|
@@ -370,7 +370,17 @@ var InsertHtml = /** @class */ (function () {
|
|
|
370
370
|
tempSpan.parentNode.replaceChild(node, tempSpan);
|
|
371
371
|
}
|
|
372
372
|
else {
|
|
373
|
-
var
|
|
373
|
+
var currentNode = nodes[nodes.length - 1];
|
|
374
|
+
var splitedElm = void 0;
|
|
375
|
+
if ((currentNode.nodeName === 'BR' || currentNode.nodeName === 'HR') && !isNOU(currentNode.parentElement) &&
|
|
376
|
+
currentNode.parentElement.textContent.trim().length === 0 && !node.classList.contains('pasteContent')) {
|
|
377
|
+
//let newChildElem: HTMLElement = createElement(currentNode.nodeName);
|
|
378
|
+
//currentNode.parentElement.insertBefore(newChildElem, currentNode);
|
|
379
|
+
splitedElm = currentNode;
|
|
380
|
+
}
|
|
381
|
+
else {
|
|
382
|
+
splitedElm = nodeCutter.GetSpliceNode(range, blockNode);
|
|
383
|
+
}
|
|
374
384
|
splitedElm.parentNode.replaceChild(node, splitedElm);
|
|
375
385
|
}
|
|
376
386
|
}
|
|
@@ -448,7 +458,7 @@ var InsertHtml = /** @class */ (function () {
|
|
|
448
458
|
* Insert method
|
|
449
459
|
*
|
|
450
460
|
* @hidden
|
|
451
|
-
|
|
461
|
+
* @deprecated
|
|
452
462
|
*/
|
|
453
463
|
InsertHtml.inlineNode = ['a', 'abbr', 'acronym', 'audio', 'b', 'bdi', 'bdo', 'big', 'br', 'button',
|
|
454
464
|
'canvas', 'cite', 'code', 'data', 'datalist', 'del', 'dfn', 'em', 'embed', 'font', 'i', 'iframe', 'img', 'input',
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Is formatted or not.
|
|
3
3
|
*
|
|
4
4
|
* @hidden
|
|
5
|
-
|
|
5
|
+
* @deprecated
|
|
6
6
|
*/
|
|
7
7
|
export declare class IsFormatted {
|
|
8
8
|
static inlineTags: string[];
|
|
@@ -14,7 +14,7 @@ export declare class IsFormatted {
|
|
|
14
14
|
* @param {Node} endNode - specifies the end node
|
|
15
15
|
* @returns {Node} - returns the node
|
|
16
16
|
* @hidden
|
|
17
|
-
|
|
17
|
+
* @deprecated
|
|
18
18
|
*/
|
|
19
19
|
getFormattedNode(node: Node, format: string, endNode: Node): Node;
|
|
20
20
|
private getFormatParent;
|
|
@@ -25,7 +25,7 @@ export declare class IsFormatted {
|
|
|
25
25
|
* @param {Node} node - specifies the node value
|
|
26
26
|
* @returns {boolean} - returns the boolean value
|
|
27
27
|
* @hidden
|
|
28
|
-
|
|
28
|
+
* @deprecated
|
|
29
29
|
*/
|
|
30
30
|
static isBold(node: Node): boolean;
|
|
31
31
|
/**
|
|
@@ -34,7 +34,7 @@ export declare class IsFormatted {
|
|
|
34
34
|
* @param {Node} node - specifies the node value
|
|
35
35
|
* @returns {boolean} - returns the boolean value
|
|
36
36
|
* @hidden
|
|
37
|
-
|
|
37
|
+
* @deprecated
|
|
38
38
|
*/
|
|
39
39
|
static isItalic(node: Node): boolean;
|
|
40
40
|
/**
|
|
@@ -43,7 +43,7 @@ export declare class IsFormatted {
|
|
|
43
43
|
* @param {Node} node - specifies the node value
|
|
44
44
|
* @returns {boolean} - returns the boolean value
|
|
45
45
|
* @hidden
|
|
46
|
-
|
|
46
|
+
* @deprecated
|
|
47
47
|
*/
|
|
48
48
|
static isUnderline(node: Node): boolean;
|
|
49
49
|
/**
|
|
@@ -52,7 +52,7 @@ export declare class IsFormatted {
|
|
|
52
52
|
* @param {Node} node - specifies the node value
|
|
53
53
|
* @returns {boolean} - returns the boolean value
|
|
54
54
|
* @hidden
|
|
55
|
-
|
|
55
|
+
* @deprecated
|
|
56
56
|
*/
|
|
57
57
|
static isStrikethrough(node: Node): boolean;
|
|
58
58
|
/**
|
|
@@ -61,7 +61,7 @@ export declare class IsFormatted {
|
|
|
61
61
|
* @param {Node} node - specifies the node value
|
|
62
62
|
* @returns {boolean} - returns the boolean value
|
|
63
63
|
* @hidden
|
|
64
|
-
|
|
64
|
+
* @deprecated
|
|
65
65
|
*/
|
|
66
66
|
static isSuperscript(node: Node): boolean;
|
|
67
67
|
/**
|
|
@@ -70,7 +70,7 @@ export declare class IsFormatted {
|
|
|
70
70
|
* @param {Node} node - specifies the node value
|
|
71
71
|
* @returns {boolean} - returns the boolean value
|
|
72
72
|
* @hidden
|
|
73
|
-
|
|
73
|
+
* @deprecated
|
|
74
74
|
*/
|
|
75
75
|
static isSubscript(node: Node): boolean;
|
|
76
76
|
private isFontColor;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Is formatted or not.
|
|
3
3
|
*
|
|
4
4
|
* @hidden
|
|
5
|
-
|
|
5
|
+
* @deprecated
|
|
6
6
|
*/
|
|
7
7
|
var IsFormatted = /** @class */ (function () {
|
|
8
8
|
function IsFormatted() {
|
|
@@ -15,7 +15,7 @@ var IsFormatted = /** @class */ (function () {
|
|
|
15
15
|
* @param {Node} endNode - specifies the end node
|
|
16
16
|
* @returns {Node} - returns the node
|
|
17
17
|
* @hidden
|
|
18
|
-
|
|
18
|
+
* @deprecated
|
|
19
19
|
*/
|
|
20
20
|
IsFormatted.prototype.getFormattedNode = function (node, format, endNode) {
|
|
21
21
|
var parentNode = this.getFormatParent(node, format, endNode);
|
|
@@ -62,7 +62,7 @@ var IsFormatted = /** @class */ (function () {
|
|
|
62
62
|
* @param {Node} node - specifies the node value
|
|
63
63
|
* @returns {boolean} - returns the boolean value
|
|
64
64
|
* @hidden
|
|
65
|
-
|
|
65
|
+
* @deprecated
|
|
66
66
|
*/
|
|
67
67
|
IsFormatted.isBold = function (node) {
|
|
68
68
|
var validTags = ['strong', 'b'];
|
|
@@ -83,7 +83,7 @@ var IsFormatted = /** @class */ (function () {
|
|
|
83
83
|
* @param {Node} node - specifies the node value
|
|
84
84
|
* @returns {boolean} - returns the boolean value
|
|
85
85
|
* @hidden
|
|
86
|
-
|
|
86
|
+
* @deprecated
|
|
87
87
|
*/
|
|
88
88
|
IsFormatted.isItalic = function (node) {
|
|
89
89
|
var validTags = ['em', 'i'];
|
|
@@ -104,7 +104,7 @@ var IsFormatted = /** @class */ (function () {
|
|
|
104
104
|
* @param {Node} node - specifies the node value
|
|
105
105
|
* @returns {boolean} - returns the boolean value
|
|
106
106
|
* @hidden
|
|
107
|
-
|
|
107
|
+
* @deprecated
|
|
108
108
|
*/
|
|
109
109
|
IsFormatted.isUnderline = function (node) {
|
|
110
110
|
var validTags = ['u'];
|
|
@@ -125,7 +125,7 @@ var IsFormatted = /** @class */ (function () {
|
|
|
125
125
|
* @param {Node} node - specifies the node value
|
|
126
126
|
* @returns {boolean} - returns the boolean value
|
|
127
127
|
* @hidden
|
|
128
|
-
|
|
128
|
+
* @deprecated
|
|
129
129
|
*/
|
|
130
130
|
IsFormatted.isStrikethrough = function (node) {
|
|
131
131
|
var validTags = ['del', 'strike'];
|
|
@@ -146,7 +146,7 @@ var IsFormatted = /** @class */ (function () {
|
|
|
146
146
|
* @param {Node} node - specifies the node value
|
|
147
147
|
* @returns {boolean} - returns the boolean value
|
|
148
148
|
* @hidden
|
|
149
|
-
|
|
149
|
+
* @deprecated
|
|
150
150
|
*/
|
|
151
151
|
IsFormatted.isSuperscript = function (node) {
|
|
152
152
|
var validTags = ['sup'];
|
|
@@ -163,7 +163,7 @@ var IsFormatted = /** @class */ (function () {
|
|
|
163
163
|
* @param {Node} node - specifies the node value
|
|
164
164
|
* @returns {boolean} - returns the boolean value
|
|
165
165
|
* @hidden
|
|
166
|
-
|
|
166
|
+
* @deprecated
|
|
167
167
|
*/
|
|
168
168
|
IsFormatted.isSubscript = function (node) {
|
|
169
169
|
var validTags = ['sub'];
|
|
@@ -3,7 +3,7 @@ import { EditorManager } from './../base/editor-manager';
|
|
|
3
3
|
* Link internal component
|
|
4
4
|
*
|
|
5
5
|
* @hidden
|
|
6
|
-
|
|
6
|
+
* @deprecated
|
|
7
7
|
*/
|
|
8
8
|
export declare class LinkCommand {
|
|
9
9
|
private parent;
|
|
@@ -12,7 +12,7 @@ export declare class LinkCommand {
|
|
|
12
12
|
*
|
|
13
13
|
* @param {EditorManager} parent - specifies the editor manager
|
|
14
14
|
* @hidden
|
|
15
|
-
|
|
15
|
+
* @deprecated
|
|
16
16
|
*/
|
|
17
17
|
constructor(parent: EditorManager);
|
|
18
18
|
private addEventListener;
|
|
@@ -7,7 +7,7 @@ import { createElement, isNullOrUndefined as isNOU, closest } from '@syncfusion/
|
|
|
7
7
|
* Link internal component
|
|
8
8
|
*
|
|
9
9
|
* @hidden
|
|
10
|
-
|
|
10
|
+
* @deprecated
|
|
11
11
|
*/
|
|
12
12
|
var LinkCommand = /** @class */ (function () {
|
|
13
13
|
/**
|
|
@@ -15,7 +15,7 @@ var LinkCommand = /** @class */ (function () {
|
|
|
15
15
|
*
|
|
16
16
|
* @param {EditorManager} parent - specifies the editor manager
|
|
17
17
|
* @hidden
|
|
18
|
-
|
|
18
|
+
* @deprecated
|
|
19
19
|
*/
|
|
20
20
|
function LinkCommand(parent) {
|
|
21
21
|
this.parent = parent;
|
|
@@ -3,7 +3,7 @@ import { EditorManager } from './../base/editor-manager';
|
|
|
3
3
|
* Lists internal component
|
|
4
4
|
*
|
|
5
5
|
* @hidden
|
|
6
|
-
|
|
6
|
+
* @deprecated
|
|
7
7
|
*/
|
|
8
8
|
export declare class Lists {
|
|
9
9
|
private parent;
|
|
@@ -17,7 +17,7 @@ export declare class Lists {
|
|
|
17
17
|
*
|
|
18
18
|
* @param {EditorManager} parent - specifies the parent element
|
|
19
19
|
* @hidden
|
|
20
|
-
|
|
20
|
+
* @deprecated
|
|
21
21
|
*/
|
|
22
22
|
constructor(parent: EditorManager);
|
|
23
23
|
private addEventListener;
|
|
@@ -9,7 +9,7 @@ import { isNullOrUndefined, isNullOrUndefined as isNOU, closest } from '@syncfus
|
|
|
9
9
|
* Lists internal component
|
|
10
10
|
*
|
|
11
11
|
* @hidden
|
|
12
|
-
|
|
12
|
+
* @deprecated
|
|
13
13
|
*/
|
|
14
14
|
var Lists = /** @class */ (function () {
|
|
15
15
|
/**
|
|
@@ -17,7 +17,7 @@ var Lists = /** @class */ (function () {
|
|
|
17
17
|
*
|
|
18
18
|
* @param {EditorManager} parent - specifies the parent element
|
|
19
19
|
* @hidden
|
|
20
|
-
|
|
20
|
+
* @deprecated
|
|
21
21
|
*/
|
|
22
22
|
function Lists(parent) {
|
|
23
23
|
this.parent = parent;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Split the Node based on selection
|
|
3
3
|
*
|
|
4
4
|
* @hidden
|
|
5
|
-
|
|
5
|
+
* @deprecated
|
|
6
6
|
*/
|
|
7
7
|
export declare class NodeCutter {
|
|
8
8
|
enterAction: string;
|
|
@@ -15,7 +15,7 @@ export declare class NodeCutter {
|
|
|
15
15
|
* @param {HTMLElement} node - specifies the node element.
|
|
16
16
|
* @returns {Node} - returns the node value
|
|
17
17
|
* @hidden
|
|
18
|
-
|
|
18
|
+
* @deprecated
|
|
19
19
|
*/
|
|
20
20
|
GetSpliceNode(range: Range, node: HTMLElement): Node;
|
|
21
21
|
/**
|
|
@@ -24,7 +24,7 @@ export declare class NodeCutter {
|
|
|
24
24
|
* @param {boolean} isCollapsed - specifies the boolean value
|
|
25
25
|
* @returns {HTMLElement} - returns the element
|
|
26
26
|
* @hidden
|
|
27
|
-
|
|
27
|
+
* @deprecated
|
|
28
28
|
*/
|
|
29
29
|
SplitNode(range: Range, node: HTMLElement, isCollapsed: boolean): HTMLElement;
|
|
30
30
|
private isImgElm;
|
|
@@ -38,7 +38,7 @@ export declare class NodeCutter {
|
|
|
38
38
|
* @param {Node} node - specifies the node.
|
|
39
39
|
* @returns {Range} - returns the range value
|
|
40
40
|
* @hidden
|
|
41
|
-
|
|
41
|
+
* @deprecated
|
|
42
42
|
*/
|
|
43
43
|
GetCursorRange(docElement: Document, range: Range, node: Node): Range;
|
|
44
44
|
/**
|
|
@@ -49,7 +49,7 @@ export declare class NodeCutter {
|
|
|
49
49
|
* @param {Node} node - specifies the node.
|
|
50
50
|
* @returns {Node} - returns the node value
|
|
51
51
|
* @hidden
|
|
52
|
-
|
|
52
|
+
* @deprecated
|
|
53
53
|
*/
|
|
54
54
|
GetCursorNode(docElement: Document, range: Range, node: Node): Node;
|
|
55
55
|
/**
|
|
@@ -58,7 +58,7 @@ export declare class NodeCutter {
|
|
|
58
58
|
* @param {string} line - specifies the string value.
|
|
59
59
|
* @returns {string} - returns the string
|
|
60
60
|
* @hidden
|
|
61
|
-
|
|
61
|
+
* @deprecated
|
|
62
62
|
*/
|
|
63
63
|
TrimLineBreak(line: string): string;
|
|
64
64
|
}
|
|
@@ -5,7 +5,7 @@ import { InsertMethods } from './insert-methods';
|
|
|
5
5
|
* Split the Node based on selection
|
|
6
6
|
*
|
|
7
7
|
* @hidden
|
|
8
|
-
|
|
8
|
+
* @deprecated
|
|
9
9
|
*/
|
|
10
10
|
var NodeCutter = /** @class */ (function () {
|
|
11
11
|
function NodeCutter() {
|
|
@@ -21,7 +21,7 @@ var NodeCutter = /** @class */ (function () {
|
|
|
21
21
|
* @param {HTMLElement} node - specifies the node element.
|
|
22
22
|
* @returns {Node} - returns the node value
|
|
23
23
|
* @hidden
|
|
24
|
-
|
|
24
|
+
* @deprecated
|
|
25
25
|
*/
|
|
26
26
|
NodeCutter.prototype.GetSpliceNode = function (range, node) {
|
|
27
27
|
node = this.SplitNode(range, node, true);
|
|
@@ -34,7 +34,7 @@ var NodeCutter = /** @class */ (function () {
|
|
|
34
34
|
* @param {boolean} isCollapsed - specifies the boolean value
|
|
35
35
|
* @returns {HTMLElement} - returns the element
|
|
36
36
|
* @hidden
|
|
37
|
-
|
|
37
|
+
* @deprecated
|
|
38
38
|
*/
|
|
39
39
|
NodeCutter.prototype.SplitNode = function (range, node, isCollapsed) {
|
|
40
40
|
if (node) {
|
|
@@ -144,7 +144,7 @@ var NodeCutter = /** @class */ (function () {
|
|
|
144
144
|
* @param {Node} node - specifies the node.
|
|
145
145
|
* @returns {Range} - returns the range value
|
|
146
146
|
* @hidden
|
|
147
|
-
|
|
147
|
+
* @deprecated
|
|
148
148
|
*/
|
|
149
149
|
NodeCutter.prototype.GetCursorRange = function (docElement, range, node) {
|
|
150
150
|
var cursorRange = docElement.createRange();
|
|
@@ -188,7 +188,7 @@ var NodeCutter = /** @class */ (function () {
|
|
|
188
188
|
* @param {Node} node - specifies the node.
|
|
189
189
|
* @returns {Node} - returns the node value
|
|
190
190
|
* @hidden
|
|
191
|
-
|
|
191
|
+
* @deprecated
|
|
192
192
|
*/
|
|
193
193
|
NodeCutter.prototype.GetCursorNode = function (docElement, range, node) {
|
|
194
194
|
return this.GetSpliceNode(this.GetCursorRange(docElement, range, node), node);
|
|
@@ -199,7 +199,7 @@ var NodeCutter = /** @class */ (function () {
|
|
|
199
199
|
* @param {string} line - specifies the string value.
|
|
200
200
|
* @returns {string} - returns the string
|
|
201
201
|
* @hidden
|
|
202
|
-
|
|
202
|
+
* @deprecated
|
|
203
203
|
*/
|
|
204
204
|
NodeCutter.prototype.TrimLineBreak = function (line) {
|
|
205
205
|
return line.replace(/(\r\n\t|\n|\r\t)/gm, ' ');
|
|
@@ -11,7 +11,7 @@ export declare class SelectionCommands {
|
|
|
11
11
|
* @param {string} selector - specifies the string
|
|
12
12
|
* @returns {void}
|
|
13
13
|
* @hidden
|
|
14
|
-
|
|
14
|
+
* @deprecated
|
|
15
15
|
*/
|
|
16
16
|
static applyFormat(docElement: Document, format: string, endNode: Node, enterAction: string, value?: string, selector?: string): void;
|
|
17
17
|
private static insertCursorNode;
|
|
@@ -22,7 +22,7 @@ var SelectionCommands = /** @class */ (function () {
|
|
|
22
22
|
* @param {string} selector - specifies the string
|
|
23
23
|
* @returns {void}
|
|
24
24
|
* @hidden
|
|
25
|
-
|
|
25
|
+
* @deprecated
|
|
26
26
|
*/
|
|
27
27
|
SelectionCommands.applyFormat = function (docElement, format, endNode, enterAction, value, selector) {
|
|
28
28
|
this.enterAction = enterAction;
|
|
@@ -146,7 +146,24 @@ var SelectionCommands = /** @class */ (function () {
|
|
|
146
146
|
}
|
|
147
147
|
}
|
|
148
148
|
}
|
|
149
|
-
|
|
149
|
+
if ((['fontcolor', 'fontname', 'fontsize', 'backgroundcolor'].indexOf(format) > -1)) {
|
|
150
|
+
if (format === 'fontcolor') {
|
|
151
|
+
cursorFormat.style.color = value;
|
|
152
|
+
}
|
|
153
|
+
else if (format === 'fontname') {
|
|
154
|
+
cursorFormat.style.fontFamily = value;
|
|
155
|
+
}
|
|
156
|
+
else if (format === 'fontsize') {
|
|
157
|
+
cursorFormat.style.fontSize = value;
|
|
158
|
+
}
|
|
159
|
+
else {
|
|
160
|
+
cursorFormat.style.backgroundColor = value;
|
|
161
|
+
}
|
|
162
|
+
cursorNode = cursorFormat;
|
|
163
|
+
}
|
|
164
|
+
else {
|
|
165
|
+
InsertMethods.unwrap(cursorFormat);
|
|
166
|
+
}
|
|
150
167
|
}
|
|
151
168
|
else {
|
|
152
169
|
if (cursorNodes.length > 1 && range.startOffset > 0 && (cursorNodes[0].firstElementChild &&
|
|
@@ -3,7 +3,7 @@ import { EditorManager } from './../base/editor-manager';
|
|
|
3
3
|
* Selection EXEC internal component
|
|
4
4
|
*
|
|
5
5
|
* @hidden
|
|
6
|
-
|
|
6
|
+
* @deprecated
|
|
7
7
|
*/
|
|
8
8
|
export declare class SelectionBasedExec {
|
|
9
9
|
private parent;
|
|
@@ -12,7 +12,7 @@ export declare class SelectionBasedExec {
|
|
|
12
12
|
*
|
|
13
13
|
* @param {EditorManager} parent - specifies the parent element
|
|
14
14
|
* @hidden
|
|
15
|
-
|
|
15
|
+
* @deprecated
|
|
16
16
|
*/
|
|
17
17
|
constructor(parent: EditorManager);
|
|
18
18
|
private addEventListener;
|
|
@@ -5,7 +5,7 @@ import * as EVENTS from './../../common/constant';
|
|
|
5
5
|
* Selection EXEC internal component
|
|
6
6
|
*
|
|
7
7
|
* @hidden
|
|
8
|
-
|
|
8
|
+
* @deprecated
|
|
9
9
|
*/
|
|
10
10
|
var SelectionBasedExec = /** @class */ (function () {
|
|
11
11
|
/**
|
|
@@ -13,7 +13,7 @@ var SelectionBasedExec = /** @class */ (function () {
|
|
|
13
13
|
*
|
|
14
14
|
* @param {EditorManager} parent - specifies the parent element
|
|
15
15
|
* @hidden
|
|
16
|
-
|
|
16
|
+
* @deprecated
|
|
17
17
|
*/
|
|
18
18
|
function SelectionBasedExec(parent) {
|
|
19
19
|
this.parent = parent;
|
|
@@ -3,7 +3,7 @@ import { EditorManager } from './../base/editor-manager';
|
|
|
3
3
|
* Link internal component
|
|
4
4
|
*
|
|
5
5
|
* @hidden
|
|
6
|
-
|
|
6
|
+
* @deprecated
|
|
7
7
|
*/
|
|
8
8
|
export declare class TableCommand {
|
|
9
9
|
private parent;
|
|
@@ -14,7 +14,7 @@ export declare class TableCommand {
|
|
|
14
14
|
*
|
|
15
15
|
* @param {EditorManager} parent - specifies the parent element
|
|
16
16
|
* @hidden
|
|
17
|
-
|
|
17
|
+
* @deprecated
|
|
18
18
|
*/
|
|
19
19
|
constructor(parent: EditorManager);
|
|
20
20
|
private addEventListener;
|
|
@@ -5,7 +5,7 @@ import { InsertHtml } from './inserthtml';
|
|
|
5
5
|
* Link internal component
|
|
6
6
|
*
|
|
7
7
|
* @hidden
|
|
8
|
-
|
|
8
|
+
* @deprecated
|
|
9
9
|
*/
|
|
10
10
|
var TableCommand = /** @class */ (function () {
|
|
11
11
|
/**
|
|
@@ -13,7 +13,7 @@ var TableCommand = /** @class */ (function () {
|
|
|
13
13
|
*
|
|
14
14
|
* @param {EditorManager} parent - specifies the parent element
|
|
15
15
|
* @hidden
|
|
16
|
-
|
|
16
|
+
* @deprecated
|
|
17
17
|
*/
|
|
18
18
|
function TableCommand(parent) {
|
|
19
19
|
this.parent = parent;
|