Skip to content

Commit

Permalink
Merge pull request #609 from ckeditor/i/6454
Browse files Browse the repository at this point in the history
Other: The `<style>` element that is being produced by webpack for the editor styles will have the `data-cke="true"` attribute in order to help find CKEditor 5 styles. Closes ckeditor/ckeditor5#6454.
  • Loading branch information
Reinmar authored Apr 4, 2020
2 parents 65ae0ff + da99ef5 commit 223df34
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,15 @@ module.exports = function getWebpackConfigForAutomatedTests( options ) {
// test: **/ckeditor5-*/theme/**/*.css
test: /\.css$/,
use: [
'style-loader',
{
loader: 'style-loader',
options: {
injectType: 'singletonStyleTag',
attributes: {
'data-cke': true
}
}
},
{
loader: 'postcss-loader',
options: getPostCssConfig( {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,13 @@ module.exports = function getWebpackConfigForManualTests( options ) {
test: /\.css$/,
use: [
{
loader: 'style-loader'
loader: 'style-loader',
options: {
injectType: 'singletonStyleTag',
attributes: {
'data-cke': true
}
}
},
{
loader: 'postcss-loader',
Expand Down

0 comments on commit 223df34

Please sign in to comment.