Skip to content

Commit bef7fd0

Browse files
authored
Merge pull request #1949 from ckeditor/t/1945
Other: Bumped style-loader to v1.0.0. Aligned configurations and documentation to the new loader API. Closes #1945.
2 parents 6330ffb + 3ab0e48 commit bef7fd0

File tree

8 files changed

+84
-312
lines changed

8 files changed

+84
-312
lines changed

docs/builds/guides/frameworks/react.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ The `<CKEditor>` component supports the following properties:
7070
* `onInit` &ndash; A function called when the editor was initialized. It receives the initialized {@link module:core/editor/editor~Editor `editor`} as a parameter.
7171
* `disabled` &ndash; A boolean. The {@link module:core/editor/editor~Editor `editor`} is being switched to read-only mode if the property is set to `true`.
7272
* `onChange` &ndash; A function called when the editor's data has changed. See the {@link module:engine/model/document~Document#event:change:data `editor.model.document#change:data`} event.
73-
* `onBlur` &ndash; A function called when the editor was blurred. See the {@link module:engine/view/document~Document#event:blur `editor.editing.view.document#blur`} event.
73+
* `onBlur` &ndash; A function called when the editor was blurred. See the {@link module:engine/view/document~Document#event:blur `editor.editing.view.document#blur`} event.
7474
* `onFocus` &ndash; A function called when the editor was focused. See the {@link module:engine/view/document~Document#event:focus `editor.editing.view.document#focus`} event.
7575

7676
The editor events callbacks (`onChange`, `onBlur`, `onFocus`) receive two parameters:
@@ -175,7 +175,7 @@ Before you start modifying the webpack configuration, first install some CKEdito
175175

176176
```bash
177177
yarn add \
178-
raw-loader \
178+
raw-loader@3 \
179179
@ckeditor/ckeditor5-dev-utils \
180180
@ckeditor/ckeditor5-theme-lark \
181181
@ckeditor/ckeditor5-react \
@@ -208,7 +208,7 @@ Then, add two new elements to the exported object under the `module.rules` array
208208
{
209209
loader: 'style-loader',
210210
options: {
211-
singleton: true
211+
injectType: 'singletonStyleTag'
212212
}
213213
},
214214
{
@@ -453,7 +453,7 @@ Then add two new elements to the exported object under the `module.rules` array
453453
{
454454
loader: 'style-loader',
455455
options: {
456-
singleton: true
456+
injectType: 'singletonStyleTag'
457457
}
458458
},
459459
{

docs/builds/guides/frameworks/vuejs.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ npm install --save \
192192
@ckeditor/ckeditor5-vue \
193193
@ckeditor/ckeditor5-dev-webpack-plugin \
194194
@ckeditor/ckeditor5-dev-utils \
195-
postcss-loader \
195+
postcss-loader@3 \
196196
197197
```
198198

docs/builds/guides/integration/advanced-setup.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,9 +99,9 @@ The second step is to install dependencies needed to build the editor. The list
9999
npm install --save \
100100
@ckeditor/ckeditor5-dev-webpack-plugin \
101101
@ckeditor/ckeditor5-dev-utils \
102-
postcss-loader \
103-
raw-loader \
104-
style-loader \
102+
postcss-loader@3 \
103+
raw-loader@3 \
104+
style-loader@1 \
105105
webpack@4 \
106106
webpack-cli@3 \
107107
```
@@ -147,7 +147,7 @@ module.exports = {
147147
{
148148
loader: 'style-loader',
149149
options: {
150-
singleton: true
150+
injectType: 'singletonStyleTag'
151151
}
152152
},
153153
{

docs/framework/guides/quick-start.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ First, install packages needed to build CKEditor 5:
2626

2727
```bash
2828
npm install --save \
29-
postcss-loader \
30-
raw-loader \
31-
style-loader \
29+
postcss-loader@3 \
30+
raw-loader@3 \
31+
style-loader@1 \
3232
webpack@4 \
3333
webpack-cli@3
3434
```
@@ -71,7 +71,7 @@ module.exports = {
7171
{
7272
loader: 'style-loader',
7373
options: {
74-
singleton: true
74+
injectType: 'singletonStyleTag'
7575
}
7676
},
7777
{

docs/framework/guides/tutorials/implementing-a-block-widget.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ order: 10
55

66
# Implementing a block widget
77

8-
In this tutorial, you will learn how to implement a more complex CKEditor 5 plugin.
8+
In this tutorial, you will learn how to implement a more complex CKEditor 5 plugin.
99

1010
You will build a "Simple box" feature which will allow the user to insert a custom box with a title and body fields into the document. You will use the widget utilities and work with the model-view conversion in order to properly set up the behavior of this feature. Later on, you will create a UI which will allow for inserting new simple boxes into the document with the toolbar button.
1111

@@ -29,9 +29,9 @@ First, install packages needed to build and set up a basic CKEditor 5 instance.
2929

3030
```bash
3131
npm install --save \
32-
postcss-loader \
33-
raw-loader \
34-
style-loader \
32+
postcss-loader@3 \
33+
raw-loader@3 \
34+
style-loader@1 \
3535
webpack@4 \
3636
webpack-cli@3 \
3737
@ckeditor/ckeditor5-dev-utils \
@@ -74,7 +74,7 @@ module.exports = {
7474
{
7575
loader: 'style-loader',
7676
options: {
77-
singleton: true
77+
injectType: 'singletonStyleTag'
7878
}
7979
},
8080
{

docs/framework/guides/tutorials/implementing-an-inline-widget.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ First, install required dependencies:
2525

2626
```bash
2727
npm install --save \
28-
postcss-loader \
29-
raw-loader \
30-
style-loader \
28+
postcss-loader@3 \
29+
raw-loader@3 \
30+
style-loader@1 \
3131
webpack@4 \
3232
webpack-cli@3 \
3333
@ckeditor/ckeditor5-basic-styles \
@@ -75,7 +75,7 @@ module.exports = {
7575
{
7676
loader: 'style-loader',
7777
options: {
78-
singleton: true
78+
injectType: 'singletonStyleTag'
7979
}
8080
},
8181
{

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
"@ckeditor/ckeditor5-comments": "^3.2.0",
7373
"@ckeditor/ckeditor5-dev-docs": "^11.0.5",
7474
"@ckeditor/ckeditor5-dev-env": "^15.0.3",
75-
"@ckeditor/ckeditor5-dev-tests": "^16.6.0",
75+
"@ckeditor/ckeditor5-dev-tests": "^16.7.1",
7676
"@ckeditor/ckeditor5-dev-utils": "^12.0.3",
7777
"@ckeditor/ckeditor5-dev-webpack-plugin": "^8.0.3",
7878
"@ckeditor/ckeditor5-inspector": "^1.3.0",
@@ -89,12 +89,12 @@
8989
"minimatch": "^3.0.4",
9090
"postcss-loader": "^3.0.0",
9191
"progress-bar-webpack-plugin": "^1.12.1",
92-
"raw-loader": "^1.0.0",
93-
"style-loader": "^0.23.0",
92+
"raw-loader": "^3.1.0",
93+
"style-loader": "^1.0.0",
9494
"svgo": "^1.1.0",
95-
"uglifyjs-webpack-plugin": "^1.2.7",
95+
"uglifyjs-webpack-plugin": "^1.3.0",
9696
"umberto": "^1.0.0",
97-
"webpack": "^4.15.0"
97+
"webpack": "^4.39.1"
9898
},
9999
"engines": {
100100
"node": ">=8.0.0",

0 commit comments

Comments
 (0)