Skip to content

Commit

Permalink
Merge pull request #6458 from ckeditor/i/6454
Browse files Browse the repository at this point in the history
Other: The inline `style` element which is being produced by Webpack and delivers styles for the editor will have the `[data-cke="true"]` attribute in order to help find CKEditor 5 styles. Closes #6454.
  • Loading branch information
jodator authored Mar 26, 2020
2 parents fc0f2e3 + 94a7a5d commit 0cde322
Show file tree
Hide file tree
Showing 6 changed files with 28 additions and 7 deletions.
10 changes: 8 additions & 2 deletions docs/builds/guides/frameworks/react.md
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,10 @@ Then, add two new elements to the exported object under the `module.rules` array
{
loader: 'style-loader',
options: {
injectType: 'singletonStyleTag'
injectType: 'singletonStyleTag',
attributes: {
'data-cke': true
}
}
},
{
Expand Down Expand Up @@ -472,7 +475,10 @@ Then add two new elements to the exported object under the `module.rules` array
{
loader: 'style-loader',
options: {
injectType: 'singletonStyleTag'
injectType: 'singletonStyleTag',
attributes: {
'data-cke': true
}
}
},
{
Expand Down
5 changes: 4 additions & 1 deletion docs/builds/guides/integration/advanced-setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,10 @@ module.exports = {
{
loader: 'style-loader',
options: {
injectType: 'singletonStyleTag'
injectType: 'singletonStyleTag',
attributes: {
'data-cke': true
}
}
},
{
Expand Down
5 changes: 4 additions & 1 deletion docs/framework/guides/quick-start.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,10 @@ module.exports = {
{
loader: 'style-loader',
options: {
injectType: 'singletonStyleTag'
injectType: 'singletonStyleTag',
attributes: {
'data-cke': true
}
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,10 @@ module.exports = {
{
loader: 'style-loader',
options: {
injectType: 'singletonStyleTag'
injectType: 'singletonStyleTag',
attributes: {
'data-cke': true
}
}
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,10 @@ module.exports = {
{
loader: 'style-loader',
options: {
injectType: 'singletonStyleTag'
injectType: 'singletonStyleTag',
attributes: {
'data-cke': true
}
}
},
{
Expand Down
5 changes: 4 additions & 1 deletion docs/framework/guides/tutorials/using-react-in-a-widget.md
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,10 @@ module.exports = {
{
loader: 'style-loader',
options: {
injectType: 'singletonStyleTag'
injectType: 'singletonStyleTag',
attributes: {
'data-cke': true
}
}
},
{
Expand Down

0 comments on commit 0cde322

Please sign in to comment.