@_sh/strapi-plugin-ckeditor 5.0.0 → 5.0.2
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/LICENSE +2 -2
- package/README.md +10 -8
- package/dist/_chunks/{Field-8Nh0dMSc.mjs → Field-D_JHCz5O.mjs} +7 -5
- package/dist/_chunks/{Field-BKtrDFjh.js → Field-DplOWQLX.js} +7 -5
- package/dist/_chunks/{index-DO2vqIdx.js → index-CsSYDZ4y.js} +32 -33
- package/dist/_chunks/{index-CNalXcwy.mjs → index-D3a4OadF.mjs} +32 -33
- package/dist/admin/index.js +1 -1
- package/dist/admin/index.mjs +1 -1
- package/dist/admin/src/config/types.d.ts +3 -3
- package/dist/server/index.js +29 -30
- package/dist/server/index.mjs +29 -30
- package/package.json +29 -30
package/LICENSE
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
MIT License
|
|
2
2
|
|
|
3
|
-
Copyright (c)
|
|
3
|
+
Copyright (c) 2025 nshenderov
|
|
4
4
|
|
|
5
5
|
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
6
|
of this software and associated documentation files (the "Software"), to deal
|
|
@@ -18,4 +18,4 @@ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
|
18
18
|
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
19
|
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
20
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -60,7 +60,7 @@ for setup instructions.
|
|
|
60
60
|
|
|
61
61
|
## <a id="usage"></a>✍️ Usage
|
|
62
62
|
|
|
63
|
-
The field can be
|
|
63
|
+
The field can be found in the Content-Type Builder under the `CUSTOM` tab:
|
|
64
64
|
|
|
65
65
|
<p align="center">
|
|
66
66
|
<img src="https://raw.githubusercontent.com/nshenderov/strapi-plugin-ckeditor/master/assets/v5-usage-guide-2.png" width="700" />
|
|
@@ -68,7 +68,7 @@ The field can be fould in the Content-Type Builder under the `CUSTOM` tab:
|
|
|
68
68
|
|
|
69
69
|
**Presets**
|
|
70
70
|
|
|
71
|
-
A preset is a set of settings that define the editor's features and
|
|
71
|
+
A preset is a set of settings that define the editor's features and appearance. You
|
|
72
72
|
can specify a dedicated preset for each field. The available presets can be customized through the
|
|
73
73
|
[configuration](#configuration).
|
|
74
74
|
|
|
@@ -120,6 +120,8 @@ default to the Strapi admin's preferred language. If no preference is set, Engli
|
|
|
120
120
|
**Content language**: i18n for the editor's content language can be enabled by checking the
|
|
121
121
|
`Enable localization for this field` option in the Advanced Settings tab.
|
|
122
122
|
|
|
123
|
+
> 💡 It is important to use the content styles on the publishing side of your application. Otherwise, the content will look different in the editor and for your end users. [Follow the documentation](https://ckeditor.com/docs/ckeditor5/latest/getting-started/setup/css.html#styling-the-published-content).
|
|
124
|
+
|
|
123
125
|
## <a id="configuration"></a>⚙️ Configuration
|
|
124
126
|
|
|
125
127
|
The plugin configuration must be defined on the front-end. The plugin provides a `setPluginConfig`
|
|
@@ -187,7 +189,7 @@ following properties:
|
|
|
187
189
|
```ts
|
|
188
190
|
/**
|
|
189
191
|
* The `common` styles are applied first, followed by `light` or `dark` styles
|
|
190
|
-
* according to
|
|
192
|
+
* according to user preferences, and finally `additional` styles.
|
|
191
193
|
*/
|
|
192
194
|
type Theme = {
|
|
193
195
|
/**
|
|
@@ -195,11 +197,11 @@ type Theme = {
|
|
|
195
197
|
*/
|
|
196
198
|
common?: EditorStyles;
|
|
197
199
|
/**
|
|
198
|
-
* Styles
|
|
200
|
+
* Styles applied in light mode.
|
|
199
201
|
*/
|
|
200
202
|
light?: EditorStyles;
|
|
201
203
|
/**
|
|
202
|
-
* Styles
|
|
204
|
+
* Styles applied in dark mode.
|
|
203
205
|
*/
|
|
204
206
|
dark?: EditorStyles;
|
|
205
207
|
/**
|
|
@@ -322,11 +324,11 @@ export type Theme = {
|
|
|
322
324
|
*/
|
|
323
325
|
common?: EditorStyles;
|
|
324
326
|
/**
|
|
325
|
-
* Styles
|
|
327
|
+
* Styles applied in light mode.
|
|
326
328
|
*/
|
|
327
329
|
light?: EditorStyles;
|
|
328
330
|
/**
|
|
329
|
-
* Styles
|
|
331
|
+
* Styles applied in dark mode.
|
|
330
332
|
*/
|
|
331
333
|
dark?: EditorStyles;
|
|
332
334
|
/**
|
|
@@ -558,7 +560,7 @@ const defaultHtml: Preset = {
|
|
|
558
560
|
const defaultMarkdown: Preset = {
|
|
559
561
|
...defaultMarkdownPreset,
|
|
560
562
|
description: 'Modified default Markdown editor',
|
|
561
|
-
styles: `
|
|
563
|
+
styles: css`
|
|
562
564
|
.ck {
|
|
563
565
|
--ck-editor-max-width: 1500px;
|
|
564
566
|
--ck-editor-min-height: 700px;
|
|
@@ -6,7 +6,7 @@ import { useStrapiApp, useField } from "@strapi/strapi/admin";
|
|
|
6
6
|
import { ClassicEditor } from "ckeditor5";
|
|
7
7
|
import { CKEditor } from "@ckeditor/ckeditor5-react";
|
|
8
8
|
import "ckeditor5/ckeditor5.css";
|
|
9
|
-
import { g as getPluginConfig, p as prefixFileUrlWithBackendUrl, i as isImageResponsive } from "./index-
|
|
9
|
+
import { g as getPluginConfig, p as prefixFileUrlWithBackendUrl, i as isImageResponsive } from "./index-D3a4OadF.mjs";
|
|
10
10
|
import { Collapse, Expand } from "@strapi/icons";
|
|
11
11
|
const STORAGE_KEYS = {
|
|
12
12
|
TOKEN: "jwtToken",
|
|
@@ -53,7 +53,7 @@ async function importLang(config, language) {
|
|
|
53
53
|
TRANSLATIONS[language] = translation.default;
|
|
54
54
|
config.translations = translation.default;
|
|
55
55
|
} else {
|
|
56
|
-
console.warn(`CKEditor
|
|
56
|
+
console.warn(`No CKEditor translation found for language: ${language}`);
|
|
57
57
|
}
|
|
58
58
|
}
|
|
59
59
|
function detecti18n() {
|
|
@@ -139,7 +139,9 @@ const translationImports = {
|
|
|
139
139
|
const EditorContext = createContext(null);
|
|
140
140
|
function useEditorContext() {
|
|
141
141
|
const context = useContext(EditorContext);
|
|
142
|
-
if (!context)
|
|
142
|
+
if (!context) {
|
|
143
|
+
throw new Error("The useEditorContext hook must be used within the EditorProvider.");
|
|
144
|
+
}
|
|
143
145
|
return context;
|
|
144
146
|
}
|
|
145
147
|
function EditorProvider({
|
|
@@ -288,7 +290,7 @@ function CKEReact() {
|
|
|
288
290
|
const handleChangeAssets = useCallback(
|
|
289
291
|
(newElems) => {
|
|
290
292
|
if (!editorInstance) {
|
|
291
|
-
throw new Error("
|
|
293
|
+
throw new Error("The editor instance has not been initialized.");
|
|
292
294
|
}
|
|
293
295
|
const viewFragment = editorInstance.data.processor.toView(newElems);
|
|
294
296
|
const modelFragment = editorInstance.data.toModel(viewFragment);
|
|
@@ -334,7 +336,7 @@ function CKEReact() {
|
|
|
334
336
|
try {
|
|
335
337
|
setUpFn(editor);
|
|
336
338
|
} catch (err) {
|
|
337
|
-
console.error(`
|
|
339
|
+
console.error(`Failed to set up the ${pluginName} plugin `, err);
|
|
338
340
|
}
|
|
339
341
|
}
|
|
340
342
|
});
|
|
@@ -30,7 +30,7 @@ const admin = require("@strapi/strapi/admin");
|
|
|
30
30
|
const ckeditor5 = require("ckeditor5");
|
|
31
31
|
const ckeditor5React = require("@ckeditor/ckeditor5-react");
|
|
32
32
|
require("ckeditor5/ckeditor5.css");
|
|
33
|
-
const index = require("./index-
|
|
33
|
+
const index = require("./index-CsSYDZ4y.js");
|
|
34
34
|
const icons = require("@strapi/icons");
|
|
35
35
|
const _interopDefault = (e) => e && e.__esModule ? e : { default: e };
|
|
36
36
|
const React__default = /* @__PURE__ */ _interopDefault(React);
|
|
@@ -79,7 +79,7 @@ async function importLang(config, language) {
|
|
|
79
79
|
TRANSLATIONS[language] = translation.default;
|
|
80
80
|
config.translations = translation.default;
|
|
81
81
|
} else {
|
|
82
|
-
console.warn(`CKEditor
|
|
82
|
+
console.warn(`No CKEditor translation found for language: ${language}`);
|
|
83
83
|
}
|
|
84
84
|
}
|
|
85
85
|
function detecti18n() {
|
|
@@ -165,7 +165,9 @@ const translationImports = {
|
|
|
165
165
|
const EditorContext = React.createContext(null);
|
|
166
166
|
function useEditorContext() {
|
|
167
167
|
const context = React.useContext(EditorContext);
|
|
168
|
-
if (!context)
|
|
168
|
+
if (!context) {
|
|
169
|
+
throw new Error("The useEditorContext hook must be used within the EditorProvider.");
|
|
170
|
+
}
|
|
169
171
|
return context;
|
|
170
172
|
}
|
|
171
173
|
function EditorProvider({
|
|
@@ -314,7 +316,7 @@ function CKEReact() {
|
|
|
314
316
|
const handleChangeAssets = React.useCallback(
|
|
315
317
|
(newElems) => {
|
|
316
318
|
if (!editorInstance) {
|
|
317
|
-
throw new Error("
|
|
319
|
+
throw new Error("The editor instance has not been initialized.");
|
|
318
320
|
}
|
|
319
321
|
const viewFragment = editorInstance.data.processor.toView(newElems);
|
|
320
322
|
const modelFragment = editorInstance.data.toModel(viewFragment);
|
|
@@ -360,7 +362,7 @@ function CKEReact() {
|
|
|
360
362
|
try {
|
|
361
363
|
setUpFn(editor);
|
|
362
364
|
} catch (err) {
|
|
363
|
-
console.error(`
|
|
365
|
+
console.error(`Failed to set up the ${pluginName} plugin `, err);
|
|
364
366
|
}
|
|
365
367
|
}
|
|
366
368
|
});
|
|
@@ -28,7 +28,7 @@ const yup__namespace = /* @__PURE__ */ _interopNamespace(yup);
|
|
|
28
28
|
const sanitizeHtml__namespace = /* @__PURE__ */ _interopNamespace(sanitizeHtml);
|
|
29
29
|
const cloneDeep__default = /* @__PURE__ */ _interopDefault(cloneDeep);
|
|
30
30
|
const name = "@_sh/strapi-plugin-ckeditor";
|
|
31
|
-
const version = "5.0.
|
|
31
|
+
const version = "5.0.2";
|
|
32
32
|
const description = "Integrates CKEditor 5 into your Strapi project as a fully customizable custom field. (Community Edition)";
|
|
33
33
|
const keywords = [
|
|
34
34
|
"strapi",
|
|
@@ -92,41 +92,40 @@ const scripts = {
|
|
|
92
92
|
"release:info": "release-it --changelog"
|
|
93
93
|
};
|
|
94
94
|
const dependencies = {
|
|
95
|
-
"@ckeditor/ckeditor5-react": "
|
|
96
|
-
"@strapi/design-system": "
|
|
97
|
-
"@strapi/icons": "
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
"
|
|
101
|
-
"sanitize-html": "^2.13.1",
|
|
95
|
+
"@ckeditor/ckeditor5-react": "~9.5.0",
|
|
96
|
+
"@strapi/design-system": "2.0.0-rc.18",
|
|
97
|
+
"@strapi/icons": "2.0.0-rc.18",
|
|
98
|
+
ckeditor5: "~44.3.0",
|
|
99
|
+
lodash: "4.17.21",
|
|
100
|
+
"sanitize-html": "2.13.0",
|
|
102
101
|
yup: "0.32.9"
|
|
103
102
|
};
|
|
104
103
|
const devDependencies = {
|
|
105
|
-
"@release-it/conventional-changelog": "
|
|
106
|
-
"@strapi/sdk-plugin": "
|
|
107
|
-
"@strapi/strapi": "
|
|
108
|
-
"@strapi/typescript-utils": "
|
|
104
|
+
"@release-it/conventional-changelog": "10.0.0",
|
|
105
|
+
"@strapi/sdk-plugin": "5.3.2",
|
|
106
|
+
"@strapi/strapi": "5.11.0",
|
|
107
|
+
"@strapi/typescript-utils": "5.11.0",
|
|
109
108
|
"@types/react": "^18.3.12",
|
|
110
109
|
"@types/react-dom": "^18.3.1",
|
|
111
|
-
"@types/sanitize-html": "
|
|
112
|
-
"@typescript-eslint/eslint-plugin": "
|
|
113
|
-
"@typescript-eslint/parser": "
|
|
114
|
-
eslint: "
|
|
115
|
-
"eslint-config-airbnb": "
|
|
116
|
-
"eslint-config-airbnb-typescript": "
|
|
117
|
-
"eslint-config-prettier": "
|
|
118
|
-
"eslint-plugin-import": "
|
|
119
|
-
"eslint-plugin-jsx-a11y": "
|
|
120
|
-
"eslint-plugin-prettier": "
|
|
121
|
-
"eslint-plugin-react": "
|
|
122
|
-
"eslint-plugin-react-hooks": "
|
|
110
|
+
"@types/sanitize-html": "2.13.0",
|
|
111
|
+
"@typescript-eslint/eslint-plugin": "7.0.0",
|
|
112
|
+
"@typescript-eslint/parser": "7.0.0",
|
|
113
|
+
eslint: "8.2.0",
|
|
114
|
+
"eslint-config-airbnb": "19.0.4",
|
|
115
|
+
"eslint-config-airbnb-typescript": "18.0.0",
|
|
116
|
+
"eslint-config-prettier": "9.1.0",
|
|
117
|
+
"eslint-plugin-import": "2.25.3",
|
|
118
|
+
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
119
|
+
"eslint-plugin-prettier": "5.2.1",
|
|
120
|
+
"eslint-plugin-react": "7.28.0",
|
|
121
|
+
"eslint-plugin-react-hooks": "4.3.0",
|
|
123
122
|
prettier: "3.4.0",
|
|
124
|
-
react: "
|
|
125
|
-
"react-dom": "
|
|
126
|
-
"react-router-dom": "
|
|
127
|
-
"release-it": "
|
|
128
|
-
"styled-components": "
|
|
129
|
-
typescript: "
|
|
123
|
+
react: "18.3.1",
|
|
124
|
+
"react-dom": "18.3.1",
|
|
125
|
+
"react-router-dom": "6.30.0",
|
|
126
|
+
"release-it": "18.1.2",
|
|
127
|
+
"styled-components": "6.1.15",
|
|
128
|
+
typescript: "5.6.3"
|
|
130
129
|
};
|
|
131
130
|
const peerDependencies = {
|
|
132
131
|
"@strapi/strapi": "^5.0.0",
|
|
@@ -638,14 +637,14 @@ class StrapiMediaLib extends ckeditor5.Plugin {
|
|
|
638
637
|
}
|
|
639
638
|
connect(strapiToggle) {
|
|
640
639
|
if (typeof strapiToggle !== "function") {
|
|
641
|
-
throw new Error("
|
|
640
|
+
throw new Error("The input parameter for toggle must be a function.");
|
|
642
641
|
}
|
|
643
642
|
this.strapiToggle = strapiToggle;
|
|
644
643
|
}
|
|
645
644
|
toggle() {
|
|
646
645
|
if (typeof this.strapiToggle !== "function") {
|
|
647
646
|
throw new Error(
|
|
648
|
-
"Strapi
|
|
647
|
+
"The Strapi Media Library toggle function is not connected. Use the connect function first."
|
|
649
648
|
);
|
|
650
649
|
}
|
|
651
650
|
this.strapiToggle();
|
|
@@ -1270,7 +1269,7 @@ const index = {
|
|
|
1270
1269
|
defaultMessage: "The advanced rich text editor. (Community Edition)"
|
|
1271
1270
|
},
|
|
1272
1271
|
components: {
|
|
1273
|
-
Input: async () => Promise.resolve().then(() => require("./Field-
|
|
1272
|
+
Input: async () => Promise.resolve().then(() => require("./Field-DplOWQLX.js")).then((module2) => ({
|
|
1274
1273
|
default: module2.Field
|
|
1275
1274
|
}))
|
|
1276
1275
|
},
|
|
@@ -6,7 +6,7 @@ import { jsx, jsxs } from "react/jsx-runtime";
|
|
|
6
6
|
import { Flex, lightTheme } from "@strapi/design-system";
|
|
7
7
|
import cloneDeep from "lodash/cloneDeep";
|
|
8
8
|
const name = "@_sh/strapi-plugin-ckeditor";
|
|
9
|
-
const version = "5.0.
|
|
9
|
+
const version = "5.0.2";
|
|
10
10
|
const description = "Integrates CKEditor 5 into your Strapi project as a fully customizable custom field. (Community Edition)";
|
|
11
11
|
const keywords = [
|
|
12
12
|
"strapi",
|
|
@@ -70,41 +70,40 @@ const scripts = {
|
|
|
70
70
|
"release:info": "release-it --changelog"
|
|
71
71
|
};
|
|
72
72
|
const dependencies = {
|
|
73
|
-
"@ckeditor/ckeditor5-react": "
|
|
74
|
-
"@strapi/design-system": "
|
|
75
|
-
"@strapi/icons": "
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
"
|
|
79
|
-
"sanitize-html": "^2.13.1",
|
|
73
|
+
"@ckeditor/ckeditor5-react": "~9.5.0",
|
|
74
|
+
"@strapi/design-system": "2.0.0-rc.18",
|
|
75
|
+
"@strapi/icons": "2.0.0-rc.18",
|
|
76
|
+
ckeditor5: "~44.3.0",
|
|
77
|
+
lodash: "4.17.21",
|
|
78
|
+
"sanitize-html": "2.13.0",
|
|
80
79
|
yup: "0.32.9"
|
|
81
80
|
};
|
|
82
81
|
const devDependencies = {
|
|
83
|
-
"@release-it/conventional-changelog": "
|
|
84
|
-
"@strapi/sdk-plugin": "
|
|
85
|
-
"@strapi/strapi": "
|
|
86
|
-
"@strapi/typescript-utils": "
|
|
82
|
+
"@release-it/conventional-changelog": "10.0.0",
|
|
83
|
+
"@strapi/sdk-plugin": "5.3.2",
|
|
84
|
+
"@strapi/strapi": "5.11.0",
|
|
85
|
+
"@strapi/typescript-utils": "5.11.0",
|
|
87
86
|
"@types/react": "^18.3.12",
|
|
88
87
|
"@types/react-dom": "^18.3.1",
|
|
89
|
-
"@types/sanitize-html": "
|
|
90
|
-
"@typescript-eslint/eslint-plugin": "
|
|
91
|
-
"@typescript-eslint/parser": "
|
|
92
|
-
eslint: "
|
|
93
|
-
"eslint-config-airbnb": "
|
|
94
|
-
"eslint-config-airbnb-typescript": "
|
|
95
|
-
"eslint-config-prettier": "
|
|
96
|
-
"eslint-plugin-import": "
|
|
97
|
-
"eslint-plugin-jsx-a11y": "
|
|
98
|
-
"eslint-plugin-prettier": "
|
|
99
|
-
"eslint-plugin-react": "
|
|
100
|
-
"eslint-plugin-react-hooks": "
|
|
88
|
+
"@types/sanitize-html": "2.13.0",
|
|
89
|
+
"@typescript-eslint/eslint-plugin": "7.0.0",
|
|
90
|
+
"@typescript-eslint/parser": "7.0.0",
|
|
91
|
+
eslint: "8.2.0",
|
|
92
|
+
"eslint-config-airbnb": "19.0.4",
|
|
93
|
+
"eslint-config-airbnb-typescript": "18.0.0",
|
|
94
|
+
"eslint-config-prettier": "9.1.0",
|
|
95
|
+
"eslint-plugin-import": "2.25.3",
|
|
96
|
+
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
97
|
+
"eslint-plugin-prettier": "5.2.1",
|
|
98
|
+
"eslint-plugin-react": "7.28.0",
|
|
99
|
+
"eslint-plugin-react-hooks": "4.3.0",
|
|
101
100
|
prettier: "3.4.0",
|
|
102
|
-
react: "
|
|
103
|
-
"react-dom": "
|
|
104
|
-
"react-router-dom": "
|
|
105
|
-
"release-it": "
|
|
106
|
-
"styled-components": "
|
|
107
|
-
typescript: "
|
|
101
|
+
react: "18.3.1",
|
|
102
|
+
"react-dom": "18.3.1",
|
|
103
|
+
"react-router-dom": "6.30.0",
|
|
104
|
+
"release-it": "18.1.2",
|
|
105
|
+
"styled-components": "6.1.15",
|
|
106
|
+
typescript: "5.6.3"
|
|
108
107
|
};
|
|
109
108
|
const peerDependencies = {
|
|
110
109
|
"@strapi/strapi": "^5.0.0",
|
|
@@ -616,14 +615,14 @@ class StrapiMediaLib extends Plugin {
|
|
|
616
615
|
}
|
|
617
616
|
connect(strapiToggle) {
|
|
618
617
|
if (typeof strapiToggle !== "function") {
|
|
619
|
-
throw new Error("
|
|
618
|
+
throw new Error("The input parameter for toggle must be a function.");
|
|
620
619
|
}
|
|
621
620
|
this.strapiToggle = strapiToggle;
|
|
622
621
|
}
|
|
623
622
|
toggle() {
|
|
624
623
|
if (typeof this.strapiToggle !== "function") {
|
|
625
624
|
throw new Error(
|
|
626
|
-
"Strapi
|
|
625
|
+
"The Strapi Media Library toggle function is not connected. Use the connect function first."
|
|
627
626
|
);
|
|
628
627
|
}
|
|
629
628
|
this.strapiToggle();
|
|
@@ -1248,7 +1247,7 @@ const index = {
|
|
|
1248
1247
|
defaultMessage: "The advanced rich text editor. (Community Edition)"
|
|
1249
1248
|
},
|
|
1250
1249
|
components: {
|
|
1251
|
-
Input: async () => import("./Field-
|
|
1250
|
+
Input: async () => import("./Field-D_JHCz5O.mjs").then((module) => ({
|
|
1252
1251
|
default: module.Field
|
|
1253
1252
|
}))
|
|
1254
1253
|
},
|
package/dist/admin/index.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: "Module" } });
|
|
3
3
|
require("yup");
|
|
4
|
-
const index = require("../_chunks/index-
|
|
4
|
+
const index = require("../_chunks/index-CsSYDZ4y.js");
|
|
5
5
|
require("ckeditor5");
|
|
6
6
|
exports.StrapiMediaLib = index.StrapiMediaLib;
|
|
7
7
|
exports.StrapiUploadAdapter = index.StrapiUploadAdapter;
|
package/dist/admin/index.mjs
CHANGED
|
@@ -67,7 +67,7 @@ export type UserPluginConfig = {
|
|
|
67
67
|
* @remarks
|
|
68
68
|
*
|
|
69
69
|
* The `common` styles are applied first, followed by `light` or `dark` styles
|
|
70
|
-
* according to
|
|
70
|
+
* according to user preferences, and finally `additional` styles.
|
|
71
71
|
*/
|
|
72
72
|
export type Theme = {
|
|
73
73
|
/**
|
|
@@ -75,11 +75,11 @@ export type Theme = {
|
|
|
75
75
|
*/
|
|
76
76
|
common?: EditorStyles;
|
|
77
77
|
/**
|
|
78
|
-
* Styles
|
|
78
|
+
* Styles applied in light mode.
|
|
79
79
|
*/
|
|
80
80
|
light?: EditorStyles;
|
|
81
81
|
/**
|
|
82
|
-
* Styles
|
|
82
|
+
* Styles applied in dark mode.
|
|
83
83
|
*/
|
|
84
84
|
dark?: EditorStyles;
|
|
85
85
|
/**
|
package/dist/server/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
const name = "@_sh/strapi-plugin-ckeditor";
|
|
3
|
-
const version = "5.0.
|
|
3
|
+
const version = "5.0.2";
|
|
4
4
|
const description = "Integrates CKEditor 5 into your Strapi project as a fully customizable custom field. (Community Edition)";
|
|
5
5
|
const keywords = [
|
|
6
6
|
"strapi",
|
|
@@ -64,41 +64,40 @@ const scripts = {
|
|
|
64
64
|
"release:info": "release-it --changelog"
|
|
65
65
|
};
|
|
66
66
|
const dependencies = {
|
|
67
|
-
"@ckeditor/ckeditor5-react": "
|
|
68
|
-
"@strapi/design-system": "
|
|
69
|
-
"@strapi/icons": "
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
"
|
|
73
|
-
"sanitize-html": "^2.13.1",
|
|
67
|
+
"@ckeditor/ckeditor5-react": "~9.5.0",
|
|
68
|
+
"@strapi/design-system": "2.0.0-rc.18",
|
|
69
|
+
"@strapi/icons": "2.0.0-rc.18",
|
|
70
|
+
ckeditor5: "~44.3.0",
|
|
71
|
+
lodash: "4.17.21",
|
|
72
|
+
"sanitize-html": "2.13.0",
|
|
74
73
|
yup: "0.32.9"
|
|
75
74
|
};
|
|
76
75
|
const devDependencies = {
|
|
77
|
-
"@release-it/conventional-changelog": "
|
|
78
|
-
"@strapi/sdk-plugin": "
|
|
79
|
-
"@strapi/strapi": "
|
|
80
|
-
"@strapi/typescript-utils": "
|
|
76
|
+
"@release-it/conventional-changelog": "10.0.0",
|
|
77
|
+
"@strapi/sdk-plugin": "5.3.2",
|
|
78
|
+
"@strapi/strapi": "5.11.0",
|
|
79
|
+
"@strapi/typescript-utils": "5.11.0",
|
|
81
80
|
"@types/react": "^18.3.12",
|
|
82
81
|
"@types/react-dom": "^18.3.1",
|
|
83
|
-
"@types/sanitize-html": "
|
|
84
|
-
"@typescript-eslint/eslint-plugin": "
|
|
85
|
-
"@typescript-eslint/parser": "
|
|
86
|
-
eslint: "
|
|
87
|
-
"eslint-config-airbnb": "
|
|
88
|
-
"eslint-config-airbnb-typescript": "
|
|
89
|
-
"eslint-config-prettier": "
|
|
90
|
-
"eslint-plugin-import": "
|
|
91
|
-
"eslint-plugin-jsx-a11y": "
|
|
92
|
-
"eslint-plugin-prettier": "
|
|
93
|
-
"eslint-plugin-react": "
|
|
94
|
-
"eslint-plugin-react-hooks": "
|
|
82
|
+
"@types/sanitize-html": "2.13.0",
|
|
83
|
+
"@typescript-eslint/eslint-plugin": "7.0.0",
|
|
84
|
+
"@typescript-eslint/parser": "7.0.0",
|
|
85
|
+
eslint: "8.2.0",
|
|
86
|
+
"eslint-config-airbnb": "19.0.4",
|
|
87
|
+
"eslint-config-airbnb-typescript": "18.0.0",
|
|
88
|
+
"eslint-config-prettier": "9.1.0",
|
|
89
|
+
"eslint-plugin-import": "2.25.3",
|
|
90
|
+
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
91
|
+
"eslint-plugin-prettier": "5.2.1",
|
|
92
|
+
"eslint-plugin-react": "7.28.0",
|
|
93
|
+
"eslint-plugin-react-hooks": "4.3.0",
|
|
95
94
|
prettier: "3.4.0",
|
|
96
|
-
react: "
|
|
97
|
-
"react-dom": "
|
|
98
|
-
"react-router-dom": "
|
|
99
|
-
"release-it": "
|
|
100
|
-
"styled-components": "
|
|
101
|
-
typescript: "
|
|
95
|
+
react: "18.3.1",
|
|
96
|
+
"react-dom": "18.3.1",
|
|
97
|
+
"react-router-dom": "6.30.0",
|
|
98
|
+
"release-it": "18.1.2",
|
|
99
|
+
"styled-components": "6.1.15",
|
|
100
|
+
typescript: "5.6.3"
|
|
102
101
|
};
|
|
103
102
|
const peerDependencies = {
|
|
104
103
|
"@strapi/strapi": "^5.0.0",
|
package/dist/server/index.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
const name = "@_sh/strapi-plugin-ckeditor";
|
|
2
|
-
const version = "5.0.
|
|
2
|
+
const version = "5.0.2";
|
|
3
3
|
const description = "Integrates CKEditor 5 into your Strapi project as a fully customizable custom field. (Community Edition)";
|
|
4
4
|
const keywords = [
|
|
5
5
|
"strapi",
|
|
@@ -63,41 +63,40 @@ const scripts = {
|
|
|
63
63
|
"release:info": "release-it --changelog"
|
|
64
64
|
};
|
|
65
65
|
const dependencies = {
|
|
66
|
-
"@ckeditor/ckeditor5-react": "
|
|
67
|
-
"@strapi/design-system": "
|
|
68
|
-
"@strapi/icons": "
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
"
|
|
72
|
-
"sanitize-html": "^2.13.1",
|
|
66
|
+
"@ckeditor/ckeditor5-react": "~9.5.0",
|
|
67
|
+
"@strapi/design-system": "2.0.0-rc.18",
|
|
68
|
+
"@strapi/icons": "2.0.0-rc.18",
|
|
69
|
+
ckeditor5: "~44.3.0",
|
|
70
|
+
lodash: "4.17.21",
|
|
71
|
+
"sanitize-html": "2.13.0",
|
|
73
72
|
yup: "0.32.9"
|
|
74
73
|
};
|
|
75
74
|
const devDependencies = {
|
|
76
|
-
"@release-it/conventional-changelog": "
|
|
77
|
-
"@strapi/sdk-plugin": "
|
|
78
|
-
"@strapi/strapi": "
|
|
79
|
-
"@strapi/typescript-utils": "
|
|
75
|
+
"@release-it/conventional-changelog": "10.0.0",
|
|
76
|
+
"@strapi/sdk-plugin": "5.3.2",
|
|
77
|
+
"@strapi/strapi": "5.11.0",
|
|
78
|
+
"@strapi/typescript-utils": "5.11.0",
|
|
80
79
|
"@types/react": "^18.3.12",
|
|
81
80
|
"@types/react-dom": "^18.3.1",
|
|
82
|
-
"@types/sanitize-html": "
|
|
83
|
-
"@typescript-eslint/eslint-plugin": "
|
|
84
|
-
"@typescript-eslint/parser": "
|
|
85
|
-
eslint: "
|
|
86
|
-
"eslint-config-airbnb": "
|
|
87
|
-
"eslint-config-airbnb-typescript": "
|
|
88
|
-
"eslint-config-prettier": "
|
|
89
|
-
"eslint-plugin-import": "
|
|
90
|
-
"eslint-plugin-jsx-a11y": "
|
|
91
|
-
"eslint-plugin-prettier": "
|
|
92
|
-
"eslint-plugin-react": "
|
|
93
|
-
"eslint-plugin-react-hooks": "
|
|
81
|
+
"@types/sanitize-html": "2.13.0",
|
|
82
|
+
"@typescript-eslint/eslint-plugin": "7.0.0",
|
|
83
|
+
"@typescript-eslint/parser": "7.0.0",
|
|
84
|
+
eslint: "8.2.0",
|
|
85
|
+
"eslint-config-airbnb": "19.0.4",
|
|
86
|
+
"eslint-config-airbnb-typescript": "18.0.0",
|
|
87
|
+
"eslint-config-prettier": "9.1.0",
|
|
88
|
+
"eslint-plugin-import": "2.25.3",
|
|
89
|
+
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
90
|
+
"eslint-plugin-prettier": "5.2.1",
|
|
91
|
+
"eslint-plugin-react": "7.28.0",
|
|
92
|
+
"eslint-plugin-react-hooks": "4.3.0",
|
|
94
93
|
prettier: "3.4.0",
|
|
95
|
-
react: "
|
|
96
|
-
"react-dom": "
|
|
97
|
-
"react-router-dom": "
|
|
98
|
-
"release-it": "
|
|
99
|
-
"styled-components": "
|
|
100
|
-
typescript: "
|
|
94
|
+
react: "18.3.1",
|
|
95
|
+
"react-dom": "18.3.1",
|
|
96
|
+
"react-router-dom": "6.30.0",
|
|
97
|
+
"release-it": "18.1.2",
|
|
98
|
+
"styled-components": "6.1.15",
|
|
99
|
+
typescript: "5.6.3"
|
|
101
100
|
};
|
|
102
101
|
const peerDependencies = {
|
|
103
102
|
"@strapi/strapi": "^5.0.0",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@_sh/strapi-plugin-ckeditor",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.2",
|
|
4
4
|
"description": "Integrates CKEditor 5 into your Strapi project as a fully customizable custom field. (Community Edition)",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"strapi",
|
|
@@ -64,41 +64,40 @@
|
|
|
64
64
|
"release:info": "release-it --changelog"
|
|
65
65
|
},
|
|
66
66
|
"dependencies": {
|
|
67
|
-
"@ckeditor/ckeditor5-react": "
|
|
68
|
-
"@strapi/design-system": "
|
|
69
|
-
"@strapi/icons": "
|
|
70
|
-
"
|
|
71
|
-
"
|
|
72
|
-
"
|
|
73
|
-
"sanitize-html": "^2.13.1",
|
|
67
|
+
"@ckeditor/ckeditor5-react": "~9.5.0",
|
|
68
|
+
"@strapi/design-system": "2.0.0-rc.18",
|
|
69
|
+
"@strapi/icons": "2.0.0-rc.18",
|
|
70
|
+
"ckeditor5": "~44.3.0",
|
|
71
|
+
"lodash": "4.17.21",
|
|
72
|
+
"sanitize-html": "2.13.0",
|
|
74
73
|
"yup": "0.32.9"
|
|
75
74
|
},
|
|
76
75
|
"devDependencies": {
|
|
77
|
-
"@release-it/conventional-changelog": "
|
|
78
|
-
"@strapi/sdk-plugin": "
|
|
79
|
-
"@strapi/strapi": "
|
|
80
|
-
"@strapi/typescript-utils": "
|
|
76
|
+
"@release-it/conventional-changelog": "10.0.0",
|
|
77
|
+
"@strapi/sdk-plugin": "5.3.2",
|
|
78
|
+
"@strapi/strapi": "5.11.0",
|
|
79
|
+
"@strapi/typescript-utils": "5.11.0",
|
|
81
80
|
"@types/react": "^18.3.12",
|
|
82
81
|
"@types/react-dom": "^18.3.1",
|
|
83
|
-
"@types/sanitize-html": "
|
|
84
|
-
"@typescript-eslint/eslint-plugin": "
|
|
85
|
-
"@typescript-eslint/parser": "
|
|
86
|
-
"eslint": "
|
|
87
|
-
"eslint-config-airbnb": "
|
|
88
|
-
"eslint-config-airbnb-typescript": "
|
|
89
|
-
"eslint-config-prettier": "
|
|
90
|
-
"eslint-plugin-import": "
|
|
91
|
-
"eslint-plugin-jsx-a11y": "
|
|
92
|
-
"eslint-plugin-prettier": "
|
|
93
|
-
"eslint-plugin-react": "
|
|
94
|
-
"eslint-plugin-react-hooks": "
|
|
82
|
+
"@types/sanitize-html": "2.13.0",
|
|
83
|
+
"@typescript-eslint/eslint-plugin": "7.0.0",
|
|
84
|
+
"@typescript-eslint/parser": "7.0.0",
|
|
85
|
+
"eslint": "8.2.0",
|
|
86
|
+
"eslint-config-airbnb": "19.0.4",
|
|
87
|
+
"eslint-config-airbnb-typescript": "18.0.0",
|
|
88
|
+
"eslint-config-prettier": "9.1.0",
|
|
89
|
+
"eslint-plugin-import": "2.25.3",
|
|
90
|
+
"eslint-plugin-jsx-a11y": "6.10.2",
|
|
91
|
+
"eslint-plugin-prettier": "5.2.1",
|
|
92
|
+
"eslint-plugin-react": "7.28.0",
|
|
93
|
+
"eslint-plugin-react-hooks": "4.3.0",
|
|
95
94
|
"prettier": "3.4.0",
|
|
96
|
-
"react": "
|
|
97
|
-
"react-dom": "
|
|
98
|
-
"react-router-dom": "
|
|
99
|
-
"release-it": "
|
|
100
|
-
"styled-components": "
|
|
101
|
-
"typescript": "
|
|
95
|
+
"react": "18.3.1",
|
|
96
|
+
"react-dom": "18.3.1",
|
|
97
|
+
"react-router-dom": "6.30.0",
|
|
98
|
+
"release-it": "18.1.2",
|
|
99
|
+
"styled-components": "6.1.15",
|
|
100
|
+
"typescript": "5.6.3"
|
|
102
101
|
},
|
|
103
102
|
"peerDependencies": {
|
|
104
103
|
"@strapi/strapi": "^5.0.0",
|