@syncfusion/ej2-richtexteditor 20.1.55 → 20.1.56
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 +8 -0
- package/dist/ej2-richtexteditor.umd.min.js +2 -2
- package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es2015.js +347 -88
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +347 -88
- package/dist/es6/ej2-richtexteditor.es5.js.map +1 -1
- package/dist/global/ej2-richtexteditor.min.js +2 -2
- package/dist/global/ej2-richtexteditor.min.js.map +1 -1
- package/dist/global/index.d.ts +1 -1
- package/package.json +8 -8
- package/src/editor-manager/plugin/dom-node.js +7 -1
- package/src/rich-text-editor/actions/base-quick-toolbar.js +8 -3
- package/src/rich-text-editor/actions/base-toolbar.d.ts +1 -0
- package/src/rich-text-editor/actions/base-toolbar.js +14 -1
- package/src/rich-text-editor/actions/color-picker.d.ts +2 -0
- package/src/rich-text-editor/actions/color-picker.js +22 -1
- package/src/rich-text-editor/actions/dropdown-buttons.d.ts +2 -0
- package/src/rich-text-editor/actions/dropdown-buttons.js +25 -0
- package/src/rich-text-editor/actions/file-manager.d.ts +1 -0
- package/src/rich-text-editor/actions/file-manager.js +14 -1
- package/src/rich-text-editor/actions/paste-clean-up.d.ts +6 -0
- package/src/rich-text-editor/actions/paste-clean-up.js +79 -47
- package/src/rich-text-editor/actions/quick-toolbar.d.ts +2 -0
- package/src/rich-text-editor/actions/quick-toolbar.js +23 -2
- package/src/rich-text-editor/actions/toolbar.d.ts +1 -0
- package/src/rich-text-editor/actions/toolbar.js +12 -0
- package/src/rich-text-editor/base/constant.d.ts +5 -0
- package/src/rich-text-editor/base/constant.js +5 -0
- package/src/rich-text-editor/base/interface.d.ts +11 -0
- package/src/rich-text-editor/base/rich-text-editor.js +2 -0
- package/src/rich-text-editor/renderer/content-renderer.js +2 -1
- package/src/rich-text-editor/renderer/image-module.d.ts +5 -0
- package/src/rich-text-editor/renderer/image-module.js +57 -13
- package/src/rich-text-editor/renderer/link-module.d.ts +2 -0
- package/src/rich-text-editor/renderer/link-module.js +19 -2
- package/src/rich-text-editor/renderer/table-module.d.ts +6 -0
- package/src/rich-text-editor/renderer/table-module.js +58 -17
- package/src/rich-text-editor/renderer/toolbar-renderer.js +2 -1
- package/styles/bootstrap-dark.css +135 -519
- package/styles/bootstrap.css +136 -525
- package/styles/bootstrap4.css +145 -572
- package/styles/bootstrap5-dark.css +135 -539
- package/styles/bootstrap5.css +135 -539
- package/styles/fabric-dark.css +134 -518
- package/styles/fabric.css +135 -519
- package/styles/fluent-dark.css +134 -521
- package/styles/fluent.css +134 -521
- package/styles/highcontrast-light.css +135 -519
- package/styles/highcontrast.css +135 -517
- package/styles/material-dark.css +134 -518
- package/styles/material.css +135 -519
- package/styles/rich-text-editor/bootstrap-dark.css +135 -519
- package/styles/rich-text-editor/bootstrap.css +136 -525
- package/styles/rich-text-editor/bootstrap4.css +145 -572
- package/styles/rich-text-editor/bootstrap5-dark.css +135 -539
- package/styles/rich-text-editor/bootstrap5.css +135 -539
- package/styles/rich-text-editor/fabric-dark.css +134 -518
- package/styles/rich-text-editor/fabric.css +135 -519
- package/styles/rich-text-editor/fluent-dark.css +134 -521
- package/styles/rich-text-editor/fluent.css +134 -521
- package/styles/rich-text-editor/highcontrast-light.css +135 -519
- package/styles/rich-text-editor/highcontrast.css +135 -517
- package/styles/rich-text-editor/material-dark.css +134 -518
- package/styles/rich-text-editor/material.css +135 -519
- package/styles/rich-text-editor/tailwind-dark.css +135 -524
- package/styles/rich-text-editor/tailwind.css +135 -524
- package/styles/tailwind-dark.css +135 -524
- package/styles/tailwind.css +135 -524
|
@@ -609,6 +609,11 @@ var showTableDialog = 'showTableDialog';
|
|
|
609
609
|
* @deprecated
|
|
610
610
|
*/
|
|
611
611
|
var closeTableDialog = 'closeTableDialog';
|
|
612
|
+
/**
|
|
613
|
+
* @hidden
|
|
614
|
+
* @deprecated
|
|
615
|
+
*/
|
|
616
|
+
var bindCssClass = 'closeTableDialog';
|
|
612
617
|
|
|
613
618
|
/**
|
|
614
619
|
* Rich Text Editor classes defined here.
|
|
@@ -2799,7 +2804,8 @@ var ToolbarRenderer = /** @__PURE__ @class */ (function () {
|
|
|
2799
2804
|
created: this.toolbarCreated.bind(this),
|
|
2800
2805
|
clicked: this.toolbarClicked.bind(this),
|
|
2801
2806
|
enablePersistence: args.enablePersistence,
|
|
2802
|
-
enableRtl: args.enableRtl
|
|
2807
|
+
enableRtl: args.enableRtl,
|
|
2808
|
+
cssClass: args.cssClass
|
|
2803
2809
|
});
|
|
2804
2810
|
args.rteToolbarObj.toolbarObj.isStringTemplate = true;
|
|
2805
2811
|
args.rteToolbarObj.toolbarObj.createElement = this.parent.createElement;
|
|
@@ -3259,12 +3265,24 @@ var BaseToolbar = /** @__PURE__ @class */ (function () {
|
|
|
3259
3265
|
}
|
|
3260
3266
|
BaseToolbar.prototype.addEventListener = function () {
|
|
3261
3267
|
this.parent.on(rtlMode, this.setRtl, this);
|
|
3268
|
+
this.parent.on(bindCssClass, this.setCssClass, this);
|
|
3262
3269
|
this.parent.on(destroy, this.removeEventListener, this);
|
|
3263
3270
|
};
|
|
3264
3271
|
BaseToolbar.prototype.removeEventListener = function () {
|
|
3265
3272
|
this.parent.off(rtlMode, this.setRtl);
|
|
3273
|
+
this.parent.off(bindCssClass, this.setCssClass);
|
|
3266
3274
|
this.parent.off(destroy, this.removeEventListener);
|
|
3267
3275
|
};
|
|
3276
|
+
BaseToolbar.prototype.setCssClass = function (e) {
|
|
3277
|
+
if (!isNullOrUndefined(this.toolbarObj)) {
|
|
3278
|
+
if (isNullOrUndefined(e.oldCssClass)) {
|
|
3279
|
+
this.toolbarObj.setProperties({ cssClass: (this.toolbarObj.cssClass + ' ' + e.cssClass).trim() });
|
|
3280
|
+
}
|
|
3281
|
+
else {
|
|
3282
|
+
this.toolbarObj.setProperties({ cssClass: (this.toolbarObj.cssClass.replace(e.oldCssClass, '').trim() + ' ' + e.cssClass).trim() });
|
|
3283
|
+
}
|
|
3284
|
+
}
|
|
3285
|
+
};
|
|
3268
3286
|
BaseToolbar.prototype.setRtl = function (args) {
|
|
3269
3287
|
if (!isNullOrUndefined(this.toolbarObj)) {
|
|
3270
3288
|
this.toolbarObj.setProperties({ enableRtl: args.enableRtl });
|
|
@@ -3394,7 +3412,8 @@ var BaseToolbar = /** @__PURE__ @class */ (function () {
|
|
|
3394
3412
|
items: this.getItems(args.items, args.container),
|
|
3395
3413
|
overflowMode: args.mode,
|
|
3396
3414
|
enablePersistence: this.parent.enablePersistence,
|
|
3397
|
-
enableRtl: this.parent.enableRtl
|
|
3415
|
+
enableRtl: this.parent.enableRtl,
|
|
3416
|
+
cssClass: args.cssClass,
|
|
3398
3417
|
};
|
|
3399
3418
|
};
|
|
3400
3419
|
/**
|
|
@@ -3593,6 +3612,9 @@ var DropDownButtons = /** @__PURE__ @class */ (function () {
|
|
|
3593
3612
|
}
|
|
3594
3613
|
}
|
|
3595
3614
|
});
|
|
3615
|
+
if (this.parent.inlineMode.enable) {
|
|
3616
|
+
this.setCssClass({ cssClass: this.parent.cssClass });
|
|
3617
|
+
}
|
|
3596
3618
|
};
|
|
3597
3619
|
DropDownButtons.prototype.getUpdateItems = function (items, value) {
|
|
3598
3620
|
var dropDownItems = items.slice();
|
|
@@ -3880,6 +3902,26 @@ var DropDownButtons = /** @__PURE__ @class */ (function () {
|
|
|
3880
3902
|
this.bulletFormatListDropDown.setProperties({ enableRtl: args.enableRtl });
|
|
3881
3903
|
}
|
|
3882
3904
|
};
|
|
3905
|
+
DropDownButtons.prototype.updateCss = function (dropDownObj, e) {
|
|
3906
|
+
if (dropDownObj && e.cssClass) {
|
|
3907
|
+
if (isNullOrUndefined(e.oldCssClass)) {
|
|
3908
|
+
dropDownObj.setProperties({ cssClass: (dropDownObj.cssClass + ' ' + e.cssClass).trim() });
|
|
3909
|
+
}
|
|
3910
|
+
else {
|
|
3911
|
+
dropDownObj.setProperties({ cssClass: (dropDownObj.cssClass.replace(e.oldCssClass, '').trim() + ' ' + e.cssClass).trim() });
|
|
3912
|
+
}
|
|
3913
|
+
}
|
|
3914
|
+
};
|
|
3915
|
+
DropDownButtons.prototype.setCssClass = function (e) {
|
|
3916
|
+
var dropDownObj = [
|
|
3917
|
+
this.formatDropDown, this.fontNameDropDown, this.fontSizeDropDown, this.alignDropDown, this.imageAlignDropDown,
|
|
3918
|
+
this.displayDropDown, this.numberFormatListDropDown, this.bulletFormatListDropDown, this.tableRowsDropDown,
|
|
3919
|
+
this.tableColumnsDropDown, this.tableCellVerticalAlignDropDown
|
|
3920
|
+
];
|
|
3921
|
+
for (var i = 0; i < dropDownObj.length; i++) {
|
|
3922
|
+
this.updateCss(dropDownObj[i], e);
|
|
3923
|
+
}
|
|
3924
|
+
};
|
|
3883
3925
|
DropDownButtons.prototype.addEventListener = function () {
|
|
3884
3926
|
if (this.parent.isDestroyed) {
|
|
3885
3927
|
return;
|
|
@@ -3889,6 +3931,7 @@ var DropDownButtons = /** @__PURE__ @class */ (function () {
|
|
|
3889
3931
|
this.parent.on(rtlMode, this.setRtl, this);
|
|
3890
3932
|
this.parent.on(destroy, this.removeEventListener, this);
|
|
3891
3933
|
this.parent.on(modelChanged, this.onPropertyChanged, this);
|
|
3934
|
+
this.parent.on(bindCssClass, this.setCssClass, this);
|
|
3892
3935
|
};
|
|
3893
3936
|
DropDownButtons.prototype.onIframeMouseDown = function () {
|
|
3894
3937
|
dispatchEvent(document, 'mousedown');
|
|
@@ -3902,6 +3945,7 @@ var DropDownButtons = /** @__PURE__ @class */ (function () {
|
|
|
3902
3945
|
this.parent.off(beforeDropDownItemRender, this.beforeRender);
|
|
3903
3946
|
this.parent.off(destroy, this.removeEventListener);
|
|
3904
3947
|
this.parent.off(modelChanged, this.onPropertyChanged);
|
|
3948
|
+
this.parent.off(bindCssClass, this.setCssClass);
|
|
3905
3949
|
};
|
|
3906
3950
|
return DropDownButtons;
|
|
3907
3951
|
}());
|
|
@@ -4651,6 +4695,7 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
4651
4695
|
this.parent.on(focusChange, this.focusChangeHandler, this);
|
|
4652
4696
|
this.parent.on(mouseDown, this.mouseDownHandler, this);
|
|
4653
4697
|
this.parent.on(sourceCodeMouseDown, this.mouseDownHandler, this);
|
|
4698
|
+
this.parent.on(bindCssClass, this.setCssClass, this);
|
|
4654
4699
|
if (!this.parent.inlineMode.enable && !isIDevice()) {
|
|
4655
4700
|
this.parent.on(toolbarClick, this.toolbarClickHandler, this);
|
|
4656
4701
|
}
|
|
@@ -4674,10 +4719,21 @@ var Toolbar$2 = /** @__PURE__ @class */ (function () {
|
|
|
4674
4719
|
this.parent.off(focusChange, this.focusChangeHandler);
|
|
4675
4720
|
this.parent.off(mouseDown, this.mouseDownHandler);
|
|
4676
4721
|
this.parent.off(sourceCodeMouseDown, this.mouseDownHandler);
|
|
4722
|
+
this.parent.off(bindCssClass, this.setCssClass);
|
|
4677
4723
|
if (!this.parent.inlineMode.enable && !isIDevice()) {
|
|
4678
4724
|
this.parent.off(toolbarClick, this.toolbarClickHandler);
|
|
4679
4725
|
}
|
|
4680
4726
|
};
|
|
4727
|
+
Toolbar$$1.prototype.setCssClass = function (e) {
|
|
4728
|
+
if (this.toolbarObj && e.cssClass) {
|
|
4729
|
+
if (isNullOrUndefined(e.oldCssClass)) {
|
|
4730
|
+
this.toolbarObj.setProperties({ cssClass: (this.toolbarObj.cssClass + ' ' + e.cssClass).trim() });
|
|
4731
|
+
}
|
|
4732
|
+
else {
|
|
4733
|
+
this.toolbarObj.setProperties({ cssClass: (this.toolbarObj.cssClass.replace(e.oldCssClass, '').trim() + ' ' + e.cssClass).trim() });
|
|
4734
|
+
}
|
|
4735
|
+
}
|
|
4736
|
+
};
|
|
4681
4737
|
Toolbar$$1.prototype.onRefresh = function () {
|
|
4682
4738
|
this.refreshToolbarOverflow();
|
|
4683
4739
|
this.parent.setContentHeight('', true);
|
|
@@ -5042,6 +5098,9 @@ var ColorPickerInput = /** @__PURE__ @class */ (function () {
|
|
|
5042
5098
|
}
|
|
5043
5099
|
}
|
|
5044
5100
|
});
|
|
5101
|
+
if (this.parent.inlineMode.enable) {
|
|
5102
|
+
this.setCssClass({ cssClass: this.parent.cssClass });
|
|
5103
|
+
}
|
|
5045
5104
|
};
|
|
5046
5105
|
ColorPickerInput.prototype.destroy = function () {
|
|
5047
5106
|
this.removeEventListener();
|
|
@@ -5087,12 +5146,29 @@ var ColorPickerInput = /** @__PURE__ @class */ (function () {
|
|
|
5087
5146
|
this.backgroundColorDropDown.setProperties({ enableRtl: args.enableRtl });
|
|
5088
5147
|
}
|
|
5089
5148
|
};
|
|
5149
|
+
ColorPickerInput.prototype.setCssClass = function (e) {
|
|
5150
|
+
this.updateCss(this.fontColorPicker, this.fontColorDropDown, e);
|
|
5151
|
+
this.updateCss(this.backgroundColorPicker, this.backgroundColorDropDown, e);
|
|
5152
|
+
};
|
|
5153
|
+
ColorPickerInput.prototype.updateCss = function (colorPickerObj, dropDownObj, e) {
|
|
5154
|
+
if (colorPickerObj && e.cssClass) {
|
|
5155
|
+
if (isNullOrUndefined(e.oldCssClass)) {
|
|
5156
|
+
colorPickerObj.setProperties({ cssClass: (colorPickerObj.cssClass + ' ' + e.cssClass).trim() });
|
|
5157
|
+
dropDownObj.setProperties({ cssClass: (dropDownObj.cssClass + ' ' + e.cssClass).trim() });
|
|
5158
|
+
}
|
|
5159
|
+
else {
|
|
5160
|
+
colorPickerObj.setProperties({ cssClass: (colorPickerObj.cssClass.replace(e.oldCssClass, '').trim() + ' ' + e.cssClass).trim() });
|
|
5161
|
+
dropDownObj.setProperties({ cssClass: (dropDownObj.cssClass.replace(e.oldCssClass, '').trim() + ' ' + e.cssClass).trim() });
|
|
5162
|
+
}
|
|
5163
|
+
}
|
|
5164
|
+
};
|
|
5090
5165
|
ColorPickerInput.prototype.addEventListener = function () {
|
|
5091
5166
|
this.parent.on(toolbarRenderComplete, this.renderColorPickerInput, this);
|
|
5092
5167
|
this.parent.on(rtlMode, this.setRtl, this);
|
|
5093
5168
|
this.parent.on(destroy, this.destroy, this);
|
|
5094
5169
|
this.parent.on(destroyColorPicker, this.destroyColorPicker, this);
|
|
5095
5170
|
this.parent.on(modelChanged, this.onPropertyChanged, this);
|
|
5171
|
+
this.parent.on(bindCssClass, this.setCssClass, this);
|
|
5096
5172
|
};
|
|
5097
5173
|
ColorPickerInput.prototype.onPropertyChanged = function (model) {
|
|
5098
5174
|
var newProp = model.newProp;
|
|
@@ -5165,6 +5241,7 @@ var ColorPickerInput = /** @__PURE__ @class */ (function () {
|
|
|
5165
5241
|
this.parent.off(rtlMode, this.setRtl);
|
|
5166
5242
|
this.parent.off(destroyColorPicker, this.destroyColorPicker);
|
|
5167
5243
|
this.parent.off(modelChanged, this.onPropertyChanged);
|
|
5244
|
+
this.parent.off(bindCssClass, this.setCssClass);
|
|
5168
5245
|
};
|
|
5169
5246
|
return ColorPickerInput;
|
|
5170
5247
|
}());
|
|
@@ -5211,17 +5288,18 @@ var BaseQuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
5211
5288
|
this.element = this.parent.createElement('div', { id: popupId, className: className + ' ' + CLS_RTE_ELEMENTS });
|
|
5212
5289
|
this.element.setAttribute('aria-owns', this.parent.getID());
|
|
5213
5290
|
this.appendPopupContent();
|
|
5214
|
-
this.createToolbar(args.toolbarItems, args.mode);
|
|
5291
|
+
this.createToolbar(args.toolbarItems, args.mode, args.cssClass);
|
|
5215
5292
|
this.popupRenderer.renderPopup(this);
|
|
5216
5293
|
this.addEventListener();
|
|
5217
5294
|
};
|
|
5218
|
-
BaseQuickToolbar.prototype.createToolbar = function (items, mode) {
|
|
5295
|
+
BaseQuickToolbar.prototype.createToolbar = function (items, mode, cssClass) {
|
|
5219
5296
|
this.quickTBarObj = new BaseToolbar(this.parent, this.locator);
|
|
5220
5297
|
this.quickTBarObj.render({
|
|
5221
5298
|
container: 'quick',
|
|
5222
5299
|
target: this.toolbarElement,
|
|
5223
5300
|
items: items,
|
|
5224
|
-
mode: mode
|
|
5301
|
+
mode: mode,
|
|
5302
|
+
cssClass: cssClass
|
|
5225
5303
|
});
|
|
5226
5304
|
this.quickTBarObj.toolbarObj.refresh();
|
|
5227
5305
|
};
|
|
@@ -5413,6 +5491,10 @@ var BaseQuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
5413
5491
|
_this.popupObj.element.classList.remove('e-popup-open');
|
|
5414
5492
|
removeClass([_this.element], [CLS_HIDE]);
|
|
5415
5493
|
_this.popupObj.show({ name: 'ZoomIn', duration: (Browser.isIE ? 250 : 400) });
|
|
5494
|
+
if (_this.popupObj && _this.parent.cssClass) {
|
|
5495
|
+
removeClass([_this.popupObj.element], _this.parent.cssClass);
|
|
5496
|
+
addClass([_this.popupObj.element], _this.parent.cssClass);
|
|
5497
|
+
}
|
|
5416
5498
|
setStyleAttribute(_this.element, {
|
|
5417
5499
|
maxWidth: window.outerWidth + 'px'
|
|
5418
5500
|
});
|
|
@@ -5674,7 +5756,8 @@ var QuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
5674
5756
|
popupType: popType,
|
|
5675
5757
|
toolbarItems: items,
|
|
5676
5758
|
mode: mode,
|
|
5677
|
-
renderType: type
|
|
5759
|
+
renderType: type,
|
|
5760
|
+
cssClass: this.parent.cssClass
|
|
5678
5761
|
};
|
|
5679
5762
|
};
|
|
5680
5763
|
/**
|
|
@@ -5985,6 +6068,7 @@ var QuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
5985
6068
|
this.parent.on(destroy, this.destroy, this);
|
|
5986
6069
|
this.parent.on(keyDown, this.onKeyDown, this);
|
|
5987
6070
|
this.parent.on(rtlMode, this.setRtl, this);
|
|
6071
|
+
this.parent.on(bindCssClass, this.setCssClass, this);
|
|
5988
6072
|
};
|
|
5989
6073
|
QuickToolbar.prototype.onKeyDown = function (e) {
|
|
5990
6074
|
var args = e.args;
|
|
@@ -5998,6 +6082,24 @@ var QuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
5998
6082
|
this.hideQuickToolbars();
|
|
5999
6083
|
this.hideInlineQTBar();
|
|
6000
6084
|
};
|
|
6085
|
+
QuickToolbar.prototype.updateCss = function (baseQTObj, e) {
|
|
6086
|
+
if (baseQTObj && e.cssClass) {
|
|
6087
|
+
if (isNullOrUndefined(e.oldCssClass && baseQTObj.quickTBarObj.toolbarObj.cssClass !== e.cssClass)) {
|
|
6088
|
+
baseQTObj.quickTBarObj.toolbarObj.setProperties({ cssClass: (baseQTObj.quickTBarObj.toolbarObj.cssClass + ' ' + e.cssClass).trim() });
|
|
6089
|
+
}
|
|
6090
|
+
else {
|
|
6091
|
+
baseQTObj.quickTBarObj.toolbarObj.setProperties({ cssClass: (baseQTObj.quickTBarObj.toolbarObj.cssClass.replace(e.oldCssClass, '').trim() + ' ' + e.cssClass).trim() });
|
|
6092
|
+
}
|
|
6093
|
+
}
|
|
6094
|
+
};
|
|
6095
|
+
QuickToolbar.prototype.setCssClass = function (e) {
|
|
6096
|
+
var baseQuickToolbarObj = [
|
|
6097
|
+
this.inlineQTBar, this.imageQTBar, this.linkQTBar, this.textQTBar, this.tableQTBar
|
|
6098
|
+
];
|
|
6099
|
+
for (var i = 0; i < baseQuickToolbarObj.length; i++) {
|
|
6100
|
+
this.updateCss(baseQuickToolbarObj[i], e);
|
|
6101
|
+
}
|
|
6102
|
+
};
|
|
6001
6103
|
QuickToolbar.prototype.setRtl = function (args) {
|
|
6002
6104
|
if (this.inlineQTBar) {
|
|
6003
6105
|
this.inlineQTBar.quickTBarObj.toolbarObj.setProperties({ enableRtl: args.enableRtl });
|
|
@@ -6006,7 +6108,7 @@ var QuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
6006
6108
|
this.imageQTBar.quickTBarObj.toolbarObj.setProperties({ enableRtl: args.enableRtl });
|
|
6007
6109
|
}
|
|
6008
6110
|
if (this.linkQTBar) {
|
|
6009
|
-
this.
|
|
6111
|
+
this.linkQTBar.quickTBarObj.toolbarObj.setProperties({ enableRtl: args.enableRtl });
|
|
6010
6112
|
}
|
|
6011
6113
|
};
|
|
6012
6114
|
/**
|
|
@@ -6035,6 +6137,7 @@ var QuickToolbar = /** @__PURE__ @class */ (function () {
|
|
|
6035
6137
|
this.parent.off(iframeMouseDown, this.onIframeMouseDown);
|
|
6036
6138
|
this.parent.off(keyDown, this.onKeyDown);
|
|
6037
6139
|
this.parent.off(rtlMode, this.setRtl);
|
|
6140
|
+
this.parent.off(bindCssClass, this.setCssClass);
|
|
6038
6141
|
};
|
|
6039
6142
|
/**
|
|
6040
6143
|
* Called internally if any of the property value changed.
|
|
@@ -10303,7 +10406,13 @@ var DOMNode = /** @__PURE__ @class */ (function () {
|
|
|
10303
10406
|
markerStart.appendChild(start);
|
|
10304
10407
|
}
|
|
10305
10408
|
else {
|
|
10306
|
-
|
|
10409
|
+
if (start.nodeType != 3 && start.nodeName != '#text') {
|
|
10410
|
+
var marker = this.marker(markerClassName.startSelection, '');
|
|
10411
|
+
append([this.parseHTMLFragment(marker)], start);
|
|
10412
|
+
}
|
|
10413
|
+
else {
|
|
10414
|
+
this.replaceWith(start, this.marker(markerClassName.startSelection, this.encode(start.textContent)));
|
|
10415
|
+
}
|
|
10307
10416
|
}
|
|
10308
10417
|
if (end.nodeType !== Node.TEXT_NODE && end.tagName === 'BR' &&
|
|
10309
10418
|
IGNORE_BLOCK_TAGS.indexOf(end.parentNode.tagName.toLocaleLowerCase()) >= 0) {
|
|
@@ -16984,7 +17093,8 @@ var ContentRender = /** @__PURE__ @class */ (function () {
|
|
|
16984
17093
|
* @returns {string} - specifies the string element.
|
|
16985
17094
|
*/
|
|
16986
17095
|
ContentRender.prototype.getText = function () {
|
|
16987
|
-
|
|
17096
|
+
var textString = this.getEditPanel().innerText;
|
|
17097
|
+
return textString === '\n' ? '' : textString;
|
|
16988
17098
|
};
|
|
16989
17099
|
/**
|
|
16990
17100
|
* Set the content div element of RichTextEditor
|
|
@@ -18008,6 +18118,7 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
18008
18118
|
return;
|
|
18009
18119
|
}
|
|
18010
18120
|
this.parent.on(pasteClean, this.pasteClean, this);
|
|
18121
|
+
this.parent.on(bindCssClass, this.setCssClass, this);
|
|
18011
18122
|
this.parent.on(destroy, this.destroy, this);
|
|
18012
18123
|
};
|
|
18013
18124
|
PasteCleanup.prototype.destroy = function () {
|
|
@@ -18018,6 +18129,7 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
18018
18129
|
return;
|
|
18019
18130
|
}
|
|
18020
18131
|
this.parent.off(pasteClean, this.pasteClean);
|
|
18132
|
+
this.parent.off(bindCssClass, this.setCssClass);
|
|
18021
18133
|
this.parent.off(destroy, this.destroy);
|
|
18022
18134
|
};
|
|
18023
18135
|
PasteCleanup.prototype.pasteClean = function (e) {
|
|
@@ -18197,7 +18309,7 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
18197
18309
|
id: this.parent.element.id + '_upload', attrs: { type: 'File', name: 'UploadFiles' }
|
|
18198
18310
|
});
|
|
18199
18311
|
var offsetY = this.parent.iframeSettings.enable ? -50 : -90;
|
|
18200
|
-
|
|
18312
|
+
this.popupObj = new Popup(popupEle, {
|
|
18201
18313
|
relateTo: imgElem,
|
|
18202
18314
|
height: '85px',
|
|
18203
18315
|
width: '300px',
|
|
@@ -18210,19 +18322,22 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
18210
18322
|
// eslint-disable-next-line
|
|
18211
18323
|
close: function (event) {
|
|
18212
18324
|
_this.parent.isBlur = false;
|
|
18213
|
-
popupObj.destroy();
|
|
18214
|
-
detach(popupObj.element);
|
|
18325
|
+
_this.popupObj.destroy();
|
|
18326
|
+
detach(_this.popupObj.element);
|
|
18215
18327
|
}
|
|
18216
18328
|
});
|
|
18217
|
-
popupObj.element.style.display = 'none';
|
|
18218
|
-
addClass([popupObj.element], [CLS_POPUP_OPEN, CLS_RTE_UPLOAD_POPUP]);
|
|
18329
|
+
this.popupObj.element.style.display = 'none';
|
|
18330
|
+
addClass([this.popupObj.element], [CLS_POPUP_OPEN, CLS_RTE_UPLOAD_POPUP]);
|
|
18331
|
+
if (!isNullOrUndefined(this.parent.cssClass)) {
|
|
18332
|
+
addClass([this.popupObj.element], this.parent.cssClass);
|
|
18333
|
+
}
|
|
18219
18334
|
var timeOut = fileList.size > 1000000 ? 300 : 100;
|
|
18220
18335
|
setTimeout(function () {
|
|
18221
|
-
_this.refreshPopup(imgElem, popupObj);
|
|
18336
|
+
_this.refreshPopup(imgElem, _this.popupObj);
|
|
18222
18337
|
}, timeOut);
|
|
18223
18338
|
var rawFile;
|
|
18224
18339
|
var beforeUploadArgs;
|
|
18225
|
-
|
|
18340
|
+
this.uploadObj = new Uploader({
|
|
18226
18341
|
asyncSettings: {
|
|
18227
18342
|
saveUrl: this.parent.insertImageSettings.saveUrl,
|
|
18228
18343
|
removeUrl: this.parent.insertImageSettings.removeUrl
|
|
@@ -18232,7 +18347,7 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
18232
18347
|
allowedExtensions: this.parent.insertImageSettings.allowedTypes.toString(),
|
|
18233
18348
|
success: function (e) {
|
|
18234
18349
|
setTimeout(function () {
|
|
18235
|
-
_this.popupClose(popupObj, uploadObj, imgElem, e);
|
|
18350
|
+
_this.popupClose(_this.popupObj, _this.uploadObj, imgElem, e);
|
|
18236
18351
|
}, 900);
|
|
18237
18352
|
},
|
|
18238
18353
|
uploading: function (e) {
|
|
@@ -18242,8 +18357,8 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
18242
18357
|
if (!isNullOrUndefined(imgElem)) {
|
|
18243
18358
|
detach(imgElem);
|
|
18244
18359
|
}
|
|
18245
|
-
if (!isNullOrUndefined(popupObj.element)) {
|
|
18246
|
-
detach(popupObj.element);
|
|
18360
|
+
if (!isNullOrUndefined(_this.popupObj.element)) {
|
|
18361
|
+
detach(_this.popupObj.element);
|
|
18247
18362
|
}
|
|
18248
18363
|
}
|
|
18249
18364
|
else {
|
|
@@ -18263,11 +18378,11 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
18263
18378
|
}
|
|
18264
18379
|
_this.toolbarEnableDisable(true);
|
|
18265
18380
|
/* eslint-disable */
|
|
18266
|
-
uploadObj.currentRequestHeader = beforeUploadArgs.currentRequest ?
|
|
18267
|
-
beforeUploadArgs.currentRequest : uploadObj.currentRequestHeader;
|
|
18268
|
-
uploadObj.customFormDatas = beforeUploadArgs.customFormData && beforeUploadArgs.customFormData.length > 0 ?
|
|
18269
|
-
beforeUploadArgs.customFormData : uploadObj.customFormDatas;
|
|
18270
|
-
uploadObj.uploadFiles(rawFile, null);
|
|
18381
|
+
_this.uploadObj.currentRequestHeader = beforeUploadArgs.currentRequest ?
|
|
18382
|
+
beforeUploadArgs.currentRequest : _this.uploadObj.currentRequestHeader;
|
|
18383
|
+
_this.uploadObj.customFormDatas = beforeUploadArgs.customFormData && beforeUploadArgs.customFormData.length > 0 ?
|
|
18384
|
+
beforeUploadArgs.customFormData : _this.uploadObj.customFormDatas;
|
|
18385
|
+
_this.uploadObj.uploadFiles(rawFile, null);
|
|
18271
18386
|
/* eslint-enable */
|
|
18272
18387
|
});
|
|
18273
18388
|
}
|
|
@@ -18279,7 +18394,7 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
18279
18394
|
// eslint-disable-next-line
|
|
18280
18395
|
failure: function (e) {
|
|
18281
18396
|
setTimeout(function () {
|
|
18282
|
-
_this.uploadFailure(imgElem, uploadObj, popupObj, e);
|
|
18397
|
+
_this.uploadFailure(imgElem, _this.uploadObj, _this.popupObj, e);
|
|
18283
18398
|
}, 900);
|
|
18284
18399
|
},
|
|
18285
18400
|
canceling: function () {
|
|
@@ -18288,7 +18403,7 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
18288
18403
|
detach(imgElem.nextSibling);
|
|
18289
18404
|
}
|
|
18290
18405
|
detach(imgElem);
|
|
18291
|
-
popupObj.close();
|
|
18406
|
+
_this.popupObj.close();
|
|
18292
18407
|
},
|
|
18293
18408
|
selected: function (e) {
|
|
18294
18409
|
e.cancel = true;
|
|
@@ -18302,10 +18417,10 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
18302
18417
|
detach(imgElem.nextSibling);
|
|
18303
18418
|
}
|
|
18304
18419
|
detach(imgElem);
|
|
18305
|
-
popupObj.close();
|
|
18420
|
+
_this.popupObj.close();
|
|
18306
18421
|
}
|
|
18307
18422
|
});
|
|
18308
|
-
uploadObj.appendTo(popupObj.element.childNodes[0]);
|
|
18423
|
+
this.uploadObj.appendTo(this.popupObj.element.childNodes[0]);
|
|
18309
18424
|
/* eslint-disable */
|
|
18310
18425
|
var fileData = [{
|
|
18311
18426
|
name: fileList.name,
|
|
@@ -18315,13 +18430,13 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
18315
18430
|
validationMessages: { minSize: "", maxSize: "" },
|
|
18316
18431
|
statusCode: '1'
|
|
18317
18432
|
}];
|
|
18318
|
-
uploadObj.createFileList(fileData);
|
|
18319
|
-
uploadObj.filesData.push(fileData[0]);
|
|
18433
|
+
this.uploadObj.createFileList(fileData);
|
|
18434
|
+
this.uploadObj.filesData.push(fileData[0]);
|
|
18320
18435
|
/* eslint-enable */
|
|
18321
18436
|
rawFile = fileData;
|
|
18322
|
-
uploadObj.upload(fileData);
|
|
18323
|
-
popupObj.element.getElementsByClassName('e-file-select-wrap')[0].style.display = 'none';
|
|
18324
|
-
detach(popupObj.element.querySelector('.e-rte-dialog-upload .e-file-select-wrap'));
|
|
18437
|
+
this.uploadObj.upload(fileData);
|
|
18438
|
+
this.popupObj.element.getElementsByClassName('e-file-select-wrap')[0].style.display = 'none';
|
|
18439
|
+
detach(this.popupObj.element.querySelector('.e-rte-dialog-upload .e-file-select-wrap'));
|
|
18325
18440
|
};
|
|
18326
18441
|
PasteCleanup.prototype.uploadFailure = function (imgElem, uploadObj, popupObj, e) {
|
|
18327
18442
|
this.parent.inputElement.contentEditable = 'true';
|
|
@@ -18414,19 +18529,19 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
18414
18529
|
}
|
|
18415
18530
|
};
|
|
18416
18531
|
PasteCleanup.prototype.radioRender = function () {
|
|
18417
|
-
|
|
18532
|
+
this.keepRadioButton = new RadioButton({ label: this.i10n.getConstant('keepFormat'),
|
|
18418
18533
|
name: 'pasteOption', checked: true });
|
|
18419
|
-
keepRadioButton.isStringTemplate = true;
|
|
18534
|
+
this.keepRadioButton.isStringTemplate = true;
|
|
18420
18535
|
var keepFormatElement = this.parent.element.querySelector('#keepFormating');
|
|
18421
|
-
keepRadioButton.appendTo(keepFormatElement);
|
|
18422
|
-
|
|
18423
|
-
cleanRadioButton.isStringTemplate = true;
|
|
18536
|
+
this.keepRadioButton.appendTo(keepFormatElement);
|
|
18537
|
+
this.cleanRadioButton = new RadioButton({ label: this.i10n.getConstant('cleanFormat'), name: 'pasteOption' });
|
|
18538
|
+
this.cleanRadioButton.isStringTemplate = true;
|
|
18424
18539
|
var cleanFormatElement = this.parent.element.querySelector('#cleanFormat');
|
|
18425
|
-
cleanRadioButton.appendTo(cleanFormatElement);
|
|
18426
|
-
|
|
18427
|
-
plainTextRadioButton.isStringTemplate = true;
|
|
18540
|
+
this.cleanRadioButton.appendTo(cleanFormatElement);
|
|
18541
|
+
this.plainTextRadioButton = new RadioButton({ label: this.i10n.getConstant('plainText'), name: 'pasteOption' });
|
|
18542
|
+
this.plainTextRadioButton.isStringTemplate = true;
|
|
18428
18543
|
var plainTextElement = this.parent.element.querySelector('#plainTextFormat');
|
|
18429
|
-
plainTextRadioButton.appendTo(plainTextElement);
|
|
18544
|
+
this.plainTextRadioButton.appendTo(plainTextElement);
|
|
18430
18545
|
};
|
|
18431
18546
|
PasteCleanup.prototype.selectFormatting = function (value, args, keepChecked, cleanChecked) {
|
|
18432
18547
|
if (keepChecked) {
|
|
@@ -18447,15 +18562,15 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
18447
18562
|
buttons: [
|
|
18448
18563
|
{
|
|
18449
18564
|
click: function () {
|
|
18450
|
-
if (!
|
|
18565
|
+
if (!_this.dialogObj.isDestroyed) {
|
|
18451
18566
|
var keepChecked = _this.parent.element.querySelector('#keepFormating').checked;
|
|
18452
18567
|
var cleanChecked = _this.parent.element.querySelector('#cleanFormat').checked;
|
|
18453
|
-
|
|
18568
|
+
_this.dialogObj.hide();
|
|
18454
18569
|
_this.parent.height = isHeight ? preRTEHeight : _this.parent.height;
|
|
18455
18570
|
isHeight = false;
|
|
18456
|
-
var argument =
|
|
18571
|
+
var argument = _this.dialogObj;
|
|
18457
18572
|
_this.dialogRenderObj.close(argument);
|
|
18458
|
-
|
|
18573
|
+
_this.dialogObj.destroy();
|
|
18459
18574
|
_this.selectFormatting(value, args, keepChecked, cleanChecked);
|
|
18460
18575
|
}
|
|
18461
18576
|
},
|
|
@@ -18467,13 +18582,13 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
18467
18582
|
},
|
|
18468
18583
|
{
|
|
18469
18584
|
click: function () {
|
|
18470
|
-
if (!
|
|
18471
|
-
|
|
18585
|
+
if (!_this.dialogObj.isDestroyed) {
|
|
18586
|
+
_this.dialogObj.hide();
|
|
18472
18587
|
_this.parent.height = isHeight ? preRTEHeight : _this.parent.height;
|
|
18473
18588
|
isHeight = false;
|
|
18474
|
-
var args_1 =
|
|
18589
|
+
var args_1 = _this.dialogObj;
|
|
18475
18590
|
_this.dialogRenderObj.close(args_1);
|
|
18476
|
-
|
|
18591
|
+
_this.dialogObj.destroy();
|
|
18477
18592
|
}
|
|
18478
18593
|
},
|
|
18479
18594
|
buttonModel: {
|
|
@@ -18496,7 +18611,7 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
18496
18611
|
isModal: true,
|
|
18497
18612
|
visible: false
|
|
18498
18613
|
};
|
|
18499
|
-
|
|
18614
|
+
this.dialogObj = this.dialogRenderObj.render(dialogModel);
|
|
18500
18615
|
var rteDialogWrapper = this.parent.element.querySelector('#' + this.parent.getID()
|
|
18501
18616
|
+ '_pasteCleanupDialog');
|
|
18502
18617
|
if (rteDialogWrapper !== null && rteDialogWrapper.innerHTML !== '') {
|
|
@@ -18508,15 +18623,42 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
18508
18623
|
});
|
|
18509
18624
|
this.parent.element.appendChild(rteDialogWrapper);
|
|
18510
18625
|
}
|
|
18511
|
-
|
|
18626
|
+
this.dialogObj.appendTo(rteDialogWrapper);
|
|
18512
18627
|
this.radioRender();
|
|
18513
18628
|
/* eslint-disable */
|
|
18514
|
-
if (this.parent.element.offsetHeight < parseInt(
|
|
18515
|
-
this.parent.height = parseInt(
|
|
18629
|
+
if (this.parent.element.offsetHeight < parseInt(this.dialogObj.height.split('px')[0], null)) {
|
|
18630
|
+
this.parent.height = parseInt(this.dialogObj.height.split('px')[0], null) + 40;
|
|
18516
18631
|
/* eslint-enable */
|
|
18517
18632
|
isHeight = true;
|
|
18518
18633
|
}
|
|
18519
|
-
|
|
18634
|
+
this.dialogObj.show();
|
|
18635
|
+
this.setCssClass({ cssClass: this.parent.cssClass });
|
|
18636
|
+
};
|
|
18637
|
+
PasteCleanup.prototype.updateCss = function (currentObj, e) {
|
|
18638
|
+
if (currentObj && e.cssClass) {
|
|
18639
|
+
if (isNullOrUndefined(e.oldCssClass)) {
|
|
18640
|
+
currentObj.setProperties({ cssClass: (currentObj.cssClass + ' ' + e.cssClass).trim() });
|
|
18641
|
+
}
|
|
18642
|
+
else {
|
|
18643
|
+
currentObj.setProperties({ cssClass: (currentObj.cssClass.replace(e.oldCssClass, '').trim() + ' ' + e.cssClass).trim() });
|
|
18644
|
+
}
|
|
18645
|
+
}
|
|
18646
|
+
};
|
|
18647
|
+
PasteCleanup.prototype.setCssClass = function (e) {
|
|
18648
|
+
if (this.popupObj && e.cssClass) {
|
|
18649
|
+
if (isNullOrUndefined(e.oldCssClass)) {
|
|
18650
|
+
addClass([this.popupObj.element], e.cssClass);
|
|
18651
|
+
}
|
|
18652
|
+
else {
|
|
18653
|
+
removeClass([this.popupObj.element], e.oldCssClass);
|
|
18654
|
+
addClass([this.popupObj.element], e.cssClass);
|
|
18655
|
+
}
|
|
18656
|
+
}
|
|
18657
|
+
this.updateCss(this.dialogObj, e);
|
|
18658
|
+
this.updateCss(this.uploadObj, e);
|
|
18659
|
+
this.updateCss(this.plainTextRadioButton, e);
|
|
18660
|
+
this.updateCss(this.cleanRadioButton, e);
|
|
18661
|
+
this.updateCss(this.keepRadioButton, e);
|
|
18520
18662
|
};
|
|
18521
18663
|
PasteCleanup.prototype.destroyDialog = function (rteDialogWrapper) {
|
|
18522
18664
|
var rteDialogContainer = this.parent.element.querySelector('.e-dlg-container');
|
|
@@ -19062,6 +19204,17 @@ var FileManager$1 = /** @__PURE__ @class */ (function () {
|
|
|
19062
19204
|
this.dialogObj.createElement = this.parent.createElement;
|
|
19063
19205
|
this.dialogObj.appendTo(dlgTarget);
|
|
19064
19206
|
this.dialogObj.show(Browser.isDevice ? true : false);
|
|
19207
|
+
this.setCssClass({ cssClass: this.parent.cssClass });
|
|
19208
|
+
};
|
|
19209
|
+
FileManager$$1.prototype.setCssClass = function (e) {
|
|
19210
|
+
if (this.dialogObj && e.cssClass) {
|
|
19211
|
+
if (isNullOrUndefined(e.oldCssClass)) {
|
|
19212
|
+
this.dialogObj.setProperties({ cssClass: (this.dialogObj.cssClass + ' ' + e.cssClass).trim() });
|
|
19213
|
+
}
|
|
19214
|
+
else {
|
|
19215
|
+
this.dialogObj.setProperties({ cssClass: (this.dialogObj.cssClass.replace(e.oldCssClass, '').trim() + ' ' + e.cssClass).trim() });
|
|
19216
|
+
}
|
|
19217
|
+
}
|
|
19065
19218
|
};
|
|
19066
19219
|
FileManager$$1.prototype.renderFileManager = function () {
|
|
19067
19220
|
var _this = this;
|
|
@@ -19186,12 +19339,14 @@ var FileManager$1 = /** @__PURE__ @class */ (function () {
|
|
|
19186
19339
|
FileManager$$1.prototype.addEventListener = function () {
|
|
19187
19340
|
this.parent.on(initialEnd, this.initialize, this);
|
|
19188
19341
|
this.parent.on(renderFileManager, this.render, this);
|
|
19342
|
+
this.parent.on(bindCssClass, this.setCssClass, this);
|
|
19189
19343
|
this.parent.on(destroy, this.destroy, this);
|
|
19190
19344
|
};
|
|
19191
19345
|
FileManager$$1.prototype.removeEventListener = function () {
|
|
19192
19346
|
EventHandler.remove(this.parent.element.ownerDocument, 'mousedown', this.onDocumentClick);
|
|
19193
19347
|
this.parent.off(initialEnd, this.initialize);
|
|
19194
19348
|
this.parent.off(renderFileManager, this.render);
|
|
19349
|
+
this.parent.off(bindCssClass, this.setCssClass);
|
|
19195
19350
|
this.parent.off(destroy, this.destroy);
|
|
19196
19351
|
};
|
|
19197
19352
|
FileManager$$1.prototype.destroyComponents = function () {
|
|
@@ -19571,6 +19726,7 @@ var Link = /** @__PURE__ @class */ (function () {
|
|
|
19571
19726
|
this.parent.on(editLink, this.editLink, this);
|
|
19572
19727
|
this.parent.on(openLink, this.openLink, this);
|
|
19573
19728
|
this.parent.on(editAreaClick, this.editAreaClickHandler, this);
|
|
19729
|
+
this.parent.on(bindCssClass, this.setCssClass, this);
|
|
19574
19730
|
this.parent.on(destroy, this.destroy, this);
|
|
19575
19731
|
};
|
|
19576
19732
|
Link.prototype.onToolbarAction = function (args) {
|
|
@@ -19603,6 +19759,7 @@ var Link = /** @__PURE__ @class */ (function () {
|
|
|
19603
19759
|
this.parent.off(editLink, this.editLink);
|
|
19604
19760
|
this.parent.off(openLink, this.openLink);
|
|
19605
19761
|
this.parent.off(editAreaClick, this.editAreaClickHandler);
|
|
19762
|
+
this.parent.off(bindCssClass, this.setCssClass);
|
|
19606
19763
|
this.parent.off(destroy, this.destroy);
|
|
19607
19764
|
};
|
|
19608
19765
|
Link.prototype.onIframeMouseDown = function () {
|
|
@@ -19610,6 +19767,20 @@ var Link = /** @__PURE__ @class */ (function () {
|
|
|
19610
19767
|
this.dialogObj.hide({ returnValue: true });
|
|
19611
19768
|
}
|
|
19612
19769
|
};
|
|
19770
|
+
Link.prototype.updateCss = function (currentObj, e) {
|
|
19771
|
+
if (currentObj && e.cssClass) {
|
|
19772
|
+
if (isNullOrUndefined(e.oldCssClass)) {
|
|
19773
|
+
currentObj.setProperties({ cssClass: (currentObj.cssClass + ' ' + e.cssClass).trim() });
|
|
19774
|
+
}
|
|
19775
|
+
else {
|
|
19776
|
+
currentObj.setProperties({ cssClass: (currentObj.cssClass.replace(e.oldCssClass, '').trim() + ' ' + e.cssClass).trim() });
|
|
19777
|
+
}
|
|
19778
|
+
}
|
|
19779
|
+
};
|
|
19780
|
+
Link.prototype.setCssClass = function (e) {
|
|
19781
|
+
this.updateCss(this.checkBoxObj, e);
|
|
19782
|
+
this.updateCss(this.dialogObj, e);
|
|
19783
|
+
};
|
|
19613
19784
|
Link.prototype.showLinkQuickToolbar = function (e) {
|
|
19614
19785
|
if (!isNullOrUndefined(e.args) && e.args.action !== 'enter' &&
|
|
19615
19786
|
e.args.action !== 'space') {
|
|
@@ -19738,6 +19909,7 @@ var Link = /** @__PURE__ @class */ (function () {
|
|
|
19738
19909
|
};
|
|
19739
19910
|
Link.prototype.showDialog = function () {
|
|
19740
19911
|
this.openDialog(false);
|
|
19912
|
+
this.setCssClass({ cssClass: this.parent.cssClass });
|
|
19741
19913
|
};
|
|
19742
19914
|
Link.prototype.closeDialog = function () {
|
|
19743
19915
|
if (this.dialogObj) {
|
|
@@ -19793,7 +19965,7 @@ var Link = /** @__PURE__ @class */ (function () {
|
|
|
19793
19965
|
var linkText = linkContent.querySelector('.e-rte-linkText');
|
|
19794
19966
|
var linkTitle = linkContent.querySelector('.e-rte-linkTitle');
|
|
19795
19967
|
var linkOpenLabel = this.i10n.getConstant('linkOpenInNewWindow');
|
|
19796
|
-
this.checkBoxObj = new CheckBox({ label: linkOpenLabel, checked: true, enableRtl: this.parent.enableRtl });
|
|
19968
|
+
this.checkBoxObj = new CheckBox({ label: linkOpenLabel, checked: true, enableRtl: this.parent.enableRtl, cssClass: this.parent.cssClass });
|
|
19797
19969
|
this.checkBoxObj.isStringTemplate = true;
|
|
19798
19970
|
this.checkBoxObj.createElement = this.parent.createElement;
|
|
19799
19971
|
this.checkBoxObj.appendTo(linkTarget);
|
|
@@ -19806,7 +19978,7 @@ var Link = /** @__PURE__ @class */ (function () {
|
|
|
19806
19978
|
var dialogModel = {
|
|
19807
19979
|
header: this.i10n.getConstant('linkHeader'),
|
|
19808
19980
|
content: linkContent,
|
|
19809
|
-
cssClass: CLS_RTE_ELEMENTS,
|
|
19981
|
+
cssClass: CLS_RTE_ELEMENTS + ' ' + this.parent.cssClass,
|
|
19810
19982
|
enableRtl: this.parent.enableRtl,
|
|
19811
19983
|
locale: this.parent.locale,
|
|
19812
19984
|
showCloseIcon: true, closeOnEscape: true, width: (Browser.isDevice) ? '290px' : '310px', height: 'inherit',
|
|
@@ -20089,6 +20261,7 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
20089
20261
|
this.parent.on(initialEnd, this.afterRender, this);
|
|
20090
20262
|
this.parent.on(dynamicModule, this.afterRender, this);
|
|
20091
20263
|
this.parent.on(paste, this.imagePaste, this);
|
|
20264
|
+
this.parent.on(bindCssClass, this.setCssClass, this);
|
|
20092
20265
|
this.parent.on(destroy, this.removeEventListener, this);
|
|
20093
20266
|
};
|
|
20094
20267
|
Image.prototype.removeEventListener = function () {
|
|
@@ -20115,6 +20288,7 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
20115
20288
|
this.parent.off(initialEnd, this.afterRender);
|
|
20116
20289
|
this.parent.off(dynamicModule, this.afterRender);
|
|
20117
20290
|
this.parent.off(paste, this.imagePaste);
|
|
20291
|
+
this.parent.off(bindCssClass, this.setCssClass);
|
|
20118
20292
|
this.parent.off(destroy, this.removeEventListener);
|
|
20119
20293
|
var dropElement = this.parent.iframeSettings.enable ? this.parent.inputElement.ownerDocument
|
|
20120
20294
|
: this.parent.inputElement;
|
|
@@ -20132,6 +20306,32 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
20132
20306
|
}
|
|
20133
20307
|
}
|
|
20134
20308
|
};
|
|
20309
|
+
Image.prototype.updateCss = function (currentObj, e) {
|
|
20310
|
+
if (currentObj && e.cssClass) {
|
|
20311
|
+
if (isNullOrUndefined(e.oldCssClass)) {
|
|
20312
|
+
currentObj.setProperties({ cssClass: (currentObj.cssClass + ' ' + e.cssClass).trim() });
|
|
20313
|
+
}
|
|
20314
|
+
else {
|
|
20315
|
+
currentObj.setProperties({ cssClass: (currentObj.cssClass.replace(e.oldCssClass, '').trim() + ' ' + e.cssClass).trim() });
|
|
20316
|
+
}
|
|
20317
|
+
}
|
|
20318
|
+
};
|
|
20319
|
+
Image.prototype.setCssClass = function (e) {
|
|
20320
|
+
if (this.popupObj && e.cssClass) {
|
|
20321
|
+
if (isNullOrUndefined(e.oldCssClass)) {
|
|
20322
|
+
addClass([this.popupObj.element], e.cssClass);
|
|
20323
|
+
}
|
|
20324
|
+
else {
|
|
20325
|
+
removeClass([this.popupObj.element], e.oldCssClass);
|
|
20326
|
+
addClass([this.popupObj.element], e.cssClass);
|
|
20327
|
+
}
|
|
20328
|
+
}
|
|
20329
|
+
this.updateCss(this.checkBoxObj, e);
|
|
20330
|
+
this.updateCss(this.widthNum, e);
|
|
20331
|
+
this.updateCss(this.heightNum, e);
|
|
20332
|
+
this.updateCss(this.uploadObj, e);
|
|
20333
|
+
this.updateCss(this.dialogObj, e);
|
|
20334
|
+
};
|
|
20135
20335
|
Image.prototype.onIframeMouseDown = function () {
|
|
20136
20336
|
if (this.dialogObj) {
|
|
20137
20337
|
this.dialogObj.hide({ returnValue: true });
|
|
@@ -20735,6 +20935,7 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
20735
20935
|
};
|
|
20736
20936
|
Image.prototype.showDialog = function () {
|
|
20737
20937
|
this.openDialog(false);
|
|
20938
|
+
this.setCssClass({ cssClass: this.parent.cssClass });
|
|
20738
20939
|
};
|
|
20739
20940
|
Image.prototype.closeDialog = function () {
|
|
20740
20941
|
if (this.dialogObj) {
|
|
@@ -20954,7 +21155,8 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
20954
21155
|
var inputLink = linkWrap.querySelector('.e-img-link');
|
|
20955
21156
|
var linkOpenLabel = this.i10n.getConstant('linkOpenInNewWindow');
|
|
20956
21157
|
this.checkBoxObj = new CheckBox({
|
|
20957
|
-
label: linkOpenLabel, checked: true, enableRtl: this.parent.enableRtl,
|
|
21158
|
+
label: linkOpenLabel, checked: true, enableRtl: this.parent.enableRtl, cssClass: this.parent.cssClass,
|
|
21159
|
+
change: function (e) {
|
|
20958
21160
|
if (e.checked) {
|
|
20959
21161
|
target_1 = '_blank';
|
|
20960
21162
|
}
|
|
@@ -20989,6 +21191,9 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
20989
21191
|
}
|
|
20990
21192
|
}]
|
|
20991
21193
|
});
|
|
21194
|
+
if (!isNullOrUndefined(this.parent.cssClass)) {
|
|
21195
|
+
this.dialogObj.setProperties({ cssClass: this.parent.cssClass });
|
|
21196
|
+
}
|
|
20992
21197
|
if (!isNullOrUndefined(inputDetails)) {
|
|
20993
21198
|
inputLink.value = inputDetails.url;
|
|
20994
21199
|
// eslint-disable-next-line
|
|
@@ -21034,6 +21239,9 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
21034
21239
|
}
|
|
21035
21240
|
}]
|
|
21036
21241
|
});
|
|
21242
|
+
if (!isNullOrUndefined(this.parent.cssClass)) {
|
|
21243
|
+
this.dialogObj.setProperties({ cssClass: this.parent.cssClass });
|
|
21244
|
+
}
|
|
21037
21245
|
this.dialogObj.element.style.maxHeight = 'inherit';
|
|
21038
21246
|
this.dialogObj.content.querySelector('input').focus();
|
|
21039
21247
|
}
|
|
@@ -21254,6 +21462,9 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
21254
21462
|
}
|
|
21255
21463
|
}]
|
|
21256
21464
|
});
|
|
21465
|
+
if (!isNullOrUndefined(this.parent.cssClass)) {
|
|
21466
|
+
this.dialogObj.setProperties({ cssClass: this.parent.cssClass });
|
|
21467
|
+
}
|
|
21257
21468
|
this.dialogObj.element.style.maxHeight = 'inherit';
|
|
21258
21469
|
this.dialogObj.content.querySelector('input').focus();
|
|
21259
21470
|
}
|
|
@@ -21531,24 +21742,26 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
21531
21742
|
+ ' /></div>';
|
|
21532
21743
|
var contentElem = parseHtml(content);
|
|
21533
21744
|
imgSizeWrap.appendChild(contentElem);
|
|
21534
|
-
|
|
21745
|
+
this.widthNum = new TextBox({
|
|
21535
21746
|
value: formatUnit(widthVal),
|
|
21536
21747
|
enableRtl: this.parent.enableRtl,
|
|
21748
|
+
cssClass: this.parent.cssClass,
|
|
21537
21749
|
input: function (e) {
|
|
21538
21750
|
_this.inputWidthValue = formatUnit(_this.inputValue(e.value));
|
|
21539
21751
|
}
|
|
21540
21752
|
});
|
|
21541
|
-
widthNum.createElement = this.parent.createElement;
|
|
21542
|
-
widthNum.appendTo(imgSizeWrap.querySelector('#imgwidth'));
|
|
21543
|
-
|
|
21753
|
+
this.widthNum.createElement = this.parent.createElement;
|
|
21754
|
+
this.widthNum.appendTo(imgSizeWrap.querySelector('#imgwidth'));
|
|
21755
|
+
this.heightNum = new TextBox({
|
|
21544
21756
|
value: formatUnit(heightVal),
|
|
21545
21757
|
enableRtl: this.parent.enableRtl,
|
|
21758
|
+
cssClass: this.parent.cssClass,
|
|
21546
21759
|
input: function (e) {
|
|
21547
21760
|
_this.inputHeightValue = formatUnit(_this.inputValue(e.value));
|
|
21548
21761
|
}
|
|
21549
21762
|
});
|
|
21550
|
-
heightNum.createElement = this.parent.createElement;
|
|
21551
|
-
heightNum.appendTo(imgSizeWrap.querySelector('#imgheight'));
|
|
21763
|
+
this.heightNum.createElement = this.parent.createElement;
|
|
21764
|
+
this.heightNum.appendTo(imgSizeWrap.querySelector('#imgheight'));
|
|
21552
21765
|
return imgSizeWrap;
|
|
21553
21766
|
};
|
|
21554
21767
|
Image.prototype.inputValue = function (value) {
|
|
@@ -21628,10 +21841,10 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
21628
21841
|
span.appendChild(btnEle);
|
|
21629
21842
|
uploadParentEle.appendChild(span);
|
|
21630
21843
|
var browserMsg = this.i10n.getConstant('browse');
|
|
21631
|
-
|
|
21632
|
-
|
|
21633
|
-
|
|
21634
|
-
|
|
21844
|
+
this.browseButton = new Button({ content: browserMsg, enableRtl: this.parent.enableRtl });
|
|
21845
|
+
this.browseButton.isStringTemplate = true;
|
|
21846
|
+
this.browseButton.createElement = this.parent.createElement;
|
|
21847
|
+
this.browseButton.appendTo(btnEle);
|
|
21635
21848
|
var btnClick = (Browser.isDevice) ? span : btnEle;
|
|
21636
21849
|
EventHandler.add(btnClick, 'click', this.fileSelect, this);
|
|
21637
21850
|
var uploadEle = this.parent.createElement('input', {
|
|
@@ -21645,7 +21858,7 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
21645
21858
|
var beforeUploadArgs;
|
|
21646
21859
|
this.uploadObj = new Uploader({
|
|
21647
21860
|
asyncSettings: { saveUrl: this.parent.insertImageSettings.saveUrl, removeUrl: this.parent.insertImageSettings.removeUrl },
|
|
21648
|
-
dropArea: span, multiple: false, enableRtl: this.parent.enableRtl,
|
|
21861
|
+
dropArea: span, multiple: false, enableRtl: this.parent.enableRtl, cssClass: this.parent.cssClass,
|
|
21649
21862
|
allowedExtensions: this.parent.insertImageSettings.allowedTypes.toString(),
|
|
21650
21863
|
selected: function (e) {
|
|
21651
21864
|
proxy.isImgUploaded = true;
|
|
@@ -22025,6 +22238,9 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
22025
22238
|
this.popupObj.element.style.display = 'none';
|
|
22026
22239
|
addClass([this.popupObj.element], CLS_POPUP_OPEN);
|
|
22027
22240
|
addClass([this.popupObj.element], CLS_RTE_UPLOAD_POPUP);
|
|
22241
|
+
if (!isNullOrUndefined(this.parent.cssClass)) {
|
|
22242
|
+
addClass([this.popupObj.element], this.parent.cssClass);
|
|
22243
|
+
}
|
|
22028
22244
|
var range = this.parent.formatter.editorManager.nodeSelection.getRange(this.parent.contentModule.getDocument());
|
|
22029
22245
|
var timeOut = dragEvent.dataTransfer.files[0].size > 1000000 ? 300 : 100;
|
|
22030
22246
|
setTimeout(function () {
|
|
@@ -22037,7 +22253,7 @@ var Image = /** @__PURE__ @class */ (function () {
|
|
|
22037
22253
|
saveUrl: this.parent.insertImageSettings.saveUrl,
|
|
22038
22254
|
removeUrl: this.parent.insertImageSettings.removeUrl
|
|
22039
22255
|
},
|
|
22040
|
-
cssClass: CLS_RTE_DIALOG_UPLOAD,
|
|
22256
|
+
cssClass: CLS_RTE_DIALOG_UPLOAD + ' ' + this.parent.cssClass,
|
|
22041
22257
|
dropArea: this.parent.element,
|
|
22042
22258
|
allowedExtensions: this.parent.insertImageSettings.allowedTypes.toString(),
|
|
22043
22259
|
removing: function () {
|
|
@@ -22577,6 +22793,7 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
22577
22793
|
this.parent.on(dropDownSelect, this.dropdownSelect, this);
|
|
22578
22794
|
this.parent.on(keyDown, this.keyDown, this);
|
|
22579
22795
|
this.parent.on(mouseUp, this.selectionTable, this);
|
|
22796
|
+
this.parent.on(bindCssClass, this.setCssClass, this);
|
|
22580
22797
|
this.parent.on(destroy, this.destroy, this);
|
|
22581
22798
|
};
|
|
22582
22799
|
Table.prototype.removeEventListener = function () {
|
|
@@ -22597,8 +22814,38 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
22597
22814
|
this.parent.off(tableColorPickerChanged, this.setBGColor);
|
|
22598
22815
|
this.parent.off(keyDown, this.keyDown);
|
|
22599
22816
|
this.parent.off(mouseUp, this.selectionTable);
|
|
22817
|
+
this.parent.off(bindCssClass, this.setCssClass);
|
|
22600
22818
|
this.parent.off(destroy, this.destroy);
|
|
22601
22819
|
};
|
|
22820
|
+
Table.prototype.updateCss = function (currentObj, e) {
|
|
22821
|
+
if (currentObj && e.cssClass) {
|
|
22822
|
+
if (isNullOrUndefined(e.oldCssClass)) {
|
|
22823
|
+
currentObj.setProperties({ cssClass: (currentObj.cssClass + ' ' + e.cssClass).trim() });
|
|
22824
|
+
}
|
|
22825
|
+
else {
|
|
22826
|
+
currentObj.setProperties({ cssClass: (currentObj.cssClass.replace(e.oldCssClass, '').trim() + ' ' + e.cssClass).trim() });
|
|
22827
|
+
}
|
|
22828
|
+
}
|
|
22829
|
+
};
|
|
22830
|
+
Table.prototype.setCssClass = function (e) {
|
|
22831
|
+
if (this.popupObj && e.cssClass) {
|
|
22832
|
+
if (isNullOrUndefined(e.oldCssClass)) {
|
|
22833
|
+
addClass([this.popupObj.element], e.cssClass);
|
|
22834
|
+
}
|
|
22835
|
+
else {
|
|
22836
|
+
removeClass([this.popupObj.element], e.oldCssClass);
|
|
22837
|
+
addClass([this.popupObj.element], e.cssClass);
|
|
22838
|
+
}
|
|
22839
|
+
}
|
|
22840
|
+
this.updateCss(this.createTableButton, e);
|
|
22841
|
+
this.updateCss(this.editdlgObj, e);
|
|
22842
|
+
var numericTextBoxObj = [
|
|
22843
|
+
this.columnTextBox, this.rowTextBox, this.tableWidthNum, this.tableCellPadding, this.tableCellSpacing
|
|
22844
|
+
];
|
|
22845
|
+
for (var i = 0; i < numericTextBoxObj.length; i++) {
|
|
22846
|
+
this.updateCss(numericTextBoxObj[i], e);
|
|
22847
|
+
}
|
|
22848
|
+
};
|
|
22602
22849
|
Table.prototype.selectionTable = function (e) {
|
|
22603
22850
|
var target = e.args.target;
|
|
22604
22851
|
if (Browser.info.name === 'mozilla' && !isNullOrUndefined(closest(target, 'table')) && closest(target, 'table').tagName === 'TABLE') {
|
|
@@ -22731,6 +22978,7 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
22731
22978
|
};
|
|
22732
22979
|
Table.prototype.showDialog = function () {
|
|
22733
22980
|
this.openDialog(false);
|
|
22981
|
+
this.setCssClass({ cssClass: this.parent.cssClass });
|
|
22734
22982
|
};
|
|
22735
22983
|
Table.prototype.closeDialog = function () {
|
|
22736
22984
|
if (this.editdlgObj) {
|
|
@@ -23452,12 +23700,12 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
23452
23700
|
this.parent.getToolbarElement().querySelector('.e-expended-nav').setAttribute('tabindex', '1');
|
|
23453
23701
|
}
|
|
23454
23702
|
this.dlgDiv.appendChild(btnEle);
|
|
23455
|
-
|
|
23456
|
-
iconCss: 'e-icons e-create-table', content: insertbtn, cssClass: 'e-flat',
|
|
23703
|
+
this.createTableButton = new Button({
|
|
23704
|
+
iconCss: 'e-icons e-create-table', content: insertbtn, cssClass: 'e-flat' + ' ' + this.parent.cssClass,
|
|
23457
23705
|
enableRtl: this.parent.enableRtl, locale: this.parent.locale
|
|
23458
23706
|
});
|
|
23459
|
-
|
|
23460
|
-
|
|
23707
|
+
this.createTableButton.isStringTemplate = true;
|
|
23708
|
+
this.createTableButton.appendTo(btnEle);
|
|
23461
23709
|
EventHandler.add(btnEle, 'click', this.insertTableDialog, { self: this, args: args.args, selection: args.selection });
|
|
23462
23710
|
this.parent.getToolbar().appendChild(this.dlgDiv);
|
|
23463
23711
|
var target = args.args.originalEvent.target;
|
|
@@ -23480,6 +23728,9 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
23480
23728
|
}
|
|
23481
23729
|
});
|
|
23482
23730
|
addClass([this.popupObj.element], 'e-popup-open');
|
|
23731
|
+
if (!isNullOrUndefined(this.parent.cssClass)) {
|
|
23732
|
+
addClass([this.popupObj.element], this.parent.cssClass);
|
|
23733
|
+
}
|
|
23483
23734
|
this.popupObj.refreshPosition(target);
|
|
23484
23735
|
};
|
|
23485
23736
|
Table.prototype.docClick = function (e) {
|
|
@@ -23552,7 +23803,8 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
23552
23803
|
_this.cancelDialog(e);
|
|
23553
23804
|
},
|
|
23554
23805
|
buttonModel: { cssClass: 'e-flat e-cancel', content: cancel }
|
|
23555
|
-
}]
|
|
23806
|
+
}],
|
|
23807
|
+
cssClass: this.parent.cssClass
|
|
23556
23808
|
});
|
|
23557
23809
|
this.editdlgObj.element.style.maxHeight = 'none';
|
|
23558
23810
|
this.editdlgObj.content.querySelector('input').focus();
|
|
@@ -23583,6 +23835,9 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
23583
23835
|
buttonModel: { cssClass: 'e-flat e-cancel', content: cancel }
|
|
23584
23836
|
}]
|
|
23585
23837
|
});
|
|
23838
|
+
if (!isNullOrUndefined(proxy.parent.cssClass)) {
|
|
23839
|
+
proxy.editdlgObj.setProperties({ cssClass: proxy.parent.cssClass });
|
|
23840
|
+
}
|
|
23586
23841
|
proxy.editdlgObj.element.style.maxHeight = 'none';
|
|
23587
23842
|
proxy.editdlgObj.content.querySelector('input').focus();
|
|
23588
23843
|
};
|
|
@@ -23602,7 +23857,8 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
23602
23857
|
placeholder: tableColumn,
|
|
23603
23858
|
floatLabelType: 'Auto',
|
|
23604
23859
|
max: 50,
|
|
23605
|
-
enableRtl: this.parent.enableRtl, locale: this.parent.locale
|
|
23860
|
+
enableRtl: this.parent.enableRtl, locale: this.parent.locale,
|
|
23861
|
+
cssClass: this.parent.cssClass
|
|
23606
23862
|
});
|
|
23607
23863
|
this.columnTextBox.isStringTemplate = true;
|
|
23608
23864
|
this.columnTextBox.appendTo(tableWrap.querySelector('#tableColumn'));
|
|
@@ -23613,7 +23869,8 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
23613
23869
|
placeholder: tableRow,
|
|
23614
23870
|
floatLabelType: 'Auto',
|
|
23615
23871
|
max: 50,
|
|
23616
|
-
enableRtl: this.parent.enableRtl, locale: this.parent.locale
|
|
23872
|
+
enableRtl: this.parent.enableRtl, locale: this.parent.locale,
|
|
23873
|
+
cssClass: this.parent.cssClass
|
|
23617
23874
|
});
|
|
23618
23875
|
this.rowTextBox.isStringTemplate = true;
|
|
23619
23876
|
this.rowTextBox.appendTo(tableWrap.querySelector('#tableRow'));
|
|
@@ -23642,7 +23899,7 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
23642
23899
|
var header = this.l10n.getConstant('tabledialogHeader');
|
|
23643
23900
|
var dialogModel = {
|
|
23644
23901
|
header: header,
|
|
23645
|
-
cssClass: CLS_RTE_ELEMENTS,
|
|
23902
|
+
cssClass: CLS_RTE_ELEMENTS + ' ' + this.parent.cssClass,
|
|
23646
23903
|
enableRtl: this.parent.enableRtl,
|
|
23647
23904
|
locale: this.parent.locale,
|
|
23648
23905
|
showCloseIcon: true, closeOnEscape: true, width: (Browser.isDevice) ? '290px' : '340px', height: 'initial',
|
|
@@ -23732,7 +23989,7 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
23732
23989
|
+ ' </div><div class="e-rte-field"><input type="text" data-role ="none" id="cellSpacing" class="e-cell-spacing" /></div>';
|
|
23733
23990
|
var contentElem = parseHtml(content);
|
|
23734
23991
|
tableWrap.appendChild(contentElem);
|
|
23735
|
-
|
|
23992
|
+
this.tableWidthNum = new NumericTextBox({
|
|
23736
23993
|
format: 'n0',
|
|
23737
23994
|
min: 0,
|
|
23738
23995
|
value: widthVal,
|
|
@@ -23740,9 +23997,9 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
23740
23997
|
floatLabelType: 'Auto',
|
|
23741
23998
|
enableRtl: this.parent.enableRtl, locale: this.parent.locale
|
|
23742
23999
|
});
|
|
23743
|
-
|
|
23744
|
-
|
|
23745
|
-
|
|
24000
|
+
this.tableWidthNum.isStringTemplate = true;
|
|
24001
|
+
this.tableWidthNum.appendTo(tableWrap.querySelector('#tableWidth'));
|
|
24002
|
+
this.tableCellPadding = new NumericTextBox({
|
|
23746
24003
|
format: 'n0',
|
|
23747
24004
|
min: 0,
|
|
23748
24005
|
// eslint-disable-next-line
|
|
@@ -23751,9 +24008,9 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
23751
24008
|
floatLabelType: 'Auto',
|
|
23752
24009
|
enableRtl: this.parent.enableRtl, locale: this.parent.locale
|
|
23753
24010
|
});
|
|
23754
|
-
|
|
23755
|
-
|
|
23756
|
-
|
|
24011
|
+
this.tableCellPadding.isStringTemplate = true;
|
|
24012
|
+
this.tableCellPadding.appendTo(tableWrap.querySelector('#cellPadding'));
|
|
24013
|
+
this.tableCellSpacing = new NumericTextBox({
|
|
23757
24014
|
format: 'n0',
|
|
23758
24015
|
min: 0,
|
|
23759
24016
|
// eslint-disable-next-line
|
|
@@ -23762,8 +24019,8 @@ var Table = /** @__PURE__ @class */ (function () {
|
|
|
23762
24019
|
floatLabelType: 'Auto',
|
|
23763
24020
|
enableRtl: this.parent.enableRtl, locale: this.parent.locale
|
|
23764
24021
|
});
|
|
23765
|
-
|
|
23766
|
-
|
|
24022
|
+
this.tableCellSpacing.isStringTemplate = true;
|
|
24023
|
+
this.tableCellSpacing.appendTo(tableWrap.querySelector('#cellSpacing'));
|
|
23767
24024
|
return tableWrap;
|
|
23768
24025
|
};
|
|
23769
24026
|
/**
|
|
@@ -25254,6 +25511,7 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
25254
25511
|
}
|
|
25255
25512
|
// eslint-disable-next-line
|
|
25256
25513
|
(!this.enabled) ? this.unWireEvents() : this.eventInitializer();
|
|
25514
|
+
this.notify(bindCssClass, { cssClass: this.cssClass });
|
|
25257
25515
|
this.renderComplete();
|
|
25258
25516
|
};
|
|
25259
25517
|
/**
|
|
@@ -25836,6 +26094,7 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
25836
26094
|
case 'cssClass':
|
|
25837
26095
|
this.element.classList.remove(oldProp[prop]);
|
|
25838
26096
|
this.setCssClass(newProp[prop]);
|
|
26097
|
+
this.notify(bindCssClass, { cssClass: newProp[prop], oldCssClass: oldProp[prop] });
|
|
25839
26098
|
break;
|
|
25840
26099
|
case 'enabled':
|
|
25841
26100
|
this.setEnable();
|
|
@@ -27217,5 +27476,5 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
27217
27476
|
* Rich Text Editor component exported items
|
|
27218
27477
|
*/
|
|
27219
27478
|
|
|
27220
|
-
export { Toolbar$2 as Toolbar, KeyboardEvents$1 as KeyboardEvents, BaseToolbar, BaseQuickToolbar, QuickToolbar, Count, ColorPickerInput, MarkdownToolbarStatus, ExecCommandCallBack, ToolbarAction, MarkdownEditor, HtmlEditor, PasteCleanup, Resize, DropDownButtons, FileManager$1 as FileManager, FullScreen, setAttributes, HtmlToolbarStatus, XhtmlValidation, HTMLFormatter, Formatter, MarkdownFormatter, ContentRender, Render, ToolbarRenderer, Link, Image, ViewSource, Table, DialogRenderer, IframeContentRender, MarkdownRender, PopupRenderer, RichTextEditor, RenderType, ToolbarType, DialogType, executeGroup, created, destroyed, load, initialLoad, contentChanged, initialEnd, iframeMouseDown, destroy, toolbarClick, toolbarRefresh, refreshBegin, toolbarUpdated, bindOnEnd, renderColorPicker, htmlToolbarClick, markdownToolbarClick, destroyColorPicker, modelChanged, keyUp, keyDown, mouseUp, toolbarCreated, toolbarRenderComplete, enableFullScreen, disableFullScreen, dropDownSelect, beforeDropDownItemRender, execCommandCallBack, imageToolbarAction, linkToolbarAction, windowResize, resizeStart, onResize, resizeStop, undo, redo, insertLink, unLink, editLink, openLink, actionBegin, actionComplete, updatedToolbarStatus, actionSuccess, updateToolbarItem, insertImage, insertCompleted, imageLeft, imageRight, imageCenter, imageBreak, imageInline, imageLink, imageAlt, imageDelete, imageCaption, imageSize, sourceCode, updateSource, toolbarOpen, beforeDropDownOpen, selectionSave, selectionRestore, expandPopupClick, count, contentFocus, contentBlur, mouseDown, sourceCodeMouseDown, editAreaClick, scroll, contentscroll, colorPickerChanged, tableColorPickerChanged, focusChange, selectAll$1 as selectAll, selectRange, getSelectedHtml, renderInlineToolbar, paste, imgModule, rtlMode, createTable, docClick, tableToolbarAction, checkUndo, readOnlyMode, pasteClean, enterHandler, beforeDialogOpen, clearDialogObj, dialogOpen, beforeDialogClose, dialogClose, beforeQuickToolbarOpen, quickToolbarOpen, quickToolbarClose, popupHide, imageSelected, imageUploading, imageUploadSuccess, imageUploadFailed, imageRemoving, afterImageDelete, drop, xhtmlValidation, beforeImageUpload, resizeInitialized, renderFileManager, beforeImageDrop, dynamicModule, beforePasteCleanup, afterPasteCleanup, updateTbItemsStatus, showLinkDialog, closeLinkDialog, showImageDialog, closeImageDialog, showTableDialog, closeTableDialog, CLS_RTE, CLS_RTL, CLS_CONTENT, CLS_DISABLED, CLS_SCRIPT_SHEET, CLS_STYLE_SHEET, CLS_TOOLBAR, CLS_TB_FIXED, CLS_TB_FLOAT, CLS_TB_ABS_FLOAT, CLS_INLINE, CLS_TB_INLINE, CLS_RTE_EXPAND_TB, CLS_FULL_SCREEN, CLS_QUICK_TB, CLS_POP, CLS_TB_STATIC, CLS_QUICK_POP, CLS_QUICK_DROPDOWN, CLS_IMAGE_POP, CLS_INLINE_POP, CLS_INLINE_DROPDOWN, CLS_DROPDOWN_POPUP, CLS_DROPDOWN_ICONS, CLS_DROPDOWN_ITEMS, CLS_DROPDOWN_BTN, CLS_RTE_CONTENT, CLS_TB_ITEM, CLS_TB_EXTENDED, CLS_TB_WRAP, CLS_POPUP, CLS_SEPARATOR, CLS_MINIMIZE, CLS_MAXIMIZE, CLS_BACK, CLS_SHOW, CLS_HIDE, CLS_VISIBLE, CLS_FOCUS, CLS_RM_WHITE_SPACE, CLS_IMGRIGHT, CLS_IMGLEFT, CLS_IMGCENTER, CLS_IMGBREAK, CLS_CAPTION, CLS_RTE_CAPTION, CLS_CAPINLINE, CLS_IMGINLINE, CLS_COUNT, CLS_WARNING, CLS_ERROR, CLS_ICONS, CLS_ACTIVE, CLS_EXPAND_OPEN, CLS_RTE_ELEMENTS, CLS_TB_BTN, CLS_HR_SEPARATOR, CLS_TB_IOS_FIX, CLS_LIST_PRIMARY_CONTENT, CLS_NUMBERFORMATLIST_TB_BTN, CLS_BULLETFORMATLIST_TB_BTN, CLS_FORMATS_TB_BTN, CLS_FONT_NAME_TB_BTN, CLS_FONT_SIZE_TB_BTN, CLS_ALIGN_TB_BTN, CLS_FONT_COLOR_TARGET, CLS_BACKGROUND_COLOR_TARGET, CLS_COLOR_CONTENT, CLS_FONT_COLOR_DROPDOWN, CLS_BACKGROUND_COLOR_DROPDOWN, CLS_COLOR_PALETTE, CLS_FONT_COLOR_PICKER, CLS_BACKGROUND_COLOR_PICKER, CLS_RTE_READONLY, CLS_TABLE_SEL, CLS_TB_DASH_BOR, CLS_TB_ALT_BOR, CLS_TB_COL_RES, CLS_TB_ROW_RES, CLS_TB_BOX_RES, CLS_RTE_HIDDEN, CLS_RTE_PASTE_KEEP_FORMAT, CLS_RTE_PASTE_REMOVE_FORMAT, CLS_RTE_PASTE_PLAIN_FORMAT, CLS_RTE_PASTE_OK, CLS_RTE_PASTE_CANCEL, CLS_RTE_DIALOG_MIN_HEIGHT, CLS_RTE_RES_HANDLE, CLS_RTE_RES_EAST, CLS_RTE_IMAGE, CLS_RESIZE, CLS_IMG_FOCUS, CLS_RTE_DRAG_IMAGE, CLS_RTE_UPLOAD_POPUP, CLS_POPUP_OPEN, CLS_IMG_RESIZE, CLS_DROPAREA, CLS_IMG_INNER, CLS_UPLOAD_FILES, CLS_RTE_DIALOG_UPLOAD, CLS_RTE_RES_CNT, CLS_CUSTOM_TILE, CLS_NOCOLOR_ITEM, CLS_TABLE, CLS_TABLE_BORDER, CLS_RTE_TABLE_RESIZE, CLS_RTE_FIXED_TB_EXPAND, CLS_RTE_TB_ENABLED, getIndex, hasClass, getDropDownValue, isIDevice, getFormattedFontSize, pageYOffset, getTooltipText, setToolbarStatus, getCollection, getTBarItemsIndex, updateUndoRedoStatus, dispatchEvent, parseHtml, getTextNodesUnder, toObjectLowerCase, getEditValue, updateTextNode, getDefaultValue, isEditableValueEmpty, decode, sanitizeHelper, convertToBlob, getLocaleFontFormat, updateDropDownFontFormatLocale, ServiceLocator, RendererFactory, EditorManager, IMAGE, TABLE, LINK, INSERT_ROW, INSERT_COLUMN, DELETEROW, DELETECOLUMN, REMOVETABLE, TABLEHEADER, TABLE_VERTICAL_ALIGN, TABLE_MERGE, TABLE_VERTICAL_SPLIT, TABLE_HORIZONTAL_SPLIT, TABLE_MOVE, ALIGNMENT_TYPE, INDENT_TYPE, DEFAULT_TAG, BLOCK_TAGS, IGNORE_BLOCK_TAGS, TABLE_BLOCK_TAGS, SELECTION_TYPE, INSERTHTML_TYPE, INSERT_TEXT_TYPE, CLEAR_TYPE, SELF_CLOSING_TAGS, CLASS_IMAGE_RIGHT, CLASS_IMAGE_LEFT, CLASS_IMAGE_CENTER, CLASS_IMAGE_BREAK, CLASS_CAPTION, CLASS_RTE_CAPTION, CLASS_CAPTION_INLINE, CLASS_IMAGE_INLINE, Lists, markerClassName, DOMNode, Alignments, Indents, Formats, LinkCommand, InsertMethods, InsertTextExec, InsertHtmlExec, InsertHtml, IsFormatted, MsWordPaste, NodeCutter, ImageCommand, SelectionCommands, SelectionBasedExec, ClearFormatExec, UndoRedoManager, TableCommand, statusCollection, ToolbarStatus, NodeSelection, MarkdownParser, LISTS_COMMAND, selectionCommand, LINK_COMMAND, CLEAR_COMMAND, MD_TABLE, ClearFormat, MDLists, MDFormats, MarkdownSelection, UndoRedoCommands, MDSelectionFormats, MDLink, MDTable, markdownFormatTags, markdownSelectionTags, markdownListsTags, htmlKeyConfig, markdownKeyConfig, pasteCleanupGroupingTags, listConversionFilters, selfClosingTags, KEY_DOWN, ACTION, FORMAT_TYPE, KEY_DOWN_HANDLER, LIST_TYPE, KEY_UP_HANDLER, KEY_UP, MODEL_CHANGED_PLUGIN, MODEL_CHANGED, MS_WORD_CLEANUP_PLUGIN, MS_WORD_CLEANUP, ON_BEGIN, SPACE_ACTION };
|
|
27479
|
+
export { Toolbar$2 as Toolbar, KeyboardEvents$1 as KeyboardEvents, BaseToolbar, BaseQuickToolbar, QuickToolbar, Count, ColorPickerInput, MarkdownToolbarStatus, ExecCommandCallBack, ToolbarAction, MarkdownEditor, HtmlEditor, PasteCleanup, Resize, DropDownButtons, FileManager$1 as FileManager, FullScreen, setAttributes, HtmlToolbarStatus, XhtmlValidation, HTMLFormatter, Formatter, MarkdownFormatter, ContentRender, Render, ToolbarRenderer, Link, Image, ViewSource, Table, DialogRenderer, IframeContentRender, MarkdownRender, PopupRenderer, RichTextEditor, RenderType, ToolbarType, DialogType, executeGroup, created, destroyed, load, initialLoad, contentChanged, initialEnd, iframeMouseDown, destroy, toolbarClick, toolbarRefresh, refreshBegin, toolbarUpdated, bindOnEnd, renderColorPicker, htmlToolbarClick, markdownToolbarClick, destroyColorPicker, modelChanged, keyUp, keyDown, mouseUp, toolbarCreated, toolbarRenderComplete, enableFullScreen, disableFullScreen, dropDownSelect, beforeDropDownItemRender, execCommandCallBack, imageToolbarAction, linkToolbarAction, windowResize, resizeStart, onResize, resizeStop, undo, redo, insertLink, unLink, editLink, openLink, actionBegin, actionComplete, updatedToolbarStatus, actionSuccess, updateToolbarItem, insertImage, insertCompleted, imageLeft, imageRight, imageCenter, imageBreak, imageInline, imageLink, imageAlt, imageDelete, imageCaption, imageSize, sourceCode, updateSource, toolbarOpen, beforeDropDownOpen, selectionSave, selectionRestore, expandPopupClick, count, contentFocus, contentBlur, mouseDown, sourceCodeMouseDown, editAreaClick, scroll, contentscroll, colorPickerChanged, tableColorPickerChanged, focusChange, selectAll$1 as selectAll, selectRange, getSelectedHtml, renderInlineToolbar, paste, imgModule, rtlMode, createTable, docClick, tableToolbarAction, checkUndo, readOnlyMode, pasteClean, enterHandler, beforeDialogOpen, clearDialogObj, dialogOpen, beforeDialogClose, dialogClose, beforeQuickToolbarOpen, quickToolbarOpen, quickToolbarClose, popupHide, imageSelected, imageUploading, imageUploadSuccess, imageUploadFailed, imageRemoving, afterImageDelete, drop, xhtmlValidation, beforeImageUpload, resizeInitialized, renderFileManager, beforeImageDrop, dynamicModule, beforePasteCleanup, afterPasteCleanup, updateTbItemsStatus, showLinkDialog, closeLinkDialog, showImageDialog, closeImageDialog, showTableDialog, closeTableDialog, bindCssClass, CLS_RTE, CLS_RTL, CLS_CONTENT, CLS_DISABLED, CLS_SCRIPT_SHEET, CLS_STYLE_SHEET, CLS_TOOLBAR, CLS_TB_FIXED, CLS_TB_FLOAT, CLS_TB_ABS_FLOAT, CLS_INLINE, CLS_TB_INLINE, CLS_RTE_EXPAND_TB, CLS_FULL_SCREEN, CLS_QUICK_TB, CLS_POP, CLS_TB_STATIC, CLS_QUICK_POP, CLS_QUICK_DROPDOWN, CLS_IMAGE_POP, CLS_INLINE_POP, CLS_INLINE_DROPDOWN, CLS_DROPDOWN_POPUP, CLS_DROPDOWN_ICONS, CLS_DROPDOWN_ITEMS, CLS_DROPDOWN_BTN, CLS_RTE_CONTENT, CLS_TB_ITEM, CLS_TB_EXTENDED, CLS_TB_WRAP, CLS_POPUP, CLS_SEPARATOR, CLS_MINIMIZE, CLS_MAXIMIZE, CLS_BACK, CLS_SHOW, CLS_HIDE, CLS_VISIBLE, CLS_FOCUS, CLS_RM_WHITE_SPACE, CLS_IMGRIGHT, CLS_IMGLEFT, CLS_IMGCENTER, CLS_IMGBREAK, CLS_CAPTION, CLS_RTE_CAPTION, CLS_CAPINLINE, CLS_IMGINLINE, CLS_COUNT, CLS_WARNING, CLS_ERROR, CLS_ICONS, CLS_ACTIVE, CLS_EXPAND_OPEN, CLS_RTE_ELEMENTS, CLS_TB_BTN, CLS_HR_SEPARATOR, CLS_TB_IOS_FIX, CLS_LIST_PRIMARY_CONTENT, CLS_NUMBERFORMATLIST_TB_BTN, CLS_BULLETFORMATLIST_TB_BTN, CLS_FORMATS_TB_BTN, CLS_FONT_NAME_TB_BTN, CLS_FONT_SIZE_TB_BTN, CLS_ALIGN_TB_BTN, CLS_FONT_COLOR_TARGET, CLS_BACKGROUND_COLOR_TARGET, CLS_COLOR_CONTENT, CLS_FONT_COLOR_DROPDOWN, CLS_BACKGROUND_COLOR_DROPDOWN, CLS_COLOR_PALETTE, CLS_FONT_COLOR_PICKER, CLS_BACKGROUND_COLOR_PICKER, CLS_RTE_READONLY, CLS_TABLE_SEL, CLS_TB_DASH_BOR, CLS_TB_ALT_BOR, CLS_TB_COL_RES, CLS_TB_ROW_RES, CLS_TB_BOX_RES, CLS_RTE_HIDDEN, CLS_RTE_PASTE_KEEP_FORMAT, CLS_RTE_PASTE_REMOVE_FORMAT, CLS_RTE_PASTE_PLAIN_FORMAT, CLS_RTE_PASTE_OK, CLS_RTE_PASTE_CANCEL, CLS_RTE_DIALOG_MIN_HEIGHT, CLS_RTE_RES_HANDLE, CLS_RTE_RES_EAST, CLS_RTE_IMAGE, CLS_RESIZE, CLS_IMG_FOCUS, CLS_RTE_DRAG_IMAGE, CLS_RTE_UPLOAD_POPUP, CLS_POPUP_OPEN, CLS_IMG_RESIZE, CLS_DROPAREA, CLS_IMG_INNER, CLS_UPLOAD_FILES, CLS_RTE_DIALOG_UPLOAD, CLS_RTE_RES_CNT, CLS_CUSTOM_TILE, CLS_NOCOLOR_ITEM, CLS_TABLE, CLS_TABLE_BORDER, CLS_RTE_TABLE_RESIZE, CLS_RTE_FIXED_TB_EXPAND, CLS_RTE_TB_ENABLED, getIndex, hasClass, getDropDownValue, isIDevice, getFormattedFontSize, pageYOffset, getTooltipText, setToolbarStatus, getCollection, getTBarItemsIndex, updateUndoRedoStatus, dispatchEvent, parseHtml, getTextNodesUnder, toObjectLowerCase, getEditValue, updateTextNode, getDefaultValue, isEditableValueEmpty, decode, sanitizeHelper, convertToBlob, getLocaleFontFormat, updateDropDownFontFormatLocale, ServiceLocator, RendererFactory, EditorManager, IMAGE, TABLE, LINK, INSERT_ROW, INSERT_COLUMN, DELETEROW, DELETECOLUMN, REMOVETABLE, TABLEHEADER, TABLE_VERTICAL_ALIGN, TABLE_MERGE, TABLE_VERTICAL_SPLIT, TABLE_HORIZONTAL_SPLIT, TABLE_MOVE, ALIGNMENT_TYPE, INDENT_TYPE, DEFAULT_TAG, BLOCK_TAGS, IGNORE_BLOCK_TAGS, TABLE_BLOCK_TAGS, SELECTION_TYPE, INSERTHTML_TYPE, INSERT_TEXT_TYPE, CLEAR_TYPE, SELF_CLOSING_TAGS, CLASS_IMAGE_RIGHT, CLASS_IMAGE_LEFT, CLASS_IMAGE_CENTER, CLASS_IMAGE_BREAK, CLASS_CAPTION, CLASS_RTE_CAPTION, CLASS_CAPTION_INLINE, CLASS_IMAGE_INLINE, Lists, markerClassName, DOMNode, Alignments, Indents, Formats, LinkCommand, InsertMethods, InsertTextExec, InsertHtmlExec, InsertHtml, IsFormatted, MsWordPaste, NodeCutter, ImageCommand, SelectionCommands, SelectionBasedExec, ClearFormatExec, UndoRedoManager, TableCommand, statusCollection, ToolbarStatus, NodeSelection, MarkdownParser, LISTS_COMMAND, selectionCommand, LINK_COMMAND, CLEAR_COMMAND, MD_TABLE, ClearFormat, MDLists, MDFormats, MarkdownSelection, UndoRedoCommands, MDSelectionFormats, MDLink, MDTable, markdownFormatTags, markdownSelectionTags, markdownListsTags, htmlKeyConfig, markdownKeyConfig, pasteCleanupGroupingTags, listConversionFilters, selfClosingTags, KEY_DOWN, ACTION, FORMAT_TYPE, KEY_DOWN_HANDLER, LIST_TYPE, KEY_UP_HANDLER, KEY_UP, MODEL_CHANGED_PLUGIN, MODEL_CHANGED, MS_WORD_CLEANUP_PLUGIN, MS_WORD_CLEANUP, ON_BEGIN, SPACE_ACTION };
|
|
27221
27480
|
//# sourceMappingURL=ej2-richtexteditor.es5.js.map
|