@ckeditor/ckeditor5-word-count
Advanced tools
Comparing version 20.0.0 to 21.0.0
{ | ||
"name": "@ckeditor/ckeditor5-word-count", | ||
"version": "20.0.0", | ||
"version": "21.0.0", | ||
"description": "Word count and character count features for CKEditor 5.", | ||
@@ -13,17 +13,17 @@ "keywords": [ | ||
"dependencies": { | ||
"@ckeditor/ckeditor5-core": "^20.0.0", | ||
"@ckeditor/ckeditor5-ui": "^20.0.0", | ||
"@ckeditor/ckeditor5-core": "^21.0.0", | ||
"@ckeditor/ckeditor5-ui": "^21.0.0", | ||
"lodash-es": "^4.17.15" | ||
}, | ||
"devDependencies": { | ||
"@ckeditor/ckeditor5-basic-styles": "^20.0.0", | ||
"@ckeditor/ckeditor5-block-quote": "^20.0.0", | ||
"@ckeditor/ckeditor5-editor-classic": "^20.0.0", | ||
"@ckeditor/ckeditor5-engine": "^20.0.0", | ||
"@ckeditor/ckeditor5-enter": "^20.0.0", | ||
"@ckeditor/ckeditor5-link": "^20.0.0", | ||
"@ckeditor/ckeditor5-list": "^20.0.0", | ||
"@ckeditor/ckeditor5-paragraph": "^20.0.0", | ||
"@ckeditor/ckeditor5-table": "^20.0.0", | ||
"@ckeditor/ckeditor5-utils": "^20.0.0" | ||
"@ckeditor/ckeditor5-basic-styles": "^21.0.0", | ||
"@ckeditor/ckeditor5-block-quote": "^21.0.0", | ||
"@ckeditor/ckeditor5-editor-classic": "^21.0.0", | ||
"@ckeditor/ckeditor5-engine": "^21.0.0", | ||
"@ckeditor/ckeditor5-enter": "^21.0.0", | ||
"@ckeditor/ckeditor5-link": "^21.0.0", | ||
"@ckeditor/ckeditor5-list": "^21.0.0", | ||
"@ckeditor/ckeditor5-paragraph": "^21.0.0", | ||
"@ckeditor/ckeditor5-table": "^21.0.0", | ||
"@ckeditor/ckeditor5-utils": "^21.0.0" | ||
}, | ||
@@ -30,0 +30,0 @@ "engines": { |
@@ -17,3 +17,3 @@ /** | ||
export function modelElementToPlainText( element ) { | ||
if ( element.is( 'text' ) || element.is( 'textProxy' ) ) { | ||
if ( element.is( '$text' ) || element.is( '$textProxy' ) ) { | ||
return element.data; | ||
@@ -20,0 +20,0 @@ } |
@@ -23,3 +23,3 @@ /** | ||
* | ||
* The model's data is first converted to plain text using {@link module:word-count/utils.modelElementToPlainText}. | ||
* The model's data is first converted to plain text using {@link module:word-count/utils~modelElementToPlainText}. | ||
* The number of words and characters in your text are determined based on the created plain text. Please keep in mind | ||
@@ -26,0 +26,0 @@ * that every block in the editor is separated with a newline character, which is included in the calculation. |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
55636
44
+ Added@ckeditor/ckeditor5-core@21.0.0(transitive)
+ Added@ckeditor/ckeditor5-engine@21.0.0(transitive)
+ Added@ckeditor/ckeditor5-ui@21.0.0(transitive)
+ Added@ckeditor/ckeditor5-utils@21.0.0(transitive)
- Removed@ckeditor/ckeditor5-core@20.0.0(transitive)
- Removed@ckeditor/ckeditor5-engine@20.0.0(transitive)
- Removed@ckeditor/ckeditor5-ui@20.0.0(transitive)
- Removed@ckeditor/ckeditor5-utils@20.0.0(transitive)