@_sh/strapi-plugin-ckeditor 2.0.1 → 2.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/README.md
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src="assets/ckeditor5_2_0.png" width="700" />
|
|
2
|
+
<img src="https://raw.githubusercontent.com/nshenderov/strapi-plugin-ckeditor/master/assets/ckeditor5_2_0.png" width="700" />
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<h1 align="center">CKEditor 5 for Strapi</h1>
|
|
@@ -61,9 +61,9 @@ It's highly recommended to explore [**the official ckeditor documentation**](htt
|
|
|
61
61
|
|
|
62
62
|
Content from ckeditor.txt will be passed into a script tag through the initialization process.
|
|
63
63
|
|
|
64
|
-
> 📂 Default configs: [**admin/src/components/Input/CKEditor/configs**](admin/src/components/Input/CKEditor/configs)
|
|
64
|
+
> 📂 Default configs: [**admin/src/components/Input/CKEditor/configs**](https://github.com/nshenderov/strapi-plugin-ckeditor/blob/master/admin/src/components/Input/CKEditor/configs)
|
|
65
65
|
|
|
66
|
-
> 📂 Default theme: [**admin/src/components/Input/CKEditor/theme**](admin/src/components/Input/CKEditor/theme)
|
|
66
|
+
> 📂 Default theme: [**admin/src/components/Input/CKEditor/theme**](https://github.com/nshenderov/strapi-plugin-ckeditor/blob/master/admin/src/components/Input/CKEditor/theme)
|
|
67
67
|
|
|
68
68
|
**ckeditor.txt example:**
|
|
69
69
|
|
|
@@ -235,7 +235,7 @@ module.exports = ({ env }) => ({
|
|
|
235
235
|
});
|
|
236
236
|
```
|
|
237
237
|
|
|
238
|
-
> In order to display some content from an external source on your `admin` side you should configure your middlewares.js [**check docs about this**](https://docs.strapi.io/developer-docs/latest/setup-deployment-guides/configurations/required/middlewares.html)
|
|
238
|
+
> In order to display some content from an external source on your `admin` side you should configure your middlewares.js [**check the docs about this**](https://docs.strapi.io/developer-docs/latest/setup-deployment-guides/configurations/required/middlewares.html)
|
|
239
239
|
|
|
240
240
|
## How to add plugins
|
|
241
241
|
|
|
@@ -378,8 +378,7 @@ yarn build
|
|
|
378
378
|
## <a id="contributing"></a>🛠 Contributing
|
|
379
379
|
___
|
|
380
380
|
|
|
381
|
-
|
|
382
|
-
<summary><b>This section covers the way how to configure your environment if you want to contribute to this package.</b> </summary>
|
|
381
|
+
This section covers the way how to configure your environment if you want to contribute to this package.
|
|
383
382
|
|
|
384
383
|
### Setting up the environment
|
|
385
384
|
|
|
@@ -433,11 +432,6 @@ yarn build
|
|
|
433
432
|
yarn develop
|
|
434
433
|
```
|
|
435
434
|
|
|
436
|
-
</details>
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
435
|
## <a id="requirements"></a>⚠️ Requirements
|
|
442
436
|
___
|
|
443
437
|
Strapi **v4.4.0+**
|
|
@@ -54,9 +54,8 @@ const Editor = ({ onChange, name, value, disabled, preset, maxLength }) => {
|
|
|
54
54
|
editor={window.CKEditor5.editorClassic.ClassicEditor}
|
|
55
55
|
config={config?.editorConfig}
|
|
56
56
|
disabled={disabled}
|
|
57
|
-
data={value
|
|
57
|
+
data={value}
|
|
58
58
|
onReady={(editor) => {
|
|
59
|
-
editor.setData(value || "");
|
|
60
59
|
|
|
61
60
|
if(config.editorConfig.WordCountPlugin){
|
|
62
61
|
const wordCountPlugin = editor.plugins.get( 'WordCount' );
|
package/package.json
CHANGED