@syncfusion/ej2-richtexteditor 28.1.33 → 28.1.35
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 +24 -7
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +24 -7
- 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 +7 -7
- package/src/editor-manager/plugin/inserthtml.js +15 -4
- package/src/rich-text-editor/renderer/toolbar-renderer.js +9 -3
- package/styles/bds-lite.css +8 -2
- package/styles/bds.css +8 -2
- package/styles/bootstrap-dark-lite.css +8 -2
- package/styles/bootstrap-dark.css +8 -2
- package/styles/bootstrap-lite.css +8 -2
- package/styles/bootstrap.css +8 -2
- package/styles/bootstrap4-lite.css +8 -2
- package/styles/bootstrap4.css +8 -2
- package/styles/bootstrap5-dark-lite.css +8 -2
- package/styles/bootstrap5-dark.css +8 -2
- package/styles/bootstrap5-lite.css +8 -2
- package/styles/bootstrap5.3-lite.css +8 -2
- package/styles/bootstrap5.3.css +8 -2
- package/styles/bootstrap5.css +8 -2
- package/styles/fabric-dark-lite.css +8 -2
- package/styles/fabric-dark.css +8 -2
- package/styles/fabric-lite.css +8 -2
- package/styles/fabric.css +8 -2
- package/styles/fluent-dark-lite.css +8 -2
- package/styles/fluent-dark.css +8 -2
- package/styles/fluent-lite.css +8 -2
- package/styles/fluent.css +8 -2
- package/styles/fluent2-lite.css +8 -2
- package/styles/fluent2.css +8 -2
- package/styles/highcontrast-light-lite.css +8 -2
- package/styles/highcontrast-light.css +8 -2
- package/styles/highcontrast-lite.css +8 -2
- package/styles/highcontrast.css +8 -2
- package/styles/material-dark-lite.css +8 -2
- package/styles/material-dark.css +8 -2
- package/styles/material-lite.css +8 -2
- package/styles/material.css +8 -2
- package/styles/material3-dark-lite.css +8 -2
- package/styles/material3-dark.css +8 -2
- package/styles/material3-lite.css +8 -2
- package/styles/material3.css +8 -2
- package/styles/rich-text-editor/_layout.scss +6 -5
- package/styles/rich-text-editor/_tailwind3-definition.scss +1 -1
- package/styles/rich-text-editor/bds.css +8 -2
- package/styles/rich-text-editor/bootstrap-dark.css +8 -2
- package/styles/rich-text-editor/bootstrap.css +8 -2
- package/styles/rich-text-editor/bootstrap4.css +8 -2
- package/styles/rich-text-editor/bootstrap5-dark.css +8 -2
- package/styles/rich-text-editor/bootstrap5.3.css +8 -2
- package/styles/rich-text-editor/bootstrap5.css +8 -2
- package/styles/rich-text-editor/fabric-dark.css +8 -2
- package/styles/rich-text-editor/fabric.css +8 -2
- package/styles/rich-text-editor/fluent-dark.css +8 -2
- package/styles/rich-text-editor/fluent.css +8 -2
- package/styles/rich-text-editor/fluent2.css +8 -2
- package/styles/rich-text-editor/highcontrast-light.css +8 -2
- package/styles/rich-text-editor/highcontrast.css +8 -2
- package/styles/rich-text-editor/material-dark.css +8 -2
- package/styles/rich-text-editor/material.css +8 -2
- package/styles/rich-text-editor/material3-dark.css +8 -2
- package/styles/rich-text-editor/material3.css +8 -2
- package/styles/rich-text-editor/tailwind-dark.css +8 -2
- package/styles/rich-text-editor/tailwind.css +8 -2
- package/styles/rich-text-editor/tailwind3.css +13 -8
- package/styles/tailwind-dark-lite.css +8 -2
- package/styles/tailwind-dark.css +8 -2
- package/styles/tailwind-lite.css +8 -2
- package/styles/tailwind.css +8 -2
- package/styles/tailwind3-lite.css +13 -8
- package/styles/tailwind3.css +13 -8
|
@@ -5937,7 +5937,9 @@ var ToolbarRenderer = /** @__PURE__ @class */ (function () {
|
|
|
5937
5937
|
args.cancel = true;
|
|
5938
5938
|
return;
|
|
5939
5939
|
}
|
|
5940
|
-
|
|
5940
|
+
if (Browser.info.name === 'safari') {
|
|
5941
|
+
proxy.parent.notify(selectionRestore, {});
|
|
5942
|
+
}
|
|
5941
5943
|
var element = (args.event) ? args.event.target : null;
|
|
5942
5944
|
proxy.currentElement = dropDown.element;
|
|
5943
5945
|
proxy.currentDropdown = dropDown;
|
|
@@ -5965,10 +5967,14 @@ var ToolbarRenderer = /** @__PURE__ @class */ (function () {
|
|
|
5965
5967
|
args.element.tabIndex = -1;
|
|
5966
5968
|
dropDown.element.removeAttribute('type');
|
|
5967
5969
|
dropDown.element.onmousedown = function () {
|
|
5968
|
-
|
|
5970
|
+
if (Browser.info.name === 'safari') {
|
|
5971
|
+
proxy.parent.notify(selectionSave, {});
|
|
5972
|
+
}
|
|
5969
5973
|
};
|
|
5970
5974
|
dropDown.element.onkeydown = function () {
|
|
5971
|
-
|
|
5975
|
+
if (Browser.info.name === 'safari') {
|
|
5976
|
+
proxy.parent.notify(selectionSave, {});
|
|
5977
|
+
}
|
|
5972
5978
|
};
|
|
5973
5979
|
return dropDown;
|
|
5974
5980
|
};
|
|
@@ -21701,7 +21707,7 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
21701
21707
|
InsertHtml.pasteInsertHTML = function (nodes, node, range, nodeSelection, nodeCutter, docElement, isCollapsed, closestParentNode, editNode, enterAction) {
|
|
21702
21708
|
var isCursor = range.startOffset === range.endOffset &&
|
|
21703
21709
|
range.startContainer === range.endContainer;
|
|
21704
|
-
if (isCursor && range.startContainer === editNode && editNode.textContent === '') {
|
|
21710
|
+
if (isCursor && range.startContainer === editNode && editNode.textContent === '' && range.startOffset === 0 && range.endOffset === 0) {
|
|
21705
21711
|
var currentBlockNode = this.getImmediateBlockNode(nodes[nodes.length - 1], editNode);
|
|
21706
21712
|
nodeSelection.setSelectionText(docElement, currentBlockNode, currentBlockNode, 0, 0);
|
|
21707
21713
|
range = nodeSelection.getRange(docElement);
|
|
@@ -22092,9 +22098,20 @@ var InsertHtml = /** @__PURE__ @class */ (function () {
|
|
|
22092
22098
|
}
|
|
22093
22099
|
}
|
|
22094
22100
|
if (blockNode && blockNode.nodeName === 'TD' || blockNode.nodeName === 'TH' || blockNode.nodeName === 'TR') {
|
|
22095
|
-
var
|
|
22096
|
-
|
|
22097
|
-
|
|
22101
|
+
var parentElem = range.startContainer;
|
|
22102
|
+
while (!isNullOrUndefined(parentElem) && parentElem.parentElement !== blockNode) {
|
|
22103
|
+
parentElem = parentElem.parentElement;
|
|
22104
|
+
}
|
|
22105
|
+
range.deleteContents();
|
|
22106
|
+
var splitedElm = nodeCutter.GetSpliceNode(range, parentElem);
|
|
22107
|
+
if (splitedElm) {
|
|
22108
|
+
splitedElm.parentNode.replaceChild(node, splitedElm);
|
|
22109
|
+
}
|
|
22110
|
+
else {
|
|
22111
|
+
range.insertNode(node);
|
|
22112
|
+
}
|
|
22113
|
+
this.contentsDeleted = true;
|
|
22114
|
+
return;
|
|
22098
22115
|
}
|
|
22099
22116
|
else {
|
|
22100
22117
|
var nodeSelection = new NodeSelection(editNode);
|