8
0
Piotrek Koszuliński 6 سال پیش
والد
کامیت
65d3c0c03b

+ 7 - 7
packages/ckeditor5-word-count/docs/_snippets/features/word-count-update.html

@@ -1,6 +1,6 @@
 
 
 <style>
 <style>
-	.customized-counter__color-box {
+	.customized-count__color-box {
 		--hue: 180;
 		--hue: 180;
 		width: 20px;
 		width: 20px;
 		height: 20px;
 		height: 20px;
@@ -8,13 +8,13 @@
 		display: inline-block;
 		display: inline-block;
 	}
 	}
 
 
-	.customized-counter {
+	.customized-count {
 		border: 3px solid #333;
 		border: 3px solid #333;
 		padding-left: 5px;
 		padding-left: 5px;
 		margin-bottom: 15px;
 		margin-bottom: 15px;
 	}
 	}
 
 
-	.customized-counter > div {
+	.customized-count > div {
 		display: inline-block;
 		display: inline-block;
 		width: 50%;
 		width: 50%;
 		margin-left: 0;
 		margin-left: 0;
@@ -25,14 +25,14 @@
 <div id="demo-editor-update">
 <div id="demo-editor-update">
 		<p>A <strong>black hole</strong> is a region of <a href="https://en.wikipedia.org/wiki/Spacetime">spacetime</a> exhibiting <a href="https://en.wikipedia.org/wiki/Gravitation">gravitational</a> acceleration so strong that nothing—no <a href="https://en.wikipedia.org/wiki/Particle">particles</a> or even <a href="https://en.wikipedia.org/wiki/Electromagnetic_radiation">electromagnetic radiation</a> such as <a href="https://en.wikipedia.org/wiki/Light">light</a>—can escape from it.<a href="https://en.wikipedia.org/wiki/Black_hole#cite_note-6">[6]</a> The theory of <a href="https://en.wikipedia.org/wiki/General_relativity">general relativity</a> predicts that a sufficiently compact <a href="https://en.wikipedia.org/wiki/Mass">mass</a> can deform <a href="https://en.wikipedia.org/wiki/Spacetime">spacetime</a> to form a black hole.</p>
 		<p>A <strong>black hole</strong> is a region of <a href="https://en.wikipedia.org/wiki/Spacetime">spacetime</a> exhibiting <a href="https://en.wikipedia.org/wiki/Gravitation">gravitational</a> acceleration so strong that nothing—no <a href="https://en.wikipedia.org/wiki/Particle">particles</a> or even <a href="https://en.wikipedia.org/wiki/Electromagnetic_radiation">electromagnetic radiation</a> such as <a href="https://en.wikipedia.org/wiki/Light">light</a>—can escape from it.<a href="https://en.wikipedia.org/wiki/Black_hole#cite_note-6">[6]</a> The theory of <a href="https://en.wikipedia.org/wiki/General_relativity">general relativity</a> predicts that a sufficiently compact <a href="https://en.wikipedia.org/wiki/Mass">mass</a> can deform <a href="https://en.wikipedia.org/wiki/Spacetime">spacetime</a> to form a black hole.</p>
 </div>
 </div>
-<div class="customized-counter">
-	<div class="customized-counter__words">
+<div class="customized-count">
+	<div class="customized-count__words">
 		<label>Words:
 		<label>Words:
 			<progress value="42" max="100"></progress>
 			<progress value="42" max="100"></progress>
 		</label>
 		</label>
 	</div>
 	</div>
-	<div class="customized-counter__characters">
+	<div class="customized-count__characters">
 		Characters:
 		Characters:
-		<div class="customized-counter__color-box"></div>
+		<div class="customized-count__color-box"></div>
 	</div>
 	</div>
 </div>
 </div>

+ 2 - 2
packages/ckeditor5-word-count/docs/_snippets/features/word-count-update.js

@@ -32,8 +32,8 @@ ClassicEditor
 	.then( editor => {
 	.then( editor => {
 		const wordCountPlugin = editor.plugins.get( 'WordCount' );
 		const wordCountPlugin = editor.plugins.get( 'WordCount' );
 
 
-		const progressBar = document.querySelector( '.customized-counter progress' );
-		const colorBox = document.querySelector( '.customized-counter__color-box' );
+		const progressBar = document.querySelector( '.customized-count progress' );
+		const colorBox = document.querySelector( '.customized-count__color-box' );
 
 
 		wordCountPlugin.on( 'update', updateHandler );
 		wordCountPlugin.on( 'update', updateHandler );
 
 

+ 2 - 2
packages/ckeditor5-word-count/docs/_snippets/features/word-count.html

@@ -1,5 +1,5 @@
 <style>
 <style>
-	.word-counter {
+	.word-count {
 		border: 3px solid #333;
 		border: 3px solid #333;
 		padding-left: 5px;
 		padding-left: 5px;
 		margin-bottom: 15px;
 		margin-bottom: 15px;
@@ -9,5 +9,5 @@
 	<p>The <strong>Battle of Westerplatte</strong> was one of the first battles in Germany's <a href="https://en.wikipedia.org/wiki/Invasion_of_Poland">invasion of Poland</a>, marking the start of <a href="https://en.wikipedia.org/wiki/World_War_II">World War II</a> in <a href="https://en.wikipedia.org/wiki/Europe">Europe</a>. Beginning on 1 September 1939, <a href="https://en.wikipedia.org/wiki/Nazi_Germany">German</a> <a href="https://en.wikipedia.org/wiki/German_Army_(Wehrmacht)">army</a>, <a href="https://en.wikipedia.org/wiki/Kriegsmarine">naval</a> and <a href="https://en.wikipedia.org/wiki/Luftwaffe">air forces</a> and <a href="https://en.wikipedia.org/wiki/Free_City_of_Danzig_Police">Danzig police</a> assaulted <a href="https://en.wikipedia.org/wiki/Poland">Poland</a>'s Military Transit Depot (<i>Wojskowa Składnica Tranzytowa</i>, or <i>WST</i>) on the <a href="https://en.wikipedia.org/wiki/Westerplatte">Westerplatte</a> peninsula in the harbor of the <a href="https://en.wikipedia.org/wiki/Free_City_of_Danzig">Free City of Danzig</a>. The Poles held out for seven days and repelled 13 assaults that included <a href="https://en.wikipedia.org/wiki/Dive_bomber">dive-bomber</a> attacks and naval shelling.</p>
 	<p>The <strong>Battle of Westerplatte</strong> was one of the first battles in Germany's <a href="https://en.wikipedia.org/wiki/Invasion_of_Poland">invasion of Poland</a>, marking the start of <a href="https://en.wikipedia.org/wiki/World_War_II">World War II</a> in <a href="https://en.wikipedia.org/wiki/Europe">Europe</a>. Beginning on 1 September 1939, <a href="https://en.wikipedia.org/wiki/Nazi_Germany">German</a> <a href="https://en.wikipedia.org/wiki/German_Army_(Wehrmacht)">army</a>, <a href="https://en.wikipedia.org/wiki/Kriegsmarine">naval</a> and <a href="https://en.wikipedia.org/wiki/Luftwaffe">air forces</a> and <a href="https://en.wikipedia.org/wiki/Free_City_of_Danzig_Police">Danzig police</a> assaulted <a href="https://en.wikipedia.org/wiki/Poland">Poland</a>'s Military Transit Depot (<i>Wojskowa Składnica Tranzytowa</i>, or <i>WST</i>) on the <a href="https://en.wikipedia.org/wiki/Westerplatte">Westerplatte</a> peninsula in the harbor of the <a href="https://en.wikipedia.org/wiki/Free_City_of_Danzig">Free City of Danzig</a>. The Poles held out for seven days and repelled 13 assaults that included <a href="https://en.wikipedia.org/wiki/Dive_bomber">dive-bomber</a> attacks and naval shelling.</p>
 	<p>Westerplatte's defense served as an inspiration for the <a href="https://en.wikipedia.org/wiki/Polish_Army">Polish Army</a> and people in the face of German advances elsewhere, and is still regarded as a symbol of resistance in modern Poland.</p>
 	<p>Westerplatte's defense served as an inspiration for the <a href="https://en.wikipedia.org/wiki/Polish_Army">Polish Army</a> and people in the face of German advances elsewhere, and is still regarded as a symbol of resistance in modern Poland.</p>
 </div>
 </div>
-<div id="demo-word-counter" class="word-counter">
+<div id="demo-word-count" class="word-count">
 </div>
 </div>

+ 1 - 1
packages/ckeditor5-word-count/docs/_snippets/features/word-count.js

@@ -32,7 +32,7 @@ ClassicEditor
 	.then( editor => {
 	.then( editor => {
 		window.editor = editor;
 		window.editor = editor;
 
 
-		document.getElementById( 'demo-word-counter' ).appendChild( editor.plugins.get( 'WordCount' ).wordCountContainer );
+		document.getElementById( 'demo-word-count' ).appendChild( editor.plugins.get( 'WordCount' ).wordCountContainer );
 	} )
 	} )
 	.catch( err => {
 	.catch( err => {
 		console.error( err.stack );
 		console.error( err.stack );

+ 1 - 1
packages/ckeditor5-word-count/docs/features/word-count.md

@@ -36,7 +36,7 @@ ClassicEditor
 
 
 ## Configuration options
 ## Configuration options
 
 
-There are two options which change the output container. If the {@link module:wordcount/wordcount~WordCountConfig#displayWords} is set to to `false`, then the section with word counter is hidden. Similarly, when the {@link module:wordcount/wordcount~WordCountConfig#displayCharacters} is set to `false` it will hide the character counter.
+There are two options which change the output container. If the {@link module:wordcount/wordcount~WordCountConfig#displayWords} is set to to `false`, then the section with word count is hidden. Similarly, when the {@link module:wordcount/wordcount~WordCountConfig#displayCharacters} is set to `false` it will hide the character counter.
 
 
 ## Update event
 ## Update event
 
 

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

@@ -272,9 +272,9 @@ export default class WordCount extends Plugin {
  */
  */
 
 
 /**
 /**
- * This option allows for hiding the word counter. The element obtained through
+ * This option allows for hiding the word count. The element obtained through
  * {@link module:wordcount/wordcount~WordCount#wordCountContainer} will only preserve
  * {@link module:wordcount/wordcount~WordCount#wordCountContainer} will only preserve
- * the characters part. Word counter is displayed by default when this configuration option is not defined.
+ * the characters part. word count is displayed by default when this configuration option is not defined.
  *
  *
  *		const wordCountConfig = {
  *		const wordCountConfig = {
  *			displayWords = false
  *			displayWords = false