@ckeditor/ckeditor5-autoformat
Advanced tools
Comparing version 18.0.0 to 19.0.0
Changelog | ||
========= | ||
## [19.0.0](https://github.com/ckeditor/ckeditor5-autoformat/compare/v18.0.0...v19.0.0) (2020-04-29) | ||
### Features | ||
* Added auto format integration with the strike through using `~~` string. Closes [ckeditor/ckeditor5#6412](https://github.com/ckeditor/ckeditor5/issues/6412). ([9c3fd3e](https://github.com/ckeditor/ckeditor5-autoformat/commit/9c3fd3e)) | ||
## [18.0.0](https://github.com/ckeditor/ckeditor5-autoformat/compare/v17.0.0...v18.0.0) (2020-03-19) | ||
@@ -5,0 +12,0 @@ |
{ | ||
"name": "@ckeditor/ckeditor5-autoformat", | ||
"version": "18.0.0", | ||
"version": "19.0.0", | ||
"description": "Autoformatting feature for CKEditor 5.", | ||
@@ -13,16 +13,16 @@ "keywords": [ | ||
"dependencies": { | ||
"@ckeditor/ckeditor5-core": "^18.0.0", | ||
"@ckeditor/ckeditor5-typing": "^18.0.0" | ||
"@ckeditor/ckeditor5-core": "^19.0.0", | ||
"@ckeditor/ckeditor5-typing": "^19.0.0" | ||
}, | ||
"devDependencies": { | ||
"@ckeditor/ckeditor5-basic-styles": "^18.0.0", | ||
"@ckeditor/ckeditor5-block-quote": "^18.0.0", | ||
"@ckeditor/ckeditor5-code-block": "^18.0.0", | ||
"@ckeditor/ckeditor5-editor-classic": "^18.0.0", | ||
"@ckeditor/ckeditor5-engine": "^18.0.0", | ||
"@ckeditor/ckeditor5-enter": "^18.0.0", | ||
"@ckeditor/ckeditor5-heading": "^18.0.0", | ||
"@ckeditor/ckeditor5-list": "^18.0.0", | ||
"@ckeditor/ckeditor5-paragraph": "^18.0.0", | ||
"@ckeditor/ckeditor5-undo": "^18.0.0", | ||
"@ckeditor/ckeditor5-basic-styles": "^19.0.0", | ||
"@ckeditor/ckeditor5-block-quote": "^19.0.0", | ||
"@ckeditor/ckeditor5-code-block": "^19.0.0", | ||
"@ckeditor/ckeditor5-editor-classic": "^19.0.0", | ||
"@ckeditor/ckeditor5-engine": "^19.0.0", | ||
"@ckeditor/ckeditor5-enter": "^19.0.0", | ||
"@ckeditor/ckeditor5-heading": "^19.0.0", | ||
"@ckeditor/ckeditor5-list": "^19.0.0", | ||
"@ckeditor/ckeditor5-paragraph": "^19.0.0", | ||
"@ckeditor/ckeditor5-undo": "^19.0.0", | ||
"eslint": "^5.5.0", | ||
@@ -29,0 +29,0 @@ "eslint-config-ckeditor5": "^2.0.0", |
@@ -66,3 +66,4 @@ /** | ||
* Adds autoformatting related to the {@link module:basic-styles/bold~Bold}, | ||
* {@link module:basic-styles/italic~Italic} and {@link module:basic-styles/code~Code}. | ||
* {@link module:basic-styles/italic~Italic}, {@link module:basic-styles/code~Code} | ||
* and {@link module:basic-styles/strikethrough~Strikethrough} | ||
* | ||
@@ -74,3 +75,4 @@ * When typed: | ||
* - `_foobar_` – `_` characters are removed and `foobar` is set to italic, | ||
* - ``` `foobar` – ``` ` ``` characters are removed and `foobar` is set to code. | ||
* - ``` `foobar` – ``` ` ``` characters are removed and `foobar` is set to code, | ||
* - `~~foobar~~` – `~~` characters are removed and `foobar` is set to strikethrough. | ||
* | ||
@@ -109,2 +111,10 @@ * @private | ||
} | ||
if ( commands.get( 'strikethrough' ) ) { | ||
/* eslint-disable no-new */ | ||
const strikethroughCallback = getCallbackFunctionForInlineAutoformat( this.editor, 'strikethrough' ); | ||
new InlineAutoformatEditing( this.editor, /(~~)([^~]+)(~~)$/g, strikethroughCallback ); | ||
/* eslint-enable no-new */ | ||
} | ||
} | ||
@@ -111,0 +121,0 @@ |
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
32931
480
+ Added@ckeditor/ckeditor5-core@19.0.1(transitive)
+ Added@ckeditor/ckeditor5-engine@19.0.1(transitive)
+ Added@ckeditor/ckeditor5-typing@19.0.1(transitive)
+ Added@ckeditor/ckeditor5-utils@19.0.2(transitive)
- Removed@ckeditor/ckeditor5-core@18.0.0(transitive)
- Removed@ckeditor/ckeditor5-engine@18.0.0(transitive)
- Removed@ckeditor/ckeditor5-typing@18.0.0(transitive)
- Removed@ckeditor/ckeditor5-utils@18.0.0(transitive)