@_sh/strapi-plugin-ckeditor 4.0.3 → 4.0.4

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.
Files changed (142) hide show
  1. package/README.md +50 -31
  2. package/dist/_chunks/index--3qOEhDs.js +1259 -0
  3. package/dist/_chunks/index--3qOEhDs.js.map +1 -0
  4. package/dist/_chunks/index-4_OA7OAk.mjs +3619 -0
  5. package/dist/_chunks/index-4_OA7OAk.mjs.map +1 -0
  6. package/dist/_chunks/index-B4B_N_mT.js +1258 -0
  7. package/dist/_chunks/index-B4B_N_mT.js.map +1 -0
  8. package/dist/_chunks/index-B4zdHWmd.mjs +3628 -0
  9. package/dist/_chunks/index-B4zdHWmd.mjs.map +1 -0
  10. package/dist/_chunks/index-BAHV4Rit.mjs +18576 -0
  11. package/dist/_chunks/index-BAHV4Rit.mjs.map +1 -0
  12. package/dist/_chunks/index-BGnC47NY.js +1262 -0
  13. package/dist/_chunks/index-BGnC47NY.js.map +1 -0
  14. package/dist/_chunks/index-BIS1Nqu7.js +3647 -0
  15. package/dist/_chunks/index-BIS1Nqu7.js.map +1 -0
  16. package/dist/_chunks/index-BLPYcRSY.js +1259 -0
  17. package/dist/_chunks/index-BLPYcRSY.js.map +1 -0
  18. package/dist/_chunks/index-BQjPOiyH.mjs +1216 -0
  19. package/dist/_chunks/index-BQjPOiyH.mjs.map +1 -0
  20. package/dist/_chunks/index-BR1nmvVi.js +3647 -0
  21. package/dist/_chunks/index-BR1nmvVi.js.map +1 -0
  22. package/dist/_chunks/index-BUJ77Z7_.js +3647 -0
  23. package/dist/_chunks/index-BUJ77Z7_.js.map +1 -0
  24. package/dist/_chunks/index-BYwVUqR0.mjs +1216 -0
  25. package/dist/_chunks/index-BYwVUqR0.mjs.map +1 -0
  26. package/dist/_chunks/index-Bax19OtQ.mjs +3628 -0
  27. package/dist/_chunks/index-Bax19OtQ.mjs.map +1 -0
  28. package/dist/_chunks/index-BeTiFY5i.mjs +1215 -0
  29. package/dist/_chunks/index-BeTiFY5i.mjs.map +1 -0
  30. package/dist/_chunks/index-Bg8cqHJ2.js +3647 -0
  31. package/dist/_chunks/index-Bg8cqHJ2.js.map +1 -0
  32. package/dist/_chunks/index-Brt7PGzp.js +1258 -0
  33. package/dist/_chunks/index-Brt7PGzp.js.map +1 -0
  34. package/dist/_chunks/index-BuhTp-Sa.js +3647 -0
  35. package/dist/_chunks/index-BuhTp-Sa.js.map +1 -0
  36. package/dist/_chunks/index-BwKsnFO2.js +3647 -0
  37. package/dist/_chunks/index-BwKsnFO2.js.map +1 -0
  38. package/dist/_chunks/index-C4tb1DCd.mjs +1216 -0
  39. package/dist/_chunks/index-C4tb1DCd.mjs.map +1 -0
  40. package/dist/_chunks/index-C8KlcqmI.js +1258 -0
  41. package/dist/_chunks/index-C8KlcqmI.js.map +1 -0
  42. package/dist/_chunks/index-CCbtpGDB.mjs +3628 -0
  43. package/dist/_chunks/index-CCbtpGDB.mjs.map +1 -0
  44. package/dist/_chunks/index-CCc7pa2n.mjs +1215 -0
  45. package/dist/_chunks/index-CCc7pa2n.mjs.map +1 -0
  46. package/dist/_chunks/index-CE1EfY8M.js +3647 -0
  47. package/dist/_chunks/index-CE1EfY8M.js.map +1 -0
  48. package/dist/_chunks/index-CHDy_Zj7.mjs +1218 -0
  49. package/dist/_chunks/index-CHDy_Zj7.mjs.map +1 -0
  50. package/dist/_chunks/index-CM0RbkHm.js +3647 -0
  51. package/dist/_chunks/index-CM0RbkHm.js.map +1 -0
  52. package/dist/_chunks/index-CM0nD5cx.mjs +3628 -0
  53. package/dist/_chunks/index-CM0nD5cx.mjs.map +1 -0
  54. package/dist/_chunks/index-CMjpzY3E.js +3647 -0
  55. package/dist/_chunks/index-CMjpzY3E.js.map +1 -0
  56. package/dist/_chunks/index-COsQBkeK.mjs +1218 -0
  57. package/dist/_chunks/index-COsQBkeK.mjs.map +1 -0
  58. package/dist/_chunks/index-Ca1QQCiz.js +1263 -0
  59. package/dist/_chunks/index-Ca1QQCiz.js.map +1 -0
  60. package/dist/_chunks/index-Ca4wvrZM.js +1259 -0
  61. package/dist/_chunks/index-Ca4wvrZM.js.map +1 -0
  62. package/dist/_chunks/index-Cdm3BByz.mjs +3628 -0
  63. package/dist/_chunks/index-Cdm3BByz.mjs.map +1 -0
  64. package/dist/_chunks/index-Cfur1BcK.js +3647 -0
  65. package/dist/_chunks/index-Cfur1BcK.js.map +1 -0
  66. package/dist/_chunks/index-CkPQxfao.js +3647 -0
  67. package/dist/_chunks/index-CkPQxfao.js.map +1 -0
  68. package/dist/_chunks/index-CljfdYqm.mjs +1215 -0
  69. package/dist/_chunks/index-CljfdYqm.mjs.map +1 -0
  70. package/dist/_chunks/index-CoP42qaj.mjs +3628 -0
  71. package/dist/_chunks/index-CoP42qaj.mjs.map +1 -0
  72. package/dist/_chunks/index-CsyJ1GEi.js +3647 -0
  73. package/dist/_chunks/index-CsyJ1GEi.js.map +1 -0
  74. package/dist/_chunks/index-Ctd06mAS.js +1262 -0
  75. package/dist/_chunks/index-Ctd06mAS.js.map +1 -0
  76. package/dist/_chunks/index-Cvt-1fPJ.js +1258 -0
  77. package/dist/_chunks/index-Cvt-1fPJ.js.map +1 -0
  78. package/dist/_chunks/index-D-VjUqfk.js +1261 -0
  79. package/dist/_chunks/index-D-VjUqfk.js.map +1 -0
  80. package/dist/_chunks/index-D2eyzVJY.js +3647 -0
  81. package/dist/_chunks/index-D2eyzVJY.js.map +1 -0
  82. package/dist/_chunks/index-D46R-0q1.mjs +3628 -0
  83. package/dist/_chunks/index-D46R-0q1.mjs.map +1 -0
  84. package/dist/_chunks/index-DAzJ2oQj.js +4478 -0
  85. package/dist/_chunks/index-DAzJ2oQj.js.map +1 -0
  86. package/dist/_chunks/index-DE9sNFWe.js +1259 -0
  87. package/dist/_chunks/index-DE9sNFWe.js.map +1 -0
  88. package/dist/_chunks/index-DIj8vs42.mjs +1216 -0
  89. package/dist/_chunks/index-DIj8vs42.mjs.map +1 -0
  90. package/dist/_chunks/index-DNyJV04U.mjs +3628 -0
  91. package/dist/_chunks/index-DNyJV04U.mjs.map +1 -0
  92. package/dist/_chunks/index-DQmrEgPx.js +18620 -0
  93. package/dist/_chunks/index-DQmrEgPx.js.map +1 -0
  94. package/dist/_chunks/index-DSlMiMu4.mjs +1220 -0
  95. package/dist/_chunks/index-DSlMiMu4.mjs.map +1 -0
  96. package/dist/_chunks/index-DT7Ak3-R.js +3647 -0
  97. package/dist/_chunks/index-DT7Ak3-R.js.map +1 -0
  98. package/dist/_chunks/index-DX33_u0y.mjs +4459 -0
  99. package/dist/_chunks/index-DX33_u0y.mjs.map +1 -0
  100. package/dist/_chunks/index-DXiBhR_A.mjs +1216 -0
  101. package/dist/_chunks/index-DXiBhR_A.mjs.map +1 -0
  102. package/dist/_chunks/index-De1440YT.mjs +1220 -0
  103. package/dist/_chunks/index-De1440YT.mjs.map +1 -0
  104. package/dist/_chunks/index-DlZJKzF7.mjs +3628 -0
  105. package/dist/_chunks/index-DlZJKzF7.mjs.map +1 -0
  106. package/dist/_chunks/index-DsBSAoVd.mjs +1219 -0
  107. package/dist/_chunks/index-DsBSAoVd.mjs.map +1 -0
  108. package/dist/_chunks/index-DsrBTgAz.js +1259 -0
  109. package/dist/_chunks/index-DsrBTgAz.js.map +1 -0
  110. package/dist/_chunks/index-DtLPKm0j.js +1261 -0
  111. package/dist/_chunks/index-DtLPKm0j.js.map +1 -0
  112. package/dist/_chunks/index-DvQaV8xI.js +1259 -0
  113. package/dist/_chunks/index-DvQaV8xI.js.map +1 -0
  114. package/dist/_chunks/index-HTyR006C.mjs +3628 -0
  115. package/dist/_chunks/index-HTyR006C.mjs.map +1 -0
  116. package/dist/_chunks/index-L3hEYnIb.mjs +1215 -0
  117. package/dist/_chunks/index-L3hEYnIb.mjs.map +1 -0
  118. package/dist/_chunks/index-REEaVbcH.mjs +1216 -0
  119. package/dist/_chunks/index-REEaVbcH.mjs.map +1 -0
  120. package/dist/_chunks/index-S6wjiYIP.mjs +3628 -0
  121. package/dist/_chunks/index-S6wjiYIP.mjs.map +1 -0
  122. package/dist/_chunks/index-T5WTRwuT.mjs +3628 -0
  123. package/dist/_chunks/index-T5WTRwuT.mjs.map +1 -0
  124. package/dist/_chunks/index-W1DBUCcJ.js +1263 -0
  125. package/dist/_chunks/index-W1DBUCcJ.js.map +1 -0
  126. package/dist/_chunks/index-Y47yaZuA.mjs +3628 -0
  127. package/dist/_chunks/index-Y47yaZuA.mjs.map +1 -0
  128. package/dist/_chunks/index-YL7umCmx.mjs +1219 -0
  129. package/dist/_chunks/index-YL7umCmx.mjs.map +1 -0
  130. package/dist/_chunks/index-ZQQxP6CG.js +3638 -0
  131. package/dist/_chunks/index-ZQQxP6CG.js.map +1 -0
  132. package/dist/_chunks/index-jOXX9Ffc.mjs +3628 -0
  133. package/dist/_chunks/index-jOXX9Ffc.mjs.map +1 -0
  134. package/dist/_chunks/index-oj72y8-P.js +3647 -0
  135. package/dist/_chunks/index-oj72y8-P.js.map +1 -0
  136. package/dist/_chunks/index-y2orvMVy.mjs +3628 -0
  137. package/dist/_chunks/index-y2orvMVy.mjs.map +1 -0
  138. package/dist/admin/index.js +1 -1
  139. package/dist/admin/index.mjs +1 -1
  140. package/dist/server/index.js +1 -1
  141. package/dist/server/index.mjs +1 -1
  142. package/package.json +1 -1
