@_sh/strapi-plugin-ckeditor 2.1.2 → 2.1.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/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2022 nshenderov
3
+ Copyright (c) 2024 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
package/README.md CHANGED
@@ -28,7 +28,7 @@
28
28
 
29
29
  <p align="right">
30
30
  <a href="https://www.buymeacoffee.com/nshenderov" target="_blank">
31
- <img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;" >
31
+ <img src="https://cdn.buymeacoffee.com/buttons/v2/default-yellow.png" alt="Buy Me A Coffee" style="height: 60px !important;width: 217px !important;max-width: 217px !important;" >
32
32
  </a>
33
33
  </p>
34
34
 
@@ -60,29 +60,26 @@ yarn build
60
60
 
61
61
  ## <a id="usage"></a>✍️ Usage
62
62
 
63
- ## Guide:
64
- <details>
65
- <summary><b>Open</b></summary>
66
-
67
- * Go to the Content-Type Builder -> Add another field -> switch to `custom`
63
+ 1. Go to the Content-Type Builder -> Add another field -> switch to `custom`
68
64
 
69
65
  <p align="center">
70
66
  <img src="https://raw.githubusercontent.com/nshenderov/strapi-plugin-ckeditor/master/assets/usage-guide1.png" width="700" />
71
67
  </p>
72
68
 
73
- * Click on CKEditor 5
69
+ 2. Click on CKEditor 5
70
+
74
71
  <p align="center">
75
72
  <img src="https://raw.githubusercontent.com/nshenderov/strapi-plugin-ckeditor/master/assets/usage-guide2.png" width="700" />
76
73
  </p>
77
74
 
78
- * Choose the editor version you want
75
+ 3. Choose the editor version you want
76
+
79
77
  <p align="center">
80
78
  <img src="https://raw.githubusercontent.com/nshenderov/strapi-plugin-ckeditor/master/assets/usage-guide3.png" width="700" />
81
79
  </p>
82
80
 
83
- </details>
81
+ ## Default versions:
84
82
 
85
- ## Editor default versions:
86
83
  <details>
87
84
  <summary><b>Open</b></summary>
88
85
 
@@ -171,6 +168,7 @@ The language determination follows this logic:
171
168
  `ignorei18n ? language.content : i18n -> language.ui`
172
169
 
173
170
  **Example of adding a new editor configuration:**
171
+
174
172
  <details>
175
173
  <summary><b>ckeditor.txt</b></summary>
176
174
 
@@ -258,6 +256,7 @@ globalThis.CKEditorConfig = {
258
256
  </details>
259
257
 
260
258
  **Example of changing buttons, modifying the plugin list, and adding styles in the default toolbar configuration:**
259
+
261
260
  <details>
262
261
  <summary><b>ckeditor.txt</b></summary>
263
262
 
@@ -357,7 +356,8 @@ export default {
357
356
 
358
357
  Add a new configuration option to your config file at `your-app/config/ckeditor.txt`:
359
358
 
360
- ## Example of a config file with the new configuration:
359
+ **Example of a config file with the new configuration:**
360
+
361
361
  <details>
362
362
  <summary><b>ckeditor.txt</b></summary>
363
363
 
@@ -6,9 +6,6 @@ export const dark = css`
6
6
  --ck-color-focus-disabled-shadow: rgba(106, 114, 143, 0.4) !important;
7
7
  --ck-focus-ring: 1px solid #4945ff !important;
8
8
  --ck-color-button-default-hover-background: #262630 !important;
9
-
10
- --ck-powered-by-background: #212134;
11
- --ck-powered-by-border-color: #212134;
12
9
  }
13
10
 
14
11
  .ck.ck-powered-by > a > svg > path:first-child {
@@ -137,6 +134,12 @@ export const dark = css`
137
134
  /* -- Overrides the default colors used by the ckeditor5-link package. ---------------------- */
138
135
 
139
136
  --ck-color-link-default: hsl(216, 100%, 75%);
137
+
138
+ --ck-powered-by-background: transparrent;
139
+ --ck-powered-by-border-color: var(--ck-color-base-background);
140
+
141
+ --ck-color-dialog-background: var(--ck-custom-background);
142
+ --ck-color-dialog-form-header-border: var(--ck-color-base-border);
140
143
  }
141
144
 
142
145
  `;
@@ -6,9 +6,6 @@ export const light = css`
6
6
  --ck-color-focus-disabled-shadow: #e4e3ff !important;
7
7
  --ck-focus-ring: 1px solid rgb(73, 69, 255) !important;
8
8
  --ck-color-button-default-hover-background: #F0F0FF !important;
9
-
10
- --ck-powered-by-background: #ffffff;
11
- --ck-powered-by-border-color: #ffffff;
12
9
  }
