@syncfusion/ej2-richtexteditor 27.2.3 → 27.2.5
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/dist/ej2-richtexteditor.min.js +2 -2
- 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 +226 -47
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +227 -46
- 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 +11 -11
- package/src/editor-manager/plugin/indents.js +1 -1
- package/src/editor-manager/plugin/inserthtml.d.ts +1 -0
- package/src/editor-manager/plugin/inserthtml.js +42 -13
- package/src/editor-manager/plugin/ms-word-clean-up.js +19 -2
- package/src/editor-manager/plugin/nodecutter.js +5 -0
- package/src/editor-manager/plugin/selection-commands.d.ts +1 -0
- package/src/editor-manager/plugin/selection-commands.js +33 -16
- package/src/rich-text-editor/actions/dropdown-buttons.js +4 -4
- package/src/rich-text-editor/actions/html-editor.js +14 -3
- package/src/rich-text-editor/actions/paste-clean-up.js +31 -0
- package/src/rich-text-editor/actions/resize.d.ts +1 -0
- package/src/rich-text-editor/actions/resize.js +16 -0
- package/src/rich-text-editor/base/util.d.ts +6 -0
- package/src/rich-text-editor/base/util.js +55 -3
- package/src/rich-text-editor/renderer/image-module.js +3 -0
- package/src/rich-text-editor/renderer/toolbar-renderer.js +3 -3
|
@@ -3128,6 +3128,9 @@ function hasClass(element, className) {
|
|
|
3128
3128
|
function getDropDownValue(items, value, type, returnType) {
|
|
3129
3129
|
var data;
|
|
3130
3130
|
var result;
|
|
3131
|
+
if (items.length === 0 && value === 'FontSize') {
|
|
3132
|
+
return 'Font Size';
|
|
3133
|
+
}
|
|
3131
3134
|
for (var k = 0; k < items.length; k++) {
|
|
3132
3135
|
if (type === 'value' && items[k].value.toLocaleLowerCase() === value.toLocaleLowerCase()) {
|
|
3133
3136
|
data = items[k];
|
|
@@ -3276,7 +3279,7 @@ function setToolbarStatus(e, isPopToolbar, self) {
|
|
|
3276
3279
|
}
|
|
3277
3280
|
var fontNameItems = e.parent.fontFamily.items;
|
|
3278
3281
|
result = value === 'empty' ? '' : getDropDownValue(fontNameItems, value, 'value', 'text');
|
|
3279
|
-
var fontNameContent = isNullOrUndefined(e.parent.fontFamily.default) ? fontNameItems[0].text :
|
|
3282
|
+
var fontNameContent = isNullOrUndefined(e.parent.fontFamily.default) ? (fontNameItems.length === 0) ? self.serviceLocator.getService('rteLocale').getConstant('fontName') : fontNameItems[0].text :
|
|
3280
3283
|
e.parent.fontFamily.default;
|
|
3281
3284
|
var name_1 = (isNullOrUndefined(result) ? fontNameContent : result) === 'Default' ? self.serviceLocator.getService('rteLocale').getConstant('fontName')
|
|
3282
3285
|
: (isNullOrUndefined(result) ? fontNameContent : result);
|
|
@@ -3293,9 +3296,9 @@ function setToolbarStatus(e, isPopToolbar, self) {
|
|
|
3293
3296
|
break;
|
|
3294
3297
|
}
|
|
3295
3298
|
var fontSizeItems = e.parent.fontSize.items;
|
|
3296
|
-
var fontSizeContent = isNullOrUndefined(e.parent.fontSize.default) ? fontSizeItems[0].text :
|
|
3299
|
+
var fontSizeContent = isNullOrUndefined(e.parent.fontSize.default) ? (fontSizeItems.length === 0) ? self.serviceLocator.getService('rteLocale').getConstant('fontSize') : fontSizeItems[0].text :
|
|
3297
3300
|
e.parent.fontSize.default;
|
|
3298
|
-
var fontSizeToolbarText = getDropDownValue(fontSizeItems, (value === '' ? fontSizeContent.replace(/\s/g, '') : value), (fontSizeContent.replace(/\s/g, '') === fontSizeItems[0].text && value === '') ? 'text' : 'value', 'text');
|
|
3301
|
+
var fontSizeToolbarText = getDropDownValue(fontSizeItems, (value === '' ? fontSizeContent.replace(/\s/g, '') : value), (fontSizeItems.length > 0 && fontSizeItems[0] && fontSizeContent.replace(/\s/g, '') === fontSizeItems[0].text && value === '') ? 'text' : 'value', 'text');
|
|
3299
3302
|
result = value === 'empty' ? '' : (fontSizeToolbarText === 'Default') ? self.serviceLocator.getService('rteLocale').getConstant('fontSize') : fontSizeToolbarText;
|
|
3300
3303
|
dropDown.fontSizeDropDown.content = ('<span style="display: inline-flex;' +
|
|
3301
3304
|
'width:' + e.parent.fontSize.width + '" >' +
|
|
@@ -3630,8 +3633,57 @@ function sanitizeHelper(value, parent) {
|
|
|
3630
3633
|
value = SanitizeHtmlHelper.serializeValue(item, value);
|
|
3631
3634
|
}
|
|
3632
3635
|
}
|
|
3636
|
+
value = parseHelper(value);
|
|
3633
3637
|
return value;
|
|
3634
3638
|
}
|
|
3639
|
+
/**
|
|
3640
|
+
* @param {string} value - specifies the string value
|
|
3641
|
+
* @returns {string} - returns the string value
|
|
3642
|
+
* @hidden
|
|
3643
|
+
*/
|
|
3644
|
+
function parseHelper(value) {
|
|
3645
|
+
var temp = createElement('div');
|
|
3646
|
+
temp.innerHTML = value;
|
|
3647
|
+
var fontElements = temp.querySelectorAll('font');
|
|
3648
|
+
fontElements.forEach(function (font) {
|
|
3649
|
+
var span = document.createElement('span');
|
|
3650
|
+
var style = (font.getAttribute('style') || '').replace(/style:/gi, '').trim();
|
|
3651
|
+
if (!isNullOrUndefined(style) && style.trim() !== '' && !style.endsWith(';')) {
|
|
3652
|
+
style += ';';
|
|
3653
|
+
}
|
|
3654
|
+
Array.from(font.attributes).forEach(function (attr) {
|
|
3655
|
+
var name = attr.name.toLowerCase();
|
|
3656
|
+
var value = attr.value;
|
|
3657
|
+
switch (name) {
|
|
3658
|
+
case 'size':
|
|
3659
|
+
style += "font-size:" + value + ";";
|
|
3660
|
+
break;
|
|
3661
|
+
case 'face':
|
|
3662
|
+
style += "font-family:" + value + ";";
|
|
3663
|
+
break;
|
|
3664
|
+
case 'bgcolor':
|
|
3665
|
+
style += "background-color:" + value + ";";
|
|
3666
|
+
break;
|
|
3667
|
+
case 'style':
|
|
3668
|
+
break;
|
|
3669
|
+
default:
|
|
3670
|
+
style += name + ":" + value + ";";
|
|
3671
|
+
break;
|
|
3672
|
+
}
|
|
3673
|
+
});
|
|
3674
|
+
if (!isNullOrUndefined(style) && style.trim() !== '') {
|
|
3675
|
+
style = style.replace(/;;+/g, ';');
|
|
3676
|
+
span.setAttribute('style', style);
|
|
3677
|
+
}
|
|
3678
|
+
span.innerHTML = font.innerHTML;
|
|
3679
|
+
if (!isNullOrUndefined(font.parentNode)) {
|
|
3680
|
+
font.parentNode.replaceChild(span, font);
|
|
3681
|
+
}
|
|
3682
|
+
});
|
|
3683
|
+
var parsedValue = temp.innerHTML;
|
|
3684
|
+
temp.remove();
|
|
3685
|
+
return parsedValue;
|
|
3686
|
+
}
|
|
3635
3687
|
/**
|
|
3636
3688
|
* @param {string} dataUrl - specifies the string value
|
|
3637
3689
|
* @returns {BaseToolbar} - returns the value
|
|
@@ -5684,7 +5736,7 @@ var ToolbarRenderer = /** @__PURE__ @class */ (function () {
|
|
|
5684
5736
|
alignEle = alignEle.parentElement;
|
|
5685
5737
|
}
|
|
5686
5738
|
var alignStyle = window.getComputedStyle(alignEle).textAlign;
|
|
5687
|
-
if (args.items[0].command === 'Alignments') {
|
|
5739
|
+
if (!isNullOrUndefined(args.items[0]) && args.items[0].command === 'Alignments') {
|
|
5688
5740
|
if ((args.items[0].text === 'Align Left' && (alignStyle === 'left') || alignStyle === 'start')) {
|
|
5689
5741
|
addClass([args.element.childNodes[0]], 'e-active');
|
|
5690
5742
|
break;
|
|
@@ -5707,7 +5759,7 @@ var ToolbarRenderer = /** @__PURE__ @class */ (function () {
|
|
|
5707
5759
|
//image preselect
|
|
5708
5760
|
var closestNode = startNode.closest('img');
|
|
5709
5761
|
var imageEle = closestNode ? closestNode : startNode.querySelector('img');
|
|
5710
|
-
if (args.items[0].command === 'Images') {
|
|
5762
|
+
if (!isNullOrUndefined(args.items[0]) && args.items[0].command === 'Images') {
|
|
5711
5763
|
if (!isNullOrUndefined(imageEle)) {
|
|
5712
5764
|
var index = void 0;
|
|
5713
5765
|
if (imageEle.classList.contains('e-imgleft') || imageEle.classList.contains('e-imginline')) {
|
|
@@ -5725,7 +5777,7 @@ var ToolbarRenderer = /** @__PURE__ @class */ (function () {
|
|
|
5725
5777
|
}
|
|
5726
5778
|
}
|
|
5727
5779
|
//Formats preselect
|
|
5728
|
-
if (args.items[0].command === 'Formats' || args.items[0].command === 'Font') {
|
|
5780
|
+
if (!isNullOrUndefined(args.items[0]) && (args.items[0].command === 'Formats' || args.items[0].command === 'Font')) {
|
|
5729
5781
|
var fontName_1 = [];
|
|
5730
5782
|
var formats_1 = [];
|
|
5731
5783
|
var hasUpdatedActive = false;
|
|
@@ -8552,6 +8604,8 @@ var Image$1 = /** @__PURE__ @class */ (function () {
|
|
|
8552
8604
|
if (proxy.parent.formatter.getUndoRedoStack().length === 0) {
|
|
8553
8605
|
proxy.parent.formatter.saveData();
|
|
8554
8606
|
}
|
|
8607
|
+
var previousSubCommand = this.args.item.subCommand;
|
|
8608
|
+
this.args.item.subCommand = e.target.innerHTML === 'Update' ? 'Replace' : this.args.item.subCommand;
|
|
8555
8609
|
if (!isNullOrUndefined(proxy.uploadUrl) && proxy.uploadUrl.url !== '') {
|
|
8556
8610
|
proxy.uploadUrl.cssClass = (proxy.parent.insertImageSettings.display === 'inline' ?
|
|
8557
8611
|
CLS_IMGINLINE : CLS_IMGBREAK);
|
|
@@ -8595,6 +8649,7 @@ var Image$1 = /** @__PURE__ @class */ (function () {
|
|
|
8595
8649
|
}
|
|
8596
8650
|
proxy.parent.formatter.process(proxy.parent, this.args, this.args.originalEvent, value);
|
|
8597
8651
|
}
|
|
8652
|
+
this.args.item.subCommand = previousSubCommand;
|
|
8598
8653
|
};
|
|
8599
8654
|
Image.prototype.imgsizeInput = function (e) {
|
|
8600
8655
|
var _this = this;
|
|
@@ -15705,11 +15760,11 @@ var DropDownButtons = /** @__PURE__ @class */ (function () {
|
|
|
15705
15760
|
command: { value: 'Font', enumerable: true }, subCommand: { value: 'FontName', enumerable: true }
|
|
15706
15761
|
});
|
|
15707
15762
|
});
|
|
15708
|
-
var fontNameContent = isNullOrUndefined(_this.parent.fontFamily.default) ? fontItem[0].text :
|
|
15763
|
+
var fontNameContent = isNullOrUndefined(_this.parent.fontFamily.default) ? fontItem.length === 0 ? '' : fontItem[0].text :
|
|
15709
15764
|
_this.parent.fontFamily.default;
|
|
15710
15765
|
_this.fontNameDropDown = _this.toolbarRenderer.renderDropDownButton({
|
|
15711
15766
|
iconCss: ((type === 'quick') ? 'e-font-name e-icons' : ''),
|
|
15712
|
-
content: _this.dropdownContent(_this.parent.fontFamily.width, type, ((type === 'quick') ? '' : (getDropDownValue(fontItem, fontNameContent, 'text', 'text') === 'Default' ? _this.i10n.getConstant('fontName') : getDropDownValue(fontItem, fontNameContent, 'text', 'text')))),
|
|
15767
|
+
content: _this.dropdownContent(_this.parent.fontFamily.width, type, ((fontItem.length === 0) ? _this.i10n.getConstant('fontName') : (type === 'quick') ? '' : (getDropDownValue(fontItem, fontNameContent, 'text', 'text') === 'Default' ? _this.i10n.getConstant('fontName') : getDropDownValue(fontItem, fontNameContent, 'text', 'text')))),
|
|
15713
15768
|
cssClass: CLS_DROPDOWN_POPUP + ' ' + CLS_DROPDOWN_ITEMS + ' ' + CLS_FONT_NAME_TB_BTN,
|
|
15714
15769
|
itemName: 'FontName', items: fontItem, element: targetElement
|
|
15715
15770
|
});
|
|
@@ -15728,11 +15783,11 @@ var DropDownButtons = /** @__PURE__ @class */ (function () {
|
|
|
15728
15783
|
command: { value: 'Font', enumerable: true }, subCommand: { value: 'FontSize', enumerable: true }
|
|
15729
15784
|
});
|
|
15730
15785
|
});
|
|
15731
|
-
var fontSizeContent = isNullOrUndefined(_this.parent.fontSize.default) ? fontsize[0].text :
|
|
15786
|
+
var fontSizeContent = isNullOrUndefined(_this.parent.fontSize.default) ? fontsize.length === 0 ? '' : fontsize[0].text :
|
|
15732
15787
|
_this.parent.fontSize.default;
|
|
15733
15788
|
var fontSizeDropDownContent = ((fontSizeContent === 'Default') ? getDropDownValue(fontsize, fontSizeContent.replace(/\s/g, ''), 'text', 'text') : getDropDownValue(fontsize, fontSizeContent.replace(/\s/g, ''), 'value', 'text'));
|
|
15734
15789
|
_this.fontSizeDropDown = _this.toolbarRenderer.renderDropDownButton({
|
|
15735
|
-
content: _this.dropdownContent(_this.parent.fontSize.width, type, getFormattedFontSize((fontSizeDropDownContent === 'Default') ? _this.i10n.getConstant('fontSize') : fontSizeDropDownContent)),
|
|
15790
|
+
content: _this.dropdownContent(_this.parent.fontSize.width, type, fontsize.length === 0 ? _this.i10n.getConstant('fontSize') : (getFormattedFontSize((fontSizeDropDownContent === 'Default') ? _this.i10n.getConstant('fontSize') : fontSizeDropDownContent))),
|
|
15736
15791
|
cssClass: CLS_DROPDOWN_POPUP + ' ' + CLS_DROPDOWN_ITEMS + ' ' + CLS_FONT_SIZE_TB_BTN,
|
|
15737
15792
|
itemName: 'FontSize', items: fontsize, element: targetElement
|
|
15738
15793
|
});
|
|
@@ -23506,6 +23561,11 @@ var NodeCutter = /** @__PURE__ @class */ (function () {
|
|
|
23506
23561
|
if (node) {
|
|
23507
23562
|
InsertMethods.AppendBefore(fragment, node, true);
|
|
23508
23563
|
}
|
|
23564
|
+
else if (parent_1.childNodes.length > 1 && parent_1.childNodes.length !== index) {
|
|
23565
|
+
node = parent_1.childNodes[parent_1.childNodes.length - 1];
|
|
23566
|
+
InsertMethods.AppendBefore(fragment, node, true);
|
|
23567
|
+
node = node.nextSibling;
|
|
23568
|
+
}
|
|
23509
23569
|
else {
|
|
23510
23570
|
parent_1.appendChild(fragment);
|
|
23511
23571
|
var divNode = document.createElement('div');
|
|
@@ -24582,27 +24642,33 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
24582
24642
|
var range = nodeSelection.getRange(docElement);
|
|
24583
24643
|
var startContainer = range.startContainer;
|
|
24584
24644
|
var startOffset = range.startOffset;
|
|
24585
|
-
|
|
24586
|
-
|
|
24587
|
-
|
|
24588
|
-
|
|
24589
|
-
|
|
24590
|
-
|
|
24645
|
+
var startParentElement = range.startContainer.parentElement;
|
|
24646
|
+
var endParentElement = range.endContainer.parentElement;
|
|
24647
|
+
if (!isNullOrUndefined(startParentElement) && !isNullOrUndefined(endParentElement)) {
|
|
24648
|
+
var startClosestList = startParentElement.closest('ol, ul');
|
|
24649
|
+
var endClosestList = endParentElement.closest('ol, ul');
|
|
24650
|
+
if (!isNullOrUndefined(startClosestList) && !isNullOrUndefined(endClosestList)) {
|
|
24651
|
+
var hasListCleanUp = this.cleanUpListItems(startClosestList);
|
|
24652
|
+
var hasListContainerCleanUp = this.cleanUpListContainer(startClosestList);
|
|
24653
|
+
if (hasListCleanUp || hasListContainerCleanUp) {
|
|
24654
|
+
range.setStart(startContainer, startOffset);
|
|
24655
|
+
range.setEnd(startContainer, startOffset);
|
|
24656
|
+
}
|
|
24591
24657
|
}
|
|
24592
24658
|
}
|
|
24593
24659
|
};
|
|
24594
24660
|
InsertHtml.cleanUpListItems = function (parentContainer) {
|
|
24595
24661
|
var _this = this;
|
|
24596
24662
|
var hasListCleanUp = false;
|
|
24597
|
-
var listItems
|
|
24598
|
-
if (
|
|
24663
|
+
var listItems;
|
|
24664
|
+
if (!isNullOrUndefined(parentContainer.closest('ol, ul'))) {
|
|
24665
|
+
listItems = parentContainer.closest('ol, ul').querySelectorAll('li');
|
|
24666
|
+
}
|
|
24667
|
+
if (isNullOrUndefined(listItems) || listItems.length === 0) {
|
|
24599
24668
|
return false;
|
|
24600
24669
|
}
|
|
24601
24670
|
var nearestListItem = null;
|
|
24602
24671
|
listItems.forEach(function (listItem) {
|
|
24603
|
-
if (!isNullOrUndefined(listItem.firstChild) && (listItem.firstChild.nodeName === 'OL' || listItem.firstChild.nodeName === 'UL')) {
|
|
24604
|
-
listItem.style.listStyleType = 'none';
|
|
24605
|
-
}
|
|
24606
24672
|
var parentElement = listItem.parentElement;
|
|
24607
24673
|
if (!isNullOrUndefined(parentElement) && parentElement.nodeName !== 'OL' && parentElement.nodeName !== 'UL') {
|
|
24608
24674
|
if (isNullOrUndefined(nearestListItem)) {
|
|
@@ -24629,15 +24695,38 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
24629
24695
|
var closestList = parentElement.closest('ol, ul');
|
|
24630
24696
|
nearestListItem.insertAdjacentElement('afterend', listItem);
|
|
24631
24697
|
nearestListItem = nearestListItem.nextSibling;
|
|
24632
|
-
|
|
24698
|
+
if (!isNullOrUndefined(closestList)) {
|
|
24699
|
+
_this.removeEmptyElements(closestList);
|
|
24700
|
+
}
|
|
24633
24701
|
hasListCleanUp = true;
|
|
24634
24702
|
}
|
|
24635
24703
|
}
|
|
24704
|
+
});
|
|
24705
|
+
var cleanUpFlattenListContainer = this.cleanUpFlattenListContainer(parentContainer);
|
|
24706
|
+
hasListCleanUp = cleanUpFlattenListContainer ? cleanUpFlattenListContainer : hasListCleanUp;
|
|
24707
|
+
return hasListCleanUp;
|
|
24708
|
+
};
|
|
24709
|
+
InsertHtml.cleanUpFlattenListContainer = function (parentContainer) {
|
|
24710
|
+
var hasListCleanUp = false;
|
|
24711
|
+
var listItems;
|
|
24712
|
+
if (!isNullOrUndefined(parentContainer.closest('ol, ul'))) {
|
|
24713
|
+
listItems = parentContainer.closest('ol, ul').querySelectorAll('li');
|
|
24714
|
+
}
|
|
24715
|
+
if (isNullOrUndefined(listItems) || listItems.length === 0) {
|
|
24716
|
+
return false;
|
|
24717
|
+
}
|
|
24718
|
+
listItems.forEach(function (listItem) {
|
|
24719
|
+
if (!isNullOrUndefined(listItem.firstChild) && (listItem.firstChild.nodeName === 'OL' || listItem.firstChild.nodeName === 'UL')) {
|
|
24720
|
+
listItem.style.listStyleType = 'none';
|
|
24721
|
+
}
|
|
24636
24722
|
var nestedLi = Array.from(listItem.children).find(function (child) {
|
|
24637
24723
|
return child.tagName === 'LI' && (child.parentElement && child.parentElement.tagName !== 'OL' && child.parentElement.tagName !== 'UL');
|
|
24638
24724
|
});
|
|
24639
|
-
if (nestedLi && listItem.parentNode) {
|
|
24725
|
+
if (!isNullOrUndefined(nestedLi) && !isNullOrUndefined(listItem.parentNode)) {
|
|
24640
24726
|
listItem.parentNode.replaceChild(nestedLi, listItem);
|
|
24727
|
+
if (isNullOrUndefined(nestedLi.textContent) || nestedLi.textContent.trim() === '') {
|
|
24728
|
+
nestedLi.remove();
|
|
24729
|
+
}
|
|
24641
24730
|
hasListCleanUp = true;
|
|
24642
24731
|
}
|
|
24643
24732
|
});
|
|
@@ -25492,7 +25581,7 @@ var Indents = /** @__PURE__ @class */ (function () {
|
|
|
25492
25581
|
isRtl ? (parentNode.style.marginRight = indentsValue) : (parentNode.style.marginLeft = indentsValue);
|
|
25493
25582
|
}
|
|
25494
25583
|
else {
|
|
25495
|
-
indentsValue = (marginLeftOrRight === '' || marginLeftOrRight === '0px' || marginLeftOrRight === '0in') ? '' : parseInt(marginLeftOrRight, null) - this.indentValue + 'px';
|
|
25584
|
+
indentsValue = (marginLeftOrRight === '' || marginLeftOrRight === '0px' || marginLeftOrRight === '0in') ? '' : (parseInt(marginLeftOrRight, null) - this.indentValue < 0) ? '0px' : (parseInt(marginLeftOrRight, null) - this.indentValue) + 'px';
|
|
25496
25585
|
isRtl ? (parentNode.style.marginRight = indentsValue) : (parentNode.style.marginLeft = indentsValue);
|
|
25497
25586
|
/* eslint-enable */
|
|
25498
25587
|
}
|
|
@@ -27759,8 +27848,10 @@ var SelectionCommands = /** @__PURE__ @class */ (function () {
|
|
|
27759
27848
|
range.startContainer.textContent.substring(range.startOffset, range.startContainer.textContent.length) :
|
|
27760
27849
|
range.startContainer.textContent;
|
|
27761
27850
|
var nodeText = nodes[index].textContent;
|
|
27851
|
+
var isParentNodeSameAsParentElement = nodes[0].parentElement.nodeName === nodes[0].parentElement.parentElement.nodeName;
|
|
27762
27852
|
if (!(range.startContainer === range.endContainer && range.startOffset === 0
|
|
27763
|
-
&& range.endOffset === range.startContainer.length
|
|
27853
|
+
&& range.endOffset === range.startContainer.length
|
|
27854
|
+
&& (range.startContainer.textContent === formatNode.textContent || isParentNodeSameAsParentElement))) {
|
|
27764
27855
|
var nodeIndex = [];
|
|
27765
27856
|
var cloneNode = nodes[index];
|
|
27766
27857
|
var clonedElement = cloneNode;
|
|
@@ -27781,10 +27872,19 @@ var SelectionCommands = /** @__PURE__ @class */ (function () {
|
|
|
27781
27872
|
if (!isCursor) {
|
|
27782
27873
|
while (cloneNode && cloneNode.childNodes.length > 0 && ((nodeIndex.length - 1) >= 0)
|
|
27783
27874
|
&& (cloneNode.childNodes.length > nodeIndex[nodeIndex.length - 1])) {
|
|
27784
|
-
|
|
27785
|
-
|
|
27875
|
+
if (cloneNode.childNodes.length > 1 && nodeIndex.length > 1) {
|
|
27876
|
+
cloneNode = cloneNode.childNodes[nodeIndex[nodeIndex.length - 2]];
|
|
27877
|
+
break;
|
|
27878
|
+
}
|
|
27879
|
+
else {
|
|
27880
|
+
cloneNode = cloneNode.childNodes[nodeIndex[nodeIndex.length - 1]];
|
|
27881
|
+
nodeIndex.pop();
|
|
27882
|
+
}
|
|
27786
27883
|
}
|
|
27787
27884
|
if (nodes[index].nodeName !== 'BR') {
|
|
27885
|
+
while (cloneNode.nodeType === 1 && cloneNode.childNodes.length > 0) {
|
|
27886
|
+
cloneNode = cloneNode.childNodes[0];
|
|
27887
|
+
}
|
|
27788
27888
|
if (cloneNode.nodeType === 3 && !(isCursor && cloneNode.nodeValue === '')) {
|
|
27789
27889
|
nodes[index] = cloneNode;
|
|
27790
27890
|
}
|
|
@@ -27973,12 +28073,6 @@ var SelectionCommands = /** @__PURE__ @class */ (function () {
|
|
|
27973
28073
|
if (!isNullOrUndefined(bgStyle) && bgStyle !== '') {
|
|
27974
28074
|
currentNodeElem.style.backgroundColor = bgStyle;
|
|
27975
28075
|
}
|
|
27976
|
-
if ((format === 'backgroundcolor' && !isNullOrUndefined(fontStyle) && fontStyle !== '') &&
|
|
27977
|
-
currentNodeElem.parentElement.innerHTML === currentNodeElem.outerHTML) {
|
|
27978
|
-
var curParentElem = currentNodeElem.parentElement;
|
|
27979
|
-
curParentElem.parentElement.insertBefore(currentNodeElem, curParentElem);
|
|
27980
|
-
detach(curParentElem);
|
|
27981
|
-
}
|
|
27982
28076
|
if (format === 'fontsize' || format === 'fontcolor') {
|
|
27983
28077
|
var liElement = nodes[index].parentElement;
|
|
27984
28078
|
var parentElement = nodes[index].parentElement;
|
|
@@ -28456,12 +28550,12 @@ var SelectionCommands = /** @__PURE__ @class */ (function () {
|
|
|
28456
28550
|
case 'fontcolor':
|
|
28457
28551
|
liElement.querySelectorAll('span').forEach(function (span) {
|
|
28458
28552
|
colorStyle = span.style.color;
|
|
28459
|
-
if (colorStyle
|
|
28553
|
+
if (SelectionCommands.hasColorsEqual(colorStyle, constVal)) {
|
|
28460
28554
|
result = result + span.textContent;
|
|
28461
28555
|
}
|
|
28462
28556
|
});
|
|
28463
|
-
if (result === value) {
|
|
28464
|
-
liElement.style.color =
|
|
28557
|
+
if (!isNullOrUndefined(result) && !isNullOrUndefined(value) && result !== '' && value !== '' && result.replace(/\s+/g, '') === value.replace(/\s+/g, '')) {
|
|
28558
|
+
liElement.style.color = constVal;
|
|
28465
28559
|
liElement.style.textDecoration = 'inherit';
|
|
28466
28560
|
}
|
|
28467
28561
|
break;
|
|
@@ -28472,8 +28566,8 @@ var SelectionCommands = /** @__PURE__ @class */ (function () {
|
|
|
28472
28566
|
result = result + span.textContent;
|
|
28473
28567
|
}
|
|
28474
28568
|
});
|
|
28475
|
-
if (result === value) {
|
|
28476
|
-
liElement.style.fontSize =
|
|
28569
|
+
if (!isNullOrUndefined(result) && !isNullOrUndefined(value) && result !== '' && value !== '' && result.replace(/\s+/g, '') === value.replace(/\s+/g, '')) {
|
|
28570
|
+
liElement.style.fontSize = constVal;
|
|
28477
28571
|
}
|
|
28478
28572
|
break;
|
|
28479
28573
|
case 'fontname':
|
|
@@ -28484,12 +28578,24 @@ var SelectionCommands = /** @__PURE__ @class */ (function () {
|
|
|
28484
28578
|
result = result + span.textContent;
|
|
28485
28579
|
}
|
|
28486
28580
|
});
|
|
28487
|
-
if (result === value) {
|
|
28488
|
-
liElement.style.fontFamily =
|
|
28581
|
+
if (!isNullOrUndefined(result) && !isNullOrUndefined(value) && result !== '' && value !== '' && result.replace(/\s+/g, '') === value.replace(/\s+/g, '')) {
|
|
28582
|
+
liElement.style.fontFamily = constVal;
|
|
28489
28583
|
}
|
|
28490
28584
|
break;
|
|
28491
28585
|
}
|
|
28492
28586
|
};
|
|
28587
|
+
SelectionCommands.hasColorsEqual = function (color1, color2) {
|
|
28588
|
+
if (isNullOrUndefined(color1) || isNullOrUndefined(color2) || color1.trim() === '' || color2.trim() === '') {
|
|
28589
|
+
return color1 === color2;
|
|
28590
|
+
}
|
|
28591
|
+
if (color1.startsWith('rgb(')) {
|
|
28592
|
+
color1 = color1.replace('rgb(', 'rgba(').slice(0, -1) + ',1)';
|
|
28593
|
+
}
|
|
28594
|
+
if (color2.startsWith('rgb(')) {
|
|
28595
|
+
color2 = color2.replace('rgb(', 'rgba(').slice(0, -1) + ',1)';
|
|
28596
|
+
}
|
|
28597
|
+
return color1.replace(/\s+/g, '') === color2.replace(/\s+/g, '');
|
|
28598
|
+
};
|
|
28493
28599
|
SelectionCommands.enterAction = 'P';
|
|
28494
28600
|
return SelectionCommands;
|
|
28495
28601
|
}());
|
|
@@ -29391,6 +29497,10 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
|
|
|
29391
29497
|
for (var i = 0; i < imgElem.length; i++) {
|
|
29392
29498
|
imgSrc.push(imgElem[i].getAttribute('src'));
|
|
29393
29499
|
imgName.push(imgElem[i].getAttribute('src').split('/')[imgElem[i].getAttribute('src').split('/').length - 1].split('.')[0]);
|
|
29500
|
+
if (!isNullOrUndefined(imgSrc) && imgSrc[i] !== '') {
|
|
29501
|
+
var imgType = imgSrc[i].split('.').pop().toLowerCase();
|
|
29502
|
+
imgElem[i].setAttribute('data-image-type', imgType);
|
|
29503
|
+
}
|
|
29394
29504
|
}
|
|
29395
29505
|
var hexValue = this.hexConversion(rtfData);
|
|
29396
29506
|
for (var i = 0; i < hexValue.length; i++) {
|
|
@@ -30218,9 +30328,22 @@ var MsWordPaste = /** @__PURE__ @class */ (function () {
|
|
|
30218
30328
|
}
|
|
30219
30329
|
}
|
|
30220
30330
|
var listOrder = firstChild.querySelector('span[style="mso-list:Ignore"]');
|
|
30331
|
+
var isEmptyMarkerSpan = isNullOrUndefined(listOrder);
|
|
30332
|
+
listOrder = isEmptyMarkerSpan ? firstChild : listOrder;
|
|
30221
30333
|
if (!isNullOrUndefined(listOrder)) {
|
|
30222
|
-
|
|
30223
|
-
|
|
30334
|
+
var textContent = listOrder.textContent.trim();
|
|
30335
|
+
if (isEmptyMarkerSpan) {
|
|
30336
|
+
var bulletPattern = /^(\d{1,2}|[a-zA-Z]|[*#~•○■])(\.|\)|-)\s*/;
|
|
30337
|
+
var textContentMatch = textContent.match(bulletPattern);
|
|
30338
|
+
if (!isNullOrUndefined(textContentMatch)) {
|
|
30339
|
+
textContent = textContentMatch[0].trim();
|
|
30340
|
+
listOrder.textContent = listOrder.textContent.trim().substring(textContent.length).trim();
|
|
30341
|
+
}
|
|
30342
|
+
}
|
|
30343
|
+
this.listContents.push(textContent);
|
|
30344
|
+
if (!isEmptyMarkerSpan) {
|
|
30345
|
+
detach(listOrder);
|
|
30346
|
+
}
|
|
30224
30347
|
this.removingComments(elem);
|
|
30225
30348
|
this.removeUnwantedElements(elem);
|
|
30226
30349
|
}
|
|
@@ -32253,10 +32376,21 @@ var HtmlEditor = /** @__PURE__ @class */ (function () {
|
|
|
32253
32376
|
// eslint-disable-next-line
|
|
32254
32377
|
lastNode, lastNode.textContent.length);
|
|
32255
32378
|
}
|
|
32256
|
-
|
|
32257
|
-
|
|
32379
|
+
var checkParent = false;
|
|
32380
|
+
if (this.oldRangeElement && this.oldRangeElement.nodeName !== '#text' && this.oldRangeElement.querySelectorAll('BR').length === 1) {
|
|
32381
|
+
var brElement = this.oldRangeElement.querySelector('BR');
|
|
32382
|
+
if (brElement) {
|
|
32383
|
+
var brParentElement = brElement.parentNode;
|
|
32384
|
+
var currentState = this.oldRangeElement.innerHTML;
|
|
32385
|
+
this.parent.formatter.saveData(currentState);
|
|
32386
|
+
detach(brElement);
|
|
32387
|
+
if (brParentElement && brParentElement.childNodes.length === 0) {
|
|
32388
|
+
detach(brParentElement);
|
|
32389
|
+
checkParent = true;
|
|
32390
|
+
}
|
|
32391
|
+
}
|
|
32258
32392
|
}
|
|
32259
|
-
if (!isNullOrUndefined(this.rangeElement) && this.oldRangeElement !== this.rangeElement) {
|
|
32393
|
+
if (!isNullOrUndefined(this.rangeElement) && this.oldRangeElement !== this.rangeElement && !checkParent) {
|
|
32260
32394
|
while (this.rangeElement.firstChild) {
|
|
32261
32395
|
if (this.oldRangeElement.nodeName === '#text') {
|
|
32262
32396
|
this.oldRangeElement.parentElement.appendChild(this.rangeElement.childNodes[0]);
|
|
@@ -32921,6 +33055,7 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
32921
33055
|
var value = null;
|
|
32922
33056
|
var isClipboardHTMLDataNull = false;
|
|
32923
33057
|
var imageproperties;
|
|
33058
|
+
var allowedTypes = this.parent.insertImageSettings.allowedTypes;
|
|
32924
33059
|
if (e.args && !isNullOrUndefined(e.args.clipboardData)) {
|
|
32925
33060
|
value = e.args.clipboardData.getData('text/html');
|
|
32926
33061
|
}
|
|
@@ -32940,6 +33075,14 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
32940
33075
|
(!isNullOrUndefined(e.args.clipboardData.items[1]) ?
|
|
32941
33076
|
e.args.clipboardData.items[1].getAsFile() : null) :
|
|
32942
33077
|
e.args.clipboardData.items[0].getAsFile()) : null;
|
|
33078
|
+
if (file) {
|
|
33079
|
+
var fileNameParts = file.name;
|
|
33080
|
+
var imgType_1 = fileNameParts.substring(fileNameParts.lastIndexOf('.'));
|
|
33081
|
+
if (allowedTypes.every(function (type) { return type.toLowerCase() !== imgType_1; })) {
|
|
33082
|
+
e.args.preventDefault();
|
|
33083
|
+
return;
|
|
33084
|
+
}
|
|
33085
|
+
}
|
|
32943
33086
|
this.parent.notify(paste, {
|
|
32944
33087
|
file: file,
|
|
32945
33088
|
args: e.args,
|
|
@@ -32988,6 +33131,28 @@ var PasteCleanup = /** @__PURE__ @class */ (function () {
|
|
|
32988
33131
|
value = tempDivElem.innerHTML;
|
|
32989
33132
|
var isValueNotEmpty = tempDivElem.textContent !== '' || !isNullOrUndefined(tempDivElem.querySelector('img')) ||
|
|
32990
33133
|
!isNullOrUndefined(tempDivElem.querySelector('table'));
|
|
33134
|
+
var imgElements = tempDivElem.querySelectorAll('img');
|
|
33135
|
+
imgElements.forEach(function (imgElement) {
|
|
33136
|
+
var imageFileFormat;
|
|
33137
|
+
var imgElementSrc = imgElement.getAttribute('src');
|
|
33138
|
+
if (!isNullOrUndefined(imgElementSrc) && imgElementSrc !== '') {
|
|
33139
|
+
if (!isNullOrUndefined(imgElement.getAttribute('data-image-type'))) {
|
|
33140
|
+
imageFileFormat = imgElement.getAttribute('data-image-type');
|
|
33141
|
+
}
|
|
33142
|
+
else if (imgElementSrc.indexOf('base64') > -1 && imgElementSrc.indexOf('data:') > -1) {
|
|
33143
|
+
imageFileFormat = imgElementSrc.split(';')[0].split('/')[1];
|
|
33144
|
+
}
|
|
33145
|
+
else {
|
|
33146
|
+
imageFileFormat = imgElementSrc.split('.').pop().toLowerCase();
|
|
33147
|
+
}
|
|
33148
|
+
if (!isNullOrUndefined(imageFileFormat) &&
|
|
33149
|
+
allowedTypes.every(function (type) { return imageFileFormat !== type.substring(1).toLowerCase(); }) &&
|
|
33150
|
+
imgElementSrc.indexOf('blob') === -1) {
|
|
33151
|
+
detach(imgElement);
|
|
33152
|
+
}
|
|
33153
|
+
}
|
|
33154
|
+
});
|
|
33155
|
+
value = tempDivElem.innerHTML;
|
|
32991
33156
|
this.parent.notify(cleanupResizeElements, {
|
|
32992
33157
|
value: value,
|
|
32993
33158
|
callBack: function (currentValue) {
|
|
@@ -34052,6 +34217,7 @@ var Resize = /** @__PURE__ @class */ (function () {
|
|
|
34052
34217
|
this.parent.on(destroy, this.destroy, this);
|
|
34053
34218
|
};
|
|
34054
34219
|
Resize.prototype.renderResizable = function () {
|
|
34220
|
+
var _this = this;
|
|
34055
34221
|
var enableRtlClass = (this.parent.enableRtl) ? CLS_RTE_RES_WEST : CLS_RTE_RES_EAST;
|
|
34056
34222
|
this.resizer = this.parent.createElement('div', {
|
|
34057
34223
|
id: this.parent.getID() + '-resizable', className: 'e-icons'
|
|
@@ -34064,6 +34230,12 @@ var Resize = /** @__PURE__ @class */ (function () {
|
|
|
34064
34230
|
this.parent.inputElement.classList.add('e-resize-enabled');
|
|
34065
34231
|
this.parent.contentModule.getDocument().addEventListener('mouseup', this.iframeMouseUpBoundFn);
|
|
34066
34232
|
}
|
|
34233
|
+
this.iframeElement = this.parent.contentModule.getDocument().querySelectorAll('iframe');
|
|
34234
|
+
if (!isNullOrUndefined(this.iframeElement)) {
|
|
34235
|
+
this.iframeElement.forEach(function (iframe) {
|
|
34236
|
+
EventHandler.add(iframe.contentDocument, 'mouseup', _this.stopResize, _this);
|
|
34237
|
+
});
|
|
34238
|
+
}
|
|
34067
34239
|
this.touchStartEvent = (Browser.info.name === 'msie') ? 'pointerdown' : 'touchstart';
|
|
34068
34240
|
EventHandler.add(this.resizer, 'mousedown', this.resizeStart, this);
|
|
34069
34241
|
EventHandler.add(this.resizer, this.touchStartEvent, this.resizeStart, this);
|
|
@@ -34162,6 +34334,7 @@ var Resize = /** @__PURE__ @class */ (function () {
|
|
|
34162
34334
|
this.isDestroyed = true;
|
|
34163
34335
|
};
|
|
34164
34336
|
Resize.prototype.removeEventListener = function () {
|
|
34337
|
+
var _this = this;
|
|
34165
34338
|
this.parent.off(initialEnd, this.renderResizable);
|
|
34166
34339
|
this.parent.element.classList.remove(CLS_RTE_RES_CNT);
|
|
34167
34340
|
if (this.parent && this.parent.rootContainer && this.parent.rootContainer.classList.contains('e-resize-enabled')) {
|
|
@@ -34171,6 +34344,11 @@ var Resize = /** @__PURE__ @class */ (function () {
|
|
|
34171
34344
|
this.parent.inputElement.classList.remove('e-resize-enabled');
|
|
34172
34345
|
this.parent.contentModule.getDocument().removeEventListener('mouseup', this.iframeMouseUpBoundFn);
|
|
34173
34346
|
}
|
|
34347
|
+
if (!isNullOrUndefined(this.iframeElement)) {
|
|
34348
|
+
this.iframeElement.forEach(function (iframe) {
|
|
34349
|
+
EventHandler.remove(iframe.contentDocument, 'mouseup', _this.stopResize);
|
|
34350
|
+
});
|
|
34351
|
+
}
|
|
34174
34352
|
if (this.resizer) {
|
|
34175
34353
|
EventHandler.remove(this.resizer, 'mousedown', this.resizeStart);
|
|
34176
34354
|
EventHandler.remove(this.resizer, this.touchStartEvent, this.resizeStart);
|
|
@@ -34183,6 +34361,9 @@ var Resize = /** @__PURE__ @class */ (function () {
|
|
|
34183
34361
|
if (this.isResizing) {
|
|
34184
34362
|
this.stopResize(e);
|
|
34185
34363
|
}
|
|
34364
|
+
else {
|
|
34365
|
+
return;
|
|
34366
|
+
}
|
|
34186
34367
|
};
|
|
34187
34368
|
/**
|
|
34188
34369
|
* For internal use only - Get the module name.
|
|
@@ -40363,5 +40544,5 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
40363
40544
|
return RichTextEditor;
|
|
40364
40545
|
}(Component));
|
|
40365
40546
|
|
|
40366
|
-
export { ACTION, ALIGNMENT_TYPE, ALLOWED_ACTIONKEYS, ALLOWED_TABLE_BLOCK_TAGS, AUDIO, Alignments, Audio, AudioCommand, BLOCKQUOTE_LIST_HANDLE, BLOCK_TAGS, BaseQuickToolbar, BaseToolbar, CLASS_AUDIO, CLASS_AUDIO_BREAK, CLASS_AUDIO_FOCUS, CLASS_AUDIO_INLINE, CLASS_AUDIO_WRAP, CLASS_CAPTION, CLASS_CAPTION_INLINE, CLASS_CLICK_ELEM, CLASS_EMBED_VIDEO_WRAP, CLASS_IMAGE_BREAK, CLASS_IMAGE_CENTER, CLASS_IMAGE_INLINE, CLASS_IMAGE_LEFT, CLASS_IMAGE_RIGHT, CLASS_RTE_CAPTION, CLASS_VIDEO, CLASS_VIDEO_BREAK, CLASS_VIDEO_CENTER, CLASS_VIDEO_CLICK_ELEM, CLASS_VIDEO_FOCUS, CLASS_VIDEO_INLINE, CLASS_VIDEO_LEFT, CLASS_VIDEO_RIGHT, CLASS_VIDEO_WRAP, CLEAR_COMMAND, CLEAR_TYPE, CLS_ACTIVE, CLS_ALIGN_TB_BTN, CLS_AUDIOBREAK, CLS_AUDIOINLINE, CLS_AUDIOWRAP, CLS_AUD_FOCUS, CLS_BACK, CLS_BACKGROUND_COLOR_DROPDOWN, CLS_BACKGROUND_COLOR_PICKER, CLS_BACKGROUND_COLOR_TARGET, CLS_BULLETFORMATLIST_TB_BTN, CLS_CAPINLINE, CLS_CAPTION, CLS_CLICKELEM, CLS_COLOR_CONTENT, CLS_COLOR_PALETTE, CLS_CONTENT, CLS_COUNT, CLS_CUSTOM_TILE, CLS_DISABLED, CLS_DROPAREA, CLS_DROPDOWN_BTN, CLS_DROPDOWN_ICONS, CLS_DROPDOWN_ITEMS, CLS_DROPDOWN_POPUP, CLS_ERROR, CLS_EXPAND_OPEN, CLS_FOCUS, CLS_FONT_COLOR_DROPDOWN, CLS_FONT_COLOR_PICKER, CLS_FONT_COLOR_TARGET, CLS_FONT_NAME_TB_BTN, CLS_FONT_SIZE_TB_BTN, CLS_FORMATS_TB_BTN, CLS_FULL_SCREEN, CLS_HIDE, CLS_HR_SEPARATOR, CLS_ICONS, CLS_IMAGE_POP, CLS_IMGBREAK, CLS_IMGCENTER, CLS_IMGINLINE, CLS_IMGLEFT, CLS_IMGRIGHT, CLS_IMG_FOCUS, CLS_IMG_INNER, CLS_IMG_RESIZE, CLS_INLINE, CLS_INLINE_DROPDOWN, CLS_INLINE_POP, CLS_LIST_PRIMARY_CONTENT, CLS_MAXIMIZE, CLS_MINIMIZE, CLS_NOCOLOR_ITEM, CLS_NUMBERFORMATLIST_TB_BTN, CLS_POP, CLS_POPUP, CLS_POPUP_OPEN, CLS_QUICK_DROPDOWN, CLS_QUICK_POP, CLS_QUICK_TB, CLS_RESIZE, CLS_RM_WHITE_SPACE, CLS_RTE, CLS_RTE_CAPTION, CLS_RTE_CONTAINER, CLS_RTE_CONTENT, CLS_RTE_DIALOG_MIN_HEIGHT, CLS_RTE_DIALOG_UPLOAD, CLS_RTE_DRAG_IMAGE, CLS_RTE_ELEMENTS, CLS_RTE_EXPAND_TB, CLS_RTE_FIXED_TB_EXPAND, CLS_RTE_HIDDEN, CLS_RTE_IMAGE, CLS_RTE_PASTE_CANCEL, CLS_RTE_PASTE_KEEP_FORMAT, CLS_RTE_PASTE_OK, CLS_RTE_PASTE_PLAIN_FORMAT, CLS_RTE_PASTE_REMOVE_FORMAT, CLS_RTE_READONLY, CLS_RTE_RES_CNT, CLS_RTE_RES_EAST, CLS_RTE_RES_HANDLE, CLS_RTE_RES_WEST, CLS_RTE_SOURCE_CODE_TXTAREA, CLS_RTE_TABLE_RESIZE, CLS_RTE_TB_ENABLED, CLS_RTE_UPLOAD_POPUP, CLS_RTL, CLS_SCRIPT_SHEET, CLS_SEPARATOR, CLS_SHOW, CLS_STYLE_SHEET, CLS_TABLE, CLS_TABLE_BORDER, CLS_TABLE_MULTI_CELL, CLS_TABLE_SEL, CLS_TABLE_SEL_END, CLS_TB_ALT_BOR, CLS_TB_BOX_RES, CLS_TB_BTN, CLS_TB_COL_RES, CLS_TB_DASH_BOR, CLS_TB_EXTENDED, CLS_TB_FIXED, CLS_TB_FLOAT, CLS_TB_INLINE, CLS_TB_IOS_FIX, CLS_TB_ITEM, CLS_TB_ROW_RES, CLS_TB_STATIC, CLS_TB_WRAP, CLS_TEXT_POP, CLS_TEXT_QUICK_TB, CLS_TOOLBAR, CLS_UPLOAD_FILES, CLS_VIDEOBREAK, CLS_VIDEOINLINE, CLS_VIDEOWRAP, CLS_VID_CLICK_ELEM, CLS_VID_FOCUS, CLS_VISIBLE, CLS_WARNING, ClearFormat, ClearFormatExec, ColorPickerInput, ContentRender, Count, DEFAULT_TAG, DELETECOLUMN, DELETEROW, DESTROY, DOMNode, DialogRenderer, DialogType, DropDownButtons, EMOJI_PICKER_ACTIONS, EditorManager, EmojiPicker, EmojiPickerAction, ExecCommandCallBack, FORMAT_PAINTER_ACTIONS, FORMAT_TYPE, FileManager, FormatPainter, FormatPainterActions, Formats, Formatter, FullScreen, HTMLFormatter, HtmlEditor, HtmlToolbarStatus, IGNORE_BLOCK_TAGS, IMAGE, INDENT_TYPE, INSERTHTML_TYPE, INSERT_COLUMN, INSERT_ROW, INSERT_TEXT_COMMAND, INSERT_TEXT_TYPE, INTERNAL_DESTROY, IframeContentRender, Image$1 as Image, ImageCommand, ImageInputSource, ImportExport, Indents, InsertHtml, InsertHtmlExec, InsertMethods, InsertTextExec, IsFormatted, KEY_DOWN, KEY_DOWN_HANDLER, KEY_UP, KEY_UP_HANDLER, KeyboardEvents, LINK, LINK_COMMAND, LISTS_COMMAND, LIST_TYPE, Link, LinkCommand, Lists, MDFormats, MDLink, MDLists, MDSelectionFormats, MDTable, MD_TABLE, MODEL_CHANGED, MODEL_CHANGED_PLUGIN, MOUSE_DOWN, MS_WORD_CLEANUP, MS_WORD_CLEANUP_PLUGIN, MarkdownEditor, MarkdownFormatter, MarkdownParser, MarkdownRender, MarkdownSelection, MarkdownToolbarStatus, MsWordPaste, NodeCutter, NodeSelection, ON_BEGIN, PASTE_SOURCE, PasteCleanup, PopupRenderer, QuickToolbar, REMOVETABLE, Render, RenderType, RendererFactory, Resize, RichTextEditor, SELECTION_TYPE, SELF_CLOSING_TAGS, SPACE_ACTION, SelectionBasedExec, SelectionCommands, ServiceLocator, SlashMenu, TABLE, TABLEHEADER, TABLE_BLOCK_TAGS, TABLE_HORIZONTAL_SPLIT, TABLE_MERGE, TABLE_MOVE, TABLE_VERTICAL_ALIGN, TABLE_VERTICAL_SPLIT, Table, TableCommand, Toolbar, ToolbarAction, ToolbarRenderer, ToolbarStatus, ToolbarType, UndoRedoCommands, UndoRedoManager, VIDEO, Video, VideoCommand, ViewSource, XhtmlValidation, actionBegin, actionComplete, actionSuccess, afterImageDelete, afterKeyDown, afterMediaDelete, afterPasteCleanup, audioDelete, audioToolbarAction, autoResize, beforeDialogClose, beforeDialogOpen, beforeDropDownItemRender, beforeDropDownOpen, beforeFileUpload, beforeImageDrop, beforeImageUpload, beforePasteCleanup, beforeQuickToolbarOpen, bindCssClass, bindOnEnd, blockEmptyNodes, checkUndo, cleanupResizeElements, clearDialogObj, closeAudioDialog, closeImageDialog, closeLinkDialog, closeTableDialog, closeTooltip, closeVideoDialog, colorPickerChanged, contentBlur, contentChanged, contentFocus, contentscroll, conversionFactors, convertToBlob, count, createTable, created, decode, destroy, destroyTooltip, destroyed, dialogClose, dialogOpen, disableFullScreen, dispatchEvent, docClick, documentClickClosedBy, drop, dropDownSelect, dynamicModule, editAreaClick, editLink, emojiPicker, enableFullScreen, enterHandler, execCommandCallBack, executeGroup, expandPopupClick, fileRemoving, fileSelected, fileUploadFailed, fileUploadSuccess, fileUploading, focusChange, formatPainterClick, formatPainterDoubleClick, getCollection, getDefaultValue, getDropDownValue, getEditValue, getFormattedFontSize, getIndex, getLocaleFontFormat, getSelectedHtml, getTBarItemsIndex, getTextNodesUnder, getTooltipText, hasClass, hidePopup, htmlKeyConfig, htmlToolbarClick, iframeMouseDown, imageAlt, imageBreak, imageCaption, imageCenter, imageDelete, imageInline, imageLeft, imageLink, imageRemoving, imageResizeFactor, imageRight, imageSelected, imageSize, imageToolbarAction, imageUploadFailed, imageUploadSuccess, imageUploading, imgModule, initialEnd, initialLoad, inlineEmptyNodes, insertAudio, insertCompleted, insertImage, insertLink, insertVideo, isEditableValueEmpty, isIDevice, keyDown, keyUp, linkToolbarAction, listConversionFilters, load, markdownFormatTags, markdownKeyConfig, markdownListsTags, markdownSelectionTags, markdownToolbarClick, markerClassName, mentionRestrictKeys, modelChanged, mouseDown, mouseUp, onExport, onHandleFontsizeChange, onImport, onResize, openLink, pageYOffset, parseHtml, paste, pasteClean, pasteCleanupGroupingTags, popupHide, quickToolbarClose, quickToolbarOpen, readOnlyMode, redo, refreshBegin, renderFileManager, renderInlineToolbar, resizeInitialized, resizeStart, resizeStop, rtlMode, sanitizeHelper, scroll, selectAll, selectRange, selectionCommand, selectionRestore, selectionSave, selfClosingTags, setAttributes, setToolbarStatus, showAudioDialog, showColorPicker, showImageDialog, showLinkDialog, showTableDialog, showVideoDialog, sourceCode, sourceCodeMouseDown, statusCollection, supportedUnits, tableColorPickerChanged, tableModulekeyUp, tableToolbarAction, tableclass, toObjectLowerCase, toolbarClick, toolbarCreated, toolbarOpen, toolbarRefresh, toolbarRenderComplete, toolbarUpdated, unLink, undo, updateDropDownFontFormatLocale, updateSource, updateTbItemsStatus, updateTextNode, updateToolbarItem, updateUndoRedoStatus, updateValueOnIdle, updatedToolbarStatus, videoDelete, videoSize, videoToolbarAction, windowResize, xhtmlValidation };
|
|
40547
|
+
export { ACTION, ALIGNMENT_TYPE, ALLOWED_ACTIONKEYS, ALLOWED_TABLE_BLOCK_TAGS, AUDIO, Alignments, Audio, AudioCommand, BLOCKQUOTE_LIST_HANDLE, BLOCK_TAGS, BaseQuickToolbar, BaseToolbar, CLASS_AUDIO, CLASS_AUDIO_BREAK, CLASS_AUDIO_FOCUS, CLASS_AUDIO_INLINE, CLASS_AUDIO_WRAP, CLASS_CAPTION, CLASS_CAPTION_INLINE, CLASS_CLICK_ELEM, CLASS_EMBED_VIDEO_WRAP, CLASS_IMAGE_BREAK, CLASS_IMAGE_CENTER, CLASS_IMAGE_INLINE, CLASS_IMAGE_LEFT, CLASS_IMAGE_RIGHT, CLASS_RTE_CAPTION, CLASS_VIDEO, CLASS_VIDEO_BREAK, CLASS_VIDEO_CENTER, CLASS_VIDEO_CLICK_ELEM, CLASS_VIDEO_FOCUS, CLASS_VIDEO_INLINE, CLASS_VIDEO_LEFT, CLASS_VIDEO_RIGHT, CLASS_VIDEO_WRAP, CLEAR_COMMAND, CLEAR_TYPE, CLS_ACTIVE, CLS_ALIGN_TB_BTN, CLS_AUDIOBREAK, CLS_AUDIOINLINE, CLS_AUDIOWRAP, CLS_AUD_FOCUS, CLS_BACK, CLS_BACKGROUND_COLOR_DROPDOWN, CLS_BACKGROUND_COLOR_PICKER, CLS_BACKGROUND_COLOR_TARGET, CLS_BULLETFORMATLIST_TB_BTN, CLS_CAPINLINE, CLS_CAPTION, CLS_CLICKELEM, CLS_COLOR_CONTENT, CLS_COLOR_PALETTE, CLS_CONTENT, CLS_COUNT, CLS_CUSTOM_TILE, CLS_DISABLED, CLS_DROPAREA, CLS_DROPDOWN_BTN, CLS_DROPDOWN_ICONS, CLS_DROPDOWN_ITEMS, CLS_DROPDOWN_POPUP, CLS_ERROR, CLS_EXPAND_OPEN, CLS_FOCUS, CLS_FONT_COLOR_DROPDOWN, CLS_FONT_COLOR_PICKER, CLS_FONT_COLOR_TARGET, CLS_FONT_NAME_TB_BTN, CLS_FONT_SIZE_TB_BTN, CLS_FORMATS_TB_BTN, CLS_FULL_SCREEN, CLS_HIDE, CLS_HR_SEPARATOR, CLS_ICONS, CLS_IMAGE_POP, CLS_IMGBREAK, CLS_IMGCENTER, CLS_IMGINLINE, CLS_IMGLEFT, CLS_IMGRIGHT, CLS_IMG_FOCUS, CLS_IMG_INNER, CLS_IMG_RESIZE, CLS_INLINE, CLS_INLINE_DROPDOWN, CLS_INLINE_POP, CLS_LIST_PRIMARY_CONTENT, CLS_MAXIMIZE, CLS_MINIMIZE, CLS_NOCOLOR_ITEM, CLS_NUMBERFORMATLIST_TB_BTN, CLS_POP, CLS_POPUP, CLS_POPUP_OPEN, CLS_QUICK_DROPDOWN, CLS_QUICK_POP, CLS_QUICK_TB, CLS_RESIZE, CLS_RM_WHITE_SPACE, CLS_RTE, CLS_RTE_CAPTION, CLS_RTE_CONTAINER, CLS_RTE_CONTENT, CLS_RTE_DIALOG_MIN_HEIGHT, CLS_RTE_DIALOG_UPLOAD, CLS_RTE_DRAG_IMAGE, CLS_RTE_ELEMENTS, CLS_RTE_EXPAND_TB, CLS_RTE_FIXED_TB_EXPAND, CLS_RTE_HIDDEN, CLS_RTE_IMAGE, CLS_RTE_PASTE_CANCEL, CLS_RTE_PASTE_KEEP_FORMAT, CLS_RTE_PASTE_OK, CLS_RTE_PASTE_PLAIN_FORMAT, CLS_RTE_PASTE_REMOVE_FORMAT, CLS_RTE_READONLY, CLS_RTE_RES_CNT, CLS_RTE_RES_EAST, CLS_RTE_RES_HANDLE, CLS_RTE_RES_WEST, CLS_RTE_SOURCE_CODE_TXTAREA, CLS_RTE_TABLE_RESIZE, CLS_RTE_TB_ENABLED, CLS_RTE_UPLOAD_POPUP, CLS_RTL, CLS_SCRIPT_SHEET, CLS_SEPARATOR, CLS_SHOW, CLS_STYLE_SHEET, CLS_TABLE, CLS_TABLE_BORDER, CLS_TABLE_MULTI_CELL, CLS_TABLE_SEL, CLS_TABLE_SEL_END, CLS_TB_ALT_BOR, CLS_TB_BOX_RES, CLS_TB_BTN, CLS_TB_COL_RES, CLS_TB_DASH_BOR, CLS_TB_EXTENDED, CLS_TB_FIXED, CLS_TB_FLOAT, CLS_TB_INLINE, CLS_TB_IOS_FIX, CLS_TB_ITEM, CLS_TB_ROW_RES, CLS_TB_STATIC, CLS_TB_WRAP, CLS_TEXT_POP, CLS_TEXT_QUICK_TB, CLS_TOOLBAR, CLS_UPLOAD_FILES, CLS_VIDEOBREAK, CLS_VIDEOINLINE, CLS_VIDEOWRAP, CLS_VID_CLICK_ELEM, CLS_VID_FOCUS, CLS_VISIBLE, CLS_WARNING, ClearFormat, ClearFormatExec, ColorPickerInput, ContentRender, Count, DEFAULT_TAG, DELETECOLUMN, DELETEROW, DESTROY, DOMNode, DialogRenderer, DialogType, DropDownButtons, EMOJI_PICKER_ACTIONS, EditorManager, EmojiPicker, EmojiPickerAction, ExecCommandCallBack, FORMAT_PAINTER_ACTIONS, FORMAT_TYPE, FileManager, FormatPainter, FormatPainterActions, Formats, Formatter, FullScreen, HTMLFormatter, HtmlEditor, HtmlToolbarStatus, IGNORE_BLOCK_TAGS, IMAGE, INDENT_TYPE, INSERTHTML_TYPE, INSERT_COLUMN, INSERT_ROW, INSERT_TEXT_COMMAND, INSERT_TEXT_TYPE, INTERNAL_DESTROY, IframeContentRender, Image$1 as Image, ImageCommand, ImageInputSource, ImportExport, Indents, InsertHtml, InsertHtmlExec, InsertMethods, InsertTextExec, IsFormatted, KEY_DOWN, KEY_DOWN_HANDLER, KEY_UP, KEY_UP_HANDLER, KeyboardEvents, LINK, LINK_COMMAND, LISTS_COMMAND, LIST_TYPE, Link, LinkCommand, Lists, MDFormats, MDLink, MDLists, MDSelectionFormats, MDTable, MD_TABLE, MODEL_CHANGED, MODEL_CHANGED_PLUGIN, MOUSE_DOWN, MS_WORD_CLEANUP, MS_WORD_CLEANUP_PLUGIN, MarkdownEditor, MarkdownFormatter, MarkdownParser, MarkdownRender, MarkdownSelection, MarkdownToolbarStatus, MsWordPaste, NodeCutter, NodeSelection, ON_BEGIN, PASTE_SOURCE, PasteCleanup, PopupRenderer, QuickToolbar, REMOVETABLE, Render, RenderType, RendererFactory, Resize, RichTextEditor, SELECTION_TYPE, SELF_CLOSING_TAGS, SPACE_ACTION, SelectionBasedExec, SelectionCommands, ServiceLocator, SlashMenu, TABLE, TABLEHEADER, TABLE_BLOCK_TAGS, TABLE_HORIZONTAL_SPLIT, TABLE_MERGE, TABLE_MOVE, TABLE_VERTICAL_ALIGN, TABLE_VERTICAL_SPLIT, Table, TableCommand, Toolbar, ToolbarAction, ToolbarRenderer, ToolbarStatus, ToolbarType, UndoRedoCommands, UndoRedoManager, VIDEO, Video, VideoCommand, ViewSource, XhtmlValidation, actionBegin, actionComplete, actionSuccess, afterImageDelete, afterKeyDown, afterMediaDelete, afterPasteCleanup, audioDelete, audioToolbarAction, autoResize, beforeDialogClose, beforeDialogOpen, beforeDropDownItemRender, beforeDropDownOpen, beforeFileUpload, beforeImageDrop, beforeImageUpload, beforePasteCleanup, beforeQuickToolbarOpen, bindCssClass, bindOnEnd, blockEmptyNodes, checkUndo, cleanupResizeElements, clearDialogObj, closeAudioDialog, closeImageDialog, closeLinkDialog, closeTableDialog, closeTooltip, closeVideoDialog, colorPickerChanged, contentBlur, contentChanged, contentFocus, contentscroll, conversionFactors, convertToBlob, count, createTable, created, decode, destroy, destroyTooltip, destroyed, dialogClose, dialogOpen, disableFullScreen, dispatchEvent, docClick, documentClickClosedBy, drop, dropDownSelect, dynamicModule, editAreaClick, editLink, emojiPicker, enableFullScreen, enterHandler, execCommandCallBack, executeGroup, expandPopupClick, fileRemoving, fileSelected, fileUploadFailed, fileUploadSuccess, fileUploading, focusChange, formatPainterClick, formatPainterDoubleClick, getCollection, getDefaultValue, getDropDownValue, getEditValue, getFormattedFontSize, getIndex, getLocaleFontFormat, getSelectedHtml, getTBarItemsIndex, getTextNodesUnder, getTooltipText, hasClass, hidePopup, htmlKeyConfig, htmlToolbarClick, iframeMouseDown, imageAlt, imageBreak, imageCaption, imageCenter, imageDelete, imageInline, imageLeft, imageLink, imageRemoving, imageResizeFactor, imageRight, imageSelected, imageSize, imageToolbarAction, imageUploadFailed, imageUploadSuccess, imageUploading, imgModule, initialEnd, initialLoad, inlineEmptyNodes, insertAudio, insertCompleted, insertImage, insertLink, insertVideo, isEditableValueEmpty, isIDevice, keyDown, keyUp, linkToolbarAction, listConversionFilters, load, markdownFormatTags, markdownKeyConfig, markdownListsTags, markdownSelectionTags, markdownToolbarClick, markerClassName, mentionRestrictKeys, modelChanged, mouseDown, mouseUp, onExport, onHandleFontsizeChange, onImport, onResize, openLink, pageYOffset, parseHelper, parseHtml, paste, pasteClean, pasteCleanupGroupingTags, popupHide, quickToolbarClose, quickToolbarOpen, readOnlyMode, redo, refreshBegin, renderFileManager, renderInlineToolbar, resizeInitialized, resizeStart, resizeStop, rtlMode, sanitizeHelper, scroll, selectAll, selectRange, selectionCommand, selectionRestore, selectionSave, selfClosingTags, setAttributes, setToolbarStatus, showAudioDialog, showColorPicker, showImageDialog, showLinkDialog, showTableDialog, showVideoDialog, sourceCode, sourceCodeMouseDown, statusCollection, supportedUnits, tableColorPickerChanged, tableModulekeyUp, tableToolbarAction, tableclass, toObjectLowerCase, toolbarClick, toolbarCreated, toolbarOpen, toolbarRefresh, toolbarRenderComplete, toolbarUpdated, unLink, undo, updateDropDownFontFormatLocale, updateSource, updateTbItemsStatus, updateTextNode, updateToolbarItem, updateUndoRedoStatus, updateValueOnIdle, updatedToolbarStatus, videoDelete, videoSize, videoToolbarAction, windowResize, xhtmlValidation };
|
|
40367
40548
|
//# sourceMappingURL=ej2-richtexteditor.es5.js.map
|