Browse Source

Small typo and white characters improvements.

Mateusz Samsel 6 years ago
parent
commit
48d7930bfd

+ 7 - 4
packages/ckeditor5-word-count/package.json

@@ -6,14 +6,17 @@
     "ckeditor",
     "ckeditor5",
     "ckeditor 5",
-	"ckeditor5-feature",
-	"ckeditor5-plugin"
+    "ckeditor5-feature",
+    "ckeditor5-plugin"
   ],
   "dependencies": {
-	"@ckeditor/ckeditor5-core": "^12.1.0",
-	"lodash-es": "^4.17.10"
+    "@ckeditor/ckeditor5-core": "^12.1.0",
+    "lodash-es": "^4.17.10"
   },
   "devDependencies": {
+    "@ckeditor/ckeditor5-engine": "^13.1.1",
+    "@ckeditor/ckeditor5-paragraph": "^11.0.2",
+    "@ckeditor/ckeditor5-utils": "^12.1.1",
     "eslint": "^5.5.0",
     "eslint-config-ckeditor5": "^1.0.11",
     "husky": "^1.3.1",

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

@@ -127,7 +127,7 @@ export default class WordCount extends Plugin {
 			const children = [];
 
 			if ( displayWords || displayWords === undefined ) {
-				const wordsLabel = t( 'Words' );
+				const wordsLabel = t( 'Words' ) + ':';
 
 				children.push( {
 					tag: 'div',
@@ -135,7 +135,6 @@ export default class WordCount extends Plugin {
 						{
 							text: [
 								wordsLabel,
-								': ',
 								bind.to( 'words' )
 							]
 						}
@@ -144,7 +143,7 @@ export default class WordCount extends Plugin {
 			}
 
 			if ( displayCharacters || displayCharacters === undefined ) {
-				const charactersLabel = t( 'Characters' );
+				const charactersLabel = t( 'Characters' ) + ':';
 
 				children.push( {
 					tag: 'div',
@@ -152,7 +151,6 @@ export default class WordCount extends Plugin {
 						{
 							text: [
 								charactersLabel,
-								': ',
 								bind.to( 'characters' )
 							]
 						}