13
10
 
14
11
  .ck.ck-powered-by > a > svg > path:first-child {
@@ -132,5 +129,11 @@ export const light = css`
132
129
  /* -- Overrides the default colors used by the ckeditor5-link package. ---------------------- */
133
130
 
134
131
  --ck-color-link-default: hsl(209, 89%, 33%);
132
+
133
+ --ck-powered-by-background: transparrent;
134
+ --ck-powered-by-border-color: var(--ck-color-base-background);
135
+
136
+ --ck-color-dialog-background: var(--ck-custom-background);
137
+ --ck-color-dialog-form-header-border: var(--ck-color-base-border);
135
138
  }
136
139
  `;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@_sh/strapi-plugin-ckeditor",
3
- "version": "2.1.2",
3
+ "version": "2.1.3",
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,48 +25,48 @@
25
25
  "strapi-server.js"
26
26
  ],
27
27
  "dependencies": {
28
- "@ckeditor/ckeditor5-alignment": "^41.0.0",
29
- "@ckeditor/ckeditor5-autoformat": "^41.0.0",
30
- "@ckeditor/ckeditor5-autosave": "^41.0.0",
31
- "@ckeditor/ckeditor5-basic-styles": "^41.0.0",
32
- "@ckeditor/ckeditor5-block-quote": "^41.0.0",
33
- "@ckeditor/ckeditor5-code-block": "^41.0.0",
34
- "@ckeditor/ckeditor5-easy-image": "^41.0.0",
35
- "@ckeditor/ckeditor5-editor-classic": "^41.0.0",
36
- "@ckeditor/ckeditor5-essentials": "^41.0.0",
37
- "@ckeditor/ckeditor5-find-and-replace": "^41.0.0",
38
- "@ckeditor/ckeditor5-heading": "^41.0.0",
39
- "@ckeditor/ckeditor5-highlight": "^41.0.0",
40
- "@ckeditor/ckeditor5-horizontal-line": "^41.0.0",
41
- "@ckeditor/ckeditor5-html-embed": "^41.0.0",
42
- "@ckeditor/ckeditor5-html-support": "^41.0.0",
43
- "@ckeditor/ckeditor5-image": "^41.0.0",
44
- "@ckeditor/ckeditor5-font": "^41.0.0",
45
- "@ckeditor/ckeditor5-indent": "^41.0.0",
46
- "@ckeditor/ckeditor5-language": "^41.0.0",
47
- "@ckeditor/ckeditor5-link": "^41.0.0",
48
- "@ckeditor/ckeditor5-list": "^41.0.0",
49
- "@ckeditor/ckeditor5-media-embed": "^41.0.0",
50
- "@ckeditor/ckeditor5-mention": "^41.0.0",
51
- "@ckeditor/ckeditor5-page-break": "^41.0.0",
52
- "@ckeditor/ckeditor5-paragraph": "^41.0.0",
53
- "@ckeditor/ckeditor5-paste-from-office": "^41.0.0",
54
- "@ckeditor/ckeditor5-remove-format": "^41.0.0",
55
- "@ckeditor/ckeditor5-source-editing": "^41.0.0",
56
- "@ckeditor/ckeditor5-special-characters": "^41.0.0",
57
- "@ckeditor/ckeditor5-style": "^41.0.0",
58
- "@ckeditor/ckeditor5-table": "^41.0.0",
59
- "@ckeditor/ckeditor5-theme-lark": "^41.0.0",
60
- "@ckeditor/ckeditor5-typing": "^41.0.0",
61
- "@ckeditor/ckeditor5-upload": "^41.0.0",
62
- "@ckeditor/ckeditor5-word-count": "^41.0.0",
63
- "@ckeditor/ckeditor5-show-blocks": "^41.0.0",
64
- "ckeditor5": "^41.0.0",
65
- "@ckeditor/ckeditor5-react": "^6.2.0",
66
- "@strapi/design-system": "^1.10.1",
28
+ "@ckeditor/ckeditor5-alignment": "^43.0.0",
29
+ "@ckeditor/ckeditor5-autoformat": "^43.0.0",
30
+ "@ckeditor/ckeditor5-autosave": "^43.0.0",
31
+ "@ckeditor/ckeditor5-basic-styles": "^43.0.0",
32
+ "@ckeditor/ckeditor5-block-quote": "^43.0.0",
33
+ "@ckeditor/ckeditor5-code-block": "^43.0.0",
34
+ "@ckeditor/ckeditor5-easy-image": "^43.0.0",
35
+ "@ckeditor/ckeditor5-editor-classic": "^43.0.0",
36
+ "@ckeditor/ckeditor5-essentials": "^43.0.0",
37
+ "@ckeditor/ckeditor5-find-and-replace": "^43.0.0",
38
+ "@ckeditor/ckeditor5-font": "^43.0.0",
39
+ "@ckeditor/ckeditor5-heading": "^43.0.0",
40
+ "@ckeditor/ckeditor5-highlight": "^43.0.0",
41
+ "@ckeditor/ckeditor5-horizontal-line": "^43.0.0",
42
+ "@ckeditor/ckeditor5-html-embed": "^43.0.0",
43
+ "@ckeditor/ckeditor5-html-support": "^43.0.0",
44
+ "@ckeditor/ckeditor5-image": "^43.0.0",
45
+ "@ckeditor/ckeditor5-indent": "^43.0.0",
46
+ "@ckeditor/ckeditor5-language": "^43.0.0",
47
+ "@ckeditor/ckeditor5-link": "^43.0.0",
48
+ "@ckeditor/ckeditor5-list": "^43.0.0",
49
+ "@ckeditor/ckeditor5-media-embed": "^43.0.0",
50
+ "@ckeditor/ckeditor5-mention": "^43.0.0",
51
+ "@ckeditor/ckeditor5-page-break": "^43.0.0",
52
+ "@ckeditor/ckeditor5-paragraph": "^43.0.0",
53
+ "@ckeditor/ckeditor5-paste-from-office": "^43.0.0",
54
+ "@ckeditor/ckeditor5-remove-format": "^43.0.0",
55
+ "@ckeditor/ckeditor5-show-blocks": "^43.0.0",
56
+ "@ckeditor/ckeditor5-source-editing": "^43.0.0",
57
+ "@ckeditor/ckeditor5-special-characters": "^43.0.0",
58
+ "@ckeditor/ckeditor5-style": "^43.0.0",
59
+ "@ckeditor/ckeditor5-table": "^43.0.0",
60
+ "@ckeditor/ckeditor5-theme-lark": "^43.0.0",
61
+ "@ckeditor/ckeditor5-typing": "^43.0.0",
62
+ "@ckeditor/ckeditor5-upload": "^43.0.0",
63
+ "@ckeditor/ckeditor5-word-count": "^43.0.0",
64
+ "ckeditor5": "^43.0.0",
65
+ "@ckeditor/ckeditor5-react": "^9.0.0",
66
+ "@strapi/design-system": "^1.19.0",
67
67
  "lodash": "^4.17.21",
68
68
  "prop-types": "^15.8.1",
69
- "sanitize-html": "^2.10.0"
69
+ "sanitize-html": "^2.13.0"
70
70
  },
