@_sh/strapi-plugin-ckeditor 3.0.8 → 3.0.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.
|
@@ -15,17 +15,17 @@ export const MediaLib = ({ isOpen = false, onToggle = () => {}, editor }) => {
|
|
|
15
15
|
let set = '';
|
|
16
16
|
let keys = Object.keys(formats).sort((a, b) => formats[a].width - formats[b].width);
|
|
17
17
|
keys.map((k) => (set += prefixFileUrlWithBackendUrl(formats[k].url) +` ${formats[k].width}w,`));
|
|
18
|
-
newValue
|
|
18
|
+
newValue += `<img src="${url}" alt="${alt}" width="${width}" height="${height}" srcset="${set}" />`;
|
|
19
19
|
} else {
|
|
20
|
-
newValue
|
|
20
|
+
newValue += `<img src="${url}" alt="${alt}" width="${width}" height="${height}" />`;
|
|
21
21
|
}
|
|
22
22
|
} else if (mime.includes('video')) {
|
|
23
|
-
newValue
|
|
23
|
+
newValue += `
|
|
24
24
|
<video class="video" controls width="500px">
|
|
25
25
|
<source src="${url}" type="${mime}" />
|
|
26
26
|
</video>`;
|
|
27
27
|
} else {
|
|
28
|
-
newValue
|
|
28
|
+
newValue += `<a href="${url}">${name || 'Open document'}</a>`;
|
|
29
29
|
}
|
|
30
30
|
});
|
|
31
31
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@_sh/strapi-plugin-ckeditor",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.9",
|
|
4
4
|
"description": "Integrates CKEditor 5 into your Strapi project as a fully customizable custom field. (Unofficial integration)",
|
|
5
5
|
"private": false,
|
|
6
6
|
"keywords": [
|
|
@@ -25,11 +25,11 @@
|
|
|
25
25
|
"strapi-server.js"
|
|
26
26
|
],
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"ckeditor5": "^43.3.
|
|
28
|
+
"ckeditor5": "^43.3.1",
|
|
29
29
|
"@ckeditor/ckeditor5-react": "^9.3.1",
|
|
30
30
|
"@strapi/design-system": "^1.19.0",
|
|
31
31
|
"prop-types": "^15.8.1",
|
|
32
|
-
"sanitize-html": "^2.13.
|
|
32
|
+
"sanitize-html": "^2.13.1"
|
|
33
33
|
},
|
|
34
34
|
"peerDependencies": {
|
|
35
35
|
"@strapi/strapi": "^4.13.0"
|