@ckeditor/ckeditor5-paste-from-office 37.0.1 → 37.1.0
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/package.json +22 -22
- package/src/filters/image.js +2 -2
- package/src/filters/list.js +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-paste-from-office",
|
|
3
|
-
"version": "37.0
|
|
3
|
+
"version": "37.1.0",
|
|
4
4
|
"description": "Paste from Office feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -12,29 +12,29 @@
|
|
|
12
12
|
],
|
|
13
13
|
"main": "src/index.js",
|
|
14
14
|
"dependencies": {
|
|
15
|
-
"ckeditor5": "^37.0
|
|
15
|
+
"ckeditor5": "^37.1.0"
|
|
16
16
|
},
|
|
17
17
|
"devDependencies": {
|
|
18
|
-
"@ckeditor/ckeditor5-basic-styles": "^37.0
|
|
19
|
-
"@ckeditor/ckeditor5-clipboard": "^37.0
|
|
20
|
-
"@ckeditor/ckeditor5-cloud-services": "^37.0
|
|
21
|
-
"@ckeditor/ckeditor5-code-block": "^37.0
|
|
22
|
-
"@ckeditor/ckeditor5-core": "^37.0
|
|
23
|
-
"@ckeditor/ckeditor5-dev-utils": "^
|
|
24
|
-
"@ckeditor/ckeditor5-easy-image": "^37.0
|
|
25
|
-
"@ckeditor/ckeditor5-engine": "^37.0
|
|
26
|
-
"@ckeditor/ckeditor5-editor-classic": "^37.0
|
|
27
|
-
"@ckeditor/ckeditor5-enter": "^37.0
|
|
28
|
-
"@ckeditor/ckeditor5-font": "^37.0
|
|
29
|
-
"@ckeditor/ckeditor5-heading": "^37.0
|
|
30
|
-
"@ckeditor/ckeditor5-image": "^37.0
|
|
31
|
-
"@ckeditor/ckeditor5-link": "^37.0
|
|
32
|
-
"@ckeditor/ckeditor5-list": "^37.0
|
|
33
|
-
"@ckeditor/ckeditor5-page-break": "^37.0
|
|
34
|
-
"@ckeditor/ckeditor5-paragraph": "^37.0
|
|
35
|
-
"@ckeditor/ckeditor5-table": "^37.0
|
|
36
|
-
"@ckeditor/ckeditor5-theme-lark": "^37.0
|
|
37
|
-
"@ckeditor/ckeditor5-utils": "^37.0
|
|
18
|
+
"@ckeditor/ckeditor5-basic-styles": "^37.1.0",
|
|
19
|
+
"@ckeditor/ckeditor5-clipboard": "^37.1.0",
|
|
20
|
+
"@ckeditor/ckeditor5-cloud-services": "^37.1.0",
|
|
21
|
+
"@ckeditor/ckeditor5-code-block": "^37.1.0",
|
|
22
|
+
"@ckeditor/ckeditor5-core": "^37.1.0",
|
|
23
|
+
"@ckeditor/ckeditor5-dev-utils": "^37.0.0",
|
|
24
|
+
"@ckeditor/ckeditor5-easy-image": "^37.1.0",
|
|
25
|
+
"@ckeditor/ckeditor5-engine": "^37.1.0",
|
|
26
|
+
"@ckeditor/ckeditor5-editor-classic": "^37.1.0",
|
|
27
|
+
"@ckeditor/ckeditor5-enter": "^37.1.0",
|
|
28
|
+
"@ckeditor/ckeditor5-font": "^37.1.0",
|
|
29
|
+
"@ckeditor/ckeditor5-heading": "^37.1.0",
|
|
30
|
+
"@ckeditor/ckeditor5-image": "^37.1.0",
|
|
31
|
+
"@ckeditor/ckeditor5-link": "^37.1.0",
|
|
32
|
+
"@ckeditor/ckeditor5-list": "^37.1.0",
|
|
33
|
+
"@ckeditor/ckeditor5-page-break": "^37.1.0",
|
|
34
|
+
"@ckeditor/ckeditor5-paragraph": "^37.1.0",
|
|
35
|
+
"@ckeditor/ckeditor5-table": "^37.1.0",
|
|
36
|
+
"@ckeditor/ckeditor5-theme-lark": "^37.1.0",
|
|
37
|
+
"@ckeditor/ckeditor5-utils": "^37.1.0",
|
|
38
38
|
"typescript": "^4.8.4",
|
|
39
39
|
"webpack": "^5.58.1",
|
|
40
40
|
"webpack-cli": "^4.9.0"
|
package/src/filters/image.js
CHANGED
|
@@ -145,7 +145,7 @@ function insertMissingImgs(shapeIds, documentFragment, writer) {
|
|
|
145
145
|
}
|
|
146
146
|
function containsMatchingImg(nodes, id) {
|
|
147
147
|
for (const node of nodes) {
|
|
148
|
-
/* istanbul ignore else */
|
|
148
|
+
/* istanbul ignore else -- @preserve */
|
|
149
149
|
if (node.is('element')) {
|
|
150
150
|
if (node.name == 'img' && node.getAttribute('v:shapes') == id) {
|
|
151
151
|
return true;
|
|
@@ -159,7 +159,7 @@ function insertMissingImgs(shapeIds, documentFragment, writer) {
|
|
|
159
159
|
}
|
|
160
160
|
function findSrc(shape) {
|
|
161
161
|
for (const child of shape.getChildren()) {
|
|
162
|
-
/* istanbul ignore else */
|
|
162
|
+
/* istanbul ignore else -- @preserve */
|
|
163
163
|
if (child.is('element') && child.getAttribute('src')) {
|
|
164
164
|
return child.getAttribute('src');
|
|
165
165
|
}
|