@syncfusion/ej2-richtexteditor 20.2.46 → 20.2.49
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 +16 -0
- package/dist/ej2-richtexteditor.umd.min.js +2 -2
- package/dist/ej2-richtexteditor.umd.min.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es2015.js +7 -4
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +9 -5
- 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 +9 -9
- package/src/editor-manager/plugin/inserthtml.js +2 -2
- package/src/rich-text-editor/base/interface.d.ts +2 -0
- package/src/rich-text-editor/base/rich-text-editor.d.ts +1 -0
- package/src/rich-text-editor/base/rich-text-editor.js +7 -3
- package/styles/fluent-dark.css +1 -0
- package/styles/fluent.css +1 -0
- package/styles/rich-text-editor/_layout.scss +3 -0
- package/styles/rich-text-editor/fluent-dark.css +1 -0
- package/styles/rich-text-editor/fluent.css +1 -0
|
@@ -12660,7 +12660,7 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
12660
12660
|
InsertHtml.getNodeCollection = function (range, nodeSelection, node) {
|
|
12661
12661
|
var nodes = [];
|
|
12662
12662
|
if (range.startOffset === range.endOffset && range.startContainer === range.endContainer &&
|
|
12663
|
-
range.startContainer.nodeName != 'BR' &&
|
|
12663
|
+
range.startContainer.nodeName != 'BR' && range.startContainer.childNodes.length > 0 &&
|
|
12664
12664
|
(range.startContainer.nodeName === 'TD' || (range.startContainer.nodeType !== 3 &&
|
|
12665
12665
|
node.classList && node.classList.contains('pasteContent')))) {
|
|
12666
12666
|
nodes.push(range.startContainer.childNodes[range.endOffset]);
|
|
@@ -12713,7 +12713,7 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
12713
12713
|
node.firstElementChild.insertAdjacentElement('afterend', liNode);
|
|
12714
12714
|
}
|
|
12715
12715
|
}
|
|
12716
|
-
if (blockNode.nodeName === 'TD' || blockNode.nodeName === 'TH') {
|
|
12716
|
+
if (blockNode.nodeName === 'TD' || blockNode.nodeName === 'TH' || blockNode.nodeName === 'TR') {
|
|
12717
12717
|
var tempSpan = createElement('span', { className: 'tempSpan' });
|
|
12718
12718
|
range.insertNode(tempSpan);
|
|
12719
12719
|
tempSpan.parentNode.replaceChild(node, tempSpan);
|
|
@@ -25609,7 +25609,9 @@ var __decorate$1 = (undefined && undefined.__decorate) || function (decorators,
|
|
|
25609
25609
|
var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
25610
25610
|
__extends$4(RichTextEditor, _super);
|
|
25611
25611
|
function RichTextEditor(options, element) {
|
|
25612
|
-
|
|
25612
|
+
var _this = _super.call(this, options, element) || this;
|
|
25613
|
+
_this.needsID = true;
|
|
25614
|
+
return _this;
|
|
25613
25615
|
}
|
|
25614
25616
|
/**
|
|
25615
25617
|
* To provide the array of modules needed for component rendering
|
|
@@ -25694,7 +25696,6 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
25694
25696
|
this.isFocusOut = false;
|
|
25695
25697
|
this.isRTE = false;
|
|
25696
25698
|
this.isBlur = true;
|
|
25697
|
-
this.needsID = true;
|
|
25698
25699
|
this.defaultResetValue = null;
|
|
25699
25700
|
this.isResizeInitialized = false;
|
|
25700
25701
|
};
|
|
@@ -27419,6 +27420,7 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
27419
27420
|
}
|
|
27420
27421
|
this.setProperties({ value: this.getUpdatedValue() }, true);
|
|
27421
27422
|
this.valueContainer.value = this.value;
|
|
27423
|
+
this.isValueChangeBlurhandler = false;
|
|
27422
27424
|
this.invokeChangeEvent();
|
|
27423
27425
|
};
|
|
27424
27426
|
RichTextEditor.prototype.updateIntervalValue = function () {
|
|
@@ -27474,6 +27476,7 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
27474
27476
|
var value = this.getUpdatedValue();
|
|
27475
27477
|
this.setProperties({ value: value });
|
|
27476
27478
|
this.notify(toolbarRefresh, { args: e, documentNode: document });
|
|
27479
|
+
this.isValueChangeBlurhandler = true;
|
|
27477
27480
|
this.invokeChangeEvent();
|
|
27478
27481
|
this.isFocusOut = true;
|
|
27479
27482
|
this.isBlur = false;
|
|
@@ -27521,7 +27524,8 @@ var RichTextEditor = /** @__PURE__ @class */ (function (_super) {
|
|
|
27521
27524
|
currentValue = this.value;
|
|
27522
27525
|
}
|
|
27523
27526
|
var eventArgs = {
|
|
27524
|
-
value: currentValue
|
|
27527
|
+
value: currentValue,
|
|
27528
|
+
isInteracted: this.isValueChangeBlurhandler
|
|
27525
27529
|
};
|
|
27526
27530
|
if (this.value !== this.cloneValue) {
|
|
27527
27531
|
this.trigger('change', eventArgs);
|