Răsfoiți Sursa

Add class for output contianer

Mateusz Samsel 6 ani în urmă
părinte
comite
969cb27196
1 a modificat fișierele cu 8 adăugiri și 2 ștergeri
  1. 8 2
      packages/ckeditor5-word-count/src/wordcount.js

+ 8 - 2
packages/ckeditor5-word-count/src/wordcount.js

@@ -157,7 +157,10 @@ export default class WordCount extends Plugin {
 						{
 						{
 							text: [ bind.to( '_wordsLabel' ) ]
 							text: [ bind.to( '_wordsLabel' ) ]
 						}
 						}
-					]
+					],
+					attributes: {
+						class: 'ck-word-count__words'
+					}
 				} );
 				} );
 			}
 			}
 
 
@@ -172,7 +175,10 @@ export default class WordCount extends Plugin {
 						{
 						{
 							text: [ bind.to( '_charactersLabel' ) ]
 							text: [ bind.to( '_charactersLabel' ) ]
 						}
 						}
-					]
+					],
+					attributes: {
+						class: 'ck-word-count__characters'
+					}
 				} );
 				} );
 			}
 			}