@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
|
@@ -52,6 +52,10 @@ var Toolbar = /** @class */ (function () {
|
|
|
52
52
|
case 'escape':
|
|
53
53
|
this.parent.contentModule.getEditPanel().focus();
|
|
54
54
|
break;
|
|
55
|
+
case 'enter':
|
|
56
|
+
if (e.target.classList.contains('e-hor-nav')) {
|
|
57
|
+
this.adjustContentHeight(e.target, true);
|
|
58
|
+
}
|
|
55
59
|
}
|
|
56
60
|
};
|
|
57
61
|
Toolbar.prototype.createToolbarElement = function () {
|
|
@@ -107,7 +111,7 @@ var Toolbar = /** @class */ (function () {
|
|
|
107
111
|
items: this.parent.toolbarSettings.items,
|
|
108
112
|
mode: tBarMode,
|
|
109
113
|
target: ele,
|
|
110
|
-
cssClass: this.parent.
|
|
114
|
+
cssClass: this.parent.getCssClass()
|
|
111
115
|
});
|
|
112
116
|
if (this.parent.toolbarSettings.type === ToolbarType.Expand) {
|
|
113
117
|
addClass([ele], ['e-rte-tb-mobile']);
|
|
@@ -226,7 +230,7 @@ var Toolbar = /** @class */ (function () {
|
|
|
226
230
|
items: this.parent.toolbarSettings.items,
|
|
227
231
|
mode: this.getToolbarMode(),
|
|
228
232
|
target: this.tbElement,
|
|
229
|
-
cssClass: this.parent.
|
|
233
|
+
cssClass: this.parent.getCssClass()
|
|
230
234
|
});
|
|
231
235
|
if (!this.parent.inlineMode.enable) {
|
|
232
236
|
if (this.parent.toolbarSettings.enableFloating) {
|
|
@@ -256,7 +260,7 @@ var Toolbar = /** @class */ (function () {
|
|
|
256
260
|
});
|
|
257
261
|
this.refreshToolbarOverflow();
|
|
258
262
|
}
|
|
259
|
-
var divEle = this.parent.element.querySelector('.
|
|
263
|
+
var divEle = this.parent.element.querySelector('.' + classes.CLS_RTE_SOURCE_CODE_TXTAREA);
|
|
260
264
|
var iframeEle = this.parent.element.querySelector('.e-source-content');
|
|
261
265
|
if ((!this.parent.iframeSettings.enable && (!isNOU(divEle) && divEle.style.display === 'block')) ||
|
|
262
266
|
(this.parent.iframeSettings.enable && (!isNOU(iframeEle) && iframeEle.style.display === 'block'))) {
|
|
@@ -272,7 +276,7 @@ var Toolbar = /** @class */ (function () {
|
|
|
272
276
|
*
|
|
273
277
|
* @returns {void}
|
|
274
278
|
* @hidden
|
|
275
|
-
|
|
279
|
+
|
|
276
280
|
*/
|
|
277
281
|
Toolbar.prototype.addFixedTBarClass = function () {
|
|
278
282
|
addClass([this.tbElement], [classes.CLS_TB_FIXED]);
|
|
@@ -282,7 +286,7 @@ var Toolbar = /** @class */ (function () {
|
|
|
282
286
|
*
|
|
283
287
|
* @returns {void}
|
|
284
288
|
* @hidden
|
|
285
|
-
|
|
289
|
+
|
|
286
290
|
*/
|
|
287
291
|
Toolbar.prototype.removeFixedTBarClass = function () {
|
|
288
292
|
removeClass([this.tbElement], [classes.CLS_TB_FIXED]);
|
|
@@ -303,7 +307,7 @@ var Toolbar = /** @class */ (function () {
|
|
|
303
307
|
* @param {IUpdateItemsModel} args - specifies the arguments.
|
|
304
308
|
* @returns {void}
|
|
305
309
|
* @hidden
|
|
306
|
-
|
|
310
|
+
|
|
307
311
|
*/
|
|
308
312
|
Toolbar.prototype.updateItem = function (args) {
|
|
309
313
|
var item = this.tools[args.updateItem.toLocaleLowerCase()];
|
|
@@ -349,7 +353,7 @@ var Toolbar = /** @class */ (function () {
|
|
|
349
353
|
*
|
|
350
354
|
* @returns {void}
|
|
351
355
|
* @hidden
|
|
352
|
-
|
|
356
|
+
|
|
353
357
|
*/
|
|
354
358
|
Toolbar.prototype.getBaseToolbar = function () {
|
|
355
359
|
return this.baseToolbar;
|
|
@@ -361,7 +365,7 @@ var Toolbar = /** @class */ (function () {
|
|
|
361
365
|
* @param {number} index - specifies the index value.
|
|
362
366
|
* @returns {void}
|
|
363
367
|
* @hidden
|
|
364
|
-
|
|
368
|
+
|
|
365
369
|
*/
|
|
366
370
|
Toolbar.prototype.addTBarItem = function (args, index) {
|
|
367
371
|
args.baseToolbar.toolbarObj.addItems([args.baseToolbar.getObject(args.updateItem, 'toolbar')], index);
|
|
@@ -375,7 +379,7 @@ var Toolbar = /** @class */ (function () {
|
|
|
375
379
|
* @param {boolean} muteToolbarUpdate - specifies the toolbar.
|
|
376
380
|
* @returns {void}
|
|
377
381
|
* @hidden
|
|
378
|
-
|
|
382
|
+
|
|
379
383
|
*/
|
|
380
384
|
Toolbar.prototype.enableTBarItems = function (baseToolbar, items, isEnable, muteToolbarUpdate) {
|
|
381
385
|
var trgItems = getTBarItemsIndex(getCollection(items), baseToolbar.toolbarObj.items);
|
|
@@ -386,7 +390,7 @@ var Toolbar = /** @class */ (function () {
|
|
|
386
390
|
baseToolbar.toolbarObj.enableItems(item, isEnable);
|
|
387
391
|
}
|
|
388
392
|
}
|
|
389
|
-
if (!select('.
|
|
393
|
+
if (!select('.' + classes.CLS_RTE_SOURCE_CODE_TXTAREA, this.parent.element) && !muteToolbarUpdate) {
|
|
390
394
|
updateUndoRedoStatus(baseToolbar, this.parent.formatter.editorManager.undoRedoManager.getUndoStatus());
|
|
391
395
|
}
|
|
392
396
|
};
|
|
@@ -396,7 +400,7 @@ var Toolbar = /** @class */ (function () {
|
|
|
396
400
|
* @param {string} items - specifies the string value.
|
|
397
401
|
* @returns {void}
|
|
398
402
|
* @hidden
|
|
399
|
-
|
|
403
|
+
|
|
400
404
|
*/
|
|
401
405
|
Toolbar.prototype.removeTBarItems = function (items) {
|
|
402
406
|
if (isNullOrUndefined(this.baseToolbar.toolbarObj)) {
|
|
@@ -414,7 +418,7 @@ var Toolbar = /** @class */ (function () {
|
|
|
414
418
|
*
|
|
415
419
|
* @returns {void}
|
|
416
420
|
* @hidden
|
|
417
|
-
|
|
421
|
+
|
|
418
422
|
*/
|
|
419
423
|
Toolbar.prototype.getExpandTBarPopHeight = function () {
|
|
420
424
|
var popHeight = 0;
|
|
@@ -437,7 +441,7 @@ var Toolbar = /** @class */ (function () {
|
|
|
437
441
|
*
|
|
438
442
|
* @returns {void}
|
|
439
443
|
* @hidden
|
|
440
|
-
|
|
444
|
+
|
|
441
445
|
*/
|
|
442
446
|
Toolbar.prototype.getToolbarHeight = function () {
|
|
443
447
|
return this.tbElement.offsetHeight;
|
|
@@ -447,7 +451,7 @@ var Toolbar = /** @class */ (function () {
|
|
|
447
451
|
*
|
|
448
452
|
* @returns {void}
|
|
449
453
|
* @hidden
|
|
450
|
-
|
|
454
|
+
|
|
451
455
|
*/
|
|
452
456
|
Toolbar.prototype.getToolbarElement = function () {
|
|
453
457
|
return select('.' + classes.CLS_TOOLBAR, this.parent.element);
|
|
@@ -457,7 +461,7 @@ var Toolbar = /** @class */ (function () {
|
|
|
457
461
|
*
|
|
458
462
|
* @returns {void}
|
|
459
463
|
* @hidden
|
|
460
|
-
|
|
464
|
+
|
|
461
465
|
*/
|
|
462
466
|
Toolbar.prototype.refreshToolbarOverflow = function () {
|
|
463
467
|
this.parent.element.classList.remove(classes.CLS_RTL);
|
|
@@ -495,7 +499,7 @@ var Toolbar = /** @class */ (function () {
|
|
|
495
499
|
* @function destroy
|
|
496
500
|
* @returns {void}
|
|
497
501
|
* @hidden
|
|
498
|
-
|
|
502
|
+
|
|
499
503
|
*/
|
|
500
504
|
Toolbar.prototype.destroy = function () {
|
|
501
505
|
if (isNOU(this.parent)) {
|
|
@@ -559,20 +563,24 @@ var Toolbar = /** @class */ (function () {
|
|
|
559
563
|
};
|
|
560
564
|
Toolbar.prototype.toolbarClickHandler = function (e) {
|
|
561
565
|
var trg = closest(e.originalEvent.target, '.e-hor-nav');
|
|
566
|
+
this.adjustContentHeight(trg, false);
|
|
567
|
+
};
|
|
568
|
+
Toolbar.prototype.adjustContentHeight = function (trg, isKeyboard) {
|
|
562
569
|
if (trg && this.parent.toolbarSettings.type === ToolbarType.Expand && !isNOU(trg)) {
|
|
563
570
|
var extendedTbar = this.tbElement.querySelector('.e-toolbar-extended');
|
|
564
571
|
if (!isNOU(extendedTbar)) {
|
|
565
572
|
setStyleAttribute(extendedTbar, { maxHeight: '', display: 'block' });
|
|
566
573
|
setStyleAttribute(extendedTbar, { maxHeight: extendedTbar.offsetHeight + 'px', display: '' });
|
|
567
574
|
}
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
575
|
+
var hasActiveClass = trg.classList.contains('e-nav-active');
|
|
576
|
+
var isExpand = isKeyboard ? (hasActiveClass ? false : true) : (hasActiveClass ? true : false);
|
|
577
|
+
if (isExpand) {
|
|
578
|
+
addClass([this.tbElement], [classes.CLS_EXPAND_OPEN]);
|
|
571
579
|
}
|
|
572
580
|
else {
|
|
573
|
-
|
|
574
|
-
this.parent.setContentHeight('toolbar', true);
|
|
581
|
+
removeClass([this.tbElement], [classes.CLS_EXPAND_OPEN]);
|
|
575
582
|
}
|
|
583
|
+
this.parent.setContentHeight('toolbar', isExpand);
|
|
576
584
|
}
|
|
577
585
|
else if (Browser.isDevice || this.parent.inlineMode.enable) {
|
|
578
586
|
this.isToolbar = true;
|
|
@@ -665,7 +673,7 @@ var Toolbar = /** @class */ (function () {
|
|
|
665
673
|
* @param {RichTextEditorModel} e - specifies the string value
|
|
666
674
|
* @returns {void}
|
|
667
675
|
* @hidden
|
|
668
|
-
|
|
676
|
+
|
|
669
677
|
*/
|
|
670
678
|
Toolbar.prototype.onPropertyChanged = function (e) {
|
|
671
679
|
if (!isNullOrUndefined(e.newProp.inlineMode)) {
|
|
@@ -696,7 +704,7 @@ var Toolbar = /** @class */ (function () {
|
|
|
696
704
|
this.addEventListener();
|
|
697
705
|
this.renderToolbar();
|
|
698
706
|
this.parent.wireScrollElementsEvents();
|
|
699
|
-
if (!select('.
|
|
707
|
+
if (!select('.' + classes.CLS_RTE_SOURCE_CODE_TXTAREA, this.parent.element)) {
|
|
700
708
|
updateUndoRedoStatus(this.baseToolbar, this.parent.formatter.editorManager.undoRedoManager.getUndoStatus());
|
|
701
709
|
}
|
|
702
710
|
this.parent.notify(events.dynamicModule, {});
|
|
@@ -13,7 +13,7 @@ export declare class XhtmlValidation {
|
|
|
13
13
|
* @param {string} currentValue - specifies the string value.
|
|
14
14
|
* @param {number} valueLength - specifies the length of the current value.
|
|
15
15
|
* @returns {void}
|
|
16
|
-
|
|
16
|
+
|
|
17
17
|
*/
|
|
18
18
|
selfEncloseValidation(currentValue: string, valueLength?: number): string;
|
|
19
19
|
private clean;
|
|
@@ -37,7 +37,7 @@ var XhtmlValidation = /** @class */ (function () {
|
|
|
37
37
|
* @param {string} currentValue - specifies the string value.
|
|
38
38
|
* @param {number} valueLength - specifies the length of the current value.
|
|
39
39
|
* @returns {void}
|
|
40
|
-
|
|
40
|
+
|
|
41
41
|
*/
|
|
42
42
|
XhtmlValidation.prototype.selfEncloseValidation = function (currentValue, valueLength) {
|
|
43
43
|
if (valueLength === 0 && currentValue.indexOf('table') < 0 && currentValue.indexOf('img') < 0 &&
|