@syncfusion/ej2-richtexteditor 28.1.37 → 28.1.38
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/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 +5 -1
- package/dist/es6/ej2-richtexteditor.es2015.js.map +1 -1
- package/dist/es6/ej2-richtexteditor.es5.js +5 -1
- 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 -7
- package/src/editor-manager/plugin/selection-commands.js +1 -0
- package/src/rich-text-editor/actions/paste-clean-up.js +4 -1
package/dist/global/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
/*!
|
|
2
2
|
* filename: index.d.ts
|
|
3
|
-
* version : 28.1.
|
|
3
|
+
* version : 28.1.38
|
|
4
4
|
* Copyright Syncfusion Inc. 2001 - 2024. 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@28.1.
|
|
3
|
+
"_id": "@syncfusion/ej2-richtexteditor@28.1.37",
|
|
4
4
|
"_inBundle": false,
|
|
5
|
-
"_integrity": "sha512-
|
|
5
|
+
"_integrity": "sha512-LcoACNENKzPU49FmsncrsED1lWXsHPU9w6nV7nSn1wOipA3bqUwEVvbJimIw8Ll29E/RrzcR80mBsWYj7LhNzw==",
|
|
6
6
|
"_location": "/@syncfusion/ej2-richtexteditor",
|
|
7
7
|
"_phantomChildren": {},
|
|
8
8
|
"_requested": {
|
|
@@ -18,14 +18,15 @@
|
|
|
18
18
|
},
|
|
19
19
|
"_requiredBy": [
|
|
20
20
|
"/",
|
|
21
|
+
"/@syncfusion/ej2",
|
|
21
22
|
"/@syncfusion/ej2-angular-richtexteditor",
|
|
22
23
|
"/@syncfusion/ej2-gantt",
|
|
23
24
|
"/@syncfusion/ej2-inplace-editor",
|
|
24
25
|
"/@syncfusion/ej2-react-richtexteditor",
|
|
25
26
|
"/@syncfusion/ej2-vue-richtexteditor"
|
|
26
27
|
],
|
|
27
|
-
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-28.1.
|
|
28
|
-
"_shasum": "
|
|
28
|
+
"_resolved": "https://nexus.syncfusioninternal.com/repository/ej2-hotfix-new/@syncfusion/ej2-richtexteditor/-/ej2-richtexteditor-28.1.37.tgz",
|
|
29
|
+
"_shasum": "8e8379aba1b398d91e5704b67386f3fac2be2b87",
|
|
29
30
|
"_spec": "@syncfusion/ej2-richtexteditor@*",
|
|
30
31
|
"_where": "/jenkins/workspace/elease-automation_release_28.1.1/packages/included",
|
|
31
32
|
"author": {
|
|
@@ -38,11 +39,11 @@
|
|
|
38
39
|
"dependencies": {
|
|
39
40
|
"@syncfusion/ej2-base": "~28.1.33",
|
|
40
41
|
"@syncfusion/ej2-buttons": "~28.1.37",
|
|
41
|
-
"@syncfusion/ej2-dropdowns": "~28.1.
|
|
42
|
+
"@syncfusion/ej2-dropdowns": "~28.1.38",
|
|
42
43
|
"@syncfusion/ej2-filemanager": "~28.1.36",
|
|
43
44
|
"@syncfusion/ej2-inputs": "~28.1.37",
|
|
44
45
|
"@syncfusion/ej2-navigations": "~28.1.37",
|
|
45
|
-
"@syncfusion/ej2-popups": "~28.1.
|
|
46
|
+
"@syncfusion/ej2-popups": "~28.1.38",
|
|
46
47
|
"@syncfusion/ej2-splitbuttons": "~28.1.37"
|
|
47
48
|
},
|
|
48
49
|
"deprecated": false,
|
|
@@ -79,6 +80,6 @@
|
|
|
79
80
|
"url": "git+https://github.com/syncfusion/ej2-javascript-ui-controls.git"
|
|
80
81
|
},
|
|
81
82
|
"typings": "index.d.ts",
|
|
82
|
-
"version": "28.1.
|
|
83
|
+
"version": "28.1.38",
|
|
83
84
|
"sideEffects": false
|
|
84
85
|
}
|
|
@@ -192,6 +192,7 @@ var PasteCleanup = /** @class */ (function () {
|
|
|
192
192
|
var isValueNotEmpty = tempDivElem.textContent !== '' || !isNOU(tempDivElem.querySelector('img')) ||
|
|
193
193
|
!isNOU(tempDivElem.querySelector('table'));
|
|
194
194
|
var imgElements = tempDivElem.querySelectorAll('img');
|
|
195
|
+
var base_1 = this.parent.contentModule.getDocument().location.origin;
|
|
195
196
|
imgElements.forEach(function (imgElement) {
|
|
196
197
|
var imageFileFormat;
|
|
197
198
|
var imgElementSrc = imgElement.getAttribute('src');
|
|
@@ -200,7 +201,9 @@ var PasteCleanup = /** @class */ (function () {
|
|
|
200
201
|
imageFileFormat = imgElementSrc.split(';')[0].split('/')[1];
|
|
201
202
|
}
|
|
202
203
|
else {
|
|
203
|
-
|
|
204
|
+
var parsedUrl = imgElementSrc.indexOf('http') > -1 ? new URL(imgElementSrc) : new URL(imgElementSrc, base_1);
|
|
205
|
+
var path = parsedUrl.pathname;
|
|
206
|
+
imageFileFormat = path.split('.').pop().toLowerCase();
|
|
204
207
|
}
|
|
205
208
|
if (!isNullOrUndefined(imageFileFormat) &&
|
|
206
209
|
allowedTypes.every(function (type) { return imageFileFormat !== type.substring(1).toLowerCase(); }) &&
|