@syncfusion/ej2-richtexteditor 24.1.41 → 24.1.43-569781
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 +259 -259
- package/CHANGELOG.md +1927 -1775
- package/README.md +76 -76
- 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 +2601 -1077
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +2706 -1181
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- 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.d.ts +7 -0
- package/src/common/config.js +11 -0
- package/src/common/constant.d.ts +6 -0
- package/src/common/constant.js +6 -0
- package/src/common/interface.d.ts +19 -7
- package/src/common/types.d.ts +6 -0
- package/src/common/util.d.ts +6 -0
- package/src/common/util.js +61 -20
- package/src/editor-manager/base/classes.d.ts +1 -1
- package/src/editor-manager/base/classes.js +1 -1
- package/src/editor-manager/base/constant.d.ts +6 -0
- package/src/editor-manager/base/constant.js +6 -0
- package/src/editor-manager/base/editor-manager.d.ts +8 -3
- package/src/editor-manager/base/editor-manager.js +62 -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 +39 -35
- package/src/editor-manager/plugin/dom-node.js +203 -49
- package/src/editor-manager/plugin/format-painter-actions.d.ts +2 -1
- package/src/editor-manager/plugin/format-painter-actions.js +20 -2
- package/src/editor-manager/plugin/formats.d.ts +3 -2
- package/src/editor-manager/plugin/formats.js +40 -5
- package/src/editor-manager/plugin/image.d.ts +3 -3
- package/src/editor-manager/plugin/image.js +15 -19
- package/src/editor-manager/plugin/indents.d.ts +2 -2
- package/src/editor-manager/plugin/indents.js +2 -2
- package/src/editor-manager/plugin/insert-methods.d.ts +4 -4
- package/src/editor-manager/plugin/insert-methods.js +4 -4
- package/src/editor-manager/plugin/insert-text.d.ts +2 -2
- package/src/editor-manager/plugin/insert-text.js +2 -2
- package/src/editor-manager/plugin/inserthtml-exec.d.ts +2 -2
- package/src/editor-manager/plugin/inserthtml-exec.js +2 -2
- package/src/editor-manager/plugin/inserthtml.d.ts +3 -2
- package/src/editor-manager/plugin/inserthtml.js +64 -7
- 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 +6 -3
- package/src/editor-manager/plugin/lists.d.ts +2 -2
- package/src/editor-manager/plugin/lists.js +123 -67
- package/src/editor-manager/plugin/ms-word-clean-up.d.ts +4 -1
- package/src/editor-manager/plugin/ms-word-clean-up.js +213 -86
- package/src/editor-manager/plugin/nodecutter.d.ts +6 -6
- package/src/editor-manager/plugin/nodecutter.js +8 -8
- package/src/editor-manager/plugin/selection-commands.d.ts +2 -1
- package/src/editor-manager/plugin/selection-commands.js +127 -4
- 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 -3
- package/src/editor-manager/plugin/table.js +35 -32
- package/src/editor-manager/plugin/toolbar-status.d.ts +4 -4
- package/src/editor-manager/plugin/toolbar-status.js +22 -12
- package/src/editor-manager/plugin/undo.d.ts +7 -6
- package/src/editor-manager/plugin/undo.js +27 -7
- 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 +12 -12
- package/src/rich-text-editor/actions/base-quick-toolbar.js +57 -20
- package/src/rich-text-editor/actions/base-toolbar.d.ts +3 -3
- package/src/rich-text-editor/actions/base-toolbar.js +35 -37
- package/src/rich-text-editor/actions/color-picker.d.ts +3 -2
- package/src/rich-text-editor/actions/color-picker.js +12 -2
- package/src/rich-text-editor/actions/count.d.ts +3 -3
- package/src/rich-text-editor/actions/count.js +4 -4
- package/src/rich-text-editor/actions/dropdown-buttons.d.ts +2 -2
- package/src/rich-text-editor/actions/dropdown-buttons.js +23 -4
- package/src/rich-text-editor/actions/emoji-picker.d.ts +1 -1
- package/src/rich-text-editor/actions/emoji-picker.js +4 -4
- package/src/rich-text-editor/actions/enter-key.js +4 -3
- package/src/rich-text-editor/actions/full-screen.d.ts +3 -3
- package/src/rich-text-editor/actions/full-screen.js +6 -5
- package/src/rich-text-editor/actions/html-editor.d.ts +5 -5
- package/src/rich-text-editor/actions/html-editor.js +129 -45
- 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 +23 -21
- package/src/rich-text-editor/actions/markdown-editor.d.ts +2 -2
- package/src/rich-text-editor/actions/markdown-editor.js +5 -3
- package/src/rich-text-editor/actions/paste-clean-up.d.ts +4 -1
- package/src/rich-text-editor/actions/paste-clean-up.js +87 -12
- package/src/rich-text-editor/actions/quick-toolbar.d.ts +16 -9
- package/src/rich-text-editor/actions/quick-toolbar.js +33 -18
- package/src/rich-text-editor/actions/resize.js +2 -1
- package/src/rich-text-editor/actions/toolbar-action.js +1 -1
- package/src/rich-text-editor/actions/toolbar.d.ts +15 -16
- package/src/rich-text-editor/actions/toolbar.js +31 -100
- 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 +121 -126
- package/src/rich-text-editor/base/classes.js +121 -126
- package/src/rich-text-editor/base/constant.d.ts +190 -150
- package/src/rich-text-editor/base/constant.js +359 -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 +87 -53
- 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 +68 -65
- package/src/rich-text-editor/base/rich-text-editor.js +232 -199
- package/src/rich-text-editor/base/util.d.ts +5 -1
- package/src/rich-text-editor/base/util.js +47 -4
- package/src/rich-text-editor/formatter/formatter.d.ts +8 -8
- package/src/rich-text-editor/formatter/formatter.js +23 -12
- 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 +30 -26
- 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 +2 -2
- package/src/rich-text-editor/models/toolbar-settings-model.d.ts +760 -760
- package/src/rich-text-editor/models/toolbar-settings.d.ts +1 -1
- package/src/rich-text-editor/models/toolbar-settings.js +20 -20
- package/src/rich-text-editor/renderer/audio-module.d.ts +2 -1
- package/src/rich-text-editor/renderer/audio-module.js +14 -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 +4 -2
- package/src/rich-text-editor/renderer/dialog-renderer.js +14 -3
- package/src/rich-text-editor/renderer/iframe-content-renderer.d.ts +4 -4
- package/src/rich-text-editor/renderer/iframe-content-renderer.js +19 -18
- package/src/rich-text-editor/renderer/image-module.d.ts +10 -2
- package/src/rich-text-editor/renderer/image-module.js +200 -168
- package/src/rich-text-editor/renderer/link-module.d.ts +1 -1
- package/src/rich-text-editor/renderer/link-module.js +11 -2
- package/src/rich-text-editor/renderer/markdown-renderer.d.ts +6 -6
- package/src/rich-text-editor/renderer/markdown-renderer.js +6 -6
- package/src/rich-text-editor/renderer/popup-renderer.d.ts +5 -5
- package/src/rich-text-editor/renderer/popup-renderer.js +5 -5
- package/src/rich-text-editor/renderer/render.d.ts +2 -2
- package/src/rich-text-editor/renderer/render.js +2 -2
- package/src/rich-text-editor/renderer/table-module.d.ts +9 -2
- package/src/rich-text-editor/renderer/table-module.js +289 -137
- package/src/rich-text-editor/renderer/toolbar-renderer.d.ts +13 -9
- package/src/rich-text-editor/renderer/toolbar-renderer.js +103 -24
- package/src/rich-text-editor/renderer/video-module.d.ts +4 -1
- package/src/rich-text-editor/renderer/video-module.js +62 -35
- package/src/rich-text-editor/renderer/view-source.d.ts +7 -6
- package/src/rich-text-editor/renderer/view-source.js +18 -10
- 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 +25 -22
- package/styles/_all.scss +1 -1
- package/styles/bootstrap-dark.css +153 -49
- package/styles/bootstrap.css +158 -57
- package/styles/bootstrap4.css +145 -45
- package/styles/bootstrap5-dark.css +150 -45
- package/styles/bootstrap5.css +150 -45
- package/styles/fabric-dark.css +139 -39
- package/styles/fabric.css +140 -40
- package/styles/fluent-dark.css +147 -41
- package/styles/fluent.css +147 -41
- package/styles/highcontrast-light.css +139 -39
- package/styles/highcontrast.css +143 -40
- package/styles/material-dark.css +143 -39
- package/styles/material.css +143 -39
- package/styles/material3-dark.css +155 -49
- package/styles/material3-dark.scss +1 -1
- package/styles/material3.css +155 -49
- package/styles/material3.scss +1 -1
- package/styles/rich-text-editor/_all.scss +2 -2
- package/styles/rich-text-editor/_bds-definition.scss +279 -0
- package/styles/rich-text-editor/_bootstrap-dark-definition.scss +281 -277
- package/styles/rich-text-editor/_bootstrap-definition.scss +337 -334
- package/styles/rich-text-editor/_bootstrap4-definition.scss +464 -460
- package/styles/rich-text-editor/_bootstrap5-definition.scss +266 -262
- package/styles/rich-text-editor/_fabric-dark-definition.scss +263 -259
- package/styles/rich-text-editor/_fabric-definition.scss +261 -257
- package/styles/rich-text-editor/_fluent-definition.scss +267 -263
- package/styles/rich-text-editor/_fusionnew-definition.scss +265 -261
- package/styles/rich-text-editor/_highcontrast-definition.scss +261 -257
- package/styles/rich-text-editor/_highcontrast-light-definition.scss +261 -257
- package/styles/rich-text-editor/_layout.scss +2249 -2147
- package/styles/rich-text-editor/_material-dark-definition.scss +266 -262
- package/styles/rich-text-editor/_material-definition.scss +264 -260
- package/styles/rich-text-editor/_material3-definition.scss +266 -262
- package/styles/rich-text-editor/_tailwind-definition.scss +261 -257
- package/styles/rich-text-editor/_theme.scss +906 -837
- package/styles/rich-text-editor/bootstrap-dark.css +153 -49
- package/styles/rich-text-editor/bootstrap.css +158 -57
- package/styles/rich-text-editor/bootstrap4.css +145 -45
- package/styles/rich-text-editor/bootstrap5-dark.css +150 -45
- package/styles/rich-text-editor/bootstrap5.css +150 -45
- package/styles/rich-text-editor/fabric-dark.css +139 -39
- package/styles/rich-text-editor/fabric.css +140 -40
- package/styles/rich-text-editor/fluent-dark.css +147 -41
- package/styles/rich-text-editor/fluent.css +147 -41
- package/styles/rich-text-editor/highcontrast-light.css +139 -39
- package/styles/rich-text-editor/highcontrast.css +143 -40
- package/styles/rich-text-editor/icons/_bds.scss +348 -0
- 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 +143 -39
- package/styles/rich-text-editor/material.css +143 -39
- package/styles/rich-text-editor/material3-dark.css +155 -49
- package/styles/rich-text-editor/material3-dark.scss +1 -1
- package/styles/rich-text-editor/material3.css +155 -49
- package/styles/rich-text-editor/material3.scss +1 -1
- package/styles/rich-text-editor/tailwind-dark.css +194 -66
- package/styles/rich-text-editor/tailwind.css +194 -66
- package/styles/tailwind-dark.css +194 -66
- package/styles/tailwind.css +194 -66
- package/.github/PULL_REQUEST_TEMPLATE/Bug.md +0 -41
- package/.github/PULL_REQUEST_TEMPLATE/Feature.md +0 -27
- package/dist/ej2-richtexteditor.min.js +0 -10
- package/dist/global/ej2-richtexteditor.min.js +0 -11
- package/dist/global/ej2-richtexteditor.min.js.map +0 -1
- package/dist/global/index.d.ts +0 -14
- package/tslint.json +0 -111
|
@@ -51,6 +51,10 @@ export declare function pageYOffset(e: MouseEvent | Touch, parentElement: HTMLEl
|
|
|
51
51
|
* @hidden
|
|
52
52
|
*/
|
|
53
53
|
export declare function getTooltipText(item: string, serviceLocator: ServiceLocator): string;
|
|
54
|
+
export declare function getTooltipTextDropdownItems(item: string, serviceLocator: ServiceLocator, localeItems: {
|
|
55
|
+
[ket: string]: string;
|
|
56
|
+
}[], rteObj?: IRichTextEditor): string;
|
|
57
|
+
export declare function getQuickToolbarTooltipText(item: string): string;
|
|
54
58
|
/**
|
|
55
59
|
* @param {ISetToolbarStatusArgs} e - specifies the e element
|
|
56
60
|
* @param {boolean} isPopToolbar - specifies the boolean value
|
|
@@ -88,7 +92,7 @@ export declare function updateUndoRedoStatus(baseToolbar: BaseToolbar, undoRedoS
|
|
|
88
92
|
* @param {string} type - specifies the string type.
|
|
89
93
|
* @returns {void}
|
|
90
94
|
* @hidden
|
|
91
|
-
|
|
95
|
+
* @deprecated
|
|
92
96
|
*/
|
|
93
97
|
export declare function dispatchEvent(element: Element | HTMLDocument, type: string): void;
|
|
94
98
|
/**
|
|
@@ -6,7 +6,7 @@ import { Browser, detach, SanitizeHtmlHelper, extend } from '@syncfusion/ej2-bas
|
|
|
6
6
|
import * as classes from '../base/classes';
|
|
7
7
|
import * as CONSTANT from '../base/constant';
|
|
8
8
|
import * as model from '../models/items';
|
|
9
|
-
import { toolsLocale, fontNameLocale, formatsLocale, numberFormatListLocale, bulletFormatListLocale } from '../models/default-locale';
|
|
9
|
+
import { toolsLocale, fontNameLocale, formatsLocale, numberFormatListLocale, bulletFormatListLocale, defaultLocale } from '../models/default-locale';
|
|
10
10
|
var undoRedoItems = ['Undo', 'Redo'];
|
|
11
11
|
var inlineNode = ['a', 'abbr', 'acronym', 'audio', 'b', 'bdi', 'bdo', 'big', 'br', 'button',
|
|
12
12
|
'canvas', 'cite', 'code', 'data', 'datalist', 'del', 'dfn', 'em', 'embed', 'font', 'i', 'iframe', 'img', 'input',
|
|
@@ -134,6 +134,40 @@ export function getTooltipText(item, serviceLocator) {
|
|
|
134
134
|
var tooltipText = i10n.getConstant(itemLocale);
|
|
135
135
|
return tooltipText;
|
|
136
136
|
}
|
|
137
|
+
export function getTooltipTextDropdownItems(item, serviceLocator, localeItems, rteObj) {
|
|
138
|
+
if (localeItems) {
|
|
139
|
+
var i10n = serviceLocator.getService('rteLocale');
|
|
140
|
+
for (var i = 0; i < localeItems.length; i++) {
|
|
141
|
+
var itemLocale = localeItems[i].value.toLocaleLowerCase();
|
|
142
|
+
var numberValue = localeItems[i].locale;
|
|
143
|
+
var numberLocale = defaultLocale["" + numberValue].toLocaleLowerCase();
|
|
144
|
+
if (item === itemLocale || item === numberLocale) {
|
|
145
|
+
var tooltipText = localeItems[i].locale;
|
|
146
|
+
return i10n.getConstant(tooltipText);
|
|
147
|
+
}
|
|
148
|
+
}
|
|
149
|
+
}
|
|
150
|
+
else {
|
|
151
|
+
var fontsize = rteObj.fontSize.items;
|
|
152
|
+
for (var i = 0; i < fontsize.length; i++) {
|
|
153
|
+
if (item === rteObj.fontSize.items[i].value) {
|
|
154
|
+
var fontSize = rteObj.fontSize.items[i].text;
|
|
155
|
+
return fontSize;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
return '';
|
|
160
|
+
}
|
|
161
|
+
export function getQuickToolbarTooltipText(item) {
|
|
162
|
+
var keys = Object.keys(defaultLocale);
|
|
163
|
+
for (var i = 0; i < keys.length; i++) {
|
|
164
|
+
var tooltipText = defaultLocale["" + keys[i]];
|
|
165
|
+
if (item === tooltipText) {
|
|
166
|
+
return tooltipText;
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
return '';
|
|
170
|
+
}
|
|
137
171
|
/**
|
|
138
172
|
* @param {ISetToolbarStatusArgs} e - specifies the e element
|
|
139
173
|
* @param {boolean} isPopToolbar - specifies the boolean value
|
|
@@ -230,7 +264,12 @@ export function setToolbarStatus(e, isPopToolbar, self) {
|
|
|
230
264
|
}
|
|
231
265
|
case 'bulletFormatList':
|
|
232
266
|
case 'numberFormatList': {
|
|
233
|
-
|
|
267
|
+
if (value !== '') {
|
|
268
|
+
addClass([e.tbElements[j]], [classes.CLS_ACTIVE]);
|
|
269
|
+
}
|
|
270
|
+
else {
|
|
271
|
+
removeClass([e.tbElements[j]], [classes.CLS_ACTIVE]);
|
|
272
|
+
}
|
|
234
273
|
}
|
|
235
274
|
}
|
|
236
275
|
}
|
|
@@ -321,7 +360,7 @@ export function updateUndoRedoStatus(baseToolbar, undoRedoStatus) {
|
|
|
321
360
|
* @param {string} type - specifies the string type.
|
|
322
361
|
* @returns {void}
|
|
323
362
|
* @hidden
|
|
324
|
-
|
|
363
|
+
* @deprecated
|
|
325
364
|
*/
|
|
326
365
|
export function dispatchEvent(element, type) {
|
|
327
366
|
var evt = document.createEvent('HTMLEvents');
|
|
@@ -465,11 +504,15 @@ export function updateTextNode(value, rteObj) {
|
|
|
465
504
|
}
|
|
466
505
|
var imageElm = resultElm.querySelectorAll('img');
|
|
467
506
|
for (var i = 0; i < imageElm.length; i++) {
|
|
507
|
+
if (imageElm[i].classList.contains('e-rte-image-unsupported')) {
|
|
508
|
+
continue; // Should not add the class if the image is Broken.
|
|
509
|
+
}
|
|
468
510
|
if (!imageElm[i].classList.contains(classes.CLS_RTE_IMAGE)) {
|
|
469
511
|
imageElm[i].classList.add(classes.CLS_RTE_IMAGE);
|
|
470
512
|
}
|
|
471
513
|
if (!(imageElm[i].classList.contains(classes.CLS_IMGINLINE) ||
|
|
472
|
-
imageElm[i].classList.contains(classes.CLS_IMGBREAK))
|
|
514
|
+
imageElm[i].classList.contains(classes.CLS_IMGBREAK)) &&
|
|
515
|
+
!(imageElm[i].classList.contains('e-imgleft') || imageElm[i].classList.contains('e-imgright') || imageElm[i].classList.contains('e-imgcenter'))) {
|
|
473
516
|
imageElm[i].classList.add(classes.CLS_IMGINLINE);
|
|
474
517
|
}
|
|
475
518
|
}
|
|
@@ -7,7 +7,7 @@ import { IHtmlUndoRedoData } from '../../editor-manager/base/interface';
|
|
|
7
7
|
* Formatter
|
|
8
8
|
*
|
|
9
9
|
* @hidden
|
|
10
|
-
|
|
10
|
+
* @deprecated
|
|
11
11
|
*/
|
|
12
12
|
export declare class Formatter {
|
|
13
13
|
editorManager: IEditorModel;
|
|
@@ -21,7 +21,7 @@ export declare class Formatter {
|
|
|
21
21
|
* @param {IItemCollectionArgs} value - specifies the collection arguments
|
|
22
22
|
* @returns {void}
|
|
23
23
|
* @hidden
|
|
24
|
-
|
|
24
|
+
* @deprecated
|
|
25
25
|
*/
|
|
26
26
|
process(self: IRichTextEditor, args: ActionBeginEventArgs, event: MouseEvent | KeyboardEvent, value: IItemCollectionArgs): void;
|
|
27
27
|
private getAncestorNode;
|
|
@@ -32,7 +32,7 @@ export declare class Formatter {
|
|
|
32
32
|
* @param {KeyboardEvent} e - specifies the keyboard event.
|
|
33
33
|
* @returns {void}
|
|
34
34
|
* @hidden
|
|
35
|
-
|
|
35
|
+
* @deprecated
|
|
36
36
|
*/
|
|
37
37
|
onKeyHandler(self: IRichTextEditor, e: KeyboardEvent): void;
|
|
38
38
|
/**
|
|
@@ -42,7 +42,7 @@ export declare class Formatter {
|
|
|
42
42
|
* @param {IMarkdownFormatterCallBack} events - specifies the event call back
|
|
43
43
|
* @returns {void}
|
|
44
44
|
* @hidden
|
|
45
|
-
|
|
45
|
+
* @deprecated
|
|
46
46
|
*/
|
|
47
47
|
onSuccess(self: IRichTextEditor, events: IMarkdownFormatterCallBack | IHtmlFormatterCallBack): void;
|
|
48
48
|
/**
|
|
@@ -51,7 +51,7 @@ export declare class Formatter {
|
|
|
51
51
|
* @param {KeyboardEvent} e - specifies the keyboard event.
|
|
52
52
|
* @returns {void}
|
|
53
53
|
* @hidden
|
|
54
|
-
|
|
54
|
+
* @deprecated
|
|
55
55
|
*/
|
|
56
56
|
saveData(e?: KeyboardEvent | MouseEvent | IUndoCallBack): void;
|
|
57
57
|
/**
|
|
@@ -59,7 +59,7 @@ export declare class Formatter {
|
|
|
59
59
|
*
|
|
60
60
|
* @returns {void}
|
|
61
61
|
* @hidden
|
|
62
|
-
|
|
62
|
+
* @deprecated
|
|
63
63
|
*/
|
|
64
64
|
getUndoStatus(): {
|
|
65
65
|
[key: string]: boolean;
|
|
@@ -70,7 +70,7 @@ export declare class Formatter {
|
|
|
70
70
|
* @param {IHtmlUndoRedoData} - specifies the redo data.
|
|
71
71
|
* @returns {void}
|
|
72
72
|
* @hidden
|
|
73
|
-
|
|
73
|
+
* @deprecated
|
|
74
74
|
*/
|
|
75
75
|
getUndoRedoStack(): IHtmlUndoRedoData[] | MarkdownUndoRedoData[];
|
|
76
76
|
/**
|
|
@@ -79,7 +79,7 @@ export declare class Formatter {
|
|
|
79
79
|
* @param {IRichTextEditor} self - specifies the self element.
|
|
80
80
|
* @returns {void}
|
|
81
81
|
* @hidden
|
|
82
|
-
|
|
82
|
+
* @deprecated
|
|
83
83
|
*/
|
|
84
84
|
enableUndo(self: IRichTextEditor): void;
|
|
85
85
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { extend, isNullOrUndefined as isNOU, Browser } from '@syncfusion/ej2-base';
|
|
1
|
+
import { extend, isNullOrUndefined as isNOU, Browser, closest } from '@syncfusion/ej2-base';
|
|
2
2
|
import * as CONSTANT from '../base/constant';
|
|
3
3
|
import { updateUndoRedoStatus, isIDevice } from '../base/util';
|
|
4
4
|
import { KEY_DOWN, KEY_UP } from './../../common/constant';
|
|
@@ -6,7 +6,7 @@ import { KEY_DOWN, KEY_UP } from './../../common/constant';
|
|
|
6
6
|
* Formatter
|
|
7
7
|
*
|
|
8
8
|
* @hidden
|
|
9
|
-
|
|
9
|
+
* @deprecated
|
|
10
10
|
*/
|
|
11
11
|
var Formatter = /** @class */ (function () {
|
|
12
12
|
function Formatter() {
|
|
@@ -20,19 +20,28 @@ var Formatter = /** @class */ (function () {
|
|
|
20
20
|
* @param {IItemCollectionArgs} value - specifies the collection arguments
|
|
21
21
|
* @returns {void}
|
|
22
22
|
* @hidden
|
|
23
|
-
|
|
23
|
+
* @deprecated
|
|
24
24
|
*/
|
|
25
25
|
Formatter.prototype.process = function (self, args, event, value) {
|
|
26
26
|
var _this = this;
|
|
27
27
|
var selection = self.contentModule.getDocument().getSelection();
|
|
28
28
|
var range = (selection.rangeCount > 0) ? selection.getRangeAt(selection.rangeCount - 1) : null;
|
|
29
29
|
var saveSelection;
|
|
30
|
+
var newRange;
|
|
31
|
+
if (!isNOU(value) && !isNOU(value.selection)) {
|
|
32
|
+
newRange = value.selection.range;
|
|
33
|
+
}
|
|
30
34
|
var isKeyboardVideoInsert = (!isNOU(value) && !isNOU(value.cssClass) &&
|
|
31
35
|
value.cssClass !== 'e-video-inline');
|
|
32
36
|
if (self.editorMode === 'HTML') {
|
|
33
37
|
if (!isNOU(args) && !isKeyboardVideoInsert) {
|
|
34
38
|
if (isNOU(args.name) || (!isNOU(args.name) && args.name !== 'showDialog')) {
|
|
35
|
-
|
|
39
|
+
if (newRange) {
|
|
40
|
+
saveSelection = this.editorManager.nodeSelection.save(newRange, self.contentModule.getDocument());
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
saveSelection = this.editorManager.nodeSelection.save(range, self.contentModule.getDocument());
|
|
44
|
+
}
|
|
36
45
|
}
|
|
37
46
|
}
|
|
38
47
|
}
|
|
@@ -60,7 +69,7 @@ var Formatter = /** @class */ (function () {
|
|
|
60
69
|
if (args.item.command === 'Images' || args.item.command === 'Videos' || args.item.command === 'Table' || args.item.command === 'Files') {
|
|
61
70
|
currentInsertContentLength = 1;
|
|
62
71
|
}
|
|
63
|
-
var currentLength = self.getText().trim().replace(/(\r\n|\n|\r)/gm, '').replace(/\u200B/g, '').length;
|
|
72
|
+
var currentLength = self.getText().trim().replace(/(\r\n|\n|\r|\t)/gm, '').replace(/\u200B/g, '').length;
|
|
64
73
|
var selectionLength = self.getSelection().length;
|
|
65
74
|
var totalLength = (currentLength - selectionLength) + currentInsertContentLength;
|
|
66
75
|
if (!(self.maxLength === -1 || totalLength <= self.maxLength)) {
|
|
@@ -124,7 +133,9 @@ var Formatter = /** @class */ (function () {
|
|
|
124
133
|
_this.saveData();
|
|
125
134
|
}
|
|
126
135
|
self.isBlur = false;
|
|
127
|
-
|
|
136
|
+
if (isNOU(saveSelection) || isNOU(closest(saveSelection.range.startContainer.parentElement, ".e-img-caption")) ? true : !(closest(saveSelection.range.startContainer.parentElement, ".e-img-caption").getAttribute("contenteditable") == "false")) {
|
|
137
|
+
self.contentModule.getEditPanel().focus();
|
|
138
|
+
}
|
|
128
139
|
if (self.editorMode === 'HTML' && !isKeyboardVideoInsert) {
|
|
129
140
|
if (isNOU(args.selectType) || (!isNOU(args.selectType) && args.selectType !== 'showDialog')) {
|
|
130
141
|
saveSelection.restore();
|
|
@@ -157,7 +168,7 @@ var Formatter = /** @class */ (function () {
|
|
|
157
168
|
* @param {KeyboardEvent} e - specifies the keyboard event.
|
|
158
169
|
* @returns {void}
|
|
159
170
|
* @hidden
|
|
160
|
-
|
|
171
|
+
* @deprecated
|
|
161
172
|
*/
|
|
162
173
|
Formatter.prototype.onKeyHandler = function (self, e) {
|
|
163
174
|
var _this = this;
|
|
@@ -175,7 +186,7 @@ var Formatter = /** @class */ (function () {
|
|
|
175
186
|
* @param {IMarkdownFormatterCallBack} events - specifies the event call back
|
|
176
187
|
* @returns {void}
|
|
177
188
|
* @hidden
|
|
178
|
-
|
|
189
|
+
* @deprecated
|
|
179
190
|
*/
|
|
180
191
|
Formatter.prototype.onSuccess = function (self, events) {
|
|
181
192
|
self.notify(CONSTANT.contentChanged, {});
|
|
@@ -209,7 +220,7 @@ var Formatter = /** @class */ (function () {
|
|
|
209
220
|
* @param {KeyboardEvent} e - specifies the keyboard event.
|
|
210
221
|
* @returns {void}
|
|
211
222
|
* @hidden
|
|
212
|
-
|
|
223
|
+
* @deprecated
|
|
213
224
|
*/
|
|
214
225
|
Formatter.prototype.saveData = function (e) {
|
|
215
226
|
this.editorManager.undoRedoManager.saveData(e);
|
|
@@ -219,7 +230,7 @@ var Formatter = /** @class */ (function () {
|
|
|
219
230
|
*
|
|
220
231
|
* @returns {void}
|
|
221
232
|
* @hidden
|
|
222
|
-
|
|
233
|
+
* @deprecated
|
|
223
234
|
*/
|
|
224
235
|
Formatter.prototype.getUndoStatus = function () {
|
|
225
236
|
return this.editorManager.undoRedoManager.getUndoStatus();
|
|
@@ -231,7 +242,7 @@ var Formatter = /** @class */ (function () {
|
|
|
231
242
|
* @param {IHtmlUndoRedoData} - specifies the redo data.
|
|
232
243
|
* @returns {void}
|
|
233
244
|
* @hidden
|
|
234
|
-
|
|
245
|
+
* @deprecated
|
|
235
246
|
*/
|
|
236
247
|
/* eslint-enable */
|
|
237
248
|
Formatter.prototype.getUndoRedoStack = function () {
|
|
@@ -243,7 +254,7 @@ var Formatter = /** @class */ (function () {
|
|
|
243
254
|
* @param {IRichTextEditor} self - specifies the self element.
|
|
244
255
|
* @returns {void}
|
|
245
256
|
* @hidden
|
|
246
|
-
|
|
257
|
+
* @deprecated
|
|
247
258
|
*/
|
|
248
259
|
Formatter.prototype.enableUndo = function (self) {
|
|
249
260
|
var status = this.getUndoStatus();
|
|
@@ -5,7 +5,7 @@ import { FormatPainterSettingsModel } from '../models';
|
|
|
5
5
|
* HTML adapter
|
|
6
6
|
*
|
|
7
7
|
* @hidden
|
|
8
|
-
|
|
8
|
+
* @deprecated
|
|
9
9
|
*/
|
|
10
10
|
export declare class HTMLFormatter extends Formatter {
|
|
11
11
|
keyConfig: {
|
|
@@ -26,7 +26,7 @@ export declare class HTMLFormatter extends Formatter {
|
|
|
26
26
|
* @param {FormatPainterSettingsModel} formatPainterSettings - specifies the format painter settings
|
|
27
27
|
* @returns {void}
|
|
28
28
|
* @hidden
|
|
29
|
-
|
|
29
|
+
* @deprecated
|
|
30
30
|
*/
|
|
31
31
|
updateFormatter(editElement: Element, doc?: Document, options?: {
|
|
32
32
|
[key: string]: number;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
14
|
import { Formatter } from './formatter';
|
|
15
15
|
import { EditorManager } from './../../editor-manager/base/editor-manager';
|
|
16
16
|
import { extend } from '@syncfusion/ej2-base';
|
|
@@ -19,7 +19,7 @@ import { htmlKeyConfig } from './../../common/config';
|
|
|
19
19
|
* HTML adapter
|
|
20
20
|
*
|
|
21
21
|
* @hidden
|
|
22
|
-
|
|
22
|
+
* @deprecated
|
|
23
23
|
*/
|
|
24
24
|
var HTMLFormatter = /** @class */ (function (_super) {
|
|
25
25
|
__extends(HTMLFormatter, _super);
|
|
@@ -44,7 +44,7 @@ var HTMLFormatter = /** @class */ (function (_super) {
|
|
|
44
44
|
* @param {FormatPainterSettingsModel} formatPainterSettings - specifies the format painter settings
|
|
45
45
|
* @returns {void}
|
|
46
46
|
* @hidden
|
|
47
|
-
|
|
47
|
+
* @deprecated
|
|
48
48
|
*/
|
|
49
49
|
HTMLFormatter.prototype.updateFormatter = function (editElement, doc, options, formatPainterSettings) {
|
|
50
50
|
if (editElement && doc) {
|
|
@@ -4,7 +4,7 @@ import { IEditorModel, IMarkdownFormatterModel } from './../base/interface';
|
|
|
4
4
|
* Markdown adapter
|
|
5
5
|
*
|
|
6
6
|
* @hidden
|
|
7
|
-
|
|
7
|
+
* @deprecated
|
|
8
8
|
*/
|
|
9
9
|
export declare class MarkdownFormatter extends Formatter {
|
|
10
10
|
keyConfig: {
|
|
@@ -31,7 +31,7 @@ export declare class MarkdownFormatter extends Formatter {
|
|
|
31
31
|
* @param {number} options - specifies the options
|
|
32
32
|
* @returns {void}
|
|
33
33
|
* @hidden
|
|
34
|
-
|
|
34
|
+
* @deprecated
|
|
35
35
|
*/
|
|
36
36
|
updateFormatter(editElement: Element, doc?: Document, options?: {
|
|
37
37
|
[key: string]: number;
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
var __extends = (this && this.__extends) || (function () {
|
|
2
|
-
var extendStatics = function (d, b) {
|
|
3
|
-
extendStatics = Object.setPrototypeOf ||
|
|
4
|
-
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
-
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
-
return extendStatics(d, b);
|
|
7
|
-
};
|
|
8
|
-
return function (d, b) {
|
|
9
|
-
extendStatics(d, b);
|
|
10
|
-
function __() { this.constructor = d; }
|
|
11
|
-
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
-
};
|
|
13
|
-
})();
|
|
1
|
+
var __extends = (this && this.__extends) || (function () {
|
|
2
|
+
var extendStatics = function (d, b) {
|
|
3
|
+
extendStatics = Object.setPrototypeOf ||
|
|
4
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
5
|
+
function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; };
|
|
6
|
+
return extendStatics(d, b);
|
|
7
|
+
};
|
|
8
|
+
return function (d, b) {
|
|
9
|
+
extendStatics(d, b);
|
|
10
|
+
function __() { this.constructor = d; }
|
|
11
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
12
|
+
};
|
|
13
|
+
})();
|
|
14
14
|
import { Formatter } from './formatter';
|
|
15
15
|
import { MarkdownParser } from './../../markdown-parser/base/markdown-parser';
|
|
16
16
|
import { extend } from '@syncfusion/ej2-base';
|
|
@@ -19,7 +19,7 @@ import { markdownKeyConfig, markdownListsTags, markdownFormatTags, markdownSelec
|
|
|
19
19
|
* Markdown adapter
|
|
20
20
|
*
|
|
21
21
|
* @hidden
|
|
22
|
-
|
|
22
|
+
* @deprecated
|
|
23
23
|
*/
|
|
24
24
|
var MarkdownFormatter = /** @class */ (function (_super) {
|
|
25
25
|
__extends(MarkdownFormatter, _super);
|
|
@@ -46,7 +46,7 @@ var MarkdownFormatter = /** @class */ (function (_super) {
|
|
|
46
46
|
* @param {number} options - specifies the options
|
|
47
47
|
* @returns {void}
|
|
48
48
|
* @hidden
|
|
49
|
-
|
|
49
|
+
* @deprecated
|
|
50
50
|
*/
|
|
51
51
|
MarkdownFormatter.prototype.updateFormatter = function (editElement, doc, options) {
|
|
52
52
|
if (editElement) {
|
|
@@ -48,11 +48,11 @@ export var defaultLocale = {
|
|
|
48
48
|
'audioLayoutOption': 'Layout option',
|
|
49
49
|
'videoLayoutOption': 'Layout option',
|
|
50
50
|
'align': 'Align',
|
|
51
|
-
'caption': '
|
|
51
|
+
'caption': 'Caption',
|
|
52
52
|
'remove': 'Remove',
|
|
53
53
|
'insertLink': 'Insert Link',
|
|
54
54
|
'display': 'Display',
|
|
55
|
-
'altText': 'Alternative
|
|
55
|
+
'altText': 'Alternative text',
|
|
56
56
|
'dimension': 'Change Size',
|
|
57
57
|
'fullscreen': 'Maximize',
|
|
58
58
|
'maximize': 'Maximize',
|
|
@@ -65,12 +65,12 @@ export var defaultLocale = {
|
|
|
65
65
|
'preview': 'Preview',
|
|
66
66
|
'viewside': 'ViewSide',
|
|
67
67
|
'insertCode': 'Insert Code',
|
|
68
|
-
'linkText': 'Display
|
|
68
|
+
'linkText': 'Display text',
|
|
69
69
|
'linkTooltipLabel': 'Title',
|
|
70
|
-
'linkWebUrl': 'Web
|
|
70
|
+
'linkWebUrl': 'Web address',
|
|
71
71
|
'linkTitle': 'Enter a title',
|
|
72
|
-
'linkurl': '
|
|
73
|
-
'linkOpenInNewWindow': 'Open
|
|
72
|
+
'linkurl': 'https://example.com',
|
|
73
|
+
'linkOpenInNewWindow': 'Open link in new window',
|
|
74
74
|
'linkHeader': 'Insert Link',
|
|
75
75
|
'dialogInsert': 'Insert',
|
|
76
76
|
'dialogCancel': 'Cancel',
|
|
@@ -92,9 +92,9 @@ export var defaultLocale = {
|
|
|
92
92
|
'imageAlternateText': 'Alternate Text',
|
|
93
93
|
'alternateHeader': 'Alternative Text',
|
|
94
94
|
'browse': 'Browse',
|
|
95
|
-
'imageUrl': '
|
|
96
|
-
'audioUrl': '
|
|
97
|
-
'videoUrl': '
|
|
95
|
+
'imageUrl': 'https://example.com/image.png',
|
|
96
|
+
'audioUrl': 'https://example.com/audio.mp3',
|
|
97
|
+
'videoUrl': 'https://example.com/video.mp4',
|
|
98
98
|
'webUrl': 'Web URL',
|
|
99
99
|
'embedUrl': 'Embed Code',
|
|
100
100
|
'imageCaption': 'Caption',
|
|
@@ -104,7 +104,7 @@ export var defaultLocale = {
|
|
|
104
104
|
'imageWidth': 'Width',
|
|
105
105
|
'videoHeight': 'Height',
|
|
106
106
|
'videoWidth': 'Width',
|
|
107
|
-
'textPlaceholder': 'Enter
|
|
107
|
+
'textPlaceholder': 'Enter text',
|
|
108
108
|
'inserttablebtn': 'Insert Table',
|
|
109
109
|
'tabledialogHeader': 'Insert Table',
|
|
110
110
|
'tableWidth': 'Width',
|
|
@@ -112,14 +112,14 @@ export var defaultLocale = {
|
|
|
112
112
|
'cellspacing': 'Cell Spacing',
|
|
113
113
|
'columns': 'Number of columns',
|
|
114
114
|
'rows': 'Number of rows',
|
|
115
|
-
'tableRows': '
|
|
116
|
-
'tableColumns': '
|
|
115
|
+
'tableRows': 'Row',
|
|
116
|
+
'tableColumns': 'Column',
|
|
117
117
|
'tableCellHorizontalAlign': 'Table Cell Horizontal Align',
|
|
118
|
-
'tableCellVerticalAlign': '
|
|
118
|
+
'tableCellVerticalAlign': 'Vertical Align',
|
|
119
119
|
'createTable': 'Create Table',
|
|
120
120
|
'removeTable': 'Remove Table',
|
|
121
|
-
'tableHeader': '
|
|
122
|
-
'tableRemove': 'Table
|
|
121
|
+
'tableHeader': 'Header Row',
|
|
122
|
+
'tableRemove': 'Delete Table',
|
|
123
123
|
'tableCellBackground': 'Table Cell Background',
|
|
124
124
|
'tableEditProperties': 'Table Edit Properties',
|
|
125
125
|
'styles': 'Styles',
|
|
@@ -181,11 +181,11 @@ export var defaultLocale = {
|
|
|
181
181
|
'fontNameTimesNewRoman': 'Times New Roman',
|
|
182
182
|
'fontNameVerdana': 'Verdana',
|
|
183
183
|
'numberFormatListNumber': 'Number',
|
|
184
|
-
'numberFormatListLowerAlpha': '
|
|
185
|
-
'numberFormatListUpperAlpha': '
|
|
186
|
-
'numberFormatListLowerRoman': '
|
|
187
|
-
'numberFormatListUpperRoman': '
|
|
188
|
-
'numberFormatListLowerGreek': '
|
|
184
|
+
'numberFormatListLowerAlpha': 'Lower Alpha',
|
|
185
|
+
'numberFormatListUpperAlpha': 'Upper Alpha',
|
|
186
|
+
'numberFormatListLowerRoman': 'Lower Roman',
|
|
187
|
+
'numberFormatListUpperRoman': 'Upper Roman',
|
|
188
|
+
'numberFormatListLowerGreek': 'Lower Greek',
|
|
189
189
|
'bulletFormatListDisc': 'Disc',
|
|
190
190
|
'bulletFormatListCircle': 'Circle',
|
|
191
191
|
'bulletFormatListSquare': 'Square',
|
|
@@ -193,12 +193,16 @@ export var defaultLocale = {
|
|
|
193
193
|
'bulletFormatListNone': 'None',
|
|
194
194
|
'formatPainter': 'Format Painter',
|
|
195
195
|
'emojiPicker': 'Emoji Picker',
|
|
196
|
-
'embeddedCode': 'Embedded
|
|
197
|
-
'pasteEmbeddedCodeHere': 'Paste
|
|
196
|
+
'embeddedCode': 'Embedded code',
|
|
197
|
+
'pasteEmbeddedCodeHere': 'Paste embedded code here',
|
|
198
198
|
'emojiPickerTypeToFind': 'Type to find',
|
|
199
199
|
'emojiPickerNoResultFound': 'No results found',
|
|
200
200
|
'emojiPickerTrySomethingElse': 'Try something else',
|
|
201
201
|
'linkAriaLabel': 'Open in new window',
|
|
202
|
+
'unsupportedImage': 'Unsupported file format',
|
|
203
|
+
'mergecells': 'Merge cells',
|
|
204
|
+
'verticalsplit': 'Vertical split',
|
|
205
|
+
'horizontalsplit': 'Horizontal split'
|
|
202
206
|
};
|
|
203
207
|
export var toolsLocale = {
|
|
204
208
|
'alignments': 'alignments',
|
|
@@ -254,7 +258,7 @@ export var toolsLocale = {
|
|
|
254
258
|
'remove': 'remove',
|
|
255
259
|
'insertlink': 'insertLink',
|
|
256
260
|
'display': 'display',
|
|
257
|
-
'alttext': '
|
|
261
|
+
'alttext': 'alternateHeader',
|
|
258
262
|
'dimension': 'dimension',
|
|
259
263
|
'fullscreen': 'fullscreen',
|
|
260
264
|
'maximize': 'maximize',
|
|
@@ -289,12 +293,12 @@ export var toolsLocale = {
|
|
|
289
293
|
'deleterow': 'deleteRow',
|
|
290
294
|
'formatpainter': 'formatPainter',
|
|
291
295
|
'emojipicker': 'emojiPicker',
|
|
292
|
-
'embeddedCode': 'Embedded
|
|
293
|
-
'pasteEmbeddedCodeHere': 'Paste
|
|
296
|
+
'embeddedCode': 'Embedded code',
|
|
297
|
+
'pasteEmbeddedCodeHere': 'Paste embedded code here',
|
|
294
298
|
'emojiPickerTypeToFind': 'Type to find',
|
|
295
299
|
'emojiPickerNoResultFound': 'No results found',
|
|
296
300
|
'emojiPickerTrySomethingElse': 'Try something else',
|
|
297
|
-
'
|
|
301
|
+
'imageLinkAriaLabel': 'Open in new window',
|
|
298
302
|
};
|
|
299
303
|
export var fontNameLocale = [
|
|
300
304
|
{ locale: 'fontNameSegoeUI', value: 'Segoe UI' },
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Property, ChildProperty, Complex } from '@syncfusion/ej2-base';
|
|
1
|
+
import { Property, ChildProperty, Complex } from '@syncfusion/ej2-base';
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Interface for a class Resources
|
|
@@ -6,18 +6,18 @@ import { Property, ChildProperty, Complex } from '@syncfusion/ej2-base';
|
|
|
6
6
|
export interface ResourcesModel {
|
|
7
7
|
|
|
8
8
|
/**
|
|
9
|
-
* Specifies styles that inject into iframe.
|
|
10
|
-
*
|
|
11
|
-
* @default []
|
|
12
|
-
*/
|
|
13
|
-
styles?: string[];
|
|
9
|
+
* Specifies styles that inject into iframe.
|
|
10
|
+
*
|
|
11
|
+
* @default []
|
|
12
|
+
*/
|
|
13
|
+
styles?: string[];
|
|
14
14
|
|
|
15
15
|
/**
|
|
16
|
-
* Specifies scripts that inject into iframe.
|
|
17
|
-
*
|
|
18
|
-
* @default []
|
|
19
|
-
*/
|
|
20
|
-
scripts?: string[];
|
|
16
|
+
* Specifies scripts that inject into iframe.
|
|
17
|
+
*
|
|
18
|
+
* @default []
|
|
19
|
+
*/
|
|
20
|
+
scripts?: string[];
|
|
21
21
|
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -27,24 +27,24 @@ export interface ResourcesModel {
|
|
|
27
27
|
export interface IFrameSettingsModel {
|
|
28
28
|
|
|
29
29
|
/**
|
|
30
|
-
* Specifies whether to render iframe based editable element in RTE.
|
|
31
|
-
*
|
|
32
|
-
* @default false
|
|
33
|
-
*/
|
|
34
|
-
enable?: boolean;
|
|
30
|
+
* Specifies whether to render iframe based editable element in RTE.
|
|
31
|
+
*
|
|
32
|
+
* @default false
|
|
33
|
+
*/
|
|
34
|
+
enable?: boolean;
|
|
35
35
|
|
|
36
36
|
/**
|
|
37
|
-
* Defines additional attributes to render iframe.
|
|
38
|
-
*
|
|
39
|
-
* @default 'null'
|
|
40
|
-
*/
|
|
41
|
-
attributes?: { [key: string]: string };
|
|
37
|
+
* Defines additional attributes to render iframe.
|
|
38
|
+
*
|
|
39
|
+
* @default 'null'
|
|
40
|
+
*/
|
|
41
|
+
attributes?: { [key: string]: string };
|
|
42
42
|
|
|
43
43
|
/**
|
|
44
|
-
* The object used for inject styles and scripts.
|
|
45
|
-
*
|
|
46
|
-
* @default {}
|
|
47
|
-
*/
|
|
48
|
-
resources?: ResourcesModel;
|
|
44
|
+
* The object used for inject styles and scripts.
|
|
45
|
+
*
|
|
46
|
+
* @default {}
|
|
47
|
+
*/
|
|
48
|
+
resources?: ResourcesModel;
|
|
49
49
|
|
|
50
50
|
}
|