@syncfusion/ej2-richtexteditor 23.2.7-52849 → 24.1.41
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/.eslintrc.json +260 -0
- package/.github/PULL_REQUEST_TEMPLATE/Bug.md +40 -40
- package/.github/PULL_REQUEST_TEMPLATE/Feature.md +27 -27
- package/CHANGELOG.md +1775 -1751
- package/README.md +76 -76
- package/dist/ej2-richtexteditor.min.js +10 -0
- package/dist/ej2-richtexteditor.umd.min.js +10 -1
- package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es2015.js +682 -434
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +791 -543
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- package/dist/global/ej2-richtexteditor.min.js +11 -0
- package/dist/global/ej2-richtexteditor.min.js.map +1 -0
- package/dist/global/index.d.ts +14 -0
- package/helpers/e2e/index.js +3 -3
- package/helpers/e2e/rte-helper.js +13 -13
- package/license +9 -9
- package/package.json +74 -74
- package/src/common/config.js +1 -1
- 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/enum.d.ts +2 -2
- package/src/editor-manager/base/interface.d.ts +9 -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 +16 -6
- 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 +35 -48
- 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 +33 -6
- 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 +7 -4
- 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 +5 -2
- package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
- package/src/editor-manager/plugin/nodecutter.js +7 -7
- package/src/editor-manager/plugin/selection-commands.d.ts +1 -1
- package/src/editor-manager/plugin/selection-commands.js +40 -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 +27 -13
- 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 +5 -5
- 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 +6 -4
- package/src/rich-text-editor/actions/emoji-picker.d.ts +1 -1
- package/src/rich-text-editor/actions/emoji-picker.js +13 -4
- package/src/rich-text-editor/actions/enter-key.js +2 -1
- package/src/rich-text-editor/actions/file-manager.js +1 -1
- package/src/rich-text-editor/actions/format-painter.js +1 -1
- package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
- package/src/rich-text-editor/actions/full-screen.js +5 -5
- package/src/rich-text-editor/actions/html-editor.d.ts +5 -3
- package/src/rich-text-editor/actions/html-editor.js +32 -6
- 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 +3 -1
- package/src/rich-text-editor/actions/paste-clean-up.js +73 -20
- package/src/rich-text-editor/actions/quick-toolbar.d.ts +9 -9
- package/src/rich-text-editor/actions/quick-toolbar.js +33 -14
- package/src/rich-text-editor/actions/toolbar.d.ts +14 -13
- package/src/rich-text-editor/actions/toolbar.js +31 -23
- 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 +126 -121
- package/src/rich-text-editor/base/classes.js +126 -121
- package/src/rich-text-editor/base/constant.d.ts +155 -150
- package/src/rich-text-editor/base/constant.js +155 -150
- 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 +59 -49
- package/src/rich-text-editor/base/interface.js +1 -1
- package/src/rich-text-editor/base/rich-text-editor-model.d.ts +891 -891
- package/src/rich-text-editor/base/rich-text-editor.d.ts +69 -60
- package/src/rich-text-editor/base/rich-text-editor.js +143 -80
- package/src/rich-text-editor/base/util.d.ts +1 -1
- package/src/rich-text-editor/base/util.js +12 -3
- 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 +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/default-locale.js +2 -0
- 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/items.js +1 -1
- package/src/rich-text-editor/models/toolbar-settings-model.d.ts +760 -760
- package/src/rich-text-editor/models/toolbar-settings.js +19 -19
- 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 +12 -3
- 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 +1 -1
- package/src/rich-text-editor/renderer/image-module.js +53 -53
- package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/link-module.js +44 -24
- 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 -1
- package/src/rich-text-editor/renderer/table-module.js +44 -31
- package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +9 -15
- package/src/rich-text-editor/renderer/toolbar-renderer.js +22 -102
- 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 +6 -6
- package/src/rich-text-editor/renderer/view-source.js +9 -7
- 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/_all.scss +1 -1
- package/styles/bootstrap-dark.css +194 -52
- package/styles/bootstrap.css +197 -53
- package/styles/bootstrap4.css +194 -52
- package/styles/bootstrap5-dark.css +195 -53
- package/styles/bootstrap5.css +195 -53
- package/styles/fabric-dark.css +194 -52
- package/styles/fabric.css +194 -52
- package/styles/fluent-dark.css +197 -53
- package/styles/fluent.css +197 -53
- package/styles/highcontrast-light.css +194 -52
- package/styles/highcontrast.css +194 -52
- package/styles/material-dark.css +196 -53
- package/styles/material.css +196 -53
- package/styles/material3-dark.css +194 -52
- package/styles/material3-dark.scss +1 -1
- package/styles/material3.css +194 -52
- package/styles/material3.scss +1 -1
- package/styles/rich-text-editor/_all.scss +2 -2
- package/styles/rich-text-editor/_bootstrap-dark-definition.scss +277 -277
- package/styles/rich-text-editor/_bootstrap-definition.scss +334 -334
- package/styles/rich-text-editor/_bootstrap4-definition.scss +460 -460
- package/styles/rich-text-editor/_bootstrap5-definition.scss +262 -262
- package/styles/rich-text-editor/_fabric-dark-definition.scss +259 -259
- package/styles/rich-text-editor/_fabric-definition.scss +257 -257
- package/styles/rich-text-editor/_fluent-definition.scss +263 -263
- package/styles/rich-text-editor/_fusionnew-definition.scss +261 -261
- package/styles/rich-text-editor/_highcontrast-definition.scss +257 -257
- package/styles/rich-text-editor/_highcontrast-light-definition.scss +257 -257
- package/styles/rich-text-editor/_layout.scss +2147 -2072
- package/styles/rich-text-editor/_material-dark-definition.scss +262 -262
- package/styles/rich-text-editor/_material-definition.scss +260 -260
- package/styles/rich-text-editor/_material3-definition.scss +262 -262
- package/styles/rich-text-editor/_tailwind-definition.scss +257 -257
- package/styles/rich-text-editor/_theme.scss +837 -837
- package/styles/rich-text-editor/bootstrap-dark.css +194 -52
- package/styles/rich-text-editor/bootstrap.css +197 -53
- package/styles/rich-text-editor/bootstrap4.css +194 -52
- package/styles/rich-text-editor/bootstrap5-dark.css +195 -53
- package/styles/rich-text-editor/bootstrap5.css +195 -53
- package/styles/rich-text-editor/fabric-dark.css +194 -52
- package/styles/rich-text-editor/fabric.css +194 -52
- package/styles/rich-text-editor/fluent-dark.css +197 -53
- package/styles/rich-text-editor/fluent.css +197 -53
- package/styles/rich-text-editor/highcontrast-light.css +194 -52
- package/styles/rich-text-editor/highcontrast.css +194 -52
- package/styles/rich-text-editor/icons/_bootstrap-dark.scss +349 -349
- package/styles/rich-text-editor/icons/_bootstrap.scss +349 -349
- package/styles/rich-text-editor/icons/_bootstrap4.scss +349 -349
- package/styles/rich-text-editor/icons/_bootstrap5.scss +348 -348
- package/styles/rich-text-editor/icons/_fabric-dark.scss +349 -349
- package/styles/rich-text-editor/icons/_fabric.scss +349 -349
- package/styles/rich-text-editor/icons/_fluent.scss +348 -348
- package/styles/rich-text-editor/icons/_fusionnew.scss +348 -348
- package/styles/rich-text-editor/icons/_highcontrast-light.scss +349 -349
- package/styles/rich-text-editor/icons/_highcontrast.scss +349 -349
- package/styles/rich-text-editor/icons/_material-dark.scss +349 -349
- package/styles/rich-text-editor/icons/_material.scss +349 -349
- package/styles/rich-text-editor/icons/_material3.scss +348 -348
- package/styles/rich-text-editor/icons/_tailwind.scss +348 -348
- package/styles/rich-text-editor/material-dark.css +196 -53
- package/styles/rich-text-editor/material.css +196 -53
- package/styles/rich-text-editor/material3-dark.css +194 -52
- package/styles/rich-text-editor/material3-dark.scss +1 -1
- package/styles/rich-text-editor/material3.css +194 -52
- package/styles/rich-text-editor/material3.scss +1 -1
- package/styles/rich-text-editor/tailwind-dark.css +194 -52
- package/styles/rich-text-editor/tailwind.css +194 -52
- package/styles/tailwind-dark.css +194 -52
- package/styles/tailwind.css +194 -52
- package/tslint.json +111 -0
- package/src/global.d.ts +0 -1
|
@@ -3,7 +3,7 @@ import { MarkdownParser } from './../base/markdown-parser';
|
|
|
3
3
|
* Link internal component
|
|
4
4
|
*
|
|
5
5
|
* @hidden
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
*/
|
|
8
8
|
export declare class MDLink {
|
|
9
9
|
private parent;
|
|
@@ -13,7 +13,7 @@ export declare class MDLink {
|
|
|
13
13
|
*
|
|
14
14
|
* @param {MarkdownParser} parent - specifies the parent element
|
|
15
15
|
* @hidden
|
|
16
|
-
|
|
16
|
+
|
|
17
17
|
*/
|
|
18
18
|
constructor(parent: MarkdownParser);
|
|
19
19
|
private addEventListener;
|
|
@@ -3,7 +3,7 @@ import * as CONSTANT from './../base/constant';
|
|
|
3
3
|
* Link internal component
|
|
4
4
|
*
|
|
5
5
|
* @hidden
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
*/
|
|
8
8
|
var MDLink = /** @class */ (function () {
|
|
9
9
|
/**
|
|
@@ -11,7 +11,7 @@ var MDLink = /** @class */ (function () {
|
|
|
11
11
|
*
|
|
12
12
|
* @param {MarkdownParser} parent - specifies the parent element
|
|
13
13
|
* @hidden
|
|
14
|
-
|
|
14
|
+
|
|
15
15
|
*/
|
|
16
16
|
function MDLink(parent) {
|
|
17
17
|
this.parent = parent;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* MarkdownSelection internal module
|
|
3
3
|
*
|
|
4
4
|
* @hidden
|
|
5
|
-
|
|
5
|
+
|
|
6
6
|
*/
|
|
7
7
|
export declare class MarkdownSelection {
|
|
8
8
|
selectionStart: number;
|
|
@@ -14,7 +14,7 @@ export declare class MarkdownSelection {
|
|
|
14
14
|
* @param {number} point - specifies the number value
|
|
15
15
|
* @returns {number} - returns the value
|
|
16
16
|
* @hidden
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
*/
|
|
19
19
|
getLineNumber(textarea: HTMLTextAreaElement, point: number): number;
|
|
20
20
|
/**
|
|
@@ -23,7 +23,7 @@ export declare class MarkdownSelection {
|
|
|
23
23
|
* @param {HTMLTextAreaElement} textarea - specifies the text area element
|
|
24
24
|
* @returns {string} - specifies the string value
|
|
25
25
|
* @hidden
|
|
26
|
-
|
|
26
|
+
|
|
27
27
|
*/
|
|
28
28
|
getSelectedText(textarea: HTMLTextAreaElement): string;
|
|
29
29
|
/**
|
|
@@ -32,7 +32,7 @@ export declare class MarkdownSelection {
|
|
|
32
32
|
* @param {string} value - specifies the string value
|
|
33
33
|
* @returns {string[]} - returns the string value
|
|
34
34
|
* @hidden
|
|
35
|
-
|
|
35
|
+
|
|
36
36
|
*/
|
|
37
37
|
getAllParents(value: string): string[];
|
|
38
38
|
/**
|
|
@@ -41,7 +41,7 @@ export declare class MarkdownSelection {
|
|
|
41
41
|
* @param {HTMLTextAreaElement} textarea - specifies the text area element
|
|
42
42
|
* @returns {string} - returns the string value
|
|
43
43
|
* @hidden
|
|
44
|
-
|
|
44
|
+
|
|
45
45
|
*/
|
|
46
46
|
getSelectedLine(textarea: HTMLTextAreaElement): string;
|
|
47
47
|
/**
|
|
@@ -51,7 +51,7 @@ export declare class MarkdownSelection {
|
|
|
51
51
|
* @param {number} index - specifies the number value
|
|
52
52
|
* @returns {string} - returns the string value
|
|
53
53
|
* @hidden
|
|
54
|
-
|
|
54
|
+
|
|
55
55
|
*/
|
|
56
56
|
getLine(textarea: HTMLTextAreaElement, index: number): string;
|
|
57
57
|
/**
|
|
@@ -60,7 +60,7 @@ export declare class MarkdownSelection {
|
|
|
60
60
|
* @param {HTMLTextAreaElement} textarea - specifies the text area element
|
|
61
61
|
* @returns {string} - returns the string value
|
|
62
62
|
* @hidden
|
|
63
|
-
|
|
63
|
+
|
|
64
64
|
*/
|
|
65
65
|
getSelectedParentPoints(textarea: HTMLTextAreaElement): {
|
|
66
66
|
[key: string]: string | number;
|
|
@@ -73,7 +73,7 @@ export declare class MarkdownSelection {
|
|
|
73
73
|
* @param {number} end - specifies the end value
|
|
74
74
|
* @returns {void}
|
|
75
75
|
* @hidden
|
|
76
|
-
|
|
76
|
+
|
|
77
77
|
*/
|
|
78
78
|
setSelection(textarea: HTMLTextAreaElement, start: number, end: number): void;
|
|
79
79
|
/**
|
|
@@ -83,7 +83,7 @@ export declare class MarkdownSelection {
|
|
|
83
83
|
* @param {number} end - specifies the end value
|
|
84
84
|
* @returns {void}
|
|
85
85
|
* @hidden
|
|
86
|
-
|
|
86
|
+
|
|
87
87
|
*/
|
|
88
88
|
save(start: number, end: number): void;
|
|
89
89
|
/**
|
|
@@ -92,7 +92,7 @@ export declare class MarkdownSelection {
|
|
|
92
92
|
* @param {HTMLTextAreaElement} textArea - specifies the text area element
|
|
93
93
|
* @returns {void}
|
|
94
94
|
* @hidden
|
|
95
|
-
|
|
95
|
+
|
|
96
96
|
*/
|
|
97
97
|
restore(textArea: HTMLTextAreaElement): void;
|
|
98
98
|
/**
|
|
@@ -102,7 +102,7 @@ export declare class MarkdownSelection {
|
|
|
102
102
|
* @param {string} command - specifies the string value
|
|
103
103
|
* @returns {boolean} - returns the boolean value
|
|
104
104
|
* @hidden
|
|
105
|
-
|
|
105
|
+
|
|
106
106
|
*/
|
|
107
107
|
isStartWith(line: string, command: string): boolean;
|
|
108
108
|
/**
|
|
@@ -111,7 +111,7 @@ export declare class MarkdownSelection {
|
|
|
111
111
|
* @param {string} value - specifies the string value
|
|
112
112
|
* @returns {string} - returns the value
|
|
113
113
|
* @hidden
|
|
114
|
-
|
|
114
|
+
|
|
115
115
|
*/
|
|
116
116
|
replaceSpecialChar(value: string): string;
|
|
117
117
|
/**
|
|
@@ -121,7 +121,7 @@ export declare class MarkdownSelection {
|
|
|
121
121
|
* @param {string} regex - specifies the regex value
|
|
122
122
|
* @returns {boolean} - returns the boolean value
|
|
123
123
|
* @hidden
|
|
124
|
-
|
|
124
|
+
|
|
125
125
|
*/
|
|
126
126
|
isClear(parents: {
|
|
127
127
|
[key: string]: string | number;
|
|
@@ -132,7 +132,7 @@ export declare class MarkdownSelection {
|
|
|
132
132
|
* @param {HTMLTextAreaElement} textarea - specifies the text area
|
|
133
133
|
* @returns {void}
|
|
134
134
|
* @hidden
|
|
135
|
-
|
|
135
|
+
|
|
136
136
|
*/
|
|
137
137
|
getSelectedInlinePoints(textarea: HTMLTextAreaElement): {
|
|
138
138
|
[key: string]: string | number;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* MarkdownSelection internal module
|
|
3
3
|
*
|
|
4
4
|
* @hidden
|
|
5
|
-
|
|
5
|
+
|
|
6
6
|
*/
|
|
7
7
|
var MarkdownSelection = /** @class */ (function () {
|
|
8
8
|
function MarkdownSelection() {
|
|
@@ -14,7 +14,7 @@ var MarkdownSelection = /** @class */ (function () {
|
|
|
14
14
|
* @param {number} point - specifies the number value
|
|
15
15
|
* @returns {number} - returns the value
|
|
16
16
|
* @hidden
|
|
17
|
-
|
|
17
|
+
|
|
18
18
|
*/
|
|
19
19
|
MarkdownSelection.prototype.getLineNumber = function (textarea, point) {
|
|
20
20
|
return textarea.value.substr(0, point).split('\n').length;
|
|
@@ -25,7 +25,7 @@ var MarkdownSelection = /** @class */ (function () {
|
|
|
25
25
|
* @param {HTMLTextAreaElement} textarea - specifies the text area element
|
|
26
26
|
* @returns {string} - specifies the string value
|
|
27
27
|
* @hidden
|
|
28
|
-
|
|
28
|
+
|
|
29
29
|
*/
|
|
30
30
|
MarkdownSelection.prototype.getSelectedText = function (textarea) {
|
|
31
31
|
var start = textarea.selectionStart;
|
|
@@ -38,7 +38,7 @@ var MarkdownSelection = /** @class */ (function () {
|
|
|
38
38
|
* @param {string} value - specifies the string value
|
|
39
39
|
* @returns {string[]} - returns the string value
|
|
40
40
|
* @hidden
|
|
41
|
-
|
|
41
|
+
|
|
42
42
|
*/
|
|
43
43
|
MarkdownSelection.prototype.getAllParents = function (value) {
|
|
44
44
|
return value.split('\n');
|
|
@@ -49,7 +49,7 @@ var MarkdownSelection = /** @class */ (function () {
|
|
|
49
49
|
* @param {HTMLTextAreaElement} textarea - specifies the text area element
|
|
50
50
|
* @returns {string} - returns the string value
|
|
51
51
|
* @hidden
|
|
52
|
-
|
|
52
|
+
|
|
53
53
|
*/
|
|
54
54
|
MarkdownSelection.prototype.getSelectedLine = function (textarea) {
|
|
55
55
|
var lines = this.getAllParents(textarea.value);
|
|
@@ -63,7 +63,7 @@ var MarkdownSelection = /** @class */ (function () {
|
|
|
63
63
|
* @param {number} index - specifies the number value
|
|
64
64
|
* @returns {string} - returns the string value
|
|
65
65
|
* @hidden
|
|
66
|
-
|
|
66
|
+
|
|
67
67
|
*/
|
|
68
68
|
MarkdownSelection.prototype.getLine = function (textarea, index) {
|
|
69
69
|
var lines = this.getAllParents(textarea.value);
|
|
@@ -75,7 +75,7 @@ var MarkdownSelection = /** @class */ (function () {
|
|
|
75
75
|
* @param {HTMLTextAreaElement} textarea - specifies the text area element
|
|
76
76
|
* @returns {string} - returns the string value
|
|
77
77
|
* @hidden
|
|
78
|
-
|
|
78
|
+
|
|
79
79
|
*/
|
|
80
80
|
MarkdownSelection.prototype.getSelectedParentPoints = function (textarea) {
|
|
81
81
|
var lines = this.getAllParents(textarea.value);
|
|
@@ -118,7 +118,7 @@ var MarkdownSelection = /** @class */ (function () {
|
|
|
118
118
|
* @param {number} end - specifies the end value
|
|
119
119
|
* @returns {void}
|
|
120
120
|
* @hidden
|
|
121
|
-
|
|
121
|
+
|
|
122
122
|
*/
|
|
123
123
|
MarkdownSelection.prototype.setSelection = function (textarea, start, end) {
|
|
124
124
|
textarea.setSelectionRange(start, end);
|
|
@@ -131,7 +131,7 @@ var MarkdownSelection = /** @class */ (function () {
|
|
|
131
131
|
* @param {number} end - specifies the end value
|
|
132
132
|
* @returns {void}
|
|
133
133
|
* @hidden
|
|
134
|
-
|
|
134
|
+
|
|
135
135
|
*/
|
|
136
136
|
MarkdownSelection.prototype.save = function (start, end) {
|
|
137
137
|
this.selectionStart = start;
|
|
@@ -143,7 +143,7 @@ var MarkdownSelection = /** @class */ (function () {
|
|
|
143
143
|
* @param {HTMLTextAreaElement} textArea - specifies the text area element
|
|
144
144
|
* @returns {void}
|
|
145
145
|
* @hidden
|
|
146
|
-
|
|
146
|
+
|
|
147
147
|
*/
|
|
148
148
|
MarkdownSelection.prototype.restore = function (textArea) {
|
|
149
149
|
this.setSelection(textArea, this.selectionStart, this.selectionEnd);
|
|
@@ -155,7 +155,7 @@ var MarkdownSelection = /** @class */ (function () {
|
|
|
155
155
|
* @param {string} command - specifies the string value
|
|
156
156
|
* @returns {boolean} - returns the boolean value
|
|
157
157
|
* @hidden
|
|
158
|
-
|
|
158
|
+
|
|
159
159
|
*/
|
|
160
160
|
MarkdownSelection.prototype.isStartWith = function (line, command) {
|
|
161
161
|
var isStart = false;
|
|
@@ -175,7 +175,7 @@ var MarkdownSelection = /** @class */ (function () {
|
|
|
175
175
|
* @param {string} value - specifies the string value
|
|
176
176
|
* @returns {string} - returns the value
|
|
177
177
|
* @hidden
|
|
178
|
-
|
|
178
|
+
|
|
179
179
|
*/
|
|
180
180
|
MarkdownSelection.prototype.replaceSpecialChar = function (value) {
|
|
181
181
|
// eslint-disable-next-line
|
|
@@ -188,7 +188,7 @@ var MarkdownSelection = /** @class */ (function () {
|
|
|
188
188
|
* @param {string} regex - specifies the regex value
|
|
189
189
|
* @returns {boolean} - returns the boolean value
|
|
190
190
|
* @hidden
|
|
191
|
-
|
|
191
|
+
|
|
192
192
|
*/
|
|
193
193
|
MarkdownSelection.prototype.isClear = function (parents, regex) {
|
|
194
194
|
var isClear = false;
|
|
@@ -206,7 +206,7 @@ var MarkdownSelection = /** @class */ (function () {
|
|
|
206
206
|
* @param {HTMLTextAreaElement} textarea - specifies the text area
|
|
207
207
|
* @returns {void}
|
|
208
208
|
* @hidden
|
|
209
|
-
|
|
209
|
+
|
|
210
210
|
*/
|
|
211
211
|
MarkdownSelection.prototype.getSelectedInlinePoints = function (textarea) {
|
|
212
212
|
var start = textarea.selectionStart;
|
|
@@ -3,7 +3,7 @@ import { IMDTable } from './../base/interface';
|
|
|
3
3
|
* Link internal component
|
|
4
4
|
*
|
|
5
5
|
* @hidden
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
*/
|
|
8
8
|
export declare class MDTable {
|
|
9
9
|
private parent;
|
|
@@ -16,7 +16,7 @@ export declare class MDTable {
|
|
|
16
16
|
*
|
|
17
17
|
* @param {IMDTable} options - specifies the options
|
|
18
18
|
* @hidden
|
|
19
|
-
|
|
19
|
+
|
|
20
20
|
*/
|
|
21
21
|
constructor(options: IMDTable);
|
|
22
22
|
private addEventListener;
|
|
@@ -26,7 +26,7 @@ export declare class MDTable {
|
|
|
26
26
|
*
|
|
27
27
|
* @returns {void}
|
|
28
28
|
* @hidden
|
|
29
|
-
|
|
29
|
+
|
|
30
30
|
*/
|
|
31
31
|
destroy(): void;
|
|
32
32
|
private onKeyDown;
|
|
@@ -5,7 +5,7 @@ import * as EVENTS from './../../common/constant';
|
|
|
5
5
|
* Link internal component
|
|
6
6
|
*
|
|
7
7
|
* @hidden
|
|
8
|
-
|
|
8
|
+
|
|
9
9
|
*/
|
|
10
10
|
var MDTable = /** @class */ (function () {
|
|
11
11
|
/**
|
|
@@ -13,7 +13,7 @@ var MDTable = /** @class */ (function () {
|
|
|
13
13
|
*
|
|
14
14
|
* @param {IMDTable} options - specifies the options
|
|
15
15
|
* @hidden
|
|
16
|
-
|
|
16
|
+
|
|
17
17
|
*/
|
|
18
18
|
function MDTable(options) {
|
|
19
19
|
extend(this, this, options, true);
|
|
@@ -33,7 +33,7 @@ var MDTable = /** @class */ (function () {
|
|
|
33
33
|
*
|
|
34
34
|
* @returns {void}
|
|
35
35
|
* @hidden
|
|
36
|
-
|
|
36
|
+
|
|
37
37
|
*/
|
|
38
38
|
MDTable.prototype.destroy = function () {
|
|
39
39
|
this.removeEventListener();
|
|
@@ -24,7 +24,7 @@ export declare class UndoRedoCommands {
|
|
|
24
24
|
* @function destroy
|
|
25
25
|
* @returns {void}
|
|
26
26
|
* @hidden
|
|
27
|
-
|
|
27
|
+
|
|
28
28
|
*/
|
|
29
29
|
destroy(): void;
|
|
30
30
|
/**
|
|
@@ -33,7 +33,7 @@ export declare class UndoRedoCommands {
|
|
|
33
33
|
* @param {IMarkdownSubCommands} e - specifies the sub commands
|
|
34
34
|
* @returns {void}
|
|
35
35
|
* @hidden
|
|
36
|
-
|
|
36
|
+
|
|
37
37
|
*/
|
|
38
38
|
onAction(e: IMarkdownSubCommands): void;
|
|
39
39
|
private keyDown;
|
|
@@ -45,7 +45,7 @@ export declare class UndoRedoCommands {
|
|
|
45
45
|
* @function saveData
|
|
46
46
|
* @returns {void}
|
|
47
47
|
* @hidden
|
|
48
|
-
|
|
48
|
+
|
|
49
49
|
*/
|
|
50
50
|
saveData(e?: KeyboardEvent | MouseEvent | IUndoCallBack): void;
|
|
51
51
|
/**
|
|
@@ -55,7 +55,7 @@ export declare class UndoRedoCommands {
|
|
|
55
55
|
* @function undo
|
|
56
56
|
* @returns {void}
|
|
57
57
|
* @hidden
|
|
58
|
-
|
|
58
|
+
|
|
59
59
|
*/
|
|
60
60
|
undo(e?: IMarkdownSubCommands | IMDKeyboardEvent): void;
|
|
61
61
|
/**
|
|
@@ -65,7 +65,7 @@ export declare class UndoRedoCommands {
|
|
|
65
65
|
* @function redo
|
|
66
66
|
* @returns {void}
|
|
67
67
|
* @hidden
|
|
68
|
-
|
|
68
|
+
|
|
69
69
|
*/
|
|
70
70
|
redo(e?: IMarkdownSubCommands | IMDKeyboardEvent): void;
|
|
71
71
|
private restore;
|
|
@@ -74,7 +74,7 @@ export declare class UndoRedoCommands {
|
|
|
74
74
|
*
|
|
75
75
|
* @returns {boolean} - returns the boolean value
|
|
76
76
|
* @hidden
|
|
77
|
-
|
|
77
|
+
|
|
78
78
|
*/
|
|
79
79
|
getUndoStatus(): {
|
|
80
80
|
[key: string]: boolean;
|
|
@@ -45,7 +45,7 @@ var UndoRedoCommands = /** @class */ (function () {
|
|
|
45
45
|
* @function destroy
|
|
46
46
|
* @returns {void}
|
|
47
47
|
* @hidden
|
|
48
|
-
|
|
48
|
+
|
|
49
49
|
*/
|
|
50
50
|
UndoRedoCommands.prototype.destroy = function () {
|
|
51
51
|
this.removeEventListener();
|
|
@@ -56,7 +56,7 @@ var UndoRedoCommands = /** @class */ (function () {
|
|
|
56
56
|
* @param {IMarkdownSubCommands} e - specifies the sub commands
|
|
57
57
|
* @returns {void}
|
|
58
58
|
* @hidden
|
|
59
|
-
|
|
59
|
+
|
|
60
60
|
*/
|
|
61
61
|
UndoRedoCommands.prototype.onAction = function (e) {
|
|
62
62
|
if (e.subCommand === 'Undo') {
|
|
@@ -93,7 +93,7 @@ var UndoRedoCommands = /** @class */ (function () {
|
|
|
93
93
|
* @function saveData
|
|
94
94
|
* @returns {void}
|
|
95
95
|
* @hidden
|
|
96
|
-
|
|
96
|
+
|
|
97
97
|
*/
|
|
98
98
|
UndoRedoCommands.prototype.saveData = function (e) {
|
|
99
99
|
var textArea = this.parent.element;
|
|
@@ -126,7 +126,7 @@ var UndoRedoCommands = /** @class */ (function () {
|
|
|
126
126
|
* @function undo
|
|
127
127
|
* @returns {void}
|
|
128
128
|
* @hidden
|
|
129
|
-
|
|
129
|
+
|
|
130
130
|
*/
|
|
131
131
|
UndoRedoCommands.prototype.undo = function (e) {
|
|
132
132
|
if (this.steps > 0) {
|
|
@@ -147,7 +147,7 @@ var UndoRedoCommands = /** @class */ (function () {
|
|
|
147
147
|
* @function redo
|
|
148
148
|
* @returns {void}
|
|
149
149
|
* @hidden
|
|
150
|
-
|
|
150
|
+
|
|
151
151
|
*/
|
|
152
152
|
UndoRedoCommands.prototype.redo = function (e) {
|
|
153
153
|
if (this.undoRedoStack[this.steps + 1] != null) {
|
|
@@ -177,7 +177,7 @@ var UndoRedoCommands = /** @class */ (function () {
|
|
|
177
177
|
*
|
|
178
178
|
* @returns {boolean} - returns the boolean value
|
|
179
179
|
* @hidden
|
|
180
|
-
|
|
180
|
+
|
|
181
181
|
*/
|
|
182
182
|
UndoRedoCommands.prototype.getUndoStatus = function () {
|
|
183
183
|
var status = { undo: false, redo: false };
|
|
@@ -30,7 +30,7 @@ export declare class BaseQuickToolbar {
|
|
|
30
30
|
* @param {IQuickToolbarOptions} args - specifies the arguments
|
|
31
31
|
* @returns {void}
|
|
32
32
|
* @hidden
|
|
33
|
-
|
|
33
|
+
|
|
34
34
|
*/
|
|
35
35
|
render(args: IQuickToolbarOptions): void;
|
|
36
36
|
private createToolbar;
|
|
@@ -45,7 +45,7 @@ export declare class BaseQuickToolbar {
|
|
|
45
45
|
* @param {string} type - specifies the type
|
|
46
46
|
* @returns {void}
|
|
47
47
|
* @hidden
|
|
48
|
-
|
|
48
|
+
|
|
49
49
|
*/
|
|
50
50
|
showPopup(x: number, y: number, target: Element, type?: string): void;
|
|
51
51
|
/**
|
|
@@ -53,7 +53,7 @@ export declare class BaseQuickToolbar {
|
|
|
53
53
|
*
|
|
54
54
|
* @returns {void}
|
|
55
55
|
* @hidden
|
|
56
|
-
|
|
56
|
+
|
|
57
57
|
*/
|
|
58
58
|
hidePopup(): void;
|
|
59
59
|
/**
|
|
@@ -61,14 +61,14 @@ export declare class BaseQuickToolbar {
|
|
|
61
61
|
* @param {number} index - specifies the index value
|
|
62
62
|
* @returns {void}
|
|
63
63
|
* @hidden
|
|
64
|
-
|
|
64
|
+
|
|
65
65
|
*/
|
|
66
66
|
addQTBarItem(item: (string | IToolbarItems)[], index: number): void;
|
|
67
67
|
/**
|
|
68
68
|
* @param {number} index - specifies the index value
|
|
69
69
|
* @returns {void}
|
|
70
70
|
* @hidden
|
|
71
|
-
|
|
71
|
+
|
|
72
72
|
*/
|
|
73
73
|
removeQTBarItem(index: number | HTMLElement[] | Element[]): void;
|
|
74
74
|
private removeEleFromDOM;
|
|
@@ -79,7 +79,7 @@ export declare class BaseQuickToolbar {
|
|
|
79
79
|
* @function destroy
|
|
80
80
|
* @returns {void}
|
|
81
81
|
* @hidden
|
|
82
|
-
|
|
82
|
+
|
|
83
83
|
*/
|
|
84
84
|
destroy(): void;
|
|
85
85
|
/**
|
|
@@ -87,7 +87,7 @@ export declare class BaseQuickToolbar {
|
|
|
87
87
|
*
|
|
88
88
|
* @returns {void}
|
|
89
89
|
* @hidden
|
|
90
|
-
|
|
90
|
+
|
|
91
91
|
*/
|
|
92
92
|
addEventListener(): void;
|
|
93
93
|
/**
|
|
@@ -96,7 +96,7 @@ export declare class BaseQuickToolbar {
|
|
|
96
96
|
* @param {RichTextEditorModel} e - specifies the model element
|
|
97
97
|
* @returns {void}
|
|
98
98
|
* @hidden
|
|
99
|
-
|
|
99
|
+
|
|
100
100
|
*/
|
|
101
101
|
protected onPropertyChanged(e: {
|
|
102
102
|
[key: string]: RichTextEditorModel;
|
|
@@ -106,7 +106,7 @@ export declare class BaseQuickToolbar {
|
|
|
106
106
|
*
|
|
107
107
|
* @returns {void}
|
|
108
108
|
* @hidden
|
|
109
|
-
|
|
109
|
+
|
|
110
110
|
*/
|
|
111
111
|
removeEventListener(): void;
|
|
112
112
|
}
|
|
@@ -24,6 +24,9 @@ var BaseQuickToolbar = /** @class */ (function () {
|
|
|
24
24
|
}
|
|
25
25
|
BaseQuickToolbar.prototype.appendPopupContent = function () {
|
|
26
26
|
this.toolbarElement = this.parent.createElement('div', { className: classes.CLS_QUICK_TB });
|
|
27
|
+
if (this.element.classList.contains(classes.CLS_TEXT_POP)) {
|
|
28
|
+
this.toolbarElement.classList.add(classes.CLS_TEXT_QUICK_TB);
|
|
29
|
+
}
|
|
27
30
|
this.element.appendChild(this.toolbarElement);
|
|
28
31
|
};
|
|
29
32
|
/**
|
|
@@ -32,7 +35,7 @@ var BaseQuickToolbar = /** @class */ (function () {
|
|
|
32
35
|
* @param {IQuickToolbarOptions} args - specifies the arguments
|
|
33
36
|
* @returns {void}
|
|
34
37
|
* @hidden
|
|
35
|
-
|
|
38
|
+
|
|
36
39
|
*/
|
|
37
40
|
BaseQuickToolbar.prototype.render = function (args) {
|
|
38
41
|
var className;
|
|
@@ -183,7 +186,7 @@ var BaseQuickToolbar = /** @class */ (function () {
|
|
|
183
186
|
* @param {string} type - specifies the type
|
|
184
187
|
* @returns {void}
|
|
185
188
|
* @hidden
|
|
186
|
-
|
|
189
|
+
|
|
187
190
|
*/
|
|
188
191
|
BaseQuickToolbar.prototype.showPopup = function (x, y, target, type) {
|
|
189
192
|
var _this = this;
|
|
@@ -216,7 +219,7 @@ var BaseQuickToolbar = /** @class */ (function () {
|
|
|
216
219
|
editPanelTop = (cntEle) ? cntEle.scrollTop : 0;
|
|
217
220
|
editPanelHeight = (cntEle) ? cntEle.offsetHeight : 0;
|
|
218
221
|
}
|
|
219
|
-
if (!_this.parent.inlineMode.enable && !closest(target, 'table') && type !== 'text') {
|
|
222
|
+
if ((!_this.parent.inlineMode.enable && !closest(target, 'table') && type !== 'text' && type !== 'link') || target.tagName === 'IMG') {
|
|
220
223
|
_this.parent.disableToolbarItem(_this.parent.toolbarSettings.items);
|
|
221
224
|
_this.parent.enableToolbarItem(['Undo', 'Redo']);
|
|
222
225
|
}
|
|
@@ -290,7 +293,7 @@ var BaseQuickToolbar = /** @class */ (function () {
|
|
|
290
293
|
*
|
|
291
294
|
* @returns {void}
|
|
292
295
|
* @hidden
|
|
293
|
-
|
|
296
|
+
|
|
294
297
|
*/
|
|
295
298
|
BaseQuickToolbar.prototype.hidePopup = function () {
|
|
296
299
|
var viewSourcePanel = this.parent.sourceCodeModule.getViewPanel();
|
|
@@ -325,7 +328,7 @@ var BaseQuickToolbar = /** @class */ (function () {
|
|
|
325
328
|
* @param {number} index - specifies the index value
|
|
326
329
|
* @returns {void}
|
|
327
330
|
* @hidden
|
|
328
|
-
|
|
331
|
+
|
|
329
332
|
*/
|
|
330
333
|
BaseQuickToolbar.prototype.addQTBarItem = function (item, index) {
|
|
331
334
|
this.quickTBarObj.toolbarObj.addItems(this.quickTBarObj.getItems(item, 'toolbar'), index);
|
|
@@ -334,7 +337,7 @@ var BaseQuickToolbar = /** @class */ (function () {
|
|
|
334
337
|
* @param {number} index - specifies the index value
|
|
335
338
|
* @returns {void}
|
|
336
339
|
* @hidden
|
|
337
|
-
|
|
340
|
+
|
|
338
341
|
*/
|
|
339
342
|
BaseQuickToolbar.prototype.removeQTBarItem = function (index) {
|
|
340
343
|
this.quickTBarObj.toolbarObj.removeItems(index);
|
|
@@ -359,7 +362,18 @@ var BaseQuickToolbar = /** @class */ (function () {
|
|
|
359
362
|
tbItems: this.quickTBarObj.toolbarObj.items
|
|
360
363
|
};
|
|
361
364
|
setToolbarStatus(options, true, this.parent);
|
|
362
|
-
if (
|
|
365
|
+
if (this.parent.quickToolbarSettings.text && this.parent.quickToolbarModule.textQTBar) {
|
|
366
|
+
var options_1 = {
|
|
367
|
+
args: args,
|
|
368
|
+
dropDownModule: this.parent.quickToolbarModule.textQTBar.dropDownButtons,
|
|
369
|
+
parent: this.parent,
|
|
370
|
+
tbElements: selectAll('.' + classes.CLS_TB_ITEM, this.parent.quickToolbarModule.textQTBar.element),
|
|
371
|
+
tbItems: this.parent.quickToolbarModule.textQTBar.quickTBarObj.toolbarObj.items
|
|
372
|
+
};
|
|
373
|
+
setToolbarStatus(options_1, true, this.parent);
|
|
374
|
+
updateUndoRedoStatus(this.parent.quickToolbarModule.textQTBar.quickTBarObj, this.parent.formatter.editorManager.undoRedoManager.getUndoStatus());
|
|
375
|
+
}
|
|
376
|
+
if (!select('.' + classes.CLS_RTE_SOURCE_CODE_TXTAREA, this.parent.element)) {
|
|
363
377
|
updateUndoRedoStatus(this.parent.getBaseToolbarObject(), this.parent.formatter.editorManager.undoRedoManager.getUndoStatus());
|
|
364
378
|
}
|
|
365
379
|
};
|
|
@@ -369,7 +383,7 @@ var BaseQuickToolbar = /** @class */ (function () {
|
|
|
369
383
|
* @function destroy
|
|
370
384
|
* @returns {void}
|
|
371
385
|
* @hidden
|
|
372
|
-
|
|
386
|
+
|
|
373
387
|
*/
|
|
374
388
|
BaseQuickToolbar.prototype.destroy = function () {
|
|
375
389
|
if (this.popupObj && !this.popupObj.isDestroyed) {
|
|
@@ -383,7 +397,7 @@ var BaseQuickToolbar = /** @class */ (function () {
|
|
|
383
397
|
*
|
|
384
398
|
* @returns {void}
|
|
385
399
|
* @hidden
|
|
386
|
-
|
|
400
|
+
|
|
387
401
|
*/
|
|
388
402
|
BaseQuickToolbar.prototype.addEventListener = function () {
|
|
389
403
|
if (this.parent.isDestroyed) {
|
|
@@ -391,7 +405,7 @@ var BaseQuickToolbar = /** @class */ (function () {
|
|
|
391
405
|
}
|
|
392
406
|
this.parent.on(events.destroy, this.destroy, this);
|
|
393
407
|
this.parent.on(events.modelChanged, this.onPropertyChanged, this);
|
|
394
|
-
if (this.parent.inlineMode.enable) {
|
|
408
|
+
if (this.parent.inlineMode.enable || this.parent.quickToolbarSettings.text) {
|
|
395
409
|
this.parent.on(events.toolbarUpdated, this.updateStatus, this);
|
|
396
410
|
}
|
|
397
411
|
};
|
|
@@ -401,7 +415,7 @@ var BaseQuickToolbar = /** @class */ (function () {
|
|
|
401
415
|
* @param {RichTextEditorModel} e - specifies the model element
|
|
402
416
|
* @returns {void}
|
|
403
417
|
* @hidden
|
|
404
|
-
|
|
418
|
+
|
|
405
419
|
*/
|
|
406
420
|
BaseQuickToolbar.prototype.onPropertyChanged = function (e) {
|
|
407
421
|
if (!isNullOrUndefined(e.newProp.inlineMode)) {
|
|
@@ -425,7 +439,7 @@ var BaseQuickToolbar = /** @class */ (function () {
|
|
|
425
439
|
*
|
|
426
440
|
* @returns {void}
|
|
427
441
|
* @hidden
|
|
428
|
-
|
|
442
|
+
|
|
429
443
|
*/
|
|
430
444
|
BaseQuickToolbar.prototype.removeEventListener = function () {
|
|
431
445
|
if (this.parent.isDestroyed) {
|
|
@@ -433,7 +447,7 @@ var BaseQuickToolbar = /** @class */ (function () {
|
|
|
433
447
|
}
|
|
434
448
|
this.parent.off(events.destroy, this.destroy);
|
|
435
449
|
this.parent.off(events.modelChanged, this.onPropertyChanged);
|
|
436
|
-
if (this.parent.inlineMode.enable) {
|
|
450
|
+
if (this.parent.inlineMode.enable || this.parent.quickToolbarSettings.text) {
|
|
437
451
|
this.parent.off(events.toolbarUpdated, this.updateStatus);
|
|
438
452
|
}
|
|
439
453
|
};
|