@syncfusion/ej2-richtexteditor 18.1.52 → 18.2.44-4568
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +614 -572
- package/README.md +67 -67
- package/dist/ej2-richtexteditor.umd.min.js +1 -10
- package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es2015.js +353 -136
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +364 -147
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- package/license +9 -9
- package/package.json +50 -73
- package/src/common/interface.d.ts +6 -6
- package/src/editor-manager/base/classes.d.ts +1 -1
- package/src/editor-manager/base/classes.js +1 -1
- package/src/editor-manager/base/editor-manager.d.ts +3 -3
- package/src/editor-manager/base/editor-manager.js +3 -3
- package/src/editor-manager/base/interface.d.ts +7 -7
- package/src/editor-manager/base/types.d.ts +1 -1
- package/src/editor-manager/plugin/alignments.d.ts +2 -2
- package/src/editor-manager/plugin/alignments.js +2 -2
- package/src/editor-manager/plugin/clearformat-exec.d.ts +2 -2
- package/src/editor-manager/plugin/clearformat-exec.js +2 -2
- package/src/editor-manager/plugin/clearformat.d.ts +1 -1
- package/src/editor-manager/plugin/clearformat.js +1 -1
- package/src/editor-manager/plugin/dom-node.d.ts +34 -34
- package/src/editor-manager/plugin/dom-node.js +34 -34
- package/src/editor-manager/plugin/formats.d.ts +2 -2
- package/src/editor-manager/plugin/formats.js +2 -2
- package/src/editor-manager/plugin/image.d.ts +3 -3
- package/src/editor-manager/plugin/image.js +3 -3
- package/src/editor-manager/plugin/indents.d.ts +2 -2
- package/src/editor-manager/plugin/indents.js +2 -2
- package/src/editor-manager/plugin/insert-methods.d.ts +4 -4
- package/src/editor-manager/plugin/insert-methods.js +4 -4
- package/src/editor-manager/plugin/insert-text.d.ts +2 -2
- package/src/editor-manager/plugin/insert-text.js +2 -2
- package/src/editor-manager/plugin/inserthtml-exec.d.ts +2 -2
- package/src/editor-manager/plugin/inserthtml-exec.js +2 -2
- package/src/editor-manager/plugin/inserthtml.d.ts +4 -2
- package/src/editor-manager/plugin/inserthtml.js +42 -6
- 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 +4 -14
- 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 +1 -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/markdown-parser/base/interface.d.ts +10 -10
- package/src/markdown-parser/base/markdown-parser.d.ts +3 -3
- package/src/markdown-parser/base/markdown-parser.js +3 -3
- package/src/markdown-parser/base/types.d.ts +1 -1
- package/src/markdown-parser/plugin/clearformat.d.ts +2 -2
- package/src/markdown-parser/plugin/clearformat.js +2 -2
- package/src/markdown-parser/plugin/formats.d.ts +2 -2
- package/src/markdown-parser/plugin/formats.js +2 -2
- package/src/markdown-parser/plugin/link.d.ts +2 -2
- package/src/markdown-parser/plugin/link.js +2 -2
- package/src/markdown-parser/plugin/markdown-selection.d.ts +14 -14
- package/src/markdown-parser/plugin/markdown-selection.js +14 -14
- package/src/markdown-parser/plugin/md-selection-formats.d.ts +2 -2
- package/src/markdown-parser/plugin/md-selection-formats.js +2 -2
- 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/full-screen.d.ts +3 -3
- package/src/rich-text-editor/actions/full-screen.js +3 -3
- package/src/rich-text-editor/actions/html-editor.d.ts +3 -3
- package/src/rich-text-editor/actions/html-editor.js +3 -3
- package/src/rich-text-editor/actions/keyboard-model.d.ts +13 -13
- 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 +34 -3
- package/src/rich-text-editor/actions/quick-toolbar.d.ts +19 -9
- package/src/rich-text-editor/actions/quick-toolbar.js +17 -7
- 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/base/classes.d.ts +102 -102
- package/src/rich-text-editor/base/classes.js +102 -102
- package/src/rich-text-editor/base/constant.d.ts +111 -101
- package/src/rich-text-editor/base/constant.js +111 -101
- 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 -40
- package/src/rich-text-editor/base/interface.js +1 -1
- package/src/rich-text-editor/base/rich-text-editor-model.d.ts +659 -641
- package/src/rich-text-editor/base/rich-text-editor.d.ts +84 -52
- package/src/rich-text-editor/base/rich-text-editor.js +100 -43
- 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 +9 -8
- package/src/rich-text-editor/formatter/formatter.js +10 -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/models/iframe-settings-model.d.ts +21 -21
- package/src/rich-text-editor/models/inline-mode-model.d.ts +9 -9
- package/src/rich-text-editor/models/toolbar-settings-model.d.ts +228 -228
- 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 +3 -2
- package/src/rich-text-editor/renderer/dialog-renderer.js +8 -8
- 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 +96 -29
- package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/link-module.js +1 -1
- package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
- package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
- package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
- package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
- package/src/rich-text-editor/renderer/render.d.ts +2 -2
- package/src/rich-text-editor/renderer/render.js +2 -2
- package/src/rich-text-editor/renderer/table-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/table-module.js +5 -3
- package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +8 -8
- package/src/rich-text-editor/renderer/toolbar-renderer.js +21 -9
- package/src/rich-text-editor/renderer/view-source.d.ts +6 -6
- package/src/rich-text-editor/renderer/view-source.js +6 -6
- package/src/rich-text-editor/services/renderer-factory.d.ts +3 -3
- package/src/rich-text-editor/services/renderer-factory.js +3 -3
- package/src/rich-text-editor/services/service-locator.d.ts +3 -3
- package/src/rich-text-editor/services/service-locator.js +3 -3
- package/src/selection/selection.d.ts +22 -22
- package/src/selection/selection.js +22 -22
- package/styles/_all.scss +2 -2
- package/styles/rich-text-editor/_all.scss +2 -2
- package/styles/rich-text-editor/_bootstrap-dark-definition.scss +151 -151
- package/styles/rich-text-editor/_bootstrap-definition.scss +184 -184
- package/styles/rich-text-editor/_bootstrap4-definition.scss +307 -307
- package/styles/rich-text-editor/_fabric-dark-definition.scss +150 -150
- package/styles/rich-text-editor/_fabric-definition.scss +148 -148
- package/styles/rich-text-editor/_highcontrast-definition.scss +148 -148
- package/styles/rich-text-editor/_highcontrast-light-definition.scss +148 -148
- package/styles/rich-text-editor/_layout.scss +1332 -1332
- package/styles/rich-text-editor/_material-dark-definition.scss +151 -151
- package/styles/rich-text-editor/_material-definition.scss +150 -150
- package/styles/rich-text-editor/_theme.scss +484 -484
- package/styles/rich-text-editor/icons/_bootstrap-dark.scss +285 -285
- package/styles/rich-text-editor/icons/_bootstrap.scss +284 -284
- package/styles/rich-text-editor/icons/_bootstrap4.scss +284 -284
- package/styles/rich-text-editor/icons/_fabric-dark.scss +284 -284
- package/styles/rich-text-editor/icons/_fabric.scss +284 -284
- package/styles/rich-text-editor/icons/_highcontrast-light.scss +284 -284
- package/styles/rich-text-editor/icons/_highcontrast.scss +284 -284
- package/styles/rich-text-editor/icons/_material-dark.scss +284 -284
- package/styles/rich-text-editor/icons/_material.scss +284 -284
- package/dist/global/ej2-richtexteditor.min.js +0 -11
- package/dist/global/ej2-richtexteditor.min.js.map +0 -1
- package/dist/global/index.d.ts +0 -14
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Property, ChildProperty } from '@syncfusion/ej2-base';
|
|
1
|
+
import { Property, ChildProperty } from '@syncfusion/ej2-base';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Interface for a class ToolbarSettings
|
|
@@ -6,39 +6,39 @@ import { Property, ChildProperty } from '@syncfusion/ej2-base';import { ToolbarT
|
|
|
6
6
|
export interface ToolbarSettingsModel {
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* Specifies whether to render toolbar in RichTextEditor.
|
|
10
|
-
* @default true
|
|
11
|
-
*/
|
|
12
|
-
enable?: boolean;
|
|
9
|
+
* Specifies whether to render toolbar in RichTextEditor.
|
|
10
|
+
* @default true
|
|
11
|
+
*/
|
|
12
|
+
enable?: boolean;
|
|
13
13
|
|
|
14
14
|
/**
|
|
15
|
-
* Specifies whether to enable/disable floating toolbar.
|
|
16
|
-
* @default true
|
|
17
|
-
*/
|
|
18
|
-
enableFloating?: boolean;
|
|
15
|
+
* Specifies whether to enable/disable floating toolbar.
|
|
16
|
+
* @default true
|
|
17
|
+
*/
|
|
18
|
+
enableFloating?: boolean;
|
|
19
19
|
|
|
20
20
|
/**
|
|
21
|
-
* Specifies the Toolbar display types.
|
|
22
|
-
* The possible types are:
|
|
23
|
-
* - Expand: Toolbar items placed within the available space and rest of the items are placed to the extended menu section.
|
|
24
|
-
* - MultiRow: Toolbar which placed at top of Rich Text Editor editing area.
|
|
25
|
-
* - Scrollable: All the toolbar items are displayed in a single line with horizontal scrolling enabled.
|
|
26
|
-
* @default Expand
|
|
27
|
-
*/
|
|
28
|
-
type?: ToolbarType;
|
|
21
|
+
* Specifies the Toolbar display types.
|
|
22
|
+
* The possible types are:
|
|
23
|
+
* - Expand: Toolbar items placed within the available space and rest of the items are placed to the extended menu section.
|
|
24
|
+
* - MultiRow: Toolbar which placed at top of Rich Text Editor editing area.
|
|
25
|
+
* - Scrollable: All the toolbar items are displayed in a single line with horizontal scrolling enabled.
|
|
26
|
+
* @default Expand
|
|
27
|
+
*/
|
|
28
|
+
type?: ToolbarType;
|
|
29
29
|
|
|
30
30
|
/**
|
|
31
|
-
* An array of string or object that is used to configure items.
|
|
32
|
-
* @default ['Bold', 'Italic', 'Underline', '|', 'Formats', 'Alignments', 'OrderedList',
|
|
33
|
-
* 'UnorderedList', '|', 'CreateLink', 'Image', '|', 'SourceCode', 'Undo', 'Redo']
|
|
34
|
-
*/
|
|
35
|
-
items?: (string | IToolbarItems)[];
|
|
31
|
+
* An array of string or object that is used to configure items.
|
|
32
|
+
* @default ['Bold', 'Italic', 'Underline', '|', 'Formats', 'Alignments', 'OrderedList',
|
|
33
|
+
* 'UnorderedList', '|', 'CreateLink', 'Image', '|', 'SourceCode', 'Undo', 'Redo']
|
|
34
|
+
*/
|
|
35
|
+
items?: (string | IToolbarItems)[];
|
|
36
36
|
|
|
37
37
|
/**
|
|
38
|
-
* Using this property, Modify the default toolbar item configuration like icon class.
|
|
39
|
-
* @default {}
|
|
40
|
-
*/
|
|
41
|
-
itemConfigs?: { [key in ToolbarItems]?: IToolsItemConfigs };
|
|
38
|
+
* Using this property, Modify the default toolbar item configuration like icon class.
|
|
39
|
+
* @default {}
|
|
40
|
+
*/
|
|
41
|
+
itemConfigs?: { [key in ToolbarItems]?: IToolsItemConfigs };
|
|
42
42
|
|
|
43
43
|
}
|
|
44
44
|
|
|
@@ -48,82 +48,82 @@ export interface ToolbarSettingsModel {
|
|
|
48
48
|
export interface ImageSettingsModel {
|
|
49
49
|
|
|
50
50
|
/**
|
|
51
|
-
* Specifies whether to allowType based file select.
|
|
52
|
-
* @default ['.jpeg', '.jpg', '.png']
|
|
53
|
-
*/
|
|
54
|
-
allowedTypes?: string[];
|
|
51
|
+
* Specifies whether to allowType based file select.
|
|
52
|
+
* @default ['.jpeg', '.jpg', '.png']
|
|
53
|
+
*/
|
|
54
|
+
allowedTypes?: string[];
|
|
55
55
|
|
|
56
56
|
/**
|
|
57
|
-
* Specifies whether insert image inline or break.
|
|
58
|
-
* @default 'inline'
|
|
59
|
-
*/
|
|
60
|
-
display?: string;
|
|
57
|
+
* Specifies whether insert image inline or break.
|
|
58
|
+
* @default 'inline'
|
|
59
|
+
*/
|
|
60
|
+
display?: string;
|
|
61
61
|
|
|
62
62
|
/**
|
|
63
|
-
* Specifies whether the inserted image is saved as blob or base64.
|
|
64
|
-
* @default 'Blob'
|
|
65
|
-
*/
|
|
66
|
-
saveFormat?: SaveFormat;
|
|
63
|
+
* Specifies whether the inserted image is saved as blob or base64.
|
|
64
|
+
* @default 'Blob'
|
|
65
|
+
*/
|
|
66
|
+
saveFormat?: SaveFormat;
|
|
67
67
|
|
|
68
68
|
/**
|
|
69
|
-
* Specifies whether image width.
|
|
70
|
-
* @default 'auto'
|
|
71
|
-
*/
|
|
72
|
-
width?: string;
|
|
69
|
+
* Specifies whether image width.
|
|
70
|
+
* @default 'auto'
|
|
71
|
+
*/
|
|
72
|
+
width?: string;
|
|
73
73
|
|
|
74
74
|
/**
|
|
75
|
-
* Specifies whether image height.
|
|
76
|
-
* @default 'auto'
|
|
77
|
-
*/
|
|
78
|
-
height?: string;
|
|
75
|
+
* Specifies whether image height.
|
|
76
|
+
* @default 'auto'
|
|
77
|
+
*/
|
|
78
|
+
height?: string;
|
|
79
79
|
|
|
80
80
|
/**
|
|
81
|
-
* Specifies the URL of save action that will receive the upload files and save in the server.
|
|
82
|
-
* @default 'null'
|
|
83
|
-
*/
|
|
84
|
-
saveUrl?: string;
|
|
81
|
+
* Specifies the URL of save action that will receive the upload files and save in the server.
|
|
82
|
+
* @default 'null'
|
|
83
|
+
*/
|
|
84
|
+
saveUrl?: string;
|
|
85
85
|
|
|
86
86
|
/**
|
|
87
|
-
* Specifies the URL of save action that will receive the upload files and save in the server.
|
|
88
|
-
* @default 'null'
|
|
89
|
-
*/
|
|
90
|
-
path?: string;
|
|
87
|
+
* Specifies the URL of save action that will receive the upload files and save in the server.
|
|
88
|
+
* @default 'null'
|
|
89
|
+
*/
|
|
90
|
+
path?: string;
|
|
91
91
|
|
|
92
92
|
/**
|
|
93
|
-
* To enable resizing for image element.
|
|
94
|
-
* @default 'true'
|
|
95
|
-
*/
|
|
96
|
-
resize?: boolean;
|
|
93
|
+
* To enable resizing for image element.
|
|
94
|
+
* @default 'true'
|
|
95
|
+
*/
|
|
96
|
+
resize?: boolean;
|
|
97
97
|
|
|
98
98
|
/**
|
|
99
|
-
* Defines the minimum Width of the image.
|
|
100
|
-
* @default '0'
|
|
101
|
-
*/
|
|
102
|
-
minWidth?: string | number;
|
|
99
|
+
* Defines the minimum Width of the image.
|
|
100
|
+
* @default '0'
|
|
101
|
+
*/
|
|
102
|
+
minWidth?: string | number;
|
|
103
103
|
|
|
104
104
|
/**
|
|
105
|
-
* Defines the maximum Width of the image.
|
|
106
|
-
* @default null
|
|
107
|
-
*/
|
|
108
|
-
maxWidth?: string | number;
|
|
105
|
+
* Defines the maximum Width of the image.
|
|
106
|
+
* @default null
|
|
107
|
+
*/
|
|
108
|
+
maxWidth?: string | number;
|
|
109
109
|
|
|
110
110
|
/**
|
|
111
|
-
* Defines the minimum Height of the image.
|
|
112
|
-
* @default '0'
|
|
113
|
-
*/
|
|
114
|
-
minHeight?: string | number;
|
|
111
|
+
* Defines the minimum Height of the image.
|
|
112
|
+
* @default '0'
|
|
113
|
+
*/
|
|
114
|
+
minHeight?: string | number;
|
|
115
115
|
|
|
116
116
|
/**
|
|
117
|
-
* Defines the maximum Height of the image.
|
|
118
|
-
* @default null
|
|
119
|
-
*/
|
|
120
|
-
maxHeight?: string | number;
|
|
117
|
+
* Defines the maximum Height of the image.
|
|
118
|
+
* @default null
|
|
119
|
+
*/
|
|
120
|
+
maxHeight?: string | number;
|
|
121
121
|
|
|
122
122
|
/**
|
|
123
|
-
* image resizing should be done by percentage calculation.
|
|
124
|
-
* @default false
|
|
125
|
-
*/
|
|
126
|
-
resizeByPercent?: boolean;
|
|
123
|
+
* image resizing should be done by percentage calculation.
|
|
124
|
+
* @default false
|
|
125
|
+
*/
|
|
126
|
+
resizeByPercent?: boolean;
|
|
127
127
|
|
|
128
128
|
}
|
|
129
129
|
|
|
@@ -133,35 +133,35 @@ export interface ImageSettingsModel {
|
|
|
133
133
|
export interface TableSettingsModel {
|
|
134
134
|
|
|
135
135
|
/**
|
|
136
|
-
* To specify the width of table
|
|
137
|
-
* @default '100%'
|
|
138
|
-
*/
|
|
139
|
-
width?: string | number;
|
|
136
|
+
* To specify the width of table
|
|
137
|
+
* @default '100%'
|
|
138
|
+
*/
|
|
139
|
+
width?: string | number;
|
|
140
140
|
|
|
141
141
|
/**
|
|
142
|
-
* Class name should be appended by default in table element.
|
|
143
|
-
* It helps to design the table in specific CSS styles always when inserting in editor.
|
|
144
|
-
* @default TableStyleItems;
|
|
145
|
-
*/
|
|
146
|
-
styles?: IDropDownItemModel[];
|
|
142
|
+
* Class name should be appended by default in table element.
|
|
143
|
+
* It helps to design the table in specific CSS styles always when inserting in editor.
|
|
144
|
+
* @default TableStyleItems;
|
|
145
|
+
*/
|
|
146
|
+
styles?: IDropDownItemModel[];
|
|
147
147
|
|
|
148
148
|
/**
|
|
149
|
-
* To enable resizing for table element.
|
|
150
|
-
* @default 'true'
|
|
151
|
-
*/
|
|
152
|
-
resize?: boolean;
|
|
149
|
+
* To enable resizing for table element.
|
|
150
|
+
* @default 'true'
|
|
151
|
+
*/
|
|
152
|
+
resize?: boolean;
|
|
153
153
|
|
|
154
154
|
/**
|
|
155
|
-
* Defines the minimum Width of the table.
|
|
156
|
-
* @default '0'
|
|
157
|
-
*/
|
|
158
|
-
minWidth?: string | number;
|
|
155
|
+
* Defines the minimum Width of the table.
|
|
156
|
+
* @default '0'
|
|
157
|
+
*/
|
|
158
|
+
minWidth?: string | number;
|
|
159
159
|
|
|
160
160
|
/**
|
|
161
|
-
* Defines the maximum Width of the table.
|
|
162
|
-
* @default null
|
|
163
|
-
*/
|
|
164
|
-
maxWidth?: string | number;
|
|
161
|
+
* Defines the maximum Width of the table.
|
|
162
|
+
* @default null
|
|
163
|
+
*/
|
|
164
|
+
maxWidth?: string | number;
|
|
165
165
|
|
|
166
166
|
}
|
|
167
167
|
|
|
@@ -171,47 +171,47 @@ export interface TableSettingsModel {
|
|
|
171
171
|
export interface QuickToolbarSettingsModel {
|
|
172
172
|
|
|
173
173
|
/**
|
|
174
|
-
* Specifies whether to enable quick toolbar in RichTextEditor.
|
|
175
|
-
* @default true
|
|
176
|
-
*/
|
|
177
|
-
enable?: boolean;
|
|
174
|
+
* Specifies whether to enable quick toolbar in RichTextEditor.
|
|
175
|
+
* @default true
|
|
176
|
+
*/
|
|
177
|
+
enable?: boolean;
|
|
178
178
|
|
|
179
179
|
/**
|
|
180
|
-
* Specifies whether to opens a quick toolbar on the right click.
|
|
181
|
-
* @default false
|
|
182
|
-
*/
|
|
183
|
-
showOnRightClick?: boolean;
|
|
180
|
+
* Specifies whether to opens a quick toolbar on the right click.
|
|
181
|
+
* @default false
|
|
182
|
+
*/
|
|
183
|
+
showOnRightClick?: boolean;
|
|
184
184
|
|
|
185
185
|
/**
|
|
186
|
-
* Specifies the action that should happen when scroll the target-parent container.
|
|
187
|
-
* @default 'hide'
|
|
188
|
-
*/
|
|
189
|
-
actionOnScroll?: ActionOnScroll;
|
|
186
|
+
* Specifies the action that should happen when scroll the target-parent container.
|
|
187
|
+
* @default 'hide'
|
|
188
|
+
*/
|
|
189
|
+
actionOnScroll?: ActionOnScroll;
|
|
190
190
|
|
|
191
191
|
/**
|
|
192
|
-
* Specifies the items to render in quick toolbar, when link selected.
|
|
193
|
-
* @default ['Open', 'Edit', 'UnLink']
|
|
194
|
-
*/
|
|
195
|
-
link?: (string | IToolbarItems)[];
|
|
192
|
+
* Specifies the items to render in quick toolbar, when link selected.
|
|
193
|
+
* @default ['Open', 'Edit', 'UnLink']
|
|
194
|
+
*/
|
|
195
|
+
link?: (string | IToolbarItems)[];
|
|
196
196
|
|
|
197
197
|
/**
|
|
198
|
-
* Specifies the items to render in quick toolbar, when image selected.
|
|
199
|
-
* @default ['Replace', 'Align', 'Caption', 'Remove', '-', 'InsertLink','OpenImageLink', 'EditImageLink', 'RemoveImageLink', 'Display', 'AltText', 'Dimension']
|
|
200
|
-
*/
|
|
201
|
-
// tslint:disable
|
|
202
|
-
image?: (string | IToolbarItems)[];
|
|
198
|
+
* Specifies the items to render in quick toolbar, when image selected.
|
|
199
|
+
* @default ['Replace', 'Align', 'Caption', 'Remove', '-', 'InsertLink','OpenImageLink', 'EditImageLink', 'RemoveImageLink', 'Display', 'AltText', 'Dimension']
|
|
200
|
+
*/
|
|
201
|
+
// tslint:disable
|
|
202
|
+
image?: (string | IToolbarItems)[];
|
|
203
203
|
|
|
204
204
|
/**
|
|
205
|
-
* Specifies the items to render in quick toolbar, when text selected.
|
|
206
|
-
* @default ['Cut', 'Copy', 'Paste']
|
|
207
|
-
*/
|
|
208
|
-
text?: (string | IToolbarItems)[];
|
|
205
|
+
* Specifies the items to render in quick toolbar, when text selected.
|
|
206
|
+
* @default ['Cut', 'Copy', 'Paste']
|
|
207
|
+
*/
|
|
208
|
+
text?: (string | IToolbarItems)[];
|
|
209
209
|
|
|
210
210
|
/**
|
|
211
|
-
* Specifies the items to render in quick toolbar, when table selected.
|
|
212
|
-
* @default ['TableHeader', 'TableRows', 'TableColumns', 'BackgroundColor', '-', 'TableRemove', 'Alignments', 'TableCellVerticalAlign', 'Styles']
|
|
213
|
-
*/
|
|
214
|
-
table?: (string | IToolbarItems)[];
|
|
211
|
+
* Specifies the items to render in quick toolbar, when table selected.
|
|
212
|
+
* @default ['TableHeader', 'TableRows', 'TableColumns', 'BackgroundColor', '-', 'TableRemove', 'Alignments', 'TableCellVerticalAlign', 'Styles']
|
|
213
|
+
*/
|
|
214
|
+
table?: (string | IToolbarItems)[];
|
|
215
215
|
|
|
216
216
|
}
|
|
217
217
|
|
|
@@ -221,40 +221,40 @@ export interface QuickToolbarSettingsModel {
|
|
|
221
221
|
export interface PasteCleanupSettingsModel {
|
|
222
222
|
|
|
223
223
|
/**
|
|
224
|
-
* Specifies whether to enable the prompt for paste in RichTextEditor.
|
|
225
|
-
* @default false
|
|
226
|
-
*/
|
|
227
|
-
prompt?: boolean;
|
|
224
|
+
* Specifies whether to enable the prompt for paste in RichTextEditor.
|
|
225
|
+
* @default false
|
|
226
|
+
*/
|
|
227
|
+
prompt?: boolean;
|
|
228
228
|
|
|
229
229
|
/**
|
|
230
|
-
* Specifies the attributes to restrict when pasting in RichTextEditor.
|
|
231
|
-
* @default null
|
|
232
|
-
*/
|
|
233
|
-
deniedAttrs?: string[];
|
|
230
|
+
* Specifies the attributes to restrict when pasting in RichTextEditor.
|
|
231
|
+
* @default null
|
|
232
|
+
*/
|
|
233
|
+
deniedAttrs?: string[];
|
|
234
234
|
|
|
235
235
|
/**
|
|
236
|
-
* Specifies the allowed style properties when pasting in RichTextEditor.
|
|
237
|
-
* @default ['background', 'background-color', 'border', 'border-bottom', 'border-left', 'border-radius', 'border-right', 'border-style', 'border-top', 'border-width', 'clear', 'color', 'cursor', 'direction', 'display', 'float', 'font', 'font-family', 'font-size', 'font-weight', 'font-style', 'height', 'left', 'line-height', 'margin', 'margin-top', 'margin-left', 'margin-right', 'margin-bottom', 'max-height', 'max-width', 'min-height', 'min-width', 'overflow', 'overflow-x', 'overflow-y', 'padding', 'padding-bottom', 'padding-left', 'padding-right', 'padding-top', 'position', 'right', 'table-layout', 'text-align', 'text-decoration', 'text-indent', 'top', 'vertical-align', 'visibility', 'white-space', 'width']
|
|
238
|
-
*/
|
|
239
|
-
allowedStyleProps?: string[];
|
|
236
|
+
* Specifies the allowed style properties when pasting in RichTextEditor.
|
|
237
|
+
* @default ['background', 'background-color', 'border', 'border-bottom', 'border-left', 'border-radius', 'border-right', 'border-style', 'border-top', 'border-width', 'clear', 'color', 'cursor', 'direction', 'display', 'float', 'font', 'font-family', 'font-size', 'font-weight', 'font-style', 'height', 'left', 'line-height', 'margin', 'margin-top', 'margin-left', 'margin-right', 'margin-bottom', 'max-height', 'max-width', 'min-height', 'min-width', 'overflow', 'overflow-x', 'overflow-y', 'padding', 'padding-bottom', 'padding-left', 'padding-right', 'padding-top', 'position', 'right', 'table-layout', 'text-align', 'text-decoration', 'text-indent', 'top', 'vertical-align', 'visibility', 'white-space', 'width']
|
|
238
|
+
*/
|
|
239
|
+
allowedStyleProps?: string[];
|
|
240
240
|
|
|
241
241
|
/**
|
|
242
|
-
* Specifies the tags to restrict when pasting in RichTextEditor.
|
|
243
|
-
* @default null
|
|
244
|
-
*/
|
|
245
|
-
deniedTags?: string[];
|
|
242
|
+
* Specifies the tags to restrict when pasting in RichTextEditor.
|
|
243
|
+
* @default null
|
|
244
|
+
*/
|
|
245
|
+
deniedTags?: string[];
|
|
246
246
|
|
|
247
247
|
/**
|
|
248
|
-
* Specifies whether to keep or remove the format when pasting in RichTextEditor.
|
|
249
|
-
* @default true
|
|
250
|
-
*/
|
|
251
|
-
keepFormat?: boolean;
|
|
248
|
+
* Specifies whether to keep or remove the format when pasting in RichTextEditor.
|
|
249
|
+
* @default true
|
|
250
|
+
*/
|
|
251
|
+
keepFormat?: boolean;
|
|
252
252
|
|
|
253
253
|
/**
|
|
254
|
-
* Specifies whether to paste as plain text or not in RichTextEditor.
|
|
255
|
-
* @default false
|
|
256
|
-
*/
|
|
257
|
-
plainText?: boolean;
|
|
254
|
+
* Specifies whether to paste as plain text or not in RichTextEditor.
|
|
255
|
+
* @default false
|
|
256
|
+
*/
|
|
257
|
+
plainText?: boolean;
|
|
258
258
|
|
|
259
259
|
}
|
|
260
260
|
|
|
@@ -264,22 +264,22 @@ export interface PasteCleanupSettingsModel {
|
|
|
264
264
|
export interface FontFamilyModel {
|
|
265
265
|
|
|
266
266
|
/**
|
|
267
|
-
* Specifies default font family selection
|
|
268
|
-
* @default 'null'
|
|
269
|
-
*/
|
|
270
|
-
default?: string;
|
|
267
|
+
* Specifies default font family selection
|
|
268
|
+
* @default 'null'
|
|
269
|
+
*/
|
|
270
|
+
default?: string;
|
|
271
271
|
|
|
272
272
|
/**
|
|
273
|
-
* Specifies content width
|
|
274
|
-
* @default '65px'
|
|
275
|
-
*/
|
|
276
|
-
width?: string;
|
|
273
|
+
* Specifies content width
|
|
274
|
+
* @default '65px'
|
|
275
|
+
*/
|
|
276
|
+
width?: string;
|
|
277
277
|
|
|
278
278
|
/**
|
|
279
|
-
* Specifies default font family items
|
|
280
|
-
* @default fontFamily
|
|
281
|
-
*/
|
|
282
|
-
items?: IDropDownItemModel[];
|
|
279
|
+
* Specifies default font family items
|
|
280
|
+
* @default fontFamily
|
|
281
|
+
*/
|
|
282
|
+
items?: IDropDownItemModel[];
|
|
283
283
|
|
|
284
284
|
}
|
|
285
285
|
|
|
@@ -289,22 +289,22 @@ export interface FontFamilyModel {
|
|
|
289
289
|
export interface FontSizeModel {
|
|
290
290
|
|
|
291
291
|
/**
|
|
292
|
-
* Specifies default font size selection
|
|
293
|
-
* @default 'null'
|
|
294
|
-
*/
|
|
295
|
-
default?: string;
|
|
292
|
+
* Specifies default font size selection
|
|
293
|
+
* @default 'null'
|
|
294
|
+
*/
|
|
295
|
+
default?: string;
|
|
296
296
|
|
|
297
297
|
/**
|
|
298
|
-
* Specifies content width
|
|
299
|
-
* @default '35px'
|
|
300
|
-
*/
|
|
301
|
-
width?: string;
|
|
298
|
+
* Specifies content width
|
|
299
|
+
* @default '35px'
|
|
300
|
+
*/
|
|
301
|
+
width?: string;
|
|
302
302
|
|
|
303
303
|
/**
|
|
304
|
-
* Specifies default font size items
|
|
305
|
-
* @default fontSize
|
|
306
|
-
*/
|
|
307
|
-
items?: IDropDownItemModel[];
|
|
304
|
+
* Specifies default font size items
|
|
305
|
+
* @default fontSize
|
|
306
|
+
*/
|
|
307
|
+
items?: IDropDownItemModel[];
|
|
308
308
|
|
|
309
309
|
}
|
|
310
310
|
|
|
@@ -314,22 +314,22 @@ export interface FontSizeModel {
|
|
|
314
314
|
export interface FormatModel {
|
|
315
315
|
|
|
316
316
|
/**
|
|
317
|
-
* Specifies default format
|
|
318
|
-
* @default 'null'
|
|
319
|
-
*/
|
|
320
|
-
default?: string;
|
|
317
|
+
* Specifies default format
|
|
318
|
+
* @default 'null'
|
|
319
|
+
*/
|
|
320
|
+
default?: string;
|
|
321
321
|
|
|
322
322
|
/**
|
|
323
|
-
* Specifies content width
|
|
324
|
-
* @default '65px'
|
|
325
|
-
*/
|
|
326
|
-
width?: string;
|
|
323
|
+
* Specifies content width
|
|
324
|
+
* @default '65px'
|
|
325
|
+
*/
|
|
326
|
+
width?: string;
|
|
327
327
|
|
|
328
328
|
/**
|
|
329
|
-
* Specifies default font size items
|
|
330
|
-
* @default formatItems
|
|
331
|
-
*/
|
|
332
|
-
types?: IDropDownItemModel[];
|
|
329
|
+
* Specifies default font size items
|
|
330
|
+
* @default formatItems
|
|
331
|
+
*/
|
|
332
|
+
types?: IDropDownItemModel[];
|
|
333
333
|
|
|
334
334
|
}
|
|
335
335
|
|
|
@@ -339,34 +339,34 @@ export interface FormatModel {
|
|
|
339
339
|
export interface FontColorModel {
|
|
340
340
|
|
|
341
341
|
/**
|
|
342
|
-
* Specifies default font color
|
|
343
|
-
* @default '#ff0000'
|
|
344
|
-
*/
|
|
345
|
-
default?: string;
|
|
342
|
+
* Specifies default font color
|
|
343
|
+
* @default '#ff0000'
|
|
344
|
+
*/
|
|
345
|
+
default?: string;
|
|
346
346
|
|
|
347
347
|
/**
|
|
348
|
-
* Specifies mode
|
|
349
|
-
* @default 'Palette'
|
|
350
|
-
*/
|
|
351
|
-
mode?: ColorModeType;
|
|
348
|
+
* Specifies mode
|
|
349
|
+
* @default 'Palette'
|
|
350
|
+
*/
|
|
351
|
+
mode?: ColorModeType;
|
|
352
352
|
|
|
353
353
|
/**
|
|
354
|
-
* Specifies columns
|
|
355
|
-
* @default 10
|
|
356
|
-
*/
|
|
357
|
-
columns?: number;
|
|
354
|
+
* Specifies columns
|
|
355
|
+
* @default 10
|
|
356
|
+
*/
|
|
357
|
+
columns?: number;
|
|
358
358
|
|
|
359
359
|
/**
|
|
360
|
-
* Specifies color code customization
|
|
361
|
-
* @default fontColor
|
|
362
|
-
*/
|
|
363
|
-
colorCode?: { [key: string]: string[] };
|
|
360
|
+
* Specifies color code customization
|
|
361
|
+
* @default fontColor
|
|
362
|
+
*/
|
|
363
|
+
colorCode?: { [key: string]: string[] };
|
|
364
364
|
|
|
365
365
|
/**
|
|
366
|
-
* Specifies modeSwitcher button
|
|
367
|
-
* @default false
|
|
368
|
-
*/
|
|
369
|
-
modeSwitcher?: boolean;
|
|
366
|
+
* Specifies modeSwitcher button
|
|
367
|
+
* @default false
|
|
368
|
+
*/
|
|
369
|
+
modeSwitcher?: boolean;
|
|
370
370
|
|
|
371
371
|
}
|
|
372
372
|
|
|
@@ -376,33 +376,33 @@ export interface FontColorModel {
|
|
|
376
376
|
export interface BackgroundColorModel {
|
|
377
377
|
|
|
378
378
|
/**
|
|
379
|
-
* Specifies default font color
|
|
380
|
-
* @default '#ffff00'
|
|
381
|
-
*/
|
|
382
|
-
default?: string;
|
|
379
|
+
* Specifies default font color
|
|
380
|
+
* @default '#ffff00'
|
|
381
|
+
*/
|
|
382
|
+
default?: string;
|
|
383
383
|
|
|
384
384
|
/**
|
|
385
|
-
* Specifies mode
|
|
386
|
-
* @default 'Palette'
|
|
387
|
-
*/
|
|
388
|
-
mode?: ColorModeType;
|
|
385
|
+
* Specifies mode
|
|
386
|
+
* @default 'Palette'
|
|
387
|
+
*/
|
|
388
|
+
mode?: ColorModeType;
|
|
389
389
|
|
|
390
390
|
/**
|
|
391
|
-
* Specifies columns
|
|
392
|
-
* @default 10
|
|
393
|
-
*/
|
|
394
|
-
columns?: number;
|
|
391
|
+
* Specifies columns
|
|
392
|
+
* @default 10
|
|
393
|
+
*/
|
|
394
|
+
columns?: number;
|
|
395
395
|
|
|
396
396
|
/**
|
|
397
|
-
* Specifies color code customization
|
|
398
|
-
* @default backgroundColor
|
|
399
|
-
*/
|
|
400
|
-
colorCode?: { [key: string]: string[] };
|
|
397
|
+
* Specifies color code customization
|
|
398
|
+
* @default backgroundColor
|
|
399
|
+
*/
|
|
400
|
+
colorCode?: { [key: string]: string[] };
|
|
401
401
|
|
|
402
402
|
/**
|
|
403
|
-
* Specifies a modeSwitcher button
|
|
404
|
-
* @default false
|
|
405
|
-
*/
|
|
406
|
-
modeSwitcher?: boolean;
|
|
403
|
+
* Specifies a modeSwitcher button
|
|
404
|
+
* @default false
|
|
405
|
+
*/
|
|
406
|
+
modeSwitcher?: boolean;
|
|
407
407
|
|
|
408
408
|
}
|
|
@@ -3,7 +3,7 @@ import { ServiceLocator } from '../services/service-locator';
|
|
|
3
3
|
/**
|
|
4
4
|
* Content module is used to render Rich Text Editor content
|
|
5
5
|
* @hidden
|
|
6
|
-
|
|
6
|
+
* @deprecated
|
|
7
7
|
*/
|
|
8
8
|
export declare class ContentRender implements IRenderer {
|
|
9
9
|
protected contentPanel: Element;
|
|
@@ -17,21 +17,21 @@ export declare class ContentRender implements IRenderer {
|
|
|
17
17
|
/**
|
|
18
18
|
* The function is used to render Rich Text Editor content div
|
|
19
19
|
* @hidden
|
|
20
|
-
|
|
20
|
+
* @deprecated
|
|
21
21
|
*/
|
|
22
22
|
renderPanel(): void;
|
|
23
23
|
/**
|
|
24
24
|
* Get the content div element of RichTextEditor
|
|
25
25
|
* @return {Element}
|
|
26
26
|
* @hidden
|
|
27
|
-
|
|
27
|
+
* @deprecated
|
|
28
28
|
*/
|
|
29
29
|
getPanel(): Element;
|
|
30
30
|
/**
|
|
31
31
|
* Get the editable element of RichTextEditor
|
|
32
32
|
* @return {Element}
|
|
33
33
|
* @hidden
|
|
34
|
-
|
|
34
|
+
* @deprecated
|
|
35
35
|
*/
|
|
36
36
|
getEditPanel(): Element;
|
|
37
37
|
/**
|
|
@@ -43,14 +43,14 @@ export declare class ContentRender implements IRenderer {
|
|
|
43
43
|
* Set the content div element of RichTextEditor
|
|
44
44
|
* @param {Element} panel
|
|
45
45
|
* @hidden
|
|
46
|
-
|
|
46
|
+
* @deprecated
|
|
47
47
|
*/
|
|
48
48
|
setPanel(panel: Element): void;
|
|
49
49
|
/**
|
|
50
50
|
* Get the document of RichTextEditor
|
|
51
51
|
* @return {Document}
|
|
52
52
|
* @hidden
|
|
53
|
-
|
|
53
|
+
* @deprecated
|
|
54
54
|
*/
|
|
55
55
|
getDocument(): Document;
|
|
56
56
|
}
|