@syncfusion/ej2-richtexteditor 24.1.41 → 24.1.45
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 +20 -0
- package/README.md +1 -1
- 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 +11 -6
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +11 -6
- 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 +11 -11
- package/src/editor-manager/plugin/selection-commands.js +1 -2
- package/src/editor-manager/plugin/toolbar-status.js +3 -1
- package/src/rich-text-editor/actions/paste-clean-up.js +5 -2
- package/src/rich-text-editor/base/interface.d.ts +1 -0
- package/src/rich-text-editor/base/rich-text-editor.js +3 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 24.1.
|
|
3
|
+
* version : 24.1.45
|
|
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@
|
|
3
|
+
"_id": "@syncfusion/ej2-richtexteditor@24.1.43",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512
|
|
5
|
+
"_integrity": "sha512-+v4KcCDrS7HCpJjJiYqnP8fdE0l8pUBtuFwUsAU0Tb3PuQIStWzNZX8Lbb3DykBpC5HFmYBsC3HdpO7EnX3huA==",
|
|
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.syncfusion.com/repository/ej2-
|
|
29
|
-
"_shasum": "
|
|
28
|
+
"_resolved": "https://nexus.syncfusion.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-24.1.43.tgz",
|
|
29
|
+
"_shasum": "5e476e162aba6dd6e3cbfe2141a16a9ccc59e91c",
|
|
30
30
|
"_spec": "@syncfusion/ej2-richtexteditor@*",
|
|
31
31
|
"_where": "/jenkins/workspace/elease-automation_release_24.1.1/packages/included",
|
|
32
32
|
"author": {
|
|
@@ -37,13 +37,13 @@
|
|
|
37
37
|
},
|
|
38
38
|
"bundleDependencies": false,
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@syncfusion/ej2-base": "~24.1.
|
|
41
|
-
"@syncfusion/ej2-buttons": "~24.1.
|
|
42
|
-
"@syncfusion/ej2-filemanager": "~24.1.
|
|
43
|
-
"@syncfusion/ej2-inputs": "~24.1.
|
|
40
|
+
"@syncfusion/ej2-base": "~24.1.42",
|
|
41
|
+
"@syncfusion/ej2-buttons": "~24.1.45",
|
|
42
|
+
"@syncfusion/ej2-filemanager": "~24.1.45",
|
|
43
|
+
"@syncfusion/ej2-inputs": "~24.1.45",
|
|
44
44
|
"@syncfusion/ej2-navigations": "~24.1.41",
|
|
45
|
-
"@syncfusion/ej2-popups": "~24.1.
|
|
46
|
-
"@syncfusion/ej2-splitbuttons": "~24.1.
|
|
45
|
+
"@syncfusion/ej2-popups": "~24.1.44",
|
|
46
|
+
"@syncfusion/ej2-splitbuttons": "~24.1.45"
|
|
47
47
|
},
|
|
48
48
|
"deprecated": false,
|
|
49
49
|
"description": "Essential JS 2 RichTextEditor component",
|
|
@@ -69,6 +69,6 @@
|
|
|
69
69
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
70
70
|
},
|
|
71
71
|
"typings": "index.d.ts",
|
|
72
|
-
"version": "24.1.
|
|
72
|
+
"version": "24.1.45",
|
|
73
73
|
"sideEffects": false
|
|
74
74
|
}
|
|
@@ -185,8 +185,7 @@ var SelectionCommands = /** @class */ (function () {
|
|
|
185
185
|
cursorNodes[0].firstElementChild.tagName.toLowerCase() === 'br')) {
|
|
186
186
|
cursorNodes[0].innerHTML = '';
|
|
187
187
|
}
|
|
188
|
-
if (cursorNodes.length === 1 && range.startOffset === 0 && (cursorNodes[0].nodeName === 'BR' ||
|
|
189
|
-
cursorNodes[0].nextSibling.nodeName === 'BR')) {
|
|
188
|
+
if (cursorNodes.length === 1 && range.startOffset === 0 && (cursorNodes[0].nodeName === 'BR' || (isNOU(cursorNodes[0].nextSibling) ? false : cursorNodes[0].nextSibling.nodeName === 'BR'))) {
|
|
190
189
|
detach(cursorNodes[0].nodeName === '#text' ? cursorNodes[0].nextSibling : cursorNodes[0]);
|
|
191
190
|
}
|
|
192
191
|
cursorNode = this.getInsertNode(docElement, range, format, value).firstChild;
|
|
@@ -2,6 +2,7 @@ import { IsFormatted } from './isformatted';
|
|
|
2
2
|
import * as CONSTANT from './../base/constant';
|
|
3
3
|
import { NodeSelection } from './../../selection/index';
|
|
4
4
|
import { getDefaultHtmlTbStatus } from './../../common/util';
|
|
5
|
+
import { isNullOrUndefined } from '@syncfusion/ej2-base';
|
|
5
6
|
/**
|
|
6
7
|
* Update Toolbar Status
|
|
7
8
|
*
|
|
@@ -250,7 +251,8 @@ var ToolbarStatus = /** @class */ (function () {
|
|
|
250
251
|
// eslint-disable-next-line
|
|
251
252
|
var pattern = new RegExp(name, 'i');
|
|
252
253
|
if ((value.replace(/"/g, '').replace(/ /g, '').toLowerCase() === name.replace(/"/g, '').replace(/ /g, '').toLowerCase()) ||
|
|
253
|
-
(value.split(',')[0] && value.split(',')[0].
|
|
254
|
+
(value.split(',')[0] && !isNullOrUndefined(value.split(',')[0].trim().match(pattern)) &&
|
|
255
|
+
value.split(',')[0].trim() === value.split(',')[0].trim().match(pattern)[0])) {
|
|
254
256
|
index = pos;
|
|
255
257
|
}
|
|
256
258
|
}) && (index !== null)))) {
|
|
@@ -127,8 +127,11 @@ var PasteCleanup = /** @class */ (function () {
|
|
|
127
127
|
tempDivElem.innerHTML = value;
|
|
128
128
|
var isValueNotEmpty = tempDivElem.textContent !== '' || !isNOU(tempDivElem.querySelector('img')) ||
|
|
129
129
|
!isNOU(tempDivElem.querySelector('table'));
|
|
130
|
-
this.parent.
|
|
131
|
-
value
|
|
130
|
+
this.parent.notify(events.cleanupResizeElements, {
|
|
131
|
+
value: value,
|
|
132
|
+
callBack: function (currentValue) {
|
|
133
|
+
value = currentValue;
|
|
134
|
+
}
|
|
132
135
|
});
|
|
133
136
|
if (this.parent.pasteCleanupSettings.prompt) {
|
|
134
137
|
if (isValueNotEmpty) {
|
|
@@ -2227,7 +2227,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2227
2227
|
};
|
|
2228
2228
|
RichTextEditor.prototype.cleanupResizeElements = function (args) {
|
|
2229
2229
|
var value = this.removeResizeElement(args.value);
|
|
2230
|
-
|
|
2230
|
+
args.callBack(value);
|
|
2231
2231
|
};
|
|
2232
2232
|
RichTextEditor.prototype.removeResizeElement = function (value) {
|
|
2233
2233
|
var valueElementWrapper = document.createElement("div");
|
|
@@ -2491,6 +2491,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2491
2491
|
}
|
|
2492
2492
|
EventHandler.add(this.inputElement, 'keyup', this.keyUp, this);
|
|
2493
2493
|
EventHandler.add(this.inputElement, 'paste', this.onPaste, this);
|
|
2494
|
+
EventHandler.add(this.inputElement, 'content-changed', this.contentChanged, this);
|
|
2494
2495
|
EventHandler.add(this.inputElement, Browser.touchEndEvent, debounce(this.mouseUp, 30), this);
|
|
2495
2496
|
EventHandler.add(this.inputElement, Browser.touchStartEvent, this.mouseDownHandler, this);
|
|
2496
2497
|
this.wireContextEvent();
|
|
@@ -2553,6 +2554,7 @@ var RichTextEditor = /** @class */ (function (_super) {
|
|
|
2553
2554
|
}
|
|
2554
2555
|
EventHandler.remove(this.inputElement, 'keyup', this.keyUp);
|
|
2555
2556
|
EventHandler.remove(this.inputElement, 'paste', this.onPaste);
|
|
2557
|
+
EventHandler.remove(this.inputElement, 'content-changed', this.contentChanged);
|
|
2556
2558
|
EventHandler.remove(this.inputElement, Browser.touchEndEvent, debounce(this.mouseUp, 30));
|
|
2557
2559
|
EventHandler.remove(this.inputElement, Browser.touchStartEvent, this.mouseDownHandler);
|
|
2558
2560
|
this.unWireContextEvent();
|