@syncfusion/ej2-richtexteditor 20.1.52 → 20.1.57
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 +23 -1
- 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 +353 -91
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +353 -91
- 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 +12 -12
- 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 +15 -1
- 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 +61 -19
- 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 @@ const showTableDialog = 'showTableDialog';
|
|
|
609
609
|
* @deprecated
|
|
610
610
|
*/
|
|
611
611
|
const closeTableDialog = 'closeTableDialog';
|
|
612
|
+
/**
|
|
613
|
+
* @hidden
|
|
614
|
+
* @deprecated
|
|
615
|
+
*/
|
|
616
|
+
const bindCssClass = 'closeTableDialog';
|
|
612
617
|
|
|
613
618
|
/**
|
|
614
619
|
* Rich Text Editor classes defined here.
|
|
@@ -2797,7 +2802,8 @@ class ToolbarRenderer {
|
|
|
2797
2802
|
created: this.toolbarCreated.bind(this),
|
|
2798
2803
|
clicked: this.toolbarClicked.bind(this),
|
|
2799
2804
|
enablePersistence: args.enablePersistence,
|
|
2800
|
-
enableRtl: args.enableRtl
|
|
2805
|
+
enableRtl: args.enableRtl,
|
|
2806
|
+
cssClass: args.cssClass
|
|
2801
2807
|
});
|
|
2802
2808
|
args.rteToolbarObj.toolbarObj.isStringTemplate = true;
|
|
2803
2809
|
args.rteToolbarObj.toolbarObj.createElement = this.parent.createElement;
|
|
@@ -3254,12 +3260,24 @@ class BaseToolbar {
|
|
|
3254
3260
|
}
|
|
3255
3261
|
addEventListener() {
|
|
3256
3262
|
this.parent.on(rtlMode, this.setRtl, this);
|
|
3263
|
+
this.parent.on(bindCssClass, this.setCssClass, this);
|
|
3257
3264
|
this.parent.on(destroy, this.removeEventListener, this);
|
|
3258
3265
|
}
|
|
3259
3266
|
removeEventListener() {
|
|
3260
3267
|
this.parent.off(rtlMode, this.setRtl);
|
|
3268
|
+
this.parent.off(bindCssClass, this.setCssClass);
|
|
3261
3269
|
this.parent.off(destroy, this.removeEventListener);
|
|
3262
3270
|
}
|
|
3271
|
+
setCssClass(e) {
|
|
3272
|
+
if (!isNullOrUndefined(this.toolbarObj)) {
|
|
3273
|
+
if (isNullOrUndefined(e.oldCssClass)) {
|
|
3274
|
+
this.toolbarObj.setProperties({ cssClass: (this.toolbarObj.cssClass + ' ' + e.cssClass).trim() });
|
|
3275
|
+
}
|
|
3276
|
+
else {
|
|
3277
|
+
this.toolbarObj.setProperties({ cssClass: (this.toolbarObj.cssClass.replace(e.oldCssClass, '').trim() + ' ' + e.cssClass).trim() });
|
|
3278
|
+
}
|
|
3279
|
+
}
|
|
3280
|
+
}
|
|
3263
3281
|
setRtl(args) {
|
|
3264
3282
|
if (!isNullOrUndefined(this.toolbarObj)) {
|
|
3265
3283
|
this.toolbarObj.setProperties({ enableRtl: args.enableRtl });
|
|
@@ -3383,7 +3401,8 @@ class BaseToolbar {
|
|
|
3383
3401
|
items: this.getItems(args.items, args.container),
|
|
3384
3402
|
overflowMode: args.mode,
|
|
3385
3403
|
enablePersistence: this.parent.enablePersistence,
|
|
3386
|
-
enableRtl: this.parent.enableRtl
|
|
3404
|
+
enableRtl: this.parent.enableRtl,
|
|
3405
|
+
cssClass: args.cssClass,
|
|
3387
3406
|
};
|
|
3388
3407
|
}
|
|
3389
3408
|
/**
|
|
@@ -3580,6 +3599,9 @@ class DropDownButtons {
|
|
|
3580
3599
|
}
|
|
3581
3600
|
}
|
|
3582
3601
|
});
|
|
3602
|
+
if (this.parent.inlineMode.enable) {
|
|
3603
|
+
this.setCssClass({ cssClass: this.parent.cssClass });
|
|
3604
|
+
}
|
|
3583
3605
|
}
|
|
3584
3606
|
getUpdateItems(items, value) {
|
|
3585
3607
|
const dropDownItems = items.slice();
|
|
@@ -3863,6 +3885,26 @@ class DropDownButtons {
|
|
|
3863
3885
|
this.bulletFormatListDropDown.setProperties({ enableRtl: args.enableRtl });
|
|
3864
3886
|
}
|
|
3865
3887
|
}
|
|
3888
|
+
updateCss(dropDownObj, e) {
|
|
3889
|
+
if (dropDownObj && e.cssClass) {
|
|
3890
|
+
if (isNullOrUndefined(e.oldCssClass)) {
|
|
3891
|
+
dropDownObj.setProperties({ cssClass: (dropDownObj.cssClass + ' ' + e.cssClass).trim() });
|
|
3892
|
+
}
|
|
3893
|
+
else {
|
|
3894
|
+
dropDownObj.setProperties({ cssClass: (dropDownObj.cssClass.replace(e.oldCssClass, '').trim() + ' ' + e.cssClass).trim() });
|
|
3895
|
+
}
|
|
3896
|
+
}
|
|
3897
|
+
}
|
|
3898
|
+
setCssClass(e) {
|
|
3899
|
+
const dropDownObj = [
|
|
3900
|
+
this.formatDropDown, this.fontNameDropDown, this.fontSizeDropDown, this.alignDropDown, this.imageAlignDropDown,
|
|
3901
|
+
this.displayDropDown, this.numberFormatListDropDown, this.bulletFormatListDropDown, this.tableRowsDropDown,
|
|
3902
|
+
this.tableColumnsDropDown, this.tableCellVerticalAlignDropDown
|
|
3903
|
+
];
|
|
3904
|
+
for (let i = 0; i < dropDownObj.length; i++) {
|
|
3905
|
+
this.updateCss(dropDownObj[i], e);
|
|
3906
|
+
}
|
|
3907
|
+
}
|
|
3866
3908
|
addEventListener() {
|
|
3867
3909
|
if (this.parent.isDestroyed) {
|
|
3868
3910
|
return;
|
|
@@ -3872,6 +3914,7 @@ class DropDownButtons {
|
|
|
3872
3914
|
this.parent.on(rtlMode, this.setRtl, this);
|
|
3873
3915
|
this.parent.on(destroy, this.removeEventListener, this);
|
|
3874
3916
|
this.parent.on(modelChanged, this.onPropertyChanged, this);
|
|
3917
|
+
this.parent.on(bindCssClass, this.setCssClass, this);
|
|
3875
3918
|
}
|
|
3876
3919
|
onIframeMouseDown() {
|
|
3877
3920
|
dispatchEvent(document, 'mousedown');
|
|
@@ -3885,6 +3928,7 @@ class DropDownButtons {
|
|
|
3885
3928
|
this.parent.off(beforeDropDownItemRender, this.beforeRender);
|
|
3886
3929
|
this.parent.off(destroy, this.removeEventListener);
|
|
3887
3930
|
this.parent.off(modelChanged, this.onPropertyChanged);
|
|
3931
|
+
this.parent.off(bindCssClass, this.setCssClass);
|
|
3888
3932
|
}
|
|
3889
3933
|
}
|
|
3890
3934
|
|
|
@@ -4489,7 +4533,9 @@ class Toolbar$2 {
|
|
|
4489
4533
|
* @deprecated
|
|
4490
4534
|
*/
|
|
4491
4535
|
refreshToolbarOverflow() {
|
|
4492
|
-
this.
|
|
4536
|
+
if (!this.parent.inlineMode.enable) {
|
|
4537
|
+
this.baseToolbar.toolbarObj.refreshOverflow();
|
|
4538
|
+
}
|
|
4493
4539
|
}
|
|
4494
4540
|
isToolbarDestroyed() {
|
|
4495
4541
|
return this.baseToolbar.toolbarObj && !this.baseToolbar.toolbarObj.isDestroyed;
|
|
@@ -4630,6 +4676,7 @@ class Toolbar$2 {
|
|
|
4630
4676
|
this.parent.on(focusChange, this.focusChangeHandler, this);
|
|
4631
4677
|
this.parent.on(mouseDown, this.mouseDownHandler, this);
|
|
4632
4678
|
this.parent.on(sourceCodeMouseDown, this.mouseDownHandler, this);
|
|
4679
|
+
this.parent.on(bindCssClass, this.setCssClass, this);
|
|
4633
4680
|
if (!this.parent.inlineMode.enable && !isIDevice()) {
|
|
4634
4681
|
this.parent.on(toolbarClick, this.toolbarClickHandler, this);
|
|
4635
4682
|
}
|
|
@@ -4653,10 +4700,21 @@ class Toolbar$2 {
|
|
|
4653
4700
|
this.parent.off(focusChange, this.focusChangeHandler);
|
|
4654
4701
|
this.parent.off(mouseDown, this.mouseDownHandler);
|
|
4655
4702
|
this.parent.off(sourceCodeMouseDown, this.mouseDownHandler);
|
|
4703
|
+
this.parent.off(bindCssClass, this.setCssClass);
|
|
4656
4704
|
if (!this.parent.inlineMode.enable && !isIDevice()) {
|
|
4657
4705
|
this.parent.off(toolbarClick, this.toolbarClickHandler);
|
|
4658
4706
|
}
|
|
4659
4707
|
}
|
|
4708
|
+
setCssClass(e) {
|
|
4709
|
+
if (this.toolbarObj && e.cssClass) {
|
|
4710
|
+
if (isNullOrUndefined(e.oldCssClass)) {
|
|
4711
|
+
this.toolbarObj.setProperties({ cssClass: (this.toolbarObj.cssClass + ' ' + e.cssClass).trim() });
|
|
4712
|
+
}
|
|
4713
|
+
else {
|
|
4714
|
+
this.toolbarObj.setProperties({ cssClass: (this.toolbarObj.cssClass.replace(e.oldCssClass, '').trim() + ' ' + e.cssClass).trim() });
|
|
4715
|
+
}
|
|
4716
|
+
}
|
|
4717
|
+
}
|
|
4660
4718
|
onRefresh() {
|
|
4661
4719
|
this.refreshToolbarOverflow();
|
|
4662
4720
|
this.parent.setContentHeight('', true);
|
|
@@ -4999,6 +5057,9 @@ class ColorPickerInput {
|
|
|
4999
5057
|
}
|
|
5000
5058
|
}
|
|
5001
5059
|
});
|
|
5060
|
+
if (this.parent.inlineMode.enable) {
|
|
5061
|
+
this.setCssClass({ cssClass: this.parent.cssClass });
|
|
5062
|
+
}
|
|
5002
5063
|
}
|
|
5003
5064
|
destroy() {
|
|
5004
5065
|
this.removeEventListener();
|
|
@@ -5044,12 +5105,29 @@ class ColorPickerInput {
|
|
|
5044
5105
|
this.backgroundColorDropDown.setProperties({ enableRtl: args.enableRtl });
|
|
5045
5106
|
}
|
|
5046
5107
|
}
|
|
5108
|
+
setCssClass(e) {
|
|
5109
|
+
this.updateCss(this.fontColorPicker, this.fontColorDropDown, e);
|
|
5110
|
+
this.updateCss(this.backgroundColorPicker, this.backgroundColorDropDown, e);
|
|
5111
|
+
}
|
|
5112
|
+
updateCss(colorPickerObj, dropDownObj, e) {
|
|
5113
|
+
if (colorPickerObj && e.cssClass) {
|
|
5114
|
+
if (isNullOrUndefined(e.oldCssClass)) {
|
|
5115
|
+
colorPickerObj.setProperties({ cssClass: (colorPickerObj.cssClass + ' ' + e.cssClass).trim() });
|
|
5116
|
+
dropDownObj.setProperties({ cssClass: (dropDownObj.cssClass + ' ' + e.cssClass).trim() });
|
|
5117
|
+
}
|
|
5118
|
+
else {
|
|
5119
|
+
colorPickerObj.setProperties({ cssClass: (colorPickerObj.cssClass.replace(e.oldCssClass, '').trim() + ' ' + e.cssClass).trim() });
|
|
5120
|
+
dropDownObj.setProperties({ cssClass: (dropDownObj.cssClass.replace(e.oldCssClass, '').trim() + ' ' + e.cssClass).trim() });
|
|
5121
|
+
}
|
|
5122
|
+
}
|
|
5123
|
+
}
|
|
5047
5124
|
addEventListener() {
|
|
5048
5125
|
this.parent.on(toolbarRenderComplete, this.renderColorPickerInput, this);
|
|
5049
5126
|
this.parent.on(rtlMode, this.setRtl, this);
|
|
5050
5127
|
this.parent.on(destroy, this.destroy, this);
|
|
5051
5128
|
this.parent.on(destroyColorPicker, this.destroyColorPicker, this);
|
|
5052
5129
|
this.parent.on(modelChanged, this.onPropertyChanged, this);
|
|
5130
|
+
this.parent.on(bindCssClass, this.setCssClass, this);
|
|
5053
5131
|
}
|
|
5054
5132
|
onPropertyChanged(model) {
|
|
5055
5133
|
const newProp = model.newProp;
|
|
@@ -5119,6 +5197,7 @@ class ColorPickerInput {
|
|
|
5119
5197
|
this.parent.off(rtlMode, this.setRtl);
|
|
5120
5198
|
this.parent.off(destroyColorPicker, this.destroyColorPicker);
|
|
5121
5199
|
this.parent.off(modelChanged, this.onPropertyChanged);
|
|
5200
|
+
this.parent.off(bindCssClass, this.setCssClass);
|
|
5122
5201
|
}
|
|
5123
5202
|
}
|
|
5124
5203
|
|
|
@@ -5164,17 +5243,18 @@ class BaseQuickToolbar {
|
|
|
5164
5243
|
this.element = this.parent.createElement('div', { id: popupId, className: className + ' ' + CLS_RTE_ELEMENTS });
|
|
5165
5244
|
this.element.setAttribute('aria-owns', this.parent.getID());
|
|
5166
5245
|
this.appendPopupContent();
|
|
5167
|
-
this.createToolbar(args.toolbarItems, args.mode);
|
|
5246
|
+
this.createToolbar(args.toolbarItems, args.mode, args.cssClass);
|
|
5168
5247
|
this.popupRenderer.renderPopup(this);
|
|
5169
5248
|
this.addEventListener();
|
|
5170
5249
|
}
|
|
5171
|
-
createToolbar(items, mode) {
|
|
5250
|
+
createToolbar(items, mode, cssClass) {
|
|
5172
5251
|
this.quickTBarObj = new BaseToolbar(this.parent, this.locator);
|
|
5173
5252
|
this.quickTBarObj.render({
|
|
5174
5253
|
container: 'quick',
|
|
5175
5254
|
target: this.toolbarElement,
|
|
5176
5255
|
items: items,
|
|
5177
|
-
mode: mode
|
|
5256
|
+
mode: mode,
|
|
5257
|
+
cssClass: cssClass
|
|
5178
5258
|
});
|
|
5179
5259
|
this.quickTBarObj.toolbarObj.refresh();
|
|
5180
5260
|
}
|
|
@@ -5365,6 +5445,10 @@ class BaseQuickToolbar {
|
|
|
5365
5445
|
this.popupObj.element.classList.remove('e-popup-open');
|
|
5366
5446
|
removeClass([this.element], [CLS_HIDE]);
|
|
5367
5447
|
this.popupObj.show({ name: 'ZoomIn', duration: (Browser.isIE ? 250 : 400) });
|
|
5448
|
+
if (this.popupObj && this.parent.cssClass) {
|
|
5449
|
+
removeClass([this.popupObj.element], this.parent.cssClass);
|
|
5450
|
+
addClass([this.popupObj.element], this.parent.cssClass);
|
|
5451
|
+
}
|
|
5368
5452
|
setStyleAttribute(this.element, {
|
|
5369
5453
|
maxWidth: window.outerWidth + 'px'
|
|
5370
5454
|
});
|
|
@@ -5623,7 +5707,8 @@ class QuickToolbar {
|
|
|
5623
5707
|
popupType: popType,
|
|
5624
5708
|
toolbarItems: items,
|
|
5625
5709
|
mode: mode,
|
|
5626
|
-
renderType: type
|
|
5710
|
+
renderType: type,
|
|
5711
|
+
cssClass: this.parent.cssClass
|
|
5627
5712
|
};
|
|
5628
5713
|
}
|
|
5629
5714
|
/**
|
|
@@ -5932,6 +6017,7 @@ class QuickToolbar {
|
|
|
5932
6017
|
this.parent.on(destroy, this.destroy, this);
|
|
5933
6018
|
this.parent.on(keyDown, this.onKeyDown, this);
|
|
5934
6019
|
this.parent.on(rtlMode, this.setRtl, this);
|
|
6020
|
+
this.parent.on(bindCssClass, this.setCssClass, this);
|
|
5935
6021
|
}
|
|
5936
6022
|
onKeyDown(e) {
|
|
5937
6023
|
const args = e.args;
|
|
@@ -5945,6 +6031,24 @@ class QuickToolbar {
|
|
|
5945
6031
|
this.hideQuickToolbars();
|
|
5946
6032
|
this.hideInlineQTBar();
|
|
5947
6033
|
}
|
|
6034
|
+
updateCss(baseQTObj, e) {
|
|
6035
|
+
if (baseQTObj && e.cssClass) {
|
|
6036
|
+
if (isNullOrUndefined(e.oldCssClass && baseQTObj.quickTBarObj.toolbarObj.cssClass !== e.cssClass)) {
|
|
6037
|
+
baseQTObj.quickTBarObj.toolbarObj.setProperties({ cssClass: (baseQTObj.quickTBarObj.toolbarObj.cssClass + ' ' + e.cssClass).trim() });
|
|
6038
|
+
}
|
|
6039
|
+
else {
|
|
6040
|
+
baseQTObj.quickTBarObj.toolbarObj.setProperties({ cssClass: (baseQTObj.quickTBarObj.toolbarObj.cssClass.replace(e.oldCssClass, '').trim() + ' ' + e.cssClass).trim() });
|
|
6041
|
+
}
|
|
6042
|
+
}
|
|
6043
|
+
}
|
|
6044
|
+
setCssClass(e) {
|
|
6045
|
+
const baseQuickToolbarObj = [
|
|
6046
|
+
this.inlineQTBar, this.imageQTBar, this.linkQTBar, this.textQTBar, this.tableQTBar
|
|
6047
|
+
];
|
|
6048
|
+
for (let i = 0; i < baseQuickToolbarObj.length; i++) {
|
|
6049
|
+
this.updateCss(baseQuickToolbarObj[i], e);
|
|
6050
|
+
}
|
|
6051
|
+
}
|
|
5948
6052
|
setRtl(args) {
|
|
5949
6053
|
if (this.inlineQTBar) {
|
|
5950
6054
|
this.inlineQTBar.quickTBarObj.toolbarObj.setProperties({ enableRtl: args.enableRtl });
|
|
@@ -5953,7 +6057,7 @@ class QuickToolbar {
|
|
|
5953
6057
|
this.imageQTBar.quickTBarObj.toolbarObj.setProperties({ enableRtl: args.enableRtl });
|
|
5954
6058
|
}
|
|
5955
6059
|
if (this.linkQTBar) {
|
|
5956
|
-
this.
|
|
6060
|
+
this.linkQTBar.quickTBarObj.toolbarObj.setProperties({ enableRtl: args.enableRtl });
|
|
5957
6061
|
}
|
|
5958
6062
|
}
|
|
5959
6063
|
/**
|
|
@@ -5982,6 +6086,7 @@ class QuickToolbar {
|
|
|
5982
6086
|
this.parent.off(iframeMouseDown, this.onIframeMouseDown);
|
|
5983
6087
|
this.parent.off(keyDown, this.onKeyDown);
|
|
5984
6088
|
this.parent.off(rtlMode, this.setRtl);
|
|
6089
|
+
this.parent.off(bindCssClass, this.setCssClass);
|
|
5985
6090
|
}
|
|
5986
6091
|
/**
|
|
5987
6092
|
* Called internally if any of the property value changed.
|
|
@@ -10209,7 +10314,13 @@ class DOMNode {
|
|
|
10209
10314
|
markerStart.appendChild(start);
|
|
10210
10315
|
}
|
|
10211
10316
|
else {
|
|
10212
|
-
|
|
10317
|
+
if (start.nodeType != 3 && start.nodeName != '#text') {
|
|
10318
|
+
const marker = this.marker(markerClassName.startSelection, '');
|
|
10319
|
+
append([this.parseHTMLFragment(marker)], start);
|
|
10320
|
+
}
|
|
10321
|
+
else {
|
|
10322
|
+
this.replaceWith(start, this.marker(markerClassName.startSelection, this.encode(start.textContent)));
|
|
10323
|
+
}
|
|
10213
10324
|
}
|
|
10214
10325
|
if (end.nodeType !== Node.TEXT_NODE && end.tagName === 'BR' &&
|
|
10215
10326
|
IGNORE_BLOCK_TAGS.indexOf(end.parentNode.tagName.toLocaleLowerCase()) >= 0) {
|
|
@@ -16834,7 +16945,8 @@ class ContentRender {
|
|
|
16834
16945
|
* @returns {string} - specifies the string element.
|
|
16835
16946
|
*/
|
|
16836
16947
|
getText() {
|
|
16837
|
-
|
|
16948
|
+
let textString = this.getEditPanel().innerText;
|
|
16949
|
+
return textString === '\n' ? '' : textString;
|
|
16838
16950
|
}
|
|
16839
16951
|
/**
|
|
16840
16952
|
* Set the content div element of RichTextEditor
|
|
@@ -17928,6 +18040,7 @@ class PasteCleanup {
|
|
|
17928
18040
|
return;
|
|
17929
18041
|
}
|
|
17930
18042
|
this.parent.on(pasteClean, this.pasteClean, this);
|
|
18043
|
+
this.parent.on(bindCssClass, this.setCssClass, this);
|
|
17931
18044
|
this.parent.on(destroy, this.destroy, this);
|
|
17932
18045
|
}
|
|
17933
18046
|
destroy() {
|
|
@@ -17938,6 +18051,7 @@ class PasteCleanup {
|
|
|
17938
18051
|
return;
|
|
17939
18052
|
}
|
|
17940
18053
|
this.parent.off(pasteClean, this.pasteClean);
|
|
18054
|
+
this.parent.off(bindCssClass, this.setCssClass);
|
|
17941
18055
|
this.parent.off(destroy, this.destroy);
|
|
17942
18056
|
}
|
|
17943
18057
|
pasteClean(e) {
|
|
@@ -18115,7 +18229,7 @@ class PasteCleanup {
|
|
|
18115
18229
|
id: this.parent.element.id + '_upload', attrs: { type: 'File', name: 'UploadFiles' }
|
|
18116
18230
|
});
|
|
18117
18231
|
const offsetY = this.parent.iframeSettings.enable ? -50 : -90;
|
|
18118
|
-
|
|
18232
|
+
this.popupObj = new Popup(popupEle, {
|
|
18119
18233
|
relateTo: imgElem,
|
|
18120
18234
|
height: '85px',
|
|
18121
18235
|
width: '300px',
|
|
@@ -18128,19 +18242,22 @@ class PasteCleanup {
|
|
|
18128
18242
|
// eslint-disable-next-line
|
|
18129
18243
|
close: (event) => {
|
|
18130
18244
|
this.parent.isBlur = false;
|
|
18131
|
-
popupObj.destroy();
|
|
18132
|
-
detach(popupObj.element);
|
|
18245
|
+
this.popupObj.destroy();
|
|
18246
|
+
detach(this.popupObj.element);
|
|
18133
18247
|
}
|
|
18134
18248
|
});
|
|
18135
|
-
popupObj.element.style.display = 'none';
|
|
18136
|
-
addClass([popupObj.element], [CLS_POPUP_OPEN, CLS_RTE_UPLOAD_POPUP]);
|
|
18249
|
+
this.popupObj.element.style.display = 'none';
|
|
18250
|
+
addClass([this.popupObj.element], [CLS_POPUP_OPEN, CLS_RTE_UPLOAD_POPUP]);
|
|
18251
|
+
if (!isNullOrUndefined(this.parent.cssClass)) {
|
|
18252
|
+
addClass([this.popupObj.element], this.parent.cssClass);
|
|
18253
|
+
}
|
|
18137
18254
|
const timeOut = fileList.size > 1000000 ? 300 : 100;
|
|
18138
18255
|
setTimeout(() => {
|
|
18139
|
-
this.refreshPopup(imgElem, popupObj);
|
|
18256
|
+
this.refreshPopup(imgElem, this.popupObj);
|
|
18140
18257
|
}, timeOut);
|
|
18141
18258
|
let rawFile;
|
|
18142
18259
|
let beforeUploadArgs;
|
|
18143
|
-
|
|
18260
|
+
this.uploadObj = new Uploader({
|
|
18144
18261
|
asyncSettings: {
|
|
18145
18262
|
saveUrl: this.parent.insertImageSettings.saveUrl,
|
|
18146
18263
|
removeUrl: this.parent.insertImageSettings.removeUrl
|
|
@@ -18150,7 +18267,7 @@ class PasteCleanup {
|
|
|
18150
18267
|
allowedExtensions: this.parent.insertImageSettings.allowedTypes.toString(),
|
|
18151
18268
|
success: (e) => {
|
|
18152
18269
|
setTimeout(() => {
|
|
18153
|
-
this.popupClose(popupObj, uploadObj, imgElem, e);
|
|
18270
|
+
this.popupClose(this.popupObj, this.uploadObj, imgElem, e);
|
|
18154
18271
|
}, 900);
|
|
18155
18272
|
},
|
|
18156
18273
|
uploading: (e) => {
|
|
@@ -18160,8 +18277,8 @@ class PasteCleanup {
|
|
|
18160
18277
|
if (!isNullOrUndefined(imgElem)) {
|
|
18161
18278
|
detach(imgElem);
|
|
18162
18279
|
}
|
|
18163
|
-
if (!isNullOrUndefined(popupObj.element)) {
|
|
18164
|
-
detach(popupObj.element);
|
|
18280
|
+
if (!isNullOrUndefined(this.popupObj.element)) {
|
|
18281
|
+
detach(this.popupObj.element);
|
|
18165
18282
|
}
|
|
18166
18283
|
}
|
|
18167
18284
|
else {
|
|
@@ -18181,11 +18298,11 @@ class PasteCleanup {
|
|
|
18181
18298
|
}
|
|
18182
18299
|
this.toolbarEnableDisable(true);
|
|
18183
18300
|
/* eslint-disable */
|
|
18184
|
-
uploadObj.currentRequestHeader = beforeUploadArgs.currentRequest ?
|
|
18185
|
-
beforeUploadArgs.currentRequest : uploadObj.currentRequestHeader;
|
|
18186
|
-
uploadObj.customFormDatas = beforeUploadArgs.customFormData && beforeUploadArgs.customFormData.length > 0 ?
|
|
18187
|
-
beforeUploadArgs.customFormData : uploadObj.customFormDatas;
|
|
18188
|
-
uploadObj.uploadFiles(rawFile, null);
|
|
18301
|
+
this.uploadObj.currentRequestHeader = beforeUploadArgs.currentRequest ?
|
|
18302
|
+
beforeUploadArgs.currentRequest : this.uploadObj.currentRequestHeader;
|
|
18303
|
+
this.uploadObj.customFormDatas = beforeUploadArgs.customFormData && beforeUploadArgs.customFormData.length > 0 ?
|
|
18304
|
+
beforeUploadArgs.customFormData : this.uploadObj.customFormDatas;
|
|
18305
|
+
this.uploadObj.uploadFiles(rawFile, null);
|
|
18189
18306
|
/* eslint-enable */
|
|
18190
18307
|
});
|
|
18191
18308
|
}
|
|
@@ -18197,7 +18314,7 @@ class PasteCleanup {
|
|
|
18197
18314
|
// eslint-disable-next-line
|
|
18198
18315
|
failure: (e) => {
|
|
18199
18316
|
setTimeout(() => {
|
|
18200
|
-
this.uploadFailure(imgElem, uploadObj, popupObj, e);
|
|
18317
|
+
this.uploadFailure(imgElem, this.uploadObj, this.popupObj, e);
|
|
18201
18318
|
}, 900);
|
|
18202
18319
|
},
|
|
18203
18320
|
canceling: () => {
|
|
@@ -18206,7 +18323,7 @@ class PasteCleanup {
|
|
|
18206
18323
|
detach(imgElem.nextSibling);
|
|
18207
18324
|
}
|
|
18208
18325
|
detach(imgElem);
|
|
18209
|
-
popupObj.close();
|
|
18326
|
+
this.popupObj.close();
|
|
18210
18327
|
},
|
|
18211
18328
|
selected: (e) => {
|
|
18212
18329
|
e.cancel = true;
|
|
@@ -18220,10 +18337,10 @@ class PasteCleanup {
|
|
|
18220
18337
|
detach(imgElem.nextSibling);
|
|
18221
18338
|
}
|
|
18222
18339
|
detach(imgElem);
|
|
18223
|
-
popupObj.close();
|
|
18340
|
+
this.popupObj.close();
|
|
18224
18341
|
}
|
|
18225
18342
|
});
|
|
18226
|
-
uploadObj.appendTo(popupObj.element.childNodes[0]);
|
|
18343
|
+
this.uploadObj.appendTo(this.popupObj.element.childNodes[0]);
|
|
18227
18344
|
/* eslint-disable */
|
|
18228
18345
|
let fileData = [{
|
|
18229
18346
|
name: fileList.name,
|
|
@@ -18233,13 +18350,13 @@ class PasteCleanup {
|
|
|
18233
18350
|
validationMessages: { minSize: "", maxSize: "" },
|
|
18234
18351
|
statusCode: '1'
|
|
18235
18352
|
}];
|
|
18236
|
-
uploadObj.createFileList(fileData);
|
|
18237
|
-
uploadObj.filesData.push(fileData[0]);
|
|
18353
|
+
this.uploadObj.createFileList(fileData);
|
|
18354
|
+
this.uploadObj.filesData.push(fileData[0]);
|
|
18238
18355
|
/* eslint-enable */
|
|
18239
18356
|
rawFile = fileData;
|
|
18240
|
-
uploadObj.upload(fileData);
|
|
18241
|
-
popupObj.element.getElementsByClassName('e-file-select-wrap')[0].style.display = 'none';
|
|
18242
|
-
detach(popupObj.element.querySelector('.e-rte-dialog-upload .e-file-select-wrap'));
|
|
18357
|
+
this.uploadObj.upload(fileData);
|
|
18358
|
+
this.popupObj.element.getElementsByClassName('e-file-select-wrap')[0].style.display = 'none';
|
|
18359
|
+
detach(this.popupObj.element.querySelector('.e-rte-dialog-upload .e-file-select-wrap'));
|
|
18243
18360
|
}
|
|
18244
18361
|
uploadFailure(imgElem, uploadObj, popupObj, e) {
|
|
18245
18362
|
this.parent.inputElement.contentEditable = 'true';
|
|
@@ -18331,19 +18448,19 @@ class PasteCleanup {
|
|
|
18331
18448
|
}
|
|
18332
18449
|
}
|
|
18333
18450
|
radioRender() {
|
|
18334
|
-
|
|
18451
|
+
this.keepRadioButton = new RadioButton({ label: this.i10n.getConstant('keepFormat'),
|
|
18335
18452
|
name: 'pasteOption', checked: true });
|
|
18336
|
-
keepRadioButton.isStringTemplate = true;
|
|
18453
|
+
this.keepRadioButton.isStringTemplate = true;
|
|
18337
18454
|
const keepFormatElement = this.parent.element.querySelector('#keepFormating');
|
|
18338
|
-
keepRadioButton.appendTo(keepFormatElement);
|
|
18339
|
-
|
|
18340
|
-
cleanRadioButton.isStringTemplate = true;
|
|
18455
|
+
this.keepRadioButton.appendTo(keepFormatElement);
|
|
18456
|
+
this.cleanRadioButton = new RadioButton({ label: this.i10n.getConstant('cleanFormat'), name: 'pasteOption' });
|
|
18457
|
+
this.cleanRadioButton.isStringTemplate = true;
|
|
18341
18458
|
const cleanFormatElement = this.parent.element.querySelector('#cleanFormat');
|
|
18342
|
-
cleanRadioButton.appendTo(cleanFormatElement);
|
|
18343
|
-
|
|
18344
|
-
plainTextRadioButton.isStringTemplate = true;
|
|
18459
|
+
this.cleanRadioButton.appendTo(cleanFormatElement);
|
|
18460
|
+
this.plainTextRadioButton = new RadioButton({ label: this.i10n.getConstant('plainText'), name: 'pasteOption' });
|
|
18461
|
+
this.plainTextRadioButton.isStringTemplate = true;
|
|
18345
18462
|
const plainTextElement = this.parent.element.querySelector('#plainTextFormat');
|
|
18346
|
-
plainTextRadioButton.appendTo(plainTextElement);
|
|
18463
|
+
this.plainTextRadioButton.appendTo(plainTextElement);
|
|
18347
18464
|
}
|
|
18348
18465
|
selectFormatting(value, args, keepChecked, cleanChecked) {
|
|
18349
18466
|
if (keepChecked) {
|
|
@@ -18363,15 +18480,15 @@ class PasteCleanup {
|
|
|
18363
18480
|
buttons: [
|
|
18364
18481
|
{
|
|
18365
18482
|
click: () => {
|
|
18366
|
-
if (!
|
|
18483
|
+
if (!this.dialogObj.isDestroyed) {
|
|
18367
18484
|
const keepChecked = this.parent.element.querySelector('#keepFormating').checked;
|
|
18368
18485
|
const cleanChecked = this.parent.element.querySelector('#cleanFormat').checked;
|
|
18369
|
-
|
|
18486
|
+
this.dialogObj.hide();
|
|
18370
18487
|
this.parent.height = isHeight ? preRTEHeight : this.parent.height;
|
|
18371
18488
|
isHeight = false;
|
|
18372
|
-
const argument =
|
|
18489
|
+
const argument = this.dialogObj;
|
|
18373
18490
|
this.dialogRenderObj.close(argument);
|
|
18374
|
-
|
|
18491
|
+
this.dialogObj.destroy();
|
|
18375
18492
|
this.selectFormatting(value, args, keepChecked, cleanChecked);
|
|
18376
18493
|
}
|
|
18377
18494
|
},
|
|
@@ -18383,13 +18500,13 @@ class PasteCleanup {
|
|
|
18383
18500
|
},
|
|
18384
18501
|
{
|
|
18385
18502
|
click: () => {
|
|
18386
|
-
if (!
|
|
18387
|
-
|
|
18503
|
+
if (!this.dialogObj.isDestroyed) {
|
|
18504
|
+
this.dialogObj.hide();
|
|
18388
18505
|
this.parent.height = isHeight ? preRTEHeight : this.parent.height;
|
|
18389
18506
|
isHeight = false;
|
|
18390
|
-
const args =
|
|
18507
|
+
const args = this.dialogObj;
|
|
18391
18508
|
this.dialogRenderObj.close(args);
|
|
18392
|
-
|
|
18509
|
+
this.dialogObj.destroy();
|
|
18393
18510
|
}
|
|
18394
18511
|
},
|
|
18395
18512
|
buttonModel: {
|
|
@@ -18412,7 +18529,7 @@ class PasteCleanup {
|
|
|
18412
18529
|
isModal: true,
|
|
18413
18530
|
visible: false
|
|
18414
18531
|
};
|
|
18415
|
-
|
|
18532
|
+
this.dialogObj = this.dialogRenderObj.render(dialogModel);
|
|
18416
18533
|
let rteDialogWrapper = this.parent.element.querySelector('#' + this.parent.getID()
|
|
18417
18534
|
+ '_pasteCleanupDialog');
|
|
18418
18535
|
if (rteDialogWrapper !== null && rteDialogWrapper.innerHTML !== '') {
|
|
@@ -18424,15 +18541,42 @@ class PasteCleanup {
|
|
|
18424
18541
|
});
|
|
18425
18542
|
this.parent.element.appendChild(rteDialogWrapper);
|
|
18426
18543
|
}
|
|
18427
|
-
|
|
18544
|
+
this.dialogObj.appendTo(rteDialogWrapper);
|
|
18428
18545
|
this.radioRender();
|
|
18429
18546
|
/* eslint-disable */
|
|
18430
|
-
if (this.parent.element.offsetHeight < parseInt(
|
|
18431
|
-
this.parent.height = parseInt(
|
|
18547
|
+
if (this.parent.element.offsetHeight < parseInt(this.dialogObj.height.split('px')[0], null)) {
|
|
18548
|
+
this.parent.height = parseInt(this.dialogObj.height.split('px')[0], null) + 40;
|
|
18432
18549
|
/* eslint-enable */
|
|
18433
18550
|
isHeight = true;
|
|
18434
18551
|
}
|
|
18435
|
-
|
|
18552
|
+
this.dialogObj.show();
|
|
18553
|
+
this.setCssClass({ cssClass: this.parent.cssClass });
|
|
18554
|
+
}
|
|
18555
|
+
updateCss(currentObj, e) {
|
|
18556
|
+
if (currentObj && e.cssClass) {
|
|
18557
|
+
if (isNullOrUndefined(e.oldCssClass)) {
|
|
18558
|
+
currentObj.setProperties({ cssClass: (currentObj.cssClass + ' ' + e.cssClass).trim() });
|
|
18559
|
+
}
|
|
18560
|
+
else {
|
|
18561
|
+
currentObj.setProperties({ cssClass: (currentObj.cssClass.replace(e.oldCssClass, '').trim() + ' ' + e.cssClass).trim() });
|
|
18562
|
+
}
|
|
18563
|
+
}
|
|
18564
|
+
}
|
|
18565
|
+
setCssClass(e) {
|
|
18566
|
+
if (this.popupObj && e.cssClass) {
|
|
18567
|
+
if (isNullOrUndefined(e.oldCssClass)) {
|
|
18568
|
+
addClass([this.popupObj.element], e.cssClass);
|
|
18569
|
+
}
|
|
18570
|
+
else {
|
|
18571
|
+
removeClass([this.popupObj.element], e.oldCssClass);
|
|
18572
|
+
addClass([this.popupObj.element], e.cssClass);
|
|
18573
|
+
}
|
|
18574
|
+
}
|
|
18575
|
+
this.updateCss(this.dialogObj, e);
|
|
18576
|
+
this.updateCss(this.uploadObj, e);
|
|
18577
|
+
this.updateCss(this.plainTextRadioButton, e);
|
|
18578
|
+
this.updateCss(this.cleanRadioButton, e);
|
|
18579
|
+
this.updateCss(this.keepRadioButton, e);
|
|
18436
18580
|
}
|
|
18437
18581
|
destroyDialog(rteDialogWrapper) {
|
|
18438
18582
|
const rteDialogContainer = this.parent.element.querySelector('.e-dlg-container');
|
|
@@ -18974,6 +19118,17 @@ class FileManager$1 {
|
|
|
18974
19118
|
this.dialogObj.createElement = this.parent.createElement;
|
|
18975
19119
|
this.dialogObj.appendTo(dlgTarget);
|
|
18976
19120
|
this.dialogObj.show(Browser.isDevice ? true : false);
|
|
19121
|
+
this.setCssClass({ cssClass: this.parent.cssClass });
|
|
19122
|
+
}
|
|
19123
|
+
setCssClass(e) {
|
|
19124
|
+
if (this.dialogObj && e.cssClass) {
|
|
19125
|
+
if (isNullOrUndefined(e.oldCssClass)) {
|
|
19126
|
+
this.dialogObj.setProperties({ cssClass: (this.dialogObj.cssClass + ' ' + e.cssClass).trim() });
|
|
19127
|
+
}
|
|
19128
|
+
else {
|
|
19129
|
+
this.dialogObj.setProperties({ cssClass: (this.dialogObj.cssClass.replace(e.oldCssClass, '').trim() + ' ' + e.cssClass).trim() });
|
|
19130
|
+
}
|
|
19131
|
+
}
|
|
18977
19132
|
}
|
|
18978
19133
|
renderFileManager() {
|
|
18979
19134
|
// eslint-disable-next-line
|
|
@@ -19097,12 +19252,14 @@ class FileManager$1 {
|
|
|
19097
19252
|
addEventListener() {
|
|
19098
19253
|
this.parent.on(initialEnd, this.initialize, this);
|
|
19099
19254
|
this.parent.on(renderFileManager, this.render, this);
|
|
19255
|
+
this.parent.on(bindCssClass, this.setCssClass, this);
|
|
19100
19256
|
this.parent.on(destroy, this.destroy, this);
|
|
19101
19257
|
}
|
|
19102
19258
|
removeEventListener() {
|
|
19103
19259
|
EventHandler.remove(this.parent.element.ownerDocument, 'mousedown', this.onDocumentClick);
|
|
19104
19260
|
this.parent.off(initialEnd, this.initialize);
|
|
19105
19261
|
this.parent.off(renderFileManager, this.render);
|
|
19262
|
+
this.parent.off(bindCssClass, this.setCssClass);
|
|
19106
19263
|
this.parent.off(destroy, this.destroy);
|
|
19107
19264
|
}
|
|
19108
19265
|
destroyComponents() {
|
|
@@ -19475,6 +19632,7 @@ class Link {
|
|
|
19475
19632
|
this.parent.on(editLink, this.editLink, this);
|
|
19476
19633
|
this.parent.on(openLink, this.openLink, this);
|
|
19477
19634
|
this.parent.on(editAreaClick, this.editAreaClickHandler, this);
|
|
19635
|
+
this.parent.on(bindCssClass, this.setCssClass, this);
|
|
19478
19636
|
this.parent.on(destroy, this.destroy, this);
|
|
19479
19637
|
}
|
|
19480
19638
|
onToolbarAction(args) {
|
|
@@ -19507,6 +19665,7 @@ class Link {
|
|
|
19507
19665
|
this.parent.off(editLink, this.editLink);
|
|
19508
19666
|
this.parent.off(openLink, this.openLink);
|
|
19509
19667
|
this.parent.off(editAreaClick, this.editAreaClickHandler);
|
|
19668
|
+
this.parent.off(bindCssClass, this.setCssClass);
|
|
19510
19669
|
this.parent.off(destroy, this.destroy);
|
|
19511
19670
|
}
|
|
19512
19671
|
onIframeMouseDown() {
|
|
@@ -19514,6 +19673,20 @@ class Link {
|
|
|
19514
19673
|
this.dialogObj.hide({ returnValue: true });
|
|
19515
19674
|
}
|
|
19516
19675
|
}
|
|
19676
|
+
updateCss(currentObj, e) {
|
|
19677
|
+
if (currentObj && e.cssClass) {
|
|
19678
|
+
if (isNullOrUndefined(e.oldCssClass)) {
|
|
19679
|
+
currentObj.setProperties({ cssClass: (currentObj.cssClass + ' ' + e.cssClass).trim() });
|
|
19680
|
+
}
|
|
19681
|
+
else {
|
|
19682
|
+
currentObj.setProperties({ cssClass: (currentObj.cssClass.replace(e.oldCssClass, '').trim() + ' ' + e.cssClass).trim() });
|
|
19683
|
+
}
|
|
19684
|
+
}
|
|
19685
|
+
}
|
|
19686
|
+
setCssClass(e) {
|
|
19687
|
+
this.updateCss(this.checkBoxObj, e);
|
|
19688
|
+
this.updateCss(this.dialogObj, e);
|
|
19689
|
+
}
|
|
19517
19690
|
showLinkQuickToolbar(e) {
|
|
19518
19691
|
if (!isNullOrUndefined(e.args) && e.args.action !== 'enter' &&
|
|
19519
19692
|
e.args.action !== 'space') {
|
|
@@ -19642,6 +19815,7 @@ class Link {
|
|
|
19642
19815
|
}
|
|
19643
19816
|
showDialog() {
|
|
19644
19817
|
this.openDialog(false);
|
|
19818
|
+
this.setCssClass({ cssClass: this.parent.cssClass });
|
|
19645
19819
|
}
|
|
19646
19820
|
closeDialog() {
|
|
19647
19821
|
if (this.dialogObj) {
|
|
@@ -19696,7 +19870,7 @@ class Link {
|
|
|
19696
19870
|
const linkText = linkContent.querySelector('.e-rte-linkText');
|
|
19697
19871
|
const linkTitle = linkContent.querySelector('.e-rte-linkTitle');
|
|
19698
19872
|
const linkOpenLabel = this.i10n.getConstant('linkOpenInNewWindow');
|
|
19699
|
-
this.checkBoxObj = new CheckBox({ label: linkOpenLabel, checked: true, enableRtl: this.parent.enableRtl });
|
|
19873
|
+
this.checkBoxObj = new CheckBox({ label: linkOpenLabel, checked: true, enableRtl: this.parent.enableRtl, cssClass: this.parent.cssClass });
|
|
19700
19874
|
this.checkBoxObj.isStringTemplate = true;
|
|
19701
19875
|
this.checkBoxObj.createElement = this.parent.createElement;
|
|
19702
19876
|
this.checkBoxObj.appendTo(linkTarget);
|
|
@@ -19709,7 +19883,7 @@ class Link {
|
|
|
19709
19883
|
const dialogModel = {
|
|
19710
19884
|
header: this.i10n.getConstant('linkHeader'),
|
|
19711
19885
|
content: linkContent,
|
|
19712
|
-
cssClass: CLS_RTE_ELEMENTS,
|
|
19886
|
+
cssClass: CLS_RTE_ELEMENTS + ' ' + this.parent.cssClass,
|
|
19713
19887
|
enableRtl: this.parent.enableRtl,
|
|
19714
19888
|
locale: this.parent.locale,
|
|
19715
19889
|
showCloseIcon: true, closeOnEscape: true, width: (Browser.isDevice) ? '290px' : '310px', height: 'inherit',
|
|
@@ -19991,6 +20165,7 @@ class Image {
|
|
|
19991
20165
|
this.parent.on(initialEnd, this.afterRender, this);
|
|
19992
20166
|
this.parent.on(dynamicModule, this.afterRender, this);
|
|
19993
20167
|
this.parent.on(paste, this.imagePaste, this);
|
|
20168
|
+
this.parent.on(bindCssClass, this.setCssClass, this);
|
|
19994
20169
|
this.parent.on(destroy, this.removeEventListener, this);
|
|
19995
20170
|
}
|
|
19996
20171
|
removeEventListener() {
|
|
@@ -20017,6 +20192,7 @@ class Image {
|
|
|
20017
20192
|
this.parent.off(initialEnd, this.afterRender);
|
|
20018
20193
|
this.parent.off(dynamicModule, this.afterRender);
|
|
20019
20194
|
this.parent.off(paste, this.imagePaste);
|
|
20195
|
+
this.parent.off(bindCssClass, this.setCssClass);
|
|
20020
20196
|
this.parent.off(destroy, this.removeEventListener);
|
|
20021
20197
|
const dropElement = this.parent.iframeSettings.enable ? this.parent.inputElement.ownerDocument
|
|
20022
20198
|
: this.parent.inputElement;
|
|
@@ -20034,6 +20210,32 @@ class Image {
|
|
|
20034
20210
|
}
|
|
20035
20211
|
}
|
|
20036
20212
|
}
|
|
20213
|
+
updateCss(currentObj, e) {
|
|
20214
|
+
if (currentObj && e.cssClass) {
|
|
20215
|
+
if (isNullOrUndefined(e.oldCssClass)) {
|
|
20216
|
+
currentObj.setProperties({ cssClass: (currentObj.cssClass + ' ' + e.cssClass).trim() });
|
|
20217
|
+
}
|
|
20218
|
+
else {
|
|
20219
|
+
currentObj.setProperties({ cssClass: (currentObj.cssClass.replace(e.oldCssClass, '').trim() + ' ' + e.cssClass).trim() });
|
|
20220
|
+
}
|
|
20221
|
+
}
|
|
20222
|
+
}
|
|
20223
|
+
setCssClass(e) {
|
|
20224
|
+
if (this.popupObj && e.cssClass) {
|
|
20225
|
+
if (isNullOrUndefined(e.oldCssClass)) {
|
|
20226
|
+
addClass([this.popupObj.element], e.cssClass);
|
|
20227
|
+
}
|
|
20228
|
+
else {
|
|
20229
|
+
removeClass([this.popupObj.element], e.oldCssClass);
|
|
20230
|
+
addClass([this.popupObj.element], e.cssClass);
|
|
20231
|
+
}
|
|
20232
|
+
}
|
|
20233
|
+
this.updateCss(this.checkBoxObj, e);
|
|
20234
|
+
this.updateCss(this.widthNum, e);
|
|
20235
|
+
this.updateCss(this.heightNum, e);
|
|
20236
|
+
this.updateCss(this.uploadObj, e);
|
|
20237
|
+
this.updateCss(this.dialogObj, e);
|
|
20238
|
+
}
|
|
20037
20239
|
onIframeMouseDown() {
|
|
20038
20240
|
if (this.dialogObj) {
|
|
20039
20241
|
this.dialogObj.hide({ returnValue: true });
|
|
@@ -20635,6 +20837,7 @@ class Image {
|
|
|
20635
20837
|
}
|
|
20636
20838
|
showDialog() {
|
|
20637
20839
|
this.openDialog(false);
|
|
20840
|
+
this.setCssClass({ cssClass: this.parent.cssClass });
|
|
20638
20841
|
}
|
|
20639
20842
|
closeDialog() {
|
|
20640
20843
|
if (this.dialogObj) {
|
|
@@ -20852,7 +21055,8 @@ class Image {
|
|
|
20852
21055
|
const inputLink = linkWrap.querySelector('.e-img-link');
|
|
20853
21056
|
const linkOpenLabel = this.i10n.getConstant('linkOpenInNewWindow');
|
|
20854
21057
|
this.checkBoxObj = new CheckBox({
|
|
20855
|
-
label: linkOpenLabel, checked: true, enableRtl: this.parent.enableRtl,
|
|
21058
|
+
label: linkOpenLabel, checked: true, enableRtl: this.parent.enableRtl, cssClass: this.parent.cssClass,
|
|
21059
|
+
change: (e) => {
|
|
20856
21060
|
if (e.checked) {
|
|
20857
21061
|
target = '_blank';
|
|
20858
21062
|
}
|
|
@@ -20887,6 +21091,9 @@ class Image {
|
|
|
20887
21091
|
}
|
|
20888
21092
|
}]
|
|
20889
21093
|
});
|
|
21094
|
+
if (!isNullOrUndefined(this.parent.cssClass)) {
|
|
21095
|
+
this.dialogObj.setProperties({ cssClass: this.parent.cssClass });
|
|
21096
|
+
}
|
|
20890
21097
|
if (!isNullOrUndefined(inputDetails)) {
|
|
20891
21098
|
inputLink.value = inputDetails.url;
|
|
20892
21099
|
// eslint-disable-next-line
|
|
@@ -20931,6 +21138,9 @@ class Image {
|
|
|
20931
21138
|
}
|
|
20932
21139
|
}]
|
|
20933
21140
|
});
|
|
21141
|
+
if (!isNullOrUndefined(this.parent.cssClass)) {
|
|
21142
|
+
this.dialogObj.setProperties({ cssClass: this.parent.cssClass });
|
|
21143
|
+
}
|
|
20934
21144
|
this.dialogObj.element.style.maxHeight = 'inherit';
|
|
20935
21145
|
this.dialogObj.content.querySelector('input').focus();
|
|
20936
21146
|
}
|
|
@@ -21150,6 +21360,9 @@ class Image {
|
|
|
21150
21360
|
}
|
|
21151
21361
|
}]
|
|
21152
21362
|
});
|
|
21363
|
+
if (!isNullOrUndefined(this.parent.cssClass)) {
|
|
21364
|
+
this.dialogObj.setProperties({ cssClass: this.parent.cssClass });
|
|
21365
|
+
}
|
|
21153
21366
|
this.dialogObj.element.style.maxHeight = 'inherit';
|
|
21154
21367
|
this.dialogObj.content.querySelector('input').focus();
|
|
21155
21368
|
}
|
|
@@ -21424,24 +21637,26 @@ class Image {
|
|
|
21424
21637
|
+ ' /></div>';
|
|
21425
21638
|
const contentElem = parseHtml(content);
|
|
21426
21639
|
imgSizeWrap.appendChild(contentElem);
|
|
21427
|
-
|
|
21640
|
+
this.widthNum = new TextBox({
|
|
21428
21641
|
value: formatUnit(widthVal),
|
|
21429
21642
|
enableRtl: this.parent.enableRtl,
|
|
21643
|
+
cssClass: this.parent.cssClass,
|
|
21430
21644
|
input: (e) => {
|
|
21431
21645
|
this.inputWidthValue = formatUnit(this.inputValue(e.value));
|
|
21432
21646
|
}
|
|
21433
21647
|
});
|
|
21434
|
-
widthNum.createElement = this.parent.createElement;
|
|
21435
|
-
widthNum.appendTo(imgSizeWrap.querySelector('#imgwidth'));
|
|
21436
|
-
|
|
21648
|
+
this.widthNum.createElement = this.parent.createElement;
|
|
21649
|
+
this.widthNum.appendTo(imgSizeWrap.querySelector('#imgwidth'));
|
|
21650
|
+
this.heightNum = new TextBox({
|
|
21437
21651
|
value: formatUnit(heightVal),
|
|
21438
21652
|
enableRtl: this.parent.enableRtl,
|
|
21653
|
+
cssClass: this.parent.cssClass,
|
|
21439
21654
|
input: (e) => {
|
|
21440
21655
|
this.inputHeightValue = formatUnit(this.inputValue(e.value));
|
|
21441
21656
|
}
|
|
21442
21657
|
});
|
|
21443
|
-
heightNum.createElement = this.parent.createElement;
|
|
21444
|
-
heightNum.appendTo(imgSizeWrap.querySelector('#imgheight'));
|
|
21658
|
+
this.heightNum.createElement = this.parent.createElement;
|
|
21659
|
+
this.heightNum.appendTo(imgSizeWrap.querySelector('#imgheight'));
|
|
21445
21660
|
return imgSizeWrap;
|
|
21446
21661
|
}
|
|
21447
21662
|
inputValue(value) {
|
|
@@ -21520,10 +21735,10 @@ class Image {
|
|
|
21520
21735
|
span.appendChild(btnEle);
|
|
21521
21736
|
uploadParentEle.appendChild(span);
|
|
21522
21737
|
const browserMsg = this.i10n.getConstant('browse');
|
|
21523
|
-
|
|
21524
|
-
|
|
21525
|
-
|
|
21526
|
-
|
|
21738
|
+
this.browseButton = new Button({ content: browserMsg, enableRtl: this.parent.enableRtl });
|
|
21739
|
+
this.browseButton.isStringTemplate = true;
|
|
21740
|
+
this.browseButton.createElement = this.parent.createElement;
|
|
21741
|
+
this.browseButton.appendTo(btnEle);
|
|
21527
21742
|
const btnClick = (Browser.isDevice) ? span : btnEle;
|
|
21528
21743
|
EventHandler.add(btnClick, 'click', this.fileSelect, this);
|
|
21529
21744
|
const uploadEle = this.parent.createElement('input', {
|
|
@@ -21537,7 +21752,7 @@ class Image {
|
|
|
21537
21752
|
let beforeUploadArgs;
|
|
21538
21753
|
this.uploadObj = new Uploader({
|
|
21539
21754
|
asyncSettings: { saveUrl: this.parent.insertImageSettings.saveUrl, removeUrl: this.parent.insertImageSettings.removeUrl },
|
|
21540
|
-
dropArea: span, multiple: false, enableRtl: this.parent.enableRtl,
|
|
21755
|
+
dropArea: span, multiple: false, enableRtl: this.parent.enableRtl, cssClass: this.parent.cssClass,
|
|
21541
21756
|
allowedExtensions: this.parent.insertImageSettings.allowedTypes.toString(),
|
|
21542
21757
|
selected: (e) => {
|
|
21543
21758
|
proxy.isImgUploaded = true;
|
|
@@ -21913,6 +22128,9 @@ class Image {
|
|
|
21913
22128
|
this.popupObj.element.style.display = 'none';
|
|
21914
22129
|
addClass([this.popupObj.element], CLS_POPUP_OPEN);
|
|
21915
22130
|
addClass([this.popupObj.element], CLS_RTE_UPLOAD_POPUP);
|
|
22131
|
+
if (!isNullOrUndefined(this.parent.cssClass)) {
|
|
22132
|
+
addClass([this.popupObj.element], this.parent.cssClass);
|
|
22133
|
+
}
|
|
21916
22134
|
const range = this.parent.formatter.editorManager.nodeSelection.getRange(this.parent.contentModule.getDocument());
|
|
21917
22135
|
const timeOut = dragEvent.dataTransfer.files[0].size > 1000000 ? 300 : 100;
|
|
21918
22136
|
setTimeout(() => {
|
|
@@ -21925,7 +22143,7 @@ class Image {
|
|
|
21925
22143
|
saveUrl: this.parent.insertImageSettings.saveUrl,
|
|
21926
22144
|
removeUrl: this.parent.insertImageSettings.removeUrl
|
|
21927
22145
|
},
|
|
21928
|
-
cssClass: CLS_RTE_DIALOG_UPLOAD,
|
|
22146
|
+
cssClass: CLS_RTE_DIALOG_UPLOAD + ' ' + this.parent.cssClass,
|
|
21929
22147
|
dropArea: this.parent.element,
|
|
21930
22148
|
allowedExtensions: this.parent.insertImageSettings.allowedTypes.toString(),
|
|
21931
22149
|
removing: () => {
|
|
@@ -22460,6 +22678,7 @@ class Table {
|
|
|
22460
22678
|
this.parent.on(dropDownSelect, this.dropdownSelect, this);
|
|
22461
22679
|
this.parent.on(keyDown, this.keyDown, this);
|
|
22462
22680
|
this.parent.on(mouseUp, this.selectionTable, this);
|
|
22681
|
+
this.parent.on(bindCssClass, this.setCssClass, this);
|
|
22463
22682
|
this.parent.on(destroy, this.destroy, this);
|
|
22464
22683
|
}
|
|
22465
22684
|
removeEventListener() {
|
|
@@ -22480,8 +22699,38 @@ class Table {
|
|
|
22480
22699
|
this.parent.off(tableColorPickerChanged, this.setBGColor);
|
|
22481
22700
|
this.parent.off(keyDown, this.keyDown);
|
|
22482
22701
|
this.parent.off(mouseUp, this.selectionTable);
|
|
22702
|
+
this.parent.off(bindCssClass, this.setCssClass);
|
|
22483
22703
|
this.parent.off(destroy, this.destroy);
|
|
22484
22704
|
}
|
|
22705
|
+
updateCss(currentObj, e) {
|
|
22706
|
+
if (currentObj && e.cssClass) {
|
|
22707
|
+
if (isNullOrUndefined(e.oldCssClass)) {
|
|
22708
|
+
currentObj.setProperties({ cssClass: (currentObj.cssClass + ' ' + e.cssClass).trim() });
|
|
22709
|
+
}
|
|
22710
|
+
else {
|
|
22711
|
+
currentObj.setProperties({ cssClass: (currentObj.cssClass.replace(e.oldCssClass, '').trim() + ' ' + e.cssClass).trim() });
|
|
22712
|
+
}
|
|
22713
|
+
}
|
|
22714
|
+
}
|
|
22715
|
+
setCssClass(e) {
|
|
22716
|
+
if (this.popupObj && e.cssClass) {
|
|
22717
|
+
if (isNullOrUndefined(e.oldCssClass)) {
|
|
22718
|
+
addClass([this.popupObj.element], e.cssClass);
|
|
22719
|
+
}
|
|
22720
|
+
else {
|
|
22721
|
+
removeClass([this.popupObj.element], e.oldCssClass);
|
|
22722
|
+
addClass([this.popupObj.element], e.cssClass);
|
|
22723
|
+
}
|
|
22724
|
+
}
|
|
22725
|
+
this.updateCss(this.createTableButton, e);
|
|
22726
|
+
this.updateCss(this.editdlgObj, e);
|
|
22727
|
+
const numericTextBoxObj = [
|
|
22728
|
+
this.columnTextBox, this.rowTextBox, this.tableWidthNum, this.tableCellPadding, this.tableCellSpacing
|
|
22729
|
+
];
|
|
22730
|
+
for (let i = 0; i < numericTextBoxObj.length; i++) {
|
|
22731
|
+
this.updateCss(numericTextBoxObj[i], e);
|
|
22732
|
+
}
|
|
22733
|
+
}
|
|
22485
22734
|
selectionTable(e) {
|
|
22486
22735
|
const target = e.args.target;
|
|
22487
22736
|
if (Browser.info.name === 'mozilla' && !isNullOrUndefined(closest(target, 'table')) && closest(target, 'table').tagName === 'TABLE') {
|
|
@@ -22614,6 +22863,7 @@ class Table {
|
|
|
22614
22863
|
}
|
|
22615
22864
|
showDialog() {
|
|
22616
22865
|
this.openDialog(false);
|
|
22866
|
+
this.setCssClass({ cssClass: this.parent.cssClass });
|
|
22617
22867
|
}
|
|
22618
22868
|
closeDialog() {
|
|
22619
22869
|
if (this.editdlgObj) {
|
|
@@ -23185,7 +23435,8 @@ class Table {
|
|
|
23185
23435
|
const tableWidth = parseInt(getComputedStyle(this.curTable).width, 10);
|
|
23186
23436
|
const tableHeight = parseInt(getComputedStyle(this.curTable).height, 10);
|
|
23187
23437
|
const paddingSize = +getComputedStyle(this.contentModule.getEditPanel()).paddingRight.match(/\d/g).join('');
|
|
23188
|
-
const rteWidth = this.contentModule.getEditPanel().offsetWidth -
|
|
23438
|
+
const rteWidth = this.contentModule.getEditPanel().offsetWidth - (this.contentModule.getEditPanel().offsetWidth -
|
|
23439
|
+
this.contentModule.getEditPanel().clientWidth) - paddingSize * 2;
|
|
23189
23440
|
if (this.resizeBtnStat.column) {
|
|
23190
23441
|
const cellColl = this.curTable.rows[this.calMaxCol(this.curTable)].cells;
|
|
23191
23442
|
const width = parseFloat(this.columnEle.offsetWidth.toString());
|
|
@@ -23226,7 +23477,7 @@ class Table {
|
|
|
23226
23477
|
EventHandler.remove(this.contentModule.getEditPanel(), 'mouseover', this.resizeHelper);
|
|
23227
23478
|
}
|
|
23228
23479
|
const widthType = this.curTable.style.width.indexOf('%') > -1;
|
|
23229
|
-
this.curTable.style.width = widthType
|
|
23480
|
+
this.curTable.style.width = widthType ? this.convertPixelToPercentage(tableWidth + mouseX, rteWidth) + '%'
|
|
23230
23481
|
: tableWidth + mouseX + 'px';
|
|
23231
23482
|
this.curTable.style.height = tableHeight + mouseY + 'px';
|
|
23232
23483
|
tableReBox.classList.add('e-rbox-select');
|
|
@@ -23331,12 +23582,12 @@ class Table {
|
|
|
23331
23582
|
this.parent.getToolbarElement().querySelector('.e-expended-nav').setAttribute('tabindex', '1');
|
|
23332
23583
|
}
|
|
23333
23584
|
this.dlgDiv.appendChild(btnEle);
|
|
23334
|
-
|
|
23335
|
-
iconCss: 'e-icons e-create-table', content: insertbtn, cssClass: 'e-flat',
|
|
23585
|
+
this.createTableButton = new Button({
|
|
23586
|
+
iconCss: 'e-icons e-create-table', content: insertbtn, cssClass: 'e-flat' + ' ' + this.parent.cssClass,
|
|
23336
23587
|
enableRtl: this.parent.enableRtl, locale: this.parent.locale
|
|
23337
23588
|
});
|
|
23338
|
-
|
|
23339
|
-
|
|
23589
|
+
this.createTableButton.isStringTemplate = true;
|
|
23590
|
+
this.createTableButton.appendTo(btnEle);
|
|
23340
23591
|
EventHandler.add(btnEle, 'click', this.insertTableDialog, { self: this, args: args.args, selection: args.selection });
|
|
23341
23592
|
this.parent.getToolbar().appendChild(this.dlgDiv);
|
|
23342
23593
|
let target = args.args.originalEvent.target;
|
|
@@ -23359,6 +23610,9 @@ class Table {
|
|
|
23359
23610
|
}
|
|
23360
23611
|
});
|
|
23361
23612
|
addClass([this.popupObj.element], 'e-popup-open');
|
|
23613
|
+
if (!isNullOrUndefined(this.parent.cssClass)) {
|
|
23614
|
+
addClass([this.popupObj.element], this.parent.cssClass);
|
|
23615
|
+
}
|
|
23362
23616
|
this.popupObj.refreshPosition(target);
|
|
23363
23617
|
}
|
|
23364
23618
|
docClick(e) {
|
|
@@ -23430,7 +23684,8 @@ class Table {
|
|
|
23430
23684
|
this.cancelDialog(e);
|
|
23431
23685
|
},
|
|
23432
23686
|
buttonModel: { cssClass: 'e-flat e-cancel', content: cancel }
|
|
23433
|
-
}]
|
|
23687
|
+
}],
|
|
23688
|
+
cssClass: this.parent.cssClass
|
|
23434
23689
|
});
|
|
23435
23690
|
this.editdlgObj.element.style.maxHeight = 'none';
|
|
23436
23691
|
this.editdlgObj.content.querySelector('input').focus();
|
|
@@ -23461,6 +23716,9 @@ class Table {
|
|
|
23461
23716
|
buttonModel: { cssClass: 'e-flat e-cancel', content: cancel }
|
|
23462
23717
|
}]
|
|
23463
23718
|
});
|
|
23719
|
+
if (!isNullOrUndefined(proxy.parent.cssClass)) {
|
|
23720
|
+
proxy.editdlgObj.setProperties({ cssClass: proxy.parent.cssClass });
|
|
23721
|
+
}
|
|
23464
23722
|
proxy.editdlgObj.element.style.maxHeight = 'none';
|
|
23465
23723
|
proxy.editdlgObj.content.querySelector('input').focus();
|
|
23466
23724
|
}
|
|
@@ -23480,7 +23738,8 @@ class Table {
|
|
|
23480
23738
|
placeholder: tableColumn,
|
|
23481
23739
|
floatLabelType: 'Auto',
|
|
23482
23740
|
max: 50,
|
|
23483
|
-
enableRtl: this.parent.enableRtl, locale: this.parent.locale
|
|
23741
|
+
enableRtl: this.parent.enableRtl, locale: this.parent.locale,
|
|
23742
|
+
cssClass: this.parent.cssClass
|
|
23484
23743
|
});
|
|
23485
23744
|
this.columnTextBox.isStringTemplate = true;
|
|
23486
23745
|
this.columnTextBox.appendTo(tableWrap.querySelector('#tableColumn'));
|
|
@@ -23491,7 +23750,8 @@ class Table {
|
|
|
23491
23750
|
placeholder: tableRow,
|
|
23492
23751
|
floatLabelType: 'Auto',
|
|
23493
23752
|
max: 50,
|
|
23494
|
-
enableRtl: this.parent.enableRtl, locale: this.parent.locale
|
|
23753
|
+
enableRtl: this.parent.enableRtl, locale: this.parent.locale,
|
|
23754
|
+
cssClass: this.parent.cssClass
|
|
23495
23755
|
});
|
|
23496
23756
|
this.rowTextBox.isStringTemplate = true;
|
|
23497
23757
|
this.rowTextBox.appendTo(tableWrap.querySelector('#tableRow'));
|
|
@@ -23519,7 +23779,7 @@ class Table {
|
|
|
23519
23779
|
const header = this.l10n.getConstant('tabledialogHeader');
|
|
23520
23780
|
const dialogModel = {
|
|
23521
23781
|
header: header,
|
|
23522
|
-
cssClass: CLS_RTE_ELEMENTS,
|
|
23782
|
+
cssClass: CLS_RTE_ELEMENTS + ' ' + this.parent.cssClass,
|
|
23523
23783
|
enableRtl: this.parent.enableRtl,
|
|
23524
23784
|
locale: this.parent.locale,
|
|
23525
23785
|
showCloseIcon: true, closeOnEscape: true, width: (Browser.isDevice) ? '290px' : '340px', height: 'initial',
|
|
@@ -23609,7 +23869,7 @@ class Table {
|
|
|
23609
23869
|
+ ' </div><div class="e-rte-field"><input type="text" data-role ="none" id="cellSpacing" class="e-cell-spacing" /></div>';
|
|
23610
23870
|
const contentElem = parseHtml(content);
|
|
23611
23871
|
tableWrap.appendChild(contentElem);
|
|
23612
|
-
|
|
23872
|
+
this.tableWidthNum = new NumericTextBox({
|
|
23613
23873
|
format: 'n0',
|
|
23614
23874
|
min: 0,
|
|
23615
23875
|
value: widthVal,
|
|
@@ -23617,9 +23877,9 @@ class Table {
|
|
|
23617
23877
|
floatLabelType: 'Auto',
|
|
23618
23878
|
enableRtl: this.parent.enableRtl, locale: this.parent.locale
|
|
23619
23879
|
});
|
|
23620
|
-
|
|
23621
|
-
|
|
23622
|
-
|
|
23880
|
+
this.tableWidthNum.isStringTemplate = true;
|
|
23881
|
+
this.tableWidthNum.appendTo(tableWrap.querySelector('#tableWidth'));
|
|
23882
|
+
this.tableCellPadding = new NumericTextBox({
|
|
23623
23883
|
format: 'n0',
|
|
23624
23884
|
min: 0,
|
|
23625
23885
|
// eslint-disable-next-line
|
|
@@ -23628,9 +23888,9 @@ class Table {
|
|
|
23628
23888
|
floatLabelType: 'Auto',
|
|
23629
23889
|
enableRtl: this.parent.enableRtl, locale: this.parent.locale
|
|
23630
23890
|
});
|
|
23631
|
-
|
|
23632
|
-
|
|
23633
|
-
|
|
23891
|
+
this.tableCellPadding.isStringTemplate = true;
|
|
23892
|
+
this.tableCellPadding.appendTo(tableWrap.querySelector('#cellPadding'));
|
|
23893
|
+
this.tableCellSpacing = new NumericTextBox({
|
|
23634
23894
|
format: 'n0',
|
|
23635
23895
|
min: 0,
|
|
23636
23896
|
// eslint-disable-next-line
|
|
@@ -23639,8 +23899,8 @@ class Table {
|
|
|
23639
23899
|
floatLabelType: 'Auto',
|
|
23640
23900
|
enableRtl: this.parent.enableRtl, locale: this.parent.locale
|
|
23641
23901
|
});
|
|
23642
|
-
|
|
23643
|
-
|
|
23902
|
+
this.tableCellSpacing.isStringTemplate = true;
|
|
23903
|
+
this.tableCellSpacing.appendTo(tableWrap.querySelector('#cellSpacing'));
|
|
23644
23904
|
return tableWrap;
|
|
23645
23905
|
}
|
|
23646
23906
|
/**
|
|
@@ -24982,6 +25242,7 @@ let RichTextEditor = class RichTextEditor extends Component {
|
|
|
24982
25242
|
}
|
|
24983
25243
|
// eslint-disable-next-line
|
|
24984
25244
|
(!this.enabled) ? this.unWireEvents() : this.eventInitializer();
|
|
25245
|
+
this.notify(bindCssClass, { cssClass: this.cssClass });
|
|
24985
25246
|
this.renderComplete();
|
|
24986
25247
|
}
|
|
24987
25248
|
/**
|
|
@@ -25562,6 +25823,7 @@ let RichTextEditor = class RichTextEditor extends Component {
|
|
|
25562
25823
|
case 'cssClass':
|
|
25563
25824
|
this.element.classList.remove(oldProp[prop]);
|
|
25564
25825
|
this.setCssClass(newProp[prop]);
|
|
25826
|
+
this.notify(bindCssClass, { cssClass: newProp[prop], oldCssClass: oldProp[prop] });
|
|
25565
25827
|
break;
|
|
25566
25828
|
case 'enabled':
|
|
25567
25829
|
this.setEnable();
|
|
@@ -26938,5 +27200,5 @@ RichTextEditor = __decorate$1([
|
|
|
26938
27200
|
* Rich Text Editor component exported items
|
|
26939
27201
|
*/
|
|
26940
27202
|
|
|
26941
|
-
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 };
|
|
27203
|
+
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 };
|
|
26942
27204
|
//# sourceMappingURL=ej2-richtexteditor.es2015.js.map
|