Przeglądaj źródła

Merge pull request #6458 from ckeditor/i/6454

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 ckeditor/ckeditor5#6454.
Maciej 5 lat temu
rodzic
commit
0cde322f55

+ 8 - 2
docs/builds/guides/frameworks/react.md

@@ -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
+				}
 			}
 		},
 		{
@@ -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
+				}
 			}
 		},
 		{

+ 4 - 1
docs/builds/guides/integration/advanced-setup.md

@@ -142,7 +142,10 @@ module.exports = {
 					{
 						loader: 'style-loader',
 						options: {
-							injectType: 'singletonStyleTag'
+							injectType: 'singletonStyleTag',
+							attributes: {
+								'data-cke': true
+							}
 						}
 					},
 					{

+ 4 - 1
docs/framework/guides/quick-start.md

@@ -67,7 +67,10 @@ module.exports = {
 					{
 						loader: 'style-loader',
 						options: {
-							injectType: 'singletonStyleTag'
+							injectType: 'singletonStyleTag',
+							attributes: {
+								'data-cke': true
+							}
 						}
 					},
 					{

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

@@ -74,7 +74,10 @@ module.exports = {
 					{
 						loader: 'style-loader',
 						options: {
-							injectType: 'singletonStyleTag'
+							injectType: 'singletonStyleTag',
+							attributes: {
+								'data-cke': true
+							}
 						}
 					},
 					{

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

@@ -75,7 +75,10 @@ module.exports = {
 					{
 						loader: 'style-loader',
 						options: {
-							injectType: 'singletonStyleTag'
+							injectType: 'singletonStyleTag',
+							attributes: {
+								'data-cke': true
+							}
 						}
 					},
 					{

+ 4 - 1
docs/framework/guides/tutorials/using-react-in-a-widget.md

@@ -99,7 +99,10 @@ module.exports = {
 					{
 						loader: 'style-loader',
 						options: {
-							injectType: 'singletonStyleTag'
+							injectType: 'singletonStyleTag',
+							attributes: {
+								'data-cke': true
+							}
 						}
 					},
 					{