@ckeditor/ckeditor5-clipboard 46.0.2 → 46.0.3
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/index.js +2 -1
- package/dist/index.js.map +1 -1
- package/package.json +6 -6
- package/src/utils/viewtoplaintext.js +2 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@ckeditor/ckeditor5-clipboard",
|
|
3
|
-
"version": "46.0.
|
|
3
|
+
"version": "46.0.3",
|
|
4
4
|
"description": "Clipboard integration feature for CKEditor 5.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"ckeditor",
|
|
@@ -13,11 +13,11 @@
|
|
|
13
13
|
"type": "module",
|
|
14
14
|
"main": "src/index.js",
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@ckeditor/ckeditor5-core": "46.0.
|
|
17
|
-
"@ckeditor/ckeditor5-engine": "46.0.
|
|
18
|
-
"@ckeditor/ckeditor5-ui": "46.0.
|
|
19
|
-
"@ckeditor/ckeditor5-utils": "46.0.
|
|
20
|
-
"@ckeditor/ckeditor5-widget": "46.0.
|
|
16
|
+
"@ckeditor/ckeditor5-core": "46.0.3",
|
|
17
|
+
"@ckeditor/ckeditor5-engine": "46.0.3",
|
|
18
|
+
"@ckeditor/ckeditor5-ui": "46.0.3",
|
|
19
|
+
"@ckeditor/ckeditor5-utils": "46.0.3",
|
|
20
|
+
"@ckeditor/ckeditor5-widget": "46.0.3",
|
|
21
21
|
"es-toolkit": "1.39.5"
|
|
22
22
|
},
|
|
23
23
|
"author": "CKSource (http://cksource.com/)",
|
|
@@ -36,7 +36,8 @@ export function viewToPlainText(converter, viewItem) {
|
|
|
36
36
|
}
|
|
37
37
|
// If item is a raw element, the only way to get its content is to render it and read the text directly from DOM.
|
|
38
38
|
if (viewItem.is('rawElement')) {
|
|
39
|
-
const
|
|
39
|
+
const doc = document.implementation.createHTMLDocument('');
|
|
40
|
+
const tempElement = doc.createElement('div');
|
|
40
41
|
viewItem.render(tempElement, converter);
|
|
41
42
|
text += domElementToPlainText(tempElement);
|
|
42
43
|
}
|