@ckeditor/ckeditor5-highlight
Advanced tools
Comparing version 26.0.0 to 27.0.0
{ | ||
"name": "@ckeditor/ckeditor5-highlight", | ||
"version": "26.0.0", | ||
"version": "27.0.0", | ||
"description": "Highlight feature for CKEditor 5.", | ||
@@ -14,18 +14,18 @@ "keywords": [ | ||
"dependencies": { | ||
"ckeditor5": "^26.0.0" | ||
"ckeditor5": "^27.0.0" | ||
}, | ||
"devDependencies": { | ||
"@ckeditor/ckeditor5-block-quote": "^26.0.0", | ||
"@ckeditor/ckeditor5-core": "^26.0.0", | ||
"@ckeditor/ckeditor5-block-quote": "^27.0.0", | ||
"@ckeditor/ckeditor5-core": "^27.0.0", | ||
"@ckeditor/ckeditor5-dev-utils": "^24.0.0", | ||
"@ckeditor/ckeditor5-editor-classic": "^26.0.0", | ||
"@ckeditor/ckeditor5-engine": "^26.0.0", | ||
"@ckeditor/ckeditor5-enter": "^26.0.0", | ||
"@ckeditor/ckeditor5-heading": "^26.0.0", | ||
"@ckeditor/ckeditor5-image": "^26.0.0", | ||
"@ckeditor/ckeditor5-list": "^26.0.0", | ||
"@ckeditor/ckeditor5-paragraph": "^26.0.0", | ||
"@ckeditor/ckeditor5-theme-lark": "^26.0.0", | ||
"@ckeditor/ckeditor5-typing": "^26.0.0", | ||
"@ckeditor/ckeditor5-utils": "^26.0.0", | ||
"@ckeditor/ckeditor5-editor-classic": "^27.0.0", | ||
"@ckeditor/ckeditor5-engine": "^27.0.0", | ||
"@ckeditor/ckeditor5-enter": "^27.0.0", | ||
"@ckeditor/ckeditor5-heading": "^27.0.0", | ||
"@ckeditor/ckeditor5-image": "^27.0.0", | ||
"@ckeditor/ckeditor5-list": "^27.0.0", | ||
"@ckeditor/ckeditor5-paragraph": "^27.0.0", | ||
"@ckeditor/ckeditor5-theme-lark": "^27.0.0", | ||
"@ckeditor/ckeditor5-typing": "^27.0.0", | ||
"@ckeditor/ckeditor5-utils": "^27.0.0", | ||
"webpack": "^4.43.0", | ||
@@ -32,0 +32,0 @@ "webpack-cli": "^3.3.11" |
@@ -97,4 +97,7 @@ /** | ||
const t = this.editor.t; | ||
const command = this.editor.commands.get( 'highlight' ); | ||
this._addButton( 'removeHighlight', t( 'Remove highlight' ), icons.eraser ); | ||
this._addButton( 'removeHighlight', t( 'Remove highlight' ), icons.eraser, null, button => { | ||
button.bind( 'isEnabled' ).to( command, 'isEnabled' ); | ||
} ); | ||
} | ||
@@ -128,6 +131,7 @@ | ||
* @param {String} icon The button icon. | ||
* @param {Function} [decorateButton=()=>{}] Additional method for extending the button. | ||
* @param {*} value The `value` property passed to the executed command. | ||
* @param {Function} decorateButton A callback getting ButtonView instance so that it can be further customized. | ||
* @private | ||
*/ | ||
_addButton( name, label, icon, value, decorateButton = () => {} ) { | ||
_addButton( name, label, icon, value, decorateButton ) { | ||
const editor = this.editor; | ||
@@ -134,0 +138,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
174981
655
+ Added@ckeditor/ckeditor5-clipboard@27.1.0(transitive)
+ Added@ckeditor/ckeditor5-core@27.1.0(transitive)
+ Added@ckeditor/ckeditor5-engine@27.1.0(transitive)
+ Added@ckeditor/ckeditor5-enter@27.1.0(transitive)
+ Added@ckeditor/ckeditor5-paragraph@27.1.0(transitive)
+ Added@ckeditor/ckeditor5-select-all@27.1.0(transitive)
+ Added@ckeditor/ckeditor5-typing@27.1.0(transitive)
+ Added@ckeditor/ckeditor5-ui@27.1.0(transitive)
+ Added@ckeditor/ckeditor5-undo@27.1.0(transitive)
+ Added@ckeditor/ckeditor5-upload@27.1.0(transitive)
+ Added@ckeditor/ckeditor5-utils@27.1.0(transitive)
+ Added@ckeditor/ckeditor5-widget@27.1.0(transitive)
+ Addedckeditor5@27.1.0(transitive)
- Removed@ckeditor/ckeditor5-clipboard@26.0.0(transitive)
- Removed@ckeditor/ckeditor5-core@26.0.0(transitive)
- Removed@ckeditor/ckeditor5-engine@26.0.0(transitive)
- Removed@ckeditor/ckeditor5-enter@26.0.0(transitive)
- Removed@ckeditor/ckeditor5-paragraph@26.0.0(transitive)
- Removed@ckeditor/ckeditor5-select-all@26.0.0(transitive)
- Removed@ckeditor/ckeditor5-typing@26.0.0(transitive)
- Removed@ckeditor/ckeditor5-ui@26.0.0(transitive)
- Removed@ckeditor/ckeditor5-undo@26.0.0(transitive)
- Removed@ckeditor/ckeditor5-upload@26.0.0(transitive)
- Removed@ckeditor/ckeditor5-utils@26.0.0(transitive)
- Removed@ckeditor/ckeditor5-widget@26.0.0(transitive)
- Removedckeditor5@26.0.0(transitive)
Updatedckeditor5@^27.0.0