package/README.md CHANGED
@@ -34,26 +34,21 @@
34
34
 
35
35
 
36
36
  ## <a id="installation"></a>🔧 Installation
37
- ___
38
-
39
- Add the package to your Strapi application:
40
37
 
41
- ```bash
42
- npm install @_sh/strapi-plugin-ckeditor
43
- ```
44
38
 
45
- or
39
+ Add the package to your Strapi application:
46
40
 
47
41
  ```bash
48
42
  yarn add @_sh/strapi-plugin-ckeditor
49
43
  ```
50
44
 
51
- Then build the app:
45
+ For Strapi v4:
52
46
  ```bash
53
- npm run build
47
+ yarn add @_sh/strapi-plugin-ckeditor@strapi-v4-latest
54
48
  ```
55
49
 
56
- or
50
+ Then, build the app:
51
+
57
52
  ```bash
58
53
  yarn build
59
54
  ```
@@ -74,9 +69,11 @@ yarn build
74
69
  </details>
75
70
 
76
71
  ## <a id="configuration"></a>⚙️ Configuration
77
- ___
78
72
 
79
- It is highly recommended to explore [**the official CKEditor5 documentation**](https://ckeditor.com/docs/ckeditor5/latest/features/index.html) and [**the Strapi Custom Field API**](https://docs.strapi.io/developer-docs/latest/development/custom-fields.html#registering-a-custom-field-on-the-server)
73
+
74
+ > It is highly recommended to explore [**the official CKEditor5 documentation**](https://ckeditor.com/docs/ckeditor5/latest/features/index.html) and [**the Strapi Custom Field API**](https://docs.strapi.io/developer-docs/latest/development/custom-fields.html#registering-a-custom-field-on-the-server)
75
+ >
76
+ > To display content from external sources, such as images or videos, in your admin panel, you need to configure your `middlewares.js` file. [**Check the official documentation for details.**](https://docs.strapi.io/dev-docs/configurations/middlewares#security)
80
77
 
81
78
  The plugin configuration should be defined in `your-app/config/ckeditor.js|ts`
82
79
 
@@ -151,6 +148,8 @@ The language determination follows this logic:
151
148
  - Content language:
152
149
  `ignorei18n ? language.content : i18n -> language.ui`
153
150
 
151
+ ---
152
+
154
153
  **Example of adding a new editor configuration:**
155
154
 
156
155
  <details>
@@ -239,6 +238,8 @@ const CKEConfig = () => ({
239
238
 
240
239
  </details>
241
240
 
241
+ ---
242
+
242
243
  **Example of changing buttons, modifying the plugin list, and adding styles in the default preset:**
243
244
 
244
245
  <details>
@@ -298,15 +299,13 @@ const CKEConfig = () => ({
298
299
 
299
300
  </details>
300
301
 
301
- > 📂 Default preset: [**admin/src/Input/presets/default.js**](https://github.com/nshenderov/strapi-plugin-ckeditor/blob/master/admin/src/Input/presets/default.js)
302
-
303
- > 📂 Default editor styles: [**admin/src/Input/theme**](https://github.com/nshenderov/strapi-plugin-ckeditor/blob/master/admin/src/Input/theme)
304
-
305
- > 💡 To display content from an external source in your admin panel, you should configure your `middlewares.js`. [**Explore the documentation for more information**](https://docs.strapi.io/developer-docs/latest/setup-deployment-guides/configurations/required/middlewares.html)
302
+ ---
306
303
 
307
- ## Adding plugins
304
+ > 📂 Default preset: [**admin/src/components/Input/presets/default.js**](https://github.com/nshenderov/strapi-plugin-ckeditor/blob/master/admin/src/components/Input/presets/default.js)
305
+ >
306
+ > 📂 Default theme: [**admin/src/components/Input/theme**](https://github.com/nshenderov/strapi-plugin-ckeditor/blob/master/admin/src/components/Input/theme)
308
307
 
309
- ___
308
+ ### Adding plugins
310
309
 
311
310
  Your plugin must be available in the `global`.
312
311
 
@@ -438,16 +437,10 @@ const CKEConfig = () => ({
438
437
 
439
438
  4. Then rebuild the application:
440
439
  ```bash
441
- npm run build
442
- ```
443
-
444
- or
445
- ```bash
446
440
  yarn build
447
441
  ```
448
442
 
449
-
450
- **Alternatively, you can define your plugin like this:**
443
+ **💡 Alternatively, you can define your plugin like this:**
451
444
 
452
445
  <details>
453
446
  <summary><b>ckeditor.js</b></summary>
@@ -543,11 +536,14 @@ const CKEConfig = () => {
543
536
  </details>
544
537
 
545
538
 
539
+
546
540
  ## <a id="contributing"></a>🛠 Contributing
547
- ___
541
+
548
542
 
549
543
  This section explains how to set up your environment if you want to contribute to this package.
550
544
 
545
+ [Strapi Plugin SDK docs](https://docs.strapi.io/dev-docs/plugins/development/create-a-plugin#linking-the-plugin-to-your-project)
546
+
551
547
  Clone the repository:
552
548
 
553
549
  ```bash
@@ -572,7 +568,7 @@ In the plugin directory, run:
572
568
  yarn watch:link
573
569
  ```
574
570
 
575
- In your project directory, run:
571
+ Open new terminal window and in your project directory, run:
576
572
  ```bash
577
573
  yarn dlx yalc add --link @_sh/strapi-plugin-ckeditor && yarn install
578
574
  ```
@@ -587,9 +583,15 @@ yarn develop
587
583
 
588
584
  ## <a id="migration"></a>✈️ Migration
589
585
 
586
+ ### From v3 to v4
587
+
588
+ - The new version introduces support for Strapi v5 and is incompatible with Strapi v4. You will need to update your Strapi project to version 5 before upgrading.
589
+
590
+ - The plugin development process has changed. Please refer to the updated contribution guide for more information.
591
+
590
592
  ### From v2 to v3
591
593
 
592
- - The default editor configurations (toolbar, toolbarBalloon, blockBalloon) have been removed and now there is only one preset by default. You will need to update your fields in the Content-Type Builder
594
+ - The default editor configurations (toolbar, toolbarBalloon, blockBalloon) have been removed and now there is only one preset by default. You will need to update your fields in the Content-Type Builder.
593
595
 
594
596
  - Config file extension has changed from `.txt` to `.js` or `.ts`
595
597
  - Configuration object properties have been renamed:
@@ -686,10 +688,27 @@ const CKEConfig = () => ({
686
688
 
687
689
  </details>
688
690
 
691
+ ### From v1 to v2
692
+
693
+ - You will need to update Strapi to version v4.4.x for plugin v2.0.x, or to v4.13.0+ for v2.1.x.
689
694
 
695
+ - Starting with v2, the plugin uses the Custom Field API, so you'll need to manually update your schema.
696
+
697
+ - The plugin configuration should be defined in /config/ckeditor.txt from v2 onward. [Please refer to the v2 configuration guide for details.](https://github.com/nshenderov/strapi-plugin-ckeditor/blob/e782475f54b8a50a04f55275c89ef5bf61a15745/README.md?plain=1#L54)
690
698
 
691
699
  ## <a id="requirements"></a>⚠️ Requirements
700
+
701
+
702
+ **v4.x.x**
703
+
704
+ Strapi **>= 5.0.0**
705
+
706
+ Node **>= 18.0.0 <= 20.x.x**
707
+
692
708
  ___
693
- Strapi **v5.0.0+**
694
709
 
695
- Node **>=18.0.0 <=20.x.x**
710
+ **v3.x.x**
711
+
712
+ Strapi **>= 4.13.0 < 5.0.0**
713
+
714
+ Node **>= 18.0.0 <= 20.x.x**