@syncfusion/ej2-richtexteditor 28.1.36 → 28.1.38-680214
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 -1
- package/dist/ej2-richtexteditor.umd.min.js +1 -1
- package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es2015.js +221 -167
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +221 -167
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- package/dist/global/ej2-richtexteditor.min.js +1 -1
- package/dist/global/ej2-richtexteditor.min.js.map +1 -1
- package/package.json +59 -82
- package/src/common/interface.d.ts +8 -8
- package/src/common/util.d.ts +1 -2
- package/src/common/util.js +49 -95
- 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/enum.d.ts +2 -2
- package/src/editor-manager/base/interface.d.ts +17 -9
- 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 +1 -1
- package/src/editor-manager/plugin/dom-node.d.ts +36 -36
- package/src/editor-manager/plugin/dom-node.js +36 -36
- 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 +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 +5 -5
- 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 +2 -2
- package/src/editor-manager/plugin/lists.d.ts +3 -2
- package/src/editor-manager/plugin/lists.js +15 -3
- 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 +2 -1
- 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/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 +37 -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 +28 -6
- 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 +27 -11
- 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 +2 -0
- package/src/rich-text-editor/actions/resize.js +14 -2
- 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 +51 -51
- 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 +34 -35
- 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 +9 -9
- 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 +1 -1
- 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 +1 -1
- package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/link-module.js +3 -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 +3 -2
- package/src/rich-text-editor/renderer/table-module.js +44 -41
- package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +9 -9
- package/src/rich-text-editor/renderer/toolbar-renderer.js +16 -13
- package/src/rich-text-editor/renderer/video-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/video-module.js +1 -1
- 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 +22 -22
- package/src/selection/selection.js +22 -22
- package/styles/bootstrap5.3-lite.css +5 -0
- package/styles/bootstrap5.3.css +5 -0
- package/styles/material3-dark.scss +1 -1
- package/styles/material3.scss +1 -1
- package/styles/rich-text-editor/_layout.scss +1 -1
- package/styles/rich-text-editor/_theme.scss +1 -1
- package/styles/rich-text-editor/bootstrap5.3.css +5 -0
- package/styles/rich-text-editor/material3-dark.scss +1 -1
- package/styles/rich-text-editor/material3.scss +1 -1
- package/styles/rich-text-editor/tailwind3.css +5 -0
- package/styles/tailwind3-lite.css +5 -0
- package/styles/tailwind3.css +5 -0
package/package.json
CHANGED
|
@@ -1,84 +1,61 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
"editor",
|
|
62
|
-
"rich text editor",
|
|
63
|
-
"editing",
|
|
64
|
-
"rich text",
|
|
65
|
-
"rich editor",
|
|
66
|
-
"text editor",
|
|
67
|
-
"contenteditable",
|
|
68
|
-
"wysiwyg",
|
|
69
|
-
"html",
|
|
70
|
-
"text",
|
|
71
|
-
"markdown"
|
|
72
|
-
],
|
|
73
|
-
"license": "SEE LICENSE IN license",
|
|
74
|
-
"main": "./dist/ej2-richtexteditor.umd.min.js",
|
|
75
|
-
"module": "./index.js",
|
|
76
|
-
"name": "@syncfusion/ej2-richtexteditor",
|
|
77
|
-
"repository": {
|
|
78
|
-
"type": "git",
|
|
79
|
-
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
80
|
-
},
|
|
81
|
-
"typings": "index.d.ts",
|
|
82
|
-
"version": "28.1.36",
|
|
83
|
-
"sideEffects": false
|
|
2
|
+
"name": "@syncfusion/ej2-richtexteditor",
|
|
3
|
+
"version": "28.1.38-680214",
|
|
4
|
+
"description": "Essential JS 2 RichTextEditor component",
|
|
5
|
+
"author": "Syncfusion Inc.",
|
|
6
|
+
"license": "SEE LICENSE IN license",
|
|
7
|
+
"main": "./dist/ej2-richtexteditor.umd.min.js",
|
|
8
|
+
"module": "./index.js",
|
|
9
|
+
"es2015": "./dist/es6/ej2-richtexteditor.es5.js",
|
|
10
|
+
"dependencies": {
|
|
11
|
+
"@syncfusion/ej2-base": "~28.1.33",
|
|
12
|
+
"@syncfusion/ej2-buttons": "~28.1.37",
|
|
13
|
+
"@syncfusion/ej2-dropdowns": "~28.1.38",
|
|
14
|
+
"@syncfusion/ej2-filemanager": "~28.1.36",
|
|
15
|
+
"@syncfusion/ej2-inputs": "~28.1.37",
|
|
16
|
+
"@syncfusion/ej2-navigations": "~28.1.37",
|
|
17
|
+
"@syncfusion/ej2-popups": "~28.1.38",
|
|
18
|
+
"@syncfusion/ej2-splitbuttons": "~28.1.37"
|
|
19
|
+
},
|
|
20
|
+
"devDependencies": {
|
|
21
|
+
},
|
|
22
|
+
"keywords": [
|
|
23
|
+
"ej2",
|
|
24
|
+
"syncfusion",
|
|
25
|
+
"HTML5-rich-text-editor",
|
|
26
|
+
"wysiwyg-html-editor",
|
|
27
|
+
"rich-text-editor",
|
|
28
|
+
"markdown-editor",
|
|
29
|
+
"wysiwyg-markdown-editor",
|
|
30
|
+
"editor",
|
|
31
|
+
"rich text editor",
|
|
32
|
+
"editing",
|
|
33
|
+
"rich text",
|
|
34
|
+
"rich editor",
|
|
35
|
+
"text editor",
|
|
36
|
+
"contenteditable",
|
|
37
|
+
"wysiwyg",
|
|
38
|
+
"html",
|
|
39
|
+
"text",
|
|
40
|
+
"markdown"
|
|
41
|
+
],
|
|
42
|
+
"repository": {
|
|
43
|
+
"type": "git",
|
|
44
|
+
"url": "https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
45
|
+
},
|
|
46
|
+
"scripts": {
|
|
47
|
+
"test": "gulp ci-test",
|
|
48
|
+
"compile": "gulp ci-compile",
|
|
49
|
+
"ci-publish": "gulp ci-publish",
|
|
50
|
+
"es-lint-config": "npx tslint-to-eslint-config --config .eslintrc.json --tslint ./tslint.json",
|
|
51
|
+
"es-lint": "eslint -c .eslintrc.json --ext .ts ./blazor/**"
|
|
52
|
+
},
|
|
53
|
+
"config": {
|
|
54
|
+
"ghooks": {
|
|
55
|
+
"pre-commit": "gulp pre-commit",
|
|
56
|
+
"pre-push": "gulp pre-push",
|
|
57
|
+
"commit-msg": "gulp commit-msg"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"typings": "index.d.ts"
|
|
84
61
|
}
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* Specifies common models interfaces.
|
|
3
3
|
*
|
|
4
4
|
* @hidden
|
|
5
|
-
|
|
5
|
+
* @deprecated
|
|
6
6
|
*/
|
|
7
7
|
import { EditorMode } from './types';
|
|
8
8
|
/**
|
|
9
|
-
|
|
9
|
+
* @deprecated
|
|
10
10
|
*/
|
|
11
11
|
export interface IAdvanceListItem {
|
|
12
12
|
listStyle?: string;
|
|
@@ -14,7 +14,7 @@ export interface IAdvanceListItem {
|
|
|
14
14
|
type?: string;
|
|
15
15
|
}
|
|
16
16
|
/**
|
|
17
|
-
|
|
17
|
+
* @deprecated
|
|
18
18
|
*/
|
|
19
19
|
export interface IMarkdownFormatterCallBack {
|
|
20
20
|
selectedText?: string;
|
|
@@ -24,7 +24,7 @@ export interface IMarkdownFormatterCallBack {
|
|
|
24
24
|
requestType?: string;
|
|
25
25
|
}
|
|
26
26
|
/**
|
|
27
|
-
|
|
27
|
+
* @deprecated
|
|
28
28
|
*/
|
|
29
29
|
export interface IHtmlFormatterCallBack {
|
|
30
30
|
selectedNode?: Element;
|
|
@@ -37,7 +37,7 @@ export interface IHtmlFormatterCallBack {
|
|
|
37
37
|
event?: KeyboardEvent | MouseEvent;
|
|
38
38
|
}
|
|
39
39
|
/**
|
|
40
|
-
|
|
40
|
+
* @deprecated
|
|
41
41
|
*/
|
|
42
42
|
export interface IMarkdownToolbarStatus {
|
|
43
43
|
OrderedList: boolean;
|
|
@@ -45,14 +45,14 @@ export interface IMarkdownToolbarStatus {
|
|
|
45
45
|
Formats: string;
|
|
46
46
|
}
|
|
47
47
|
/**
|
|
48
|
-
|
|
48
|
+
* @deprecated
|
|
49
49
|
*/
|
|
50
50
|
export interface IUndoCallBack {
|
|
51
51
|
callBack?: Function;
|
|
52
52
|
event?: Object;
|
|
53
53
|
}
|
|
54
54
|
/**
|
|
55
|
-
|
|
55
|
+
* @deprecated
|
|
56
56
|
*/
|
|
57
57
|
export interface IToolbarStatus {
|
|
58
58
|
bold?: boolean;
|
|
@@ -80,7 +80,7 @@ export interface IToolbarStatus {
|
|
|
80
80
|
InlineCode?: boolean;
|
|
81
81
|
}
|
|
82
82
|
/**
|
|
83
|
-
|
|
83
|
+
* @deprecated
|
|
84
84
|
* @private
|
|
85
85
|
*
|
|
86
86
|
*
|
package/src/common/util.d.ts
CHANGED
|
@@ -13,11 +13,10 @@ export declare function isIDevice(): boolean;
|
|
|
13
13
|
export declare function setEditFrameFocus(editableElement: Element, selector: string): void;
|
|
14
14
|
/**
|
|
15
15
|
* @param {string} value - specifies the string value
|
|
16
|
-
* @param {string} enterAction - specifies the enter key action API
|
|
17
16
|
* @returns {void}
|
|
18
17
|
* @hidden
|
|
19
18
|
*/
|
|
20
|
-
export declare function updateTextNode(value: string
|
|
19
|
+
export declare function updateTextNode(value: string): string;
|
|
21
20
|
/**
|
|
22
21
|
* @param {Node} startChildNodes - specifies the node
|
|
23
22
|
* @returns {void}
|
package/src/common/util.js
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Defines common util methods used by Rich Text Editor.
|
|
3
3
|
*/
|
|
4
|
-
import { isNullOrUndefined, Browser,
|
|
5
|
-
var inlineNode = ['a', 'abbr', 'acronym', 'audio', 'b', 'bdi', 'bdo', 'big', 'br', 'button',
|
|
6
|
-
'canvas', 'cite', 'code', 'data', 'datalist', 'del', 'dfn', 'em', 'embed', 'font', 'i', 'iframe', 'img', 'input',
|
|
7
|
-
'ins', 'kbd', 'label', 'map', 'mark', 'meter', 'noscript', 'object', 'output', 'picture', 'progress',
|
|
8
|
-
'q', 'ruby', 's', 'samp', 'script', 'select', 'slot', 'small', 'span', 'strong', 'strike', 'sub', 'sup', 'svg',
|
|
9
|
-
'template', 'textarea', 'time', 'u', 'tt', 'var', 'video', 'wbr'];
|
|
4
|
+
import { isNullOrUndefined, Browser, removeClass } from '@syncfusion/ej2-base';
|
|
10
5
|
/**
|
|
11
6
|
* @returns {void}
|
|
12
7
|
* @hidden
|
|
@@ -34,109 +29,68 @@ export function setEditFrameFocus(editableElement, selector) {
|
|
|
34
29
|
}
|
|
35
30
|
/**
|
|
36
31
|
* @param {string} value - specifies the string value
|
|
37
|
-
* @param {string} enterAction - specifies the enter key action API
|
|
38
32
|
* @returns {void}
|
|
39
33
|
* @hidden
|
|
40
34
|
*/
|
|
41
|
-
export function updateTextNode(value
|
|
42
|
-
var tempNode = document.createElement('div');
|
|
43
|
-
tempNode.innerHTML = value;
|
|
44
|
-
tempNode.setAttribute('class', 'tempDiv');
|
|
35
|
+
export function updateTextNode(value) {
|
|
45
36
|
var resultElm = document.createElement('div');
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
if (
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
if (!isPreviousInlineElem) {
|
|
56
|
-
if (enterAction === 'BR') {
|
|
57
|
-
resultElm.appendChild(tempNode.firstChild);
|
|
58
|
-
previousParent = resultElm;
|
|
59
|
-
}
|
|
60
|
-
else {
|
|
61
|
-
paraElm = createElement('p');
|
|
62
|
-
resultElm.appendChild(paraElm);
|
|
63
|
-
paraElm.appendChild(tempNode.firstChild);
|
|
64
|
-
previousParent = paraElm;
|
|
65
|
-
isPreviousInlineElem = true;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
else {
|
|
69
|
-
previousParent.appendChild(tempNode.firstChild);
|
|
70
|
-
previousParent = paraElm;
|
|
71
|
-
isPreviousInlineElem = true;
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
else if (tempNode.firstChild.nodeName === '#text' && (tempNode.firstChild.textContent === '\n' ||
|
|
75
|
-
(tempNode.firstChild.textContent.indexOf('\n') >= 0 && tempNode.firstChild.textContent.trim() === ''))) {
|
|
76
|
-
detach(tempNode.firstChild);
|
|
37
|
+
resultElm.innerHTML = value;
|
|
38
|
+
var tableElm = resultElm.querySelectorAll('table');
|
|
39
|
+
for (var i = 0; i < tableElm.length; i++) {
|
|
40
|
+
if (tableElm[i].classList.length > 0 &&
|
|
41
|
+
!tableElm[i].classList.contains('e-rte-table') && !tableElm[i].classList.contains('e-rte-custom-table')) {
|
|
42
|
+
tableElm[i].classList.add('e-rte-paste-table');
|
|
43
|
+
if (tableElm[i].classList.contains('e-rte-paste-word-table')) {
|
|
44
|
+
tableElm[i].classList.remove('e-rte-paste-word-table');
|
|
45
|
+
continue; // Skiping the removal of the border if the source is from word.
|
|
77
46
|
}
|
|
78
|
-
else {
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
}
|
|
83
|
-
var tableElm = resultElm.querySelectorAll('table');
|
|
84
|
-
for (var i = 0; i < tableElm.length; i++) {
|
|
85
|
-
if (tableElm[i].classList.length > 0 &&
|
|
86
|
-
!tableElm[i].classList.contains('e-rte-table') && !tableElm[i].classList.contains('e-rte-custom-table')) {
|
|
87
|
-
tableElm[i].classList.add('e-rte-paste-table');
|
|
88
|
-
if (tableElm[i].classList.contains('e-rte-paste-word-table')) {
|
|
89
|
-
tableElm[i].classList.remove('e-rte-paste-word-table');
|
|
90
|
-
continue; // Skiping the removal of the border if the source is from word.
|
|
47
|
+
else if (tableElm[i].classList.contains('e-rte-paste-excel-table')) {
|
|
48
|
+
tableElm[i].classList.remove('e-rte-paste-excel-table');
|
|
49
|
+
if (tableElm[i].getAttribute('border') === '0') {
|
|
50
|
+
tableElm[i].removeAttribute('border');
|
|
91
51
|
}
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
if (
|
|
95
|
-
|
|
52
|
+
var tdElm = tableElm[i].querySelectorAll('td');
|
|
53
|
+
for (var j = 0; j < tdElm.length; j++) {
|
|
54
|
+
if (tdElm[j].style.borderLeft === 'none') {
|
|
55
|
+
tdElm[j].style.removeProperty('border-left');
|
|
96
56
|
}
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
if (tdElm[j].style.borderTop === 'none') {
|
|
109
|
-
tdElm[j].style.removeProperty('border-top');
|
|
110
|
-
}
|
|
111
|
-
if (tdElm[j].style.border === 'none') {
|
|
112
|
-
tdElm[j].style.removeProperty('border');
|
|
113
|
-
}
|
|
57
|
+
if (tdElm[j].style.borderRight === 'none') {
|
|
58
|
+
tdElm[j].style.removeProperty('border-right');
|
|
59
|
+
}
|
|
60
|
+
if (tdElm[j].style.borderBottom === 'none') {
|
|
61
|
+
tdElm[j].style.removeProperty('border-bottom');
|
|
62
|
+
}
|
|
63
|
+
if (tdElm[j].style.borderTop === 'none') {
|
|
64
|
+
tdElm[j].style.removeProperty('border-top');
|
|
65
|
+
}
|
|
66
|
+
if (tdElm[j].style.border === 'none') {
|
|
67
|
+
tdElm[j].style.removeProperty('border');
|
|
114
68
|
}
|
|
115
69
|
}
|
|
116
|
-
else if (tableElm[i].classList.contains('e-rte-paste-onenote-table')) {
|
|
117
|
-
tableElm[i].classList.remove('e-rte-paste-onenote-table');
|
|
118
|
-
continue;
|
|
119
|
-
}
|
|
120
|
-
else if (tableElm[i].classList.contains('e-rte-paste-html-table')) {
|
|
121
|
-
tableElm[i].classList.remove('e-rte-paste-html-table');
|
|
122
|
-
continue;
|
|
123
|
-
}
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
var imageElm = resultElm.querySelectorAll('img');
|
|
127
|
-
for (var i = 0; i < imageElm.length; i++) {
|
|
128
|
-
if (imageElm[i].classList.contains('e-rte-image-unsupported')) {
|
|
129
|
-
continue; // Should not add the class if the image is Broken.
|
|
130
70
|
}
|
|
131
|
-
if (
|
|
132
|
-
|
|
71
|
+
else if (tableElm[i].classList.contains('e-rte-paste-onenote-table')) {
|
|
72
|
+
tableElm[i].classList.remove('e-rte-paste-onenote-table');
|
|
73
|
+
continue;
|
|
133
74
|
}
|
|
134
|
-
if (
|
|
135
|
-
|
|
136
|
-
|
|
75
|
+
else if (tableElm[i].classList.contains('e-rte-paste-html-table')) {
|
|
76
|
+
tableElm[i].classList.remove('e-rte-paste-html-table');
|
|
77
|
+
continue;
|
|
137
78
|
}
|
|
138
79
|
}
|
|
139
80
|
}
|
|
81
|
+
var imageElm = resultElm.querySelectorAll('img');
|
|
82
|
+
for (var i = 0; i < imageElm.length; i++) {
|
|
83
|
+
if (imageElm[i].classList.contains('e-rte-image-unsupported')) {
|
|
84
|
+
continue; // Should not add the class if the image is Broken.
|
|
85
|
+
}
|
|
86
|
+
if (!imageElm[i].classList.contains('e-rte-image')) {
|
|
87
|
+
imageElm[i].classList.add('e-rte-image');
|
|
88
|
+
}
|
|
89
|
+
if (!(imageElm[i].classList.contains('e-imginline') ||
|
|
90
|
+
imageElm[i].classList.contains('e-imgbreak'))) {
|
|
91
|
+
imageElm[i].classList.add('e-imginline');
|
|
92
|
+
}
|
|
93
|
+
}
|
|
140
94
|
return resultElm.innerHTML;
|
|
141
95
|
}
|
|
142
96
|
/**
|
|
@@ -25,7 +25,7 @@ import { TableSelection } from '../plugin/table-selection';
|
|
|
25
25
|
* EditorManager internal component
|
|
26
26
|
*
|
|
27
27
|
* @hidden
|
|
28
|
-
|
|
28
|
+
* @deprecated
|
|
29
29
|
*/
|
|
30
30
|
export declare class EditorManager {
|
|
31
31
|
currentDocument: HTMLDocument;
|
|
@@ -59,7 +59,7 @@ export declare class EditorManager {
|
|
|
59
59
|
* Constructor for creating the component
|
|
60
60
|
*
|
|
61
61
|
* @hidden
|
|
62
|
-
|
|
62
|
+
* @deprecated
|
|
63
63
|
* @param {ICommandModel} options - specifies the command Model
|
|
64
64
|
*/
|
|
65
65
|
constructor(options: ICommandModel);
|
|
@@ -82,7 +82,7 @@ export declare class EditorManager {
|
|
|
82
82
|
* @param {string} selector - specifies the selector values
|
|
83
83
|
* @returns {void}
|
|
84
84
|
* @hidden
|
|
85
|
-
|
|
85
|
+
* @deprecated
|
|
86
86
|
*/
|
|
87
87
|
execCommand<T>(command: ExecCommand, value: T, event?: Event, callBack?: Function, text?: string | Node, exeValue?: T, selector?: string, enterAction?: string): void;
|
|
88
88
|
private editorMouseDown;
|
|
@@ -27,14 +27,14 @@ import { DOMMethods } from '../plugin/dom-tree';
|
|
|
27
27
|
* EditorManager internal component
|
|
28
28
|
*
|
|
29
29
|
* @hidden
|
|
30
|
-
|
|
30
|
+
* @deprecated
|
|
31
31
|
*/
|
|
32
32
|
var EditorManager = /** @class */ (function () {
|
|
33
33
|
/**
|
|
34
34
|
* Constructor for creating the component
|
|
35
35
|
*
|
|
36
36
|
* @hidden
|
|
37
|
-
|
|
37
|
+
* @deprecated
|
|
38
38
|
* @param {ICommandModel} options - specifies the command Model
|
|
39
39
|
*/
|
|
40
40
|
function EditorManager(options) {
|
|
@@ -115,7 +115,7 @@ var EditorManager = /** @class */ (function () {
|
|
|
115
115
|
* @param {string} selector - specifies the selector values
|
|
116
116
|
* @returns {void}
|
|
117
117
|
* @hidden
|
|
118
|
-
|
|
118
|
+
* @deprecated
|
|
119
119
|
*/
|
|
120
120
|
/* eslint-enable */
|
|
121
121
|
EditorManager.prototype.execCommand = function (command, value, event, callBack, text, exeValue, selector, enterAction) {
|
|
@@ -3,14 +3,14 @@
|
|
|
3
3
|
*/
|
|
4
4
|
/**
|
|
5
5
|
*
|
|
6
|
-
|
|
6
|
+
* @deprecated
|
|
7
7
|
* @hidden
|
|
8
8
|
* Defines the context or contexts in which styles will be copied.
|
|
9
9
|
*/
|
|
10
10
|
export declare type IFormatPainterContext = 'Text' | 'List' | 'Table';
|
|
11
11
|
/**
|
|
12
12
|
*
|
|
13
|
-
|
|
13
|
+
* @deprecated
|
|
14
14
|
* @hidden
|
|
15
15
|
* Defines the action values for format painter.
|
|
16
16
|
*/
|
|
@@ -6,7 +6,7 @@ import { IFormatPainterActionValue, IFormatPainterContext } from './enum';
|
|
|
6
6
|
* Specifies Command models interfaces.
|
|
7
7
|
*
|
|
8
8
|
* @hidden
|
|
9
|
-
|
|
9
|
+
* @deprecated
|
|
10
10
|
*/
|
|
11
11
|
export interface ICommandModel {
|
|
12
12
|
/**
|
|
@@ -26,7 +26,7 @@ export interface ICommandModel {
|
|
|
26
26
|
* Specifies IHtmlSubCommands interfaces.
|
|
27
27
|
*
|
|
28
28
|
* @hidden
|
|
29
|
-
|
|
29
|
+
* @deprecated
|
|
30
30
|
*/
|
|
31
31
|
export interface IHtmlSubCommands {
|
|
32
32
|
/**
|
|
@@ -65,7 +65,7 @@ export interface IHtmlSubCommands {
|
|
|
65
65
|
* Specifies IKeyboardActionArgs interfaces for command line.
|
|
66
66
|
*
|
|
67
67
|
* @hidden
|
|
68
|
-
|
|
68
|
+
* @deprecated
|
|
69
69
|
*/
|
|
70
70
|
export interface IKeyboardActionArgs extends KeyboardEvent {
|
|
71
71
|
/**
|
|
@@ -74,7 +74,7 @@ export interface IKeyboardActionArgs extends KeyboardEvent {
|
|
|
74
74
|
action: string;
|
|
75
75
|
}
|
|
76
76
|
/**
|
|
77
|
-
|
|
77
|
+
* @deprecated
|
|
78
78
|
*/
|
|
79
79
|
export interface IHtmlItem {
|
|
80
80
|
module?: string;
|
|
@@ -91,7 +91,7 @@ export interface IHtmlItem {
|
|
|
91
91
|
enterAction?: string;
|
|
92
92
|
}
|
|
93
93
|
/**
|
|
94
|
-
|
|
94
|
+
* @deprecated
|
|
95
95
|
*/
|
|
96
96
|
export interface IHtmlItemArgs {
|
|
97
97
|
selection?: NodeSelection;
|
|
@@ -127,7 +127,7 @@ export interface IHtmlItemArgs {
|
|
|
127
127
|
ariaLabel?: string;
|
|
128
128
|
}
|
|
129
129
|
/**
|
|
130
|
-
|
|
130
|
+
* @deprecated
|
|
131
131
|
*/
|
|
132
132
|
export interface IHtmlUndoRedoData {
|
|
133
133
|
text?: DocumentFragment;
|
|
@@ -137,7 +137,7 @@ export interface IHtmlUndoRedoData {
|
|
|
137
137
|
* Specifies IHtmlKeyboardEvent interfaces.
|
|
138
138
|
*
|
|
139
139
|
* @hidden
|
|
140
|
-
|
|
140
|
+
* @deprecated
|
|
141
141
|
*/
|
|
142
142
|
export interface IHtmlKeyboardEvent {
|
|
143
143
|
/**
|
|
@@ -156,10 +156,18 @@ export interface IHtmlKeyboardEvent {
|
|
|
156
156
|
* Specifies the enter key configuration.
|
|
157
157
|
*/
|
|
158
158
|
enterAction?: string;
|
|
159
|
+
/**
|
|
160
|
+
* Defines tag to be used when enter key is pressed.
|
|
161
|
+
*/
|
|
162
|
+
enterKey?: string;
|
|
163
|
+
/**
|
|
164
|
+
* Defines tag to be used when shift enter key is pressed.
|
|
165
|
+
*/
|
|
166
|
+
shiftEnterKey?: string;
|
|
159
167
|
}
|
|
160
168
|
/**
|
|
161
169
|
*
|
|
162
|
-
|
|
170
|
+
* @deprecated
|
|
163
171
|
* @hidden
|
|
164
172
|
*
|
|
165
173
|
*/
|
|
@@ -170,7 +178,7 @@ export interface IFormatPainterSettings {
|
|
|
170
178
|
}
|
|
171
179
|
/**
|
|
172
180
|
*
|
|
173
|
-
|
|
181
|
+
* @deprecated
|
|
174
182
|
* @hidden
|
|
175
183
|
*
|
|
176
184
|
*/
|
|
@@ -2,6 +2,6 @@
|
|
|
2
2
|
* Types type for EditorManager
|
|
3
3
|
*
|
|
4
4
|
* @hidden
|
|
5
|
-
|
|
5
|
+
* @deprecated
|
|
6
6
|
*/
|
|
7
7
|
export declare type EditorExecCommand = 'Indents' | 'Lists' | 'Formats' | 'Alignments' | 'Links' | 'Images' | 'Font' | 'Style' | 'Clear' | 'Effects' | 'Casing' | 'InsertHtml' | 'InsertText' | 'Actions';
|
|
@@ -3,7 +3,7 @@ import { EditorManager } from './../base/editor-manager';
|
|
|
3
3
|
* Formats internal component
|
|
4
4
|
*
|
|
5
5
|
* @hidden
|
|
6
|
-
|
|
6
|
+
* @deprecated
|
|
7
7
|
*/
|
|
8
8
|
export declare class Alignments {
|
|
9
9
|
private parent;
|
|
@@ -14,7 +14,7 @@ export declare class Alignments {
|
|
|
14
14
|
* @param {EditorManager} parent - specifies the parent element.
|
|
15
15
|
* @returns {void}
|
|
16
16
|
* @hidden
|
|
17
|
-
|
|
17
|
+
* @deprecated
|
|
18
18
|
*/
|
|
19
19
|
constructor(parent: EditorManager);
|
|
20
20
|
private addEventListener;
|
|
@@ -6,7 +6,7 @@ import { isIDevice, setEditFrameFocus } from '../../common/util';
|
|
|
6
6
|
* Formats internal component
|
|
7
7
|
*
|
|
8
8
|
* @hidden
|
|
9
|
-
|
|
9
|
+
* @deprecated
|
|
10
10
|
*/
|
|
11
11
|
var Alignments = /** @class */ (function () {
|
|
12
12
|
/**
|
|
@@ -15,7 +15,7 @@ var Alignments = /** @class */ (function () {
|
|
|
15
15
|
* @param {EditorManager} parent - specifies the parent element.
|
|
16
16
|
* @returns {void}
|
|
17
17
|
* @hidden
|
|
18
|
-
|
|
18
|
+
* @deprecated
|
|
19
19
|
*/
|
|
20
20
|
function Alignments(parent) {
|
|
21
21
|
this.alignments = {
|
|
@@ -4,7 +4,7 @@ import { IHtmlItem } from './../base/interface';
|
|
|
4
4
|
* Audio internal component
|
|
5
5
|
*
|
|
6
6
|
* @hidden
|
|
7
|
-
|
|
7
|
+
* @deprecated
|
|
8
8
|
*/
|
|
9
9
|
export declare class AudioCommand {
|
|
10
10
|
private parent;
|
|
@@ -13,7 +13,7 @@ export declare class AudioCommand {
|
|
|
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 AudioCommand {
|
|
|
24
24
|
* @param {IHtmlItem} e - specifies the element
|
|
25
25
|
* @returns {void}
|
|
26
26
|
* @hidden
|
|
27
|
-
|
|
27
|
+
* @deprecated
|
|
28
28
|
*/
|
|
29
29
|
audioCommand(e: IHtmlItem): void;
|
|
30
30
|
private createAudio;
|