@syncfusion/ej2-richtexteditor 26.2.12 → 26.2.13
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 +8 -5
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +8 -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 +6 -6
- package/src/editor-manager/plugin/formats.js +1 -1
- package/src/editor-manager/plugin/inserthtml.js +2 -1
- package/src/editor-manager/plugin/lists.js +0 -2
- package/src/rich-text-editor/actions/enter-key.js +1 -1
- package/src/rich-text-editor/actions/html-editor.js +4 -0
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 26.2.
|
|
3
|
+
* version : 26.2.13
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2023. All rights reserved.
|
|
5
5
|
* Use of this code is subject to the terms of our license.
|
|
6
6
|
* A copy of the current license can be obtained at any time by e-mailing
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"_from": "@syncfusion/ej2-richtexteditor@*",
|
|
3
|
-
"_id": "@syncfusion/ej2-richtexteditor@26.2.
|
|
3
|
+
"_id": "@syncfusion/ej2-richtexteditor@26.2.12",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-bqR4gm/oicUtiR0mEdeH4Ng+FCRoK+YiYQ5AvKR981BPRjvHw1/iBGFm73VMSEi3uyjPV0BbUU9al69ttClqCg==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-richtexteditor",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"/@syncfusion/ej2-react-richtexteditor",
|
|
26
26
|
"/@syncfusion/ej2-vue-richtexteditor"
|
|
27
27
|
],
|
|
28
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-26.2.
|
|
29
|
-
"_shasum": "
|
|
28
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-26.2.12.tgz",
|
|
29
|
+
"_shasum": "1c8db98e7d161642e5ff4ffcb11b70183d5eb793",
|
|
30
30
|
"_spec": "@syncfusion/ej2-richtexteditor@*",
|
|
31
31
|
"_where": "/jenkins/workspace/elease-automation_release_26.1.1/packages/included",
|
|
32
32
|
"author": {
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@syncfusion/ej2-base": "~26.2.10",
|
|
41
41
|
"@syncfusion/ej2-buttons": "~26.2.10",
|
|
42
42
|
"@syncfusion/ej2-filemanager": "~26.2.11",
|
|
43
|
-
"@syncfusion/ej2-inputs": "~26.2.
|
|
43
|
+
"@syncfusion/ej2-inputs": "~26.2.13",
|
|
44
44
|
"@syncfusion/ej2-navigations": "~26.2.12",
|
|
45
45
|
"@syncfusion/ej2-popups": "~26.2.11",
|
|
46
46
|
"@syncfusion/ej2-splitbuttons": "~26.2.10"
|
|
@@ -79,6 +79,6 @@
|
|
|
79
79
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
80
80
|
},
|
|
81
81
|
"typings": "index.d.ts",
|
|
82
|
-
"version": "26.2.
|
|
82
|
+
"version": "26.2.13",
|
|
83
83
|
"sideEffects": false
|
|
84
84
|
}
|
|
@@ -114,7 +114,7 @@ var Formats = /** @class */ (function () {
|
|
|
114
114
|
}
|
|
115
115
|
else {
|
|
116
116
|
var nodeCutter = new NodeCutter();
|
|
117
|
-
|
|
117
|
+
nodeCutter.SplitNode(range, startParent.parentElement, false).cloneNode(true);
|
|
118
118
|
this.paraFocus(startParent.parentElement === this.parent.editableElement ?
|
|
119
119
|
startParent : startParent.parentElement);
|
|
120
120
|
}
|
|
@@ -257,7 +257,8 @@ var InsertHtml = /** @class */ (function () {
|
|
|
257
257
|
preNode.parentNode.replaceChild(fragment, preNode);
|
|
258
258
|
}
|
|
259
259
|
else {
|
|
260
|
-
var startContainerParent = editNode === range.startContainer ? range.startContainer
|
|
260
|
+
var startContainerParent = editNode === range.startContainer ? range.startContainer
|
|
261
|
+
: range.startContainer.parentNode;
|
|
261
262
|
// Get the index of the start container among its siblings
|
|
262
263
|
var startIndex = Array.prototype.indexOf.call(startContainerParent.childNodes, (Browser.userAgent.indexOf('Firefox') !== -1 && editNode === range.startContainer) ? range.startContainer.firstChild : range.startContainer);
|
|
263
264
|
range.deleteContents();
|
|
@@ -335,8 +335,6 @@ var Lists = /** @class */ (function () {
|
|
|
335
335
|
this.saveSelection = this.parent.nodeSelection.save(range, this.parent.currentDocument);
|
|
336
336
|
}
|
|
337
337
|
var blockNodes = void 0;
|
|
338
|
-
var startOffset = range.startOffset;
|
|
339
|
-
var endOffset = range.endOffset;
|
|
340
338
|
var startNode = this.parent.domNode.getSelectedNode(range.startContainer, range.startOffset);
|
|
341
339
|
var endNode = this.parent.domNode.getSelectedNode(range.endContainer, range.endOffset);
|
|
342
340
|
if ((startNode === endNode && (startNode.nodeName === 'BR' || startNode.nodeName === '#text') &&
|
|
@@ -510,7 +510,7 @@ var EnterKeyAction = /** @class */ (function () {
|
|
|
510
510
|
this.range.insertNode(brElm);
|
|
511
511
|
}
|
|
512
512
|
}
|
|
513
|
-
if (isEmptyBrInserted || (!isNOU(brElm.nextElementSibling) && brElm.nextElementSibling.tagName === 'BR') || (!isNOU(brElm.nextSibling) && brElm.nextSibling.textContent.length > 0)) {
|
|
513
|
+
if (isEmptyBrInserted || (!isNOU(brElm.nextElementSibling) && brElm.nextElementSibling.tagName === 'BR') || (!isNOU(brElm.nextSibling) && (brElm.nextSibling.textContent.length > 0 || (brElm.nextSibling.nodeName === '#text' && brElm.nextSibling.textContent.trim().length === 0 && !isNOU(brElm.nextSibling.nextSibling) && brElm.nextSibling.nextSibling.textContent.trim().length > 0)))) {
|
|
514
514
|
this.parent.formatter.editorManager.nodeSelection.setCursorPoint(this.parent.contentModule.getDocument(), !isNOU(brElm.nextSibling) && isFocusTextNode ? brElm.nextSibling : brElm, 0);
|
|
515
515
|
isEmptyBrInserted = false;
|
|
516
516
|
}
|
|
@@ -523,6 +523,10 @@ var HtmlEditor = /** @class */ (function () {
|
|
|
523
523
|
else {
|
|
524
524
|
this.oldRangeElement = this.rangeElement.previousElementSibling;
|
|
525
525
|
}
|
|
526
|
+
var findBlockElement = this.parent.formatter.editorManager.domNode.blockNodes();
|
|
527
|
+
if (!isNOU(findBlockElement[0]) && currentRange.collapsed && currentRange.startOffset === 0 && currentRange.endOffset === 0 && findBlockElement[0].style.marginLeft !== '') {
|
|
528
|
+
findBlockElement[0].style.marginLeft = (parseInt(findBlockElement[0].style.marginLeft, 10) <= 20) ? '' : (parseInt(findBlockElement[0].style.marginLeft, 10) - 20 + 'px');
|
|
529
|
+
}
|
|
526
530
|
if (isNOU(this.oldRangeElement)) {
|
|
527
531
|
return;
|
|
528
532
|
}
|