71
71
  "peerDependencies": {
72
72
  "@strapi/strapi": "^4.13.0"
@@ -80,11 +80,56 @@
80
80
  "url": "https://github.com/nshenderov/strapi-plugin-ckeditor.git"
81
81
  },
82
82
  "scripts": {
83
- "test": "echo \"Error: no tests specified\" && exit 1"
83
+ "release": "release-it"
84
84
  },
85
85
  "engines": {
86
86
  "node": ">=18.0.0 <=20.x.x",
87
87
  "npm": ">=6.0.0"
88
88
  },
89
- "license": "MIT"
89
+ "license": "MIT",
90
+ "devDependencies": {
91
+ "release-it": "^17.6.0",
92
+ "@release-it/conventional-changelog": "^8.0.1"
93
+ },
94
+ "release-it": {
95
+ "git": {
96
+ "commitMesage": "chore: release v${version}"
97
+ },
98
+ "github": {
99
+ "release": true,
100
+ "releaseName": "v${version}"
101
+ },
102
+ "npm": {
103
+ "publish": true
104
+ },
105
+ "plugins": {
106
+ "@release-it/conventional-changelog": {
107
+ "preset": {
108
+ "name": "conventionalcommits",
109
+ "types": [
110
+ {
111
+ "type": "feat",
112
+ "section": "🚀 Features"
113
+ },
114
+ {
115
+ "type": "fix",
116
+ "section": "🪲 Bug fixes"
117
+ },
118
+ {
119
+ "type": "docs",
120
+ "section": "⚙️ Chore"
121
+ },
122
+ {
123
+ "type": "chore",
124
+ "section": "⚙️ Chore"
125
+ },
126
+ {
127
+ "type": "style",
128
+ "section": "💅 Style"
129
+ }
130
+ ]
131
+ }
132
+ }
133
+ }
134
+ }
90
135
  }