@syncfusion/ej2-richtexteditor 27.1.52 → 27.1.57-637881
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/README.md +1 -1
- package/dist/ej2-richtexteditor.min.js +1 -0
- 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 +298 -83
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +299 -82
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- package/dist/global/ej2-richtexteditor.min.js +1 -10
- package/dist/global/ej2-richtexteditor.min.js.map +1 -1
- package/dist/global/index.d.ts +0 -9
- package/package.json +84 -84
- package/src/common/config.d.ts +7 -0
- package/src/common/config.js +12 -0
- package/src/common/interface.d.ts +8 -8
- 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 +4 -4
- package/src/editor-manager/base/enum.d.ts +2 -2
- package/src/editor-manager/base/interface.d.ts +11 -11
- 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/audio.d.ts +3 -3
- package/src/editor-manager/plugin/audio.js +3 -3
- 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 +2 -2
- package/src/editor-manager/plugin/dom-node.d.ts +36 -36
- package/src/editor-manager/plugin/dom-node.js +37 -37
- package/src/editor-manager/plugin/format-painter-actions.d.ts +1 -1
- package/src/editor-manager/plugin/format-painter-actions.js +1 -1
- 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 +5 -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 +3 -2
- package/src/editor-manager/plugin/inserthtml.js +36 -12
- package/src/editor-manager/plugin/isformatted.d.ts +9 -9
- package/src/editor-manager/plugin/isformatted.js +9 -9
- package/src/editor-manager/plugin/link.d.ts +2 -2
- package/src/editor-manager/plugin/link.js +4 -4
- package/src/editor-manager/plugin/lists.d.ts +2 -2
- package/src/editor-manager/plugin/lists.js +3 -3
- package/src/editor-manager/plugin/ms-word-clean-up.d.ts +2 -1
- package/src/editor-manager/plugin/ms-word-clean-up.js +17 -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 +3 -3
- 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 +3 -3
- package/src/editor-manager/plugin/undo.d.ts +6 -6
- package/src/editor-manager/plugin/undo.js +9 -9
- package/src/editor-manager/plugin/video.d.ts +3 -3
- package/src/editor-manager/plugin/video.js +3 -3
- 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/insert-text.d.ts +2 -2
- package/src/markdown-parser/plugin/insert-text.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 +2 -2
- package/src/rich-text-editor/actions/emoji-picker.d.ts +1 -1
- package/src/rich-text-editor/actions/emoji-picker.js +1 -1
- package/src/rich-text-editor/actions/enter-key.js +10 -5
- 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 +5 -5
- package/src/rich-text-editor/actions/import-export.js +1 -1
- package/src/rich-text-editor/actions/keyboard.d.ts +1 -1
- package/src/rich-text-editor/actions/keyboard.js +1 -1
- 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 +47 -23
- package/src/rich-text-editor/actions/quick-toolbar.d.ts +9 -9
- package/src/rich-text-editor/actions/quick-toolbar.js +9 -9
- package/src/rich-text-editor/actions/resize.d.ts +3 -0
- package/src/rich-text-editor/actions/resize.js +17 -0
- 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 +125 -125
- package/src/rich-text-editor/base/classes.js +125 -125
- package/src/rich-text-editor/base/constant.d.ts +158 -158
- package/src/rich-text-editor/base/constant.js +158 -158
- 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 +64 -52
- package/src/rich-text-editor/base/interface.js +1 -1
- package/src/rich-text-editor/base/rich-text-editor-model.d.ts +1 -1
- package/src/rich-text-editor/base/rich-text-editor.d.ts +62 -62
- package/src/rich-text-editor/base/rich-text-editor.js +48 -34
- 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 +8 -8
- package/src/rich-text-editor/formatter/html-formatter.d.ts +2 -2
- package/src/rich-text-editor/formatter/html-formatter.js +2 -2
- package/src/rich-text-editor/formatter/markdown-formatter.d.ts +2 -2
- package/src/rich-text-editor/formatter/markdown-formatter.js +2 -2
- package/src/rich-text-editor/renderer/audio-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/audio-module.js +8 -2
- 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 +4 -4
- package/src/rich-text-editor/renderer/image-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/image-module.js +64 -23
- package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/link-module.js +9 -2
- 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/slash-menu.js +1 -1
- 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 +9 -9
- package/src/rich-text-editor/renderer/video-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/video-module.js +9 -3
- package/src/rich-text-editor/renderer/view-source.d.ts +5 -5
- package/src/rich-text-editor/renderer/view-source.js +5 -5
- 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 +27 -22
- package/src/selection/selection.js +66 -23
- package/styles/material3-dark.scss +1 -1
- package/styles/material3.scss +1 -1
- package/styles/rich-text-editor/material3-dark.scss +1 -1
- package/styles/rich-text-editor/material3.scss +1 -1
|
@@ -4,7 +4,7 @@ import { IHtmlItem } from './../base/interface';
|
|
|
4
4
|
* Link internal component
|
|
5
5
|
*
|
|
6
6
|
* @hidden
|
|
7
|
-
|
|
7
|
+
* @deprecated
|
|
8
8
|
*/
|
|
9
9
|
export declare class ImageCommand {
|
|
10
10
|
private parent;
|
|
@@ -13,7 +13,7 @@ export declare class ImageCommand {
|
|
|
13
13
|
*
|
|
14
14
|
* @param {EditorManager} parent - specifies the parent element
|
|
15
15
|
* @hidden
|
|
16
|
-
|
|
16
|
+
* @deprecated
|
|
17
17
|
*/
|
|
18
18
|
constructor(parent: EditorManager);
|
|
19
19
|
private addEventListener;
|
|
@@ -24,7 +24,7 @@ export declare class ImageCommand {
|
|
|
24
24
|
* @param {IHtmlItem} e - specifies the element
|
|
25
25
|
* @returns {void}
|
|
26
26
|
* @hidden
|
|
27
|
-
|
|
27
|
+
* @deprecated
|
|
28
28
|
*/
|
|
29
29
|
imageCommand(e: IHtmlItem): void;
|
|
30
30
|
private createImage;
|
|
@@ -7,7 +7,7 @@ import * as EVENTS from './../../common/constant';
|
|
|
7
7
|
* Link internal component
|
|
8
8
|
*
|
|
9
9
|
* @hidden
|
|
10
|
-
|
|
10
|
+
* @deprecated
|
|
11
11
|
*/
|
|
12
12
|
var ImageCommand = /** @class */ (function () {
|
|
13
13
|
/**
|
|
@@ -15,7 +15,7 @@ var ImageCommand = /** @class */ (function () {
|
|
|
15
15
|
*
|
|
16
16
|
* @param {EditorManager} parent - specifies the parent element
|
|
17
17
|
* @hidden
|
|
18
|
-
|
|
18
|
+
* @deprecated
|
|
19
19
|
*/
|
|
20
20
|
function ImageCommand(parent) {
|
|
21
21
|
this.parent = parent;
|
|
@@ -35,7 +35,7 @@ var ImageCommand = /** @class */ (function () {
|
|
|
35
35
|
* @param {IHtmlItem} e - specifies the element
|
|
36
36
|
* @returns {void}
|
|
37
37
|
* @hidden
|
|
38
|
-
|
|
38
|
+
* @deprecated
|
|
39
39
|
*/
|
|
40
40
|
ImageCommand.prototype.imageCommand = function (e) {
|
|
41
41
|
switch (e.value.toString().toLowerCase()) {
|
|
@@ -119,6 +119,8 @@ var ImageCommand = /** @class */ (function () {
|
|
|
119
119
|
(Browser.isIE ? selectedNode.previousSibling : selectedNode.previousElementSibling);
|
|
120
120
|
var onImageLoadEvent_1 = function () {
|
|
121
121
|
if (!isNOU(_this.parent.currentDocument)) {
|
|
122
|
+
imgElm_1.setAttribute('width', imgElm_1.offsetWidth.toString());
|
|
123
|
+
imgElm_1.setAttribute('height', imgElm_1.offsetHeight.toString());
|
|
122
124
|
e.callBack({
|
|
123
125
|
requestType: (e.value === 'Replace') ? (e.item.subCommand = 'Replace', 'Replace') : 'Images',
|
|
124
126
|
editorMode: 'HTML',
|
|
@@ -3,7 +3,7 @@ import { EditorManager } from './../base/editor-manager';
|
|
|
3
3
|
* Indents internal component
|
|
4
4
|
*
|
|
5
5
|
* @hidden
|
|
6
|
-
|
|
6
|
+
* @deprecated
|
|
7
7
|
*/
|
|
8
8
|
export declare class Indents {
|
|
9
9
|
private parent;
|
|
@@ -13,7 +13,7 @@ export declare class Indents {
|
|
|
13
13
|
*
|
|
14
14
|
* @param {EditorManager} parent - specifies the parent element
|
|
15
15
|
* @hidden
|
|
16
|
-
|
|
16
|
+
* @deprecated
|
|
17
17
|
*/
|
|
18
18
|
constructor(parent: EditorManager);
|
|
19
19
|
private addEventListener;
|
|
@@ -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;
|
|
@@ -5,7 +5,7 @@ import * as EVENTS from './../../common/constant';
|
|
|
5
5
|
* Insert a Text Node or Text
|
|
6
6
|
*
|
|
7
7
|
* @hidden
|
|
8
|
-
|
|
8
|
+
* @deprecated
|
|
9
9
|
*/
|
|
10
10
|
var InsertTextExec = /** @class */ (function () {
|
|
11
11
|
/**
|
|
@@ -13,7 +13,7 @@ var InsertTextExec = /** @class */ (function () {
|
|
|
13
13
|
*
|
|
14
14
|
* @param {EditorManager} parent - specifies the parent element
|
|
15
15
|
* @hidden
|
|
16
|
-
|
|
16
|
+
* @deprecated
|
|
17
17
|
*/
|
|
18
18
|
function InsertTextExec(parent) {
|
|
19
19
|
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;
|
|
@@ -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 InsertHtmlExec = /** @class */ (function () {
|
|
11
11
|
/**
|
|
@@ -13,7 +13,7 @@ var InsertHtmlExec = /** @class */ (function () {
|
|
|
13
13
|
*
|
|
14
14
|
* @param {EditorManager} parent - sepcifies the parent element
|
|
15
15
|
* @hidden
|
|
16
|
-
|
|
16
|
+
* @deprecated
|
|
17
17
|
*/
|
|
18
18
|
function InsertHtmlExec(parent) {
|
|
19
19
|
this.parent = parent;
|
|
@@ -2,20 +2,21 @@
|
|
|
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 contentsDeleted: boolean;
|
|
16
16
|
static Insert(docElement: Document, insertNode: Node | string, editNode?: Element, isExternal?: boolean, enterAction?: string): void;
|
|
17
17
|
private static findFirstTextNode;
|
|
18
18
|
private static pasteInsertHTML;
|
|
19
|
+
private static listCleanUp;
|
|
19
20
|
private static placeCursorEnd;
|
|
20
21
|
private static getNodeCollection;
|
|
21
22
|
private static insertTempNode;
|
|
@@ -8,7 +8,7 @@ import { updateTextNode, nestedListCleanUp } 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() {
|
|
@@ -31,7 +31,7 @@ var InsertHtml = /** @class */ (function () {
|
|
|
31
31
|
node = insertNode;
|
|
32
32
|
}
|
|
33
33
|
}
|
|
34
|
-
var nodeSelection = new NodeSelection();
|
|
34
|
+
var nodeSelection = new NodeSelection(editNode);
|
|
35
35
|
var nodeCutter = new NodeCutter();
|
|
36
36
|
var range = nodeSelection.getRange(docElement);
|
|
37
37
|
if (range.startContainer === editNode && range.startContainer === range.endContainer && range.startOffset === 0 &&
|
|
@@ -395,6 +395,26 @@ var InsertHtml = /** @class */ (function () {
|
|
|
395
395
|
this.cursorPos(lastSelectionNode, node, nodeSelection, docElement, editNode, enterAction);
|
|
396
396
|
}
|
|
397
397
|
this.alignCheck(editNode);
|
|
398
|
+
var currentRange = nodeSelection.getRange(docElement);
|
|
399
|
+
this.listCleanUp(currentRange);
|
|
400
|
+
};
|
|
401
|
+
InsertHtml.listCleanUp = function (range) {
|
|
402
|
+
if (range.startContainer.parentElement.closest('ol,ul') !== null && range.endContainer.parentElement.closest('ol,ul') !== null) {
|
|
403
|
+
var liElems = range.startContainer.parentElement.closest('ol,ul').querySelectorAll('li');
|
|
404
|
+
if (liElems.length > 0) {
|
|
405
|
+
liElems.forEach(function (item) {
|
|
406
|
+
if (!isNOU(item.firstChild) && (item.firstChild.nodeName === 'OL' || item.firstChild.nodeName === 'UL')) {
|
|
407
|
+
item.style.listStyleType = 'none';
|
|
408
|
+
}
|
|
409
|
+
var nestedLi = Array.from(item.children).find(function (child) {
|
|
410
|
+
return child.tagName === 'LI' && (child.parentElement && child.parentElement.tagName !== 'OL' && child.parentElement.tagName !== 'UL');
|
|
411
|
+
});
|
|
412
|
+
if (nestedLi) {
|
|
413
|
+
item.parentNode.replaceChild(nestedLi, item);
|
|
414
|
+
}
|
|
415
|
+
});
|
|
416
|
+
}
|
|
417
|
+
}
|
|
398
418
|
};
|
|
399
419
|
InsertHtml.placeCursorEnd = function (lastSelectionNode, node, nodeSelection, docElement, editNode) {
|
|
400
420
|
lastSelectionNode = lastSelectionNode.nodeName === 'BR' ? (isNOU(lastSelectionNode.previousSibling) ? lastSelectionNode.parentNode
|
|
@@ -459,7 +479,7 @@ var InsertHtml = /** @class */ (function () {
|
|
|
459
479
|
blockNode = range.endContainer;
|
|
460
480
|
range.setEnd(blockNode, range.endContainer.textContent.length);
|
|
461
481
|
}
|
|
462
|
-
if (blockNode && blockNode.nodeName === 'BODY' && range.startContainer === range.endContainer && range.startContainer.nodeType === 1) {
|
|
482
|
+
if (blockNode && blockNode.nodeName === 'BODY' || blockNode.nodeName === 'DIV' && range.startContainer === range.endContainer && range.startContainer.nodeType === 1) {
|
|
463
483
|
blockNode = range.startContainer;
|
|
464
484
|
}
|
|
465
485
|
if (blockNode && blockNode.closest('LI') && editNode.contains(blockNode.closest('LI')) && blockNode.nodeName !== 'TD' && blockNode.nodeName !== 'TH' && blockNode.nodeName !== 'TR' && node && node.firstElementChild &&
|
|
@@ -479,12 +499,12 @@ var InsertHtml = /** @class */ (function () {
|
|
|
479
499
|
tempSpan.parentNode.replaceChild(node, tempSpan);
|
|
480
500
|
}
|
|
481
501
|
else {
|
|
482
|
-
var nodeSelection = new NodeSelection();
|
|
502
|
+
var nodeSelection = new NodeSelection(editNode);
|
|
483
503
|
var currentNode = this.getNodeCollection(range, nodeSelection, node)[this.getNodeCollection(range, nodeSelection, node).length - 1];
|
|
484
504
|
var splitedElm = void 0;
|
|
485
|
-
if ((currentNode.nodeName === 'BR' || currentNode.nodeName === 'HR' ||
|
|
505
|
+
if (currentNode && ((currentNode.nodeName === 'BR' || currentNode.nodeName === 'HR' ||
|
|
486
506
|
(currentNode.nodeName === '#text' && !isNOU(currentNode.parentElement) && currentNode.parentElement.nodeName === 'LI')) &&
|
|
487
|
-
(!isNOU(currentNode.parentElement) && currentNode.parentElement.textContent.trim().length === 0)) {
|
|
507
|
+
(!isNOU(currentNode.parentElement) && currentNode.parentElement.textContent.trim().length === 0))) {
|
|
488
508
|
splitedElm = currentNode;
|
|
489
509
|
if (currentNode.parentElement.nodeName === 'LI' && !isNOU(currentNode.nextSibling) &&
|
|
490
510
|
currentNode.nextSibling.nodeName === 'BR') {
|
|
@@ -497,16 +517,20 @@ var InsertHtml = /** @class */ (function () {
|
|
|
497
517
|
return;
|
|
498
518
|
}
|
|
499
519
|
}
|
|
500
|
-
else if ((currentNode.nodeName === '#text' || currentNode.nodeName === 'BR') && !isNOU(currentNode.parentElement) &&
|
|
520
|
+
else if (currentNode && ((currentNode.nodeName === '#text' || currentNode.nodeName === 'BR') && !isNOU(currentNode.parentElement) &&
|
|
501
521
|
(currentNode.parentElement.nodeName === 'LI' || currentNode.parentElement.closest('LI') || (blockNode === editNode && currentNode.parentElement === blockNode)) &&
|
|
502
|
-
currentNode.parentElement.textContent.trim().length > 0) {
|
|
522
|
+
currentNode.parentElement.textContent.trim().length > 0)) {
|
|
503
523
|
splitedElm = currentNode;
|
|
504
524
|
if (currentNode.parentElement.nodeName === 'LI' && !isNOU(currentNode.nextSibling) &&
|
|
505
525
|
currentNode.nextSibling.nodeName === 'BR') {
|
|
506
526
|
detach(currentNode.nextSibling);
|
|
507
527
|
}
|
|
508
528
|
if (!range.collapsed) {
|
|
529
|
+
var startContainer = range.startContainer;
|
|
530
|
+
var startOffset = range.startOffset;
|
|
509
531
|
this.removeListfromPaste(range);
|
|
532
|
+
range.setStart(startContainer, startOffset);
|
|
533
|
+
range.setEnd(startContainer, startOffset);
|
|
510
534
|
}
|
|
511
535
|
range.insertNode(node);
|
|
512
536
|
this.contentsDeleted = true;
|
|
@@ -546,9 +570,9 @@ var InsertHtml = /** @class */ (function () {
|
|
|
546
570
|
};
|
|
547
571
|
// eslint-disable-next-line
|
|
548
572
|
InsertHtml.getImmediateBlockNode = function (node, editNode) {
|
|
549
|
-
|
|
573
|
+
while (node && CONSTANT.BLOCK_TAGS.indexOf(node.nodeName.toLocaleLowerCase()) < 0) {
|
|
550
574
|
node = node.parentNode;
|
|
551
|
-
}
|
|
575
|
+
}
|
|
552
576
|
return node;
|
|
553
577
|
};
|
|
554
578
|
InsertHtml.removingComments = function (elm) {
|
|
@@ -664,7 +688,7 @@ var InsertHtml = /** @class */ (function () {
|
|
|
664
688
|
var value = range.startContainer;
|
|
665
689
|
if (!isNOU(value) && value.nodeName === 'LI' && !isNOU(value.parentElement) && (value.parentElement.nodeName === 'OL' || value.parentElement.nodeName === 'UL') && value.textContent.trim() === '') {
|
|
666
690
|
value.parentElement.querySelectorAll('li').forEach(function (item) {
|
|
667
|
-
if (item.textContent.trim() === '') {
|
|
691
|
+
if (item.textContent.trim() === '' && item !== value) {
|
|
668
692
|
item.remove();
|
|
669
693
|
}
|
|
670
694
|
});
|
|
@@ -674,7 +698,7 @@ var InsertHtml = /** @class */ (function () {
|
|
|
674
698
|
* Insert method
|
|
675
699
|
*
|
|
676
700
|
* @hidden
|
|
677
|
-
|
|
701
|
+
* @deprecated
|
|
678
702
|
*/
|
|
679
703
|
InsertHtml.inlineNode = ['a', 'abbr', 'acronym', 'audio', 'b', 'bdi', 'bdo', 'big', 'br', 'button',
|
|
680
704
|
'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;
|
|
@@ -83,7 +83,7 @@ export declare class IsFormatted {
|
|
|
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
|
static isCode(node: Node): boolean;
|
|
89
89
|
}
|
|
@@ -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);
|
|
@@ -64,7 +64,7 @@ var IsFormatted = /** @class */ (function () {
|
|
|
64
64
|
* @param {Node} node - specifies the node value
|
|
65
65
|
* @returns {boolean} - returns the boolean value
|
|
66
66
|
* @hidden
|
|
67
|
-
|
|
67
|
+
* @deprecated
|
|
68
68
|
*/
|
|
69
69
|
IsFormatted.isBold = function (node) {
|
|
70
70
|
var validTags = ['strong', 'b'];
|
|
@@ -85,7 +85,7 @@ var IsFormatted = /** @class */ (function () {
|
|
|
85
85
|
* @param {Node} node - specifies the node value
|
|
86
86
|
* @returns {boolean} - returns the boolean value
|
|
87
87
|
* @hidden
|
|
88
|
-
|
|
88
|
+
* @deprecated
|
|
89
89
|
*/
|
|
90
90
|
IsFormatted.isItalic = function (node) {
|
|
91
91
|
var validTags = ['em', 'i'];
|
|
@@ -106,7 +106,7 @@ var IsFormatted = /** @class */ (function () {
|
|
|
106
106
|
* @param {Node} node - specifies the node value
|
|
107
107
|
* @returns {boolean} - returns the boolean value
|
|
108
108
|
* @hidden
|
|
109
|
-
|
|
109
|
+
* @deprecated
|
|
110
110
|
*/
|
|
111
111
|
IsFormatted.isUnderline = function (node) {
|
|
112
112
|
var validTags = ['u'];
|
|
@@ -130,7 +130,7 @@ var IsFormatted = /** @class */ (function () {
|
|
|
130
130
|
* @param {Node} node - specifies the node value
|
|
131
131
|
* @returns {boolean} - returns the boolean value
|
|
132
132
|
* @hidden
|
|
133
|
-
|
|
133
|
+
* @deprecated
|
|
134
134
|
*/
|
|
135
135
|
IsFormatted.isStrikethrough = function (node) {
|
|
136
136
|
var validTags = ['del', 'strike', 's'];
|
|
@@ -154,7 +154,7 @@ var IsFormatted = /** @class */ (function () {
|
|
|
154
154
|
* @param {Node} node - specifies the node value
|
|
155
155
|
* @returns {boolean} - returns the boolean value
|
|
156
156
|
* @hidden
|
|
157
|
-
|
|
157
|
+
* @deprecated
|
|
158
158
|
*/
|
|
159
159
|
IsFormatted.isSuperscript = function (node) {
|
|
160
160
|
var validTags = ['sup'];
|
|
@@ -171,7 +171,7 @@ var IsFormatted = /** @class */ (function () {
|
|
|
171
171
|
* @param {Node} node - specifies the node value
|
|
172
172
|
* @returns {boolean} - returns the boolean value
|
|
173
173
|
* @hidden
|
|
174
|
-
|
|
174
|
+
* @deprecated
|
|
175
175
|
*/
|
|
176
176
|
IsFormatted.isSubscript = function (node) {
|
|
177
177
|
var validTags = ['sub'];
|
|
@@ -228,7 +228,7 @@ var IsFormatted = /** @class */ (function () {
|
|
|
228
228
|
* @param {Node} node - specifies the node value
|
|
229
229
|
* @returns {boolean} - returns the boolean value
|
|
230
230
|
* @hidden
|
|
231
|
-
|
|
231
|
+
* @deprecated
|
|
232
232
|
*/
|
|
233
233
|
IsFormatted.isCode = function (node) {
|
|
234
234
|
var validTags = ['code'];
|
|
@@ -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;
|
|
@@ -8,7 +8,7 @@ import * as EVENTS from './../../common/constant';
|
|
|
8
8
|
* Link internal component
|
|
9
9
|
*
|
|
10
10
|
* @hidden
|
|
11
|
-
|
|
11
|
+
* @deprecated
|
|
12
12
|
*/
|
|
13
13
|
var LinkCommand = /** @class */ (function () {
|
|
14
14
|
/**
|
|
@@ -16,7 +16,7 @@ var LinkCommand = /** @class */ (function () {
|
|
|
16
16
|
*
|
|
17
17
|
* @param {EditorManager} parent - specifies the editor manager
|
|
18
18
|
* @hidden
|
|
19
|
-
|
|
19
|
+
* @deprecated
|
|
20
20
|
*/
|
|
21
21
|
function LinkCommand(parent) {
|
|
22
22
|
this.parent = parent;
|
|
@@ -86,7 +86,7 @@ var LinkCommand = /** @class */ (function () {
|
|
|
86
86
|
}
|
|
87
87
|
}
|
|
88
88
|
else {
|
|
89
|
-
var domSelection = new NodeSelection();
|
|
89
|
+
var domSelection = new NodeSelection(this.parent.editableElement);
|
|
90
90
|
var range = domSelection.getRange(this.parent.currentDocument);
|
|
91
91
|
if (range.endContainer.nodeName === '#text' && range.startContainer.textContent.length === (range.endOffset + 1) &&
|
|
92
92
|
range.endContainer.textContent.charAt(range.endOffset) === ' ' && (!isNOU(range.endContainer.nextSibling) && range.endContainer.nextSibling.nodeName === 'A')) {
|
|
@@ -132,7 +132,7 @@ var LinkCommand = /** @class */ (function () {
|
|
|
132
132
|
}
|
|
133
133
|
};
|
|
134
134
|
LinkCommand.prototype.createLinkNode = function (e) {
|
|
135
|
-
var domSelection = new NodeSelection();
|
|
135
|
+
var domSelection = new NodeSelection(this.parent.editableElement);
|
|
136
136
|
var nodeCutter = new NodeCutter();
|
|
137
137
|
var range = domSelection.getRange(this.parent.currentDocument);
|
|
138
138
|
var nodes = this.getSelectionNodes(domSelection.getNodeCollection(range));
|
|
@@ -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;
|
|
@@ -18,7 +18,7 @@ export declare class Lists {
|
|
|
18
18
|
*
|
|
19
19
|
* @param {EditorManager} parent - specifies the parent element
|
|
20
20
|
* @hidden
|
|
21
|
-
|
|
21
|
+
* @deprecated
|
|
22
22
|
*/
|
|
23
23
|
constructor(parent: EditorManager);
|
|
24
24
|
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;
|
|
@@ -312,7 +312,7 @@ var Lists = /** @class */ (function () {
|
|
|
312
312
|
if (e.event.which === 8) {
|
|
313
313
|
this.backspaceList(e);
|
|
314
314
|
}
|
|
315
|
-
if ((e.event.which === 46 && e.event.action === 'delete')
|
|
315
|
+
if ((e.event.which === 46 && e.event.action === 'delete')) {
|
|
316
316
|
var range = this.parent.nodeSelection.getRange(this.parent.currentDocument);
|
|
317
317
|
var commonAncestor = range.commonAncestorContainer;
|
|
318
318
|
var startEle = range.startContainer;
|
|
@@ -3,7 +3,7 @@ import { EditorManager } from '../base/editor-manager';
|
|
|
3
3
|
* PasteCleanup for MsWord content
|
|
4
4
|
*
|
|
5
5
|
* @hidden
|
|
6
|
-
|
|
6
|
+
* @deprecated
|
|
7
7
|
*/
|
|
8
8
|
export declare class MsWordPaste {
|
|
9
9
|
private parent;
|
|
@@ -55,5 +55,6 @@ export declare class MsWordPaste {
|
|
|
55
55
|
private processMargin;
|
|
56
56
|
private removeEmptyAnchorTag;
|
|
57
57
|
private findSource;
|
|
58
|
+
private handleOneNoteContent;
|
|
58
59
|
destroy(): void;
|
|
59
60
|
}
|