@syncfusion/ej2-richtexteditor 21.2.6 → 21.2.9
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 +14 -0
- 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 +15 -5
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +15 -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 +8 -8
- package/src/editor-manager/plugin/isformatted.js +8 -2
- package/src/rich-text-editor/actions/html-editor.js +7 -3
- package/styles/rich-text-editor/_layout.scss +0 -5
- package/styles/rich-text-editor/tailwind-dark.css +0 -5
- package/styles/rich-text-editor/tailwind.css +0 -5
- package/styles/tailwind-dark.css +0 -5
- package/styles/tailwind.css +0 -5
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 21.2.
|
|
3
|
+
* version : 21.2.9
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2020. 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@21.2.
|
|
3
|
+
"_id": "@syncfusion/ej2-richtexteditor@21.2.8",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-cazKbsnaxRdlhQ9G4mlnopvvIf0ulmy9k/egU3jv/o4edVJWo081dCO9YmxdtzFvspdrzYgWYbzt5OjwQs86Yg==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-richtexteditor",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"/@syncfusion/ej2-react-richtexteditor",
|
|
27
27
|
"/@syncfusion/ej2-vue-richtexteditor"
|
|
28
28
|
],
|
|
29
|
-
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-21.2.
|
|
30
|
-
"_shasum": "
|
|
29
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-21.2.8.tgz",
|
|
30
|
+
"_shasum": "a7934359b2b25b6b695838d5de5cdaeee1a722b1",
|
|
31
31
|
"_spec": "@syncfusion/ej2-richtexteditor@*",
|
|
32
32
|
"_where": "/jenkins/workspace/elease-automation_release_21.1.1/packages/included",
|
|
33
33
|
"author": {
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
},
|
|
39
39
|
"bundleDependencies": false,
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@syncfusion/ej2-base": "~21.2.
|
|
41
|
+
"@syncfusion/ej2-base": "~21.2.9",
|
|
42
42
|
"@syncfusion/ej2-buttons": "~21.2.6",
|
|
43
43
|
"@syncfusion/ej2-filemanager": "~21.2.5",
|
|
44
|
-
"@syncfusion/ej2-inputs": "~21.2.
|
|
45
|
-
"@syncfusion/ej2-navigations": "~21.2.
|
|
44
|
+
"@syncfusion/ej2-inputs": "~21.2.9",
|
|
45
|
+
"@syncfusion/ej2-navigations": "~21.2.9",
|
|
46
46
|
"@syncfusion/ej2-popups": "~21.2.4",
|
|
47
47
|
"@syncfusion/ej2-splitbuttons": "~21.2.5"
|
|
48
48
|
},
|
|
@@ -70,6 +70,6 @@
|
|
|
70
70
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
71
71
|
},
|
|
72
72
|
"typings": "index.d.ts",
|
|
73
|
-
"version": "21.2.
|
|
73
|
+
"version": "21.2.9",
|
|
74
74
|
"sideEffects": false
|
|
75
75
|
}
|
|
@@ -110,9 +110,12 @@ var IsFormatted = /** @class */ (function () {
|
|
|
110
110
|
var validTags = ['u'];
|
|
111
111
|
if (validTags.indexOf(node.nodeName.toLowerCase()) !== -1) {
|
|
112
112
|
return true;
|
|
113
|
+
/* eslint-disable */
|
|
113
114
|
}
|
|
114
115
|
else if (this.inlineTags.indexOf(node.nodeName.toLowerCase()) !== -1 &&
|
|
115
|
-
node.style && node.style.textDecoration === 'underline'
|
|
116
|
+
node.style && (node.style.textDecoration === 'underline' ||
|
|
117
|
+
node.style.textDecorationLine === 'underline')) {
|
|
118
|
+
/* eslint-enable */
|
|
116
119
|
return true;
|
|
117
120
|
}
|
|
118
121
|
else {
|
|
@@ -131,9 +134,12 @@ var IsFormatted = /** @class */ (function () {
|
|
|
131
134
|
var validTags = ['del', 'strike'];
|
|
132
135
|
if (validTags.indexOf(node.nodeName.toLowerCase()) !== -1) {
|
|
133
136
|
return true;
|
|
137
|
+
/* eslint-disable */
|
|
134
138
|
}
|
|
135
139
|
else if (this.inlineTags.indexOf(node.nodeName.toLowerCase()) !== -1 &&
|
|
136
|
-
node.style && node.style.textDecoration === 'line-through'
|
|
140
|
+
node.style && (node.style.textDecoration === 'line-through' ||
|
|
141
|
+
node.style.textDecorationLine === 'line-through')) {
|
|
142
|
+
/* eslint-enable */
|
|
137
143
|
return true;
|
|
138
144
|
}
|
|
139
145
|
else {
|
|
@@ -116,9 +116,10 @@ var HtmlEditor = /** @class */ (function () {
|
|
|
116
116
|
range.startContainer.nodeName === '#text' ? range.startContainer.parentElement !== this.parent.inputElement ? range.startContainer.parentElement.classList.add('currentStartMark')
|
|
117
117
|
: isRootParent = true : range.startContainer.classList.add('currentStartMark');
|
|
118
118
|
if (range.startContainer.textContent.charCodeAt(0) === 8203) {
|
|
119
|
-
|
|
120
|
-
|
|
119
|
+
var previousLength_1 = range.startContainer.textContent.length;
|
|
120
|
+
var previousRange = range.startOffset;
|
|
121
121
|
range.startContainer.textContent = range.startContainer.textContent.replace(regEx, '');
|
|
122
|
+
pointer = previousRange === 0 ? previousRange : previousRange - (previousLength_1 - range.startContainer.textContent.length);
|
|
122
123
|
this.parent.formatter.editorManager.nodeSelection.setCursorPoint(this.parent.contentModule.getDocument(), range.startContainer, pointer);
|
|
123
124
|
}
|
|
124
125
|
var previousLength = this.parent.inputElement.innerHTML.length;
|
|
@@ -138,7 +139,10 @@ var HtmlEditor = /** @class */ (function () {
|
|
|
138
139
|
i--;
|
|
139
140
|
}
|
|
140
141
|
if (focusNode.textContent.replace(regEx, '') === currentChildNode[i].textContent) {
|
|
141
|
-
pointer = focusNode.textContent.length > 1 ?
|
|
142
|
+
pointer = focusNode.textContent.length > 1 ?
|
|
143
|
+
(focusNode.textContent === currentChildNode[i].textContent ? pointer :
|
|
144
|
+
pointer - (focusNode.textContent.length - focusNode.textContent.replace(regEx, '').length)) :
|
|
145
|
+
focusNode.textContent.length;
|
|
142
146
|
focusNode = currentChildNode[i];
|
|
143
147
|
}
|
|
144
148
|
}
|
|
@@ -1823,11 +1823,6 @@
|
|
|
1823
1823
|
.e-richtexteditor .e-toolbar .e-toolbar-item .e-tbar-btn.e-btn {
|
|
1824
1824
|
line-height: 20px;
|
|
1825
1825
|
}
|
|
1826
|
-
|
|
1827
|
-
.e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn.e-btn,
|
|
1828
|
-
.e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn.e-btn.e-control {
|
|
1829
|
-
padding: 0;
|
|
1830
|
-
}
|
|
1831
1826
|
}
|
|
1832
1827
|
|
|
1833
1828
|
@if $skin-name == 'bootstrap5' {
|
|
@@ -2323,11 +2323,6 @@
|
|
|
2323
2323
|
line-height: 20px;
|
|
2324
2324
|
}
|
|
2325
2325
|
|
|
2326
|
-
.e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn.e-btn,
|
|
2327
|
-
.e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn.e-btn.e-control {
|
|
2328
|
-
padding: 0;
|
|
2329
|
-
}
|
|
2330
|
-
|
|
2331
2326
|
.e-richtexteditor .e-rte-table-popup.e-popup-open.e-dialog .e-rte-tablecell {
|
|
2332
2327
|
margin: 1px;
|
|
2333
2328
|
}
|
|
@@ -2323,11 +2323,6 @@
|
|
|
2323
2323
|
line-height: 20px;
|
|
2324
2324
|
}
|
|
2325
2325
|
|
|
2326
|
-
.e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn.e-btn,
|
|
2327
|
-
.e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn.e-btn.e-control {
|
|
2328
|
-
padding: 0;
|
|
2329
|
-
}
|
|
2330
|
-
|
|
2331
2326
|
.e-richtexteditor .e-rte-table-popup.e-popup-open.e-dialog .e-rte-tablecell {
|
|
2332
2327
|
margin: 1px;
|
|
2333
2328
|
}
|
package/styles/tailwind-dark.css
CHANGED
|
@@ -2323,11 +2323,6 @@
|
|
|
2323
2323
|
line-height: 20px;
|
|
2324
2324
|
}
|
|
2325
2325
|
|
|
2326
|
-
.e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn.e-btn,
|
|
2327
|
-
.e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn.e-btn.e-control {
|
|
2328
|
-
padding: 0;
|
|
2329
|
-
}
|
|
2330
|
-
|
|
2331
2326
|
.e-richtexteditor .e-rte-table-popup.e-popup-open.e-dialog .e-rte-tablecell {
|
|
2332
2327
|
margin: 1px;
|
|
2333
2328
|
}
|
package/styles/tailwind.css
CHANGED
|
@@ -2323,11 +2323,6 @@
|
|
|
2323
2323
|
line-height: 20px;
|
|
2324
2324
|
}
|
|
2325
2325
|
|
|
2326
|
-
.e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn.e-btn,
|
|
2327
|
-
.e-toolbar.e-extended-toolbar .e-toolbar-extended .e-toolbar-item .e-tbar-btn.e-btn.e-control {
|
|
2328
|
-
padding: 0;
|
|
2329
|
-
}
|
|
2330
|
-
|
|
2331
2326
|
.e-richtexteditor .e-rte-table-popup.e-popup-open.e-dialog .e-rte-tablecell {
|
|
2332
2327
|
margin: 1px;
|
|
2333
2328
|
}
|