@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
|
@@ -5928,7 +5928,9 @@ class ToolbarRenderer {
|
|
|
5928
5928
|
args.cancel = true;
|
|
5929
5929
|
return;
|
|
5930
5930
|
}
|
|
5931
|
-
|
|
5931
|
+
if (Browser.info.name === 'safari') {
|
|
5932
|
+
proxy.parent.notify(selectionRestore, {});
|
|
5933
|
+
}
|
|
5932
5934
|
const element = (args.event) ? args.event.target : null;
|
|
5933
5935
|
proxy.currentElement = dropDown.element;
|
|
5934
5936
|
proxy.currentDropdown = dropDown;
|
|
@@ -5956,10 +5958,14 @@ class ToolbarRenderer {
|
|
|
5956
5958
|
args.element.tabIndex = -1;
|
|
5957
5959
|
dropDown.element.removeAttribute('type');
|
|
5958
5960
|
dropDown.element.onmousedown = () => {
|
|
5959
|
-
|
|
5961
|
+
if (Browser.info.name === 'safari') {
|
|
5962
|
+
proxy.parent.notify(selectionSave, {});
|
|
5963
|
+
}
|
|
5960
5964
|
};
|
|
5961
5965
|
dropDown.element.onkeydown = () => {
|
|
5962
|
-
|
|
5966
|
+
if (Browser.info.name === 'safari') {
|
|
5967
|
+
proxy.parent.notify(selectionSave, {});
|
|
5968
|
+
}
|
|
5963
5969
|
};
|
|
5964
5970
|
return dropDown;
|
|
5965
5971
|
}
|
|
@@ -22101,7 +22107,7 @@ class InsertHtml {
|
|
|
22101
22107
|
static pasteInsertHTML(nodes, node, range, nodeSelection, nodeCutter, docElement, isCollapsed, closestParentNode, editNode, enterAction) {
|
|
22102
22108
|
const isCursor = range.startOffset === range.endOffset &&
|
|
22103
22109
|
range.startContainer === range.endContainer;
|
|
22104
|
-
if (isCursor && range.startContainer === editNode && editNode.textContent === '') {
|
|
22110
|
+
if (isCursor && range.startContainer === editNode && editNode.textContent === '' && range.startOffset === 0 && range.endOffset === 0) {
|
|
22105
22111
|
const currentBlockNode = this.getImmediateBlockNode(nodes[nodes.length - 1], editNode);
|
|
22106
22112
|
nodeSelection.setSelectionText(docElement, currentBlockNode, currentBlockNode, 0, 0);
|
|
22107
22113
|
range = nodeSelection.getRange(docElement);
|
|
@@ -22488,9 +22494,20 @@ class InsertHtml {
|
|
|
22488
22494
|
}
|
|
22489
22495
|
}
|
|
22490
22496
|
if (blockNode && blockNode.nodeName === 'TD' || blockNode.nodeName === 'TH' || blockNode.nodeName === 'TR') {
|
|
22491
|
-
|
|
22492
|
-
|
|
22493
|
-
|
|
22497
|
+
let parentElem = range.startContainer;
|
|
22498
|
+
while (!isNullOrUndefined(parentElem) && parentElem.parentElement !== blockNode) {
|
|
22499
|
+
parentElem = parentElem.parentElement;
|
|
22500
|
+
}
|
|
22501
|
+
range.deleteContents();
|
|
22502
|
+
const splitedElm = nodeCutter.GetSpliceNode(range, parentElem);
|
|
22503
|
+
if (splitedElm) {
|
|
22504
|
+
splitedElm.parentNode.replaceChild(node, splitedElm);
|
|
22505
|
+
}
|
|
22506
|
+
else {
|
|
22507
|
+
range.insertNode(node);
|
|
22508
|
+
}
|
|
22509
|
+
this.contentsDeleted = true;
|
|
22510
|
+
return;
|
|
22494
22511
|
}
|
|
22495
22512
|
else {
|
|
22496
22513
|
const nodeSelection = new NodeSelection(editNode);
|