@ckeditor/ckeditor5-editor-decoupled
Advanced tools
Comparing version 15.0.0 to 16.0.0
Changelog | ||
========= | ||
## [16.0.0](https://github.com/ckeditor/ckeditor5-editor-decoupled/compare/v15.0.0...v16.0.0) (2019-12-04) | ||
### Features | ||
* The main editor toolbar should respect the `config.toolbar.shouldNotGroupWhenFull` configuration (see [ckeditor/ckeditor5#5692](https://github.com/ckeditor/ckeditor5/issues/5692)). ([35b3cbf](https://github.com/ckeditor/ckeditor5-editor-decoupled/commit/35b3cbf)) | ||
## [15.0.0](https://github.com/ckeditor/ckeditor5-editor-decoupled/compare/v12.2.2...v15.0.0) (2019-10-23) | ||
@@ -5,0 +12,0 @@ |
{ | ||
"name": "@ckeditor/ckeditor5-editor-decoupled", | ||
"version": "15.0.0", | ||
"version": "16.0.0", | ||
"description": "Decoupled editor implementation for CKEditor 5.", | ||
@@ -12,19 +12,21 @@ "keywords": [ | ||
"dependencies": { | ||
"@ckeditor/ckeditor5-core": "^15.0.0", | ||
"@ckeditor/ckeditor5-engine": "^15.0.0", | ||
"@ckeditor/ckeditor5-ui": "^15.0.0", | ||
"@ckeditor/ckeditor5-utils": "^15.0.0", | ||
"@ckeditor/ckeditor5-core": "^16.0.0", | ||
"@ckeditor/ckeditor5-engine": "^16.0.0", | ||
"@ckeditor/ckeditor5-ui": "^16.0.0", | ||
"@ckeditor/ckeditor5-utils": "^16.0.0", | ||
"lodash-es": "^4.17.10" | ||
}, | ||
"devDependencies": { | ||
"@ckeditor/ckeditor5-basic-styles": "^15.0.0", | ||
"@ckeditor/ckeditor5-enter": "^15.0.0", | ||
"@ckeditor/ckeditor5-heading": "^15.0.0", | ||
"@ckeditor/ckeditor5-paragraph": "^15.0.0", | ||
"@ckeditor/ckeditor5-typing": "^15.0.0", | ||
"@ckeditor/ckeditor5-undo": "^15.0.0", | ||
"@ckeditor/ckeditor5-basic-styles": "^16.0.0", | ||
"@ckeditor/ckeditor5-enter": "^16.0.0", | ||
"@ckeditor/ckeditor5-heading": "^16.0.0", | ||
"@ckeditor/ckeditor5-paragraph": "^16.0.0", | ||
"@ckeditor/ckeditor5-typing": "^16.0.0", | ||
"@ckeditor/ckeditor5-undo": "^16.0.0", | ||
"eslint": "^5.5.0", | ||
"eslint-config-ckeditor5": "^2.0.0", | ||
"husky": "^1.3.1", | ||
"lint-staged": "^7.0.0" | ||
"lint-staged": "^7.0.0", | ||
"stylelint": "^11.1.1", | ||
"stylelint-config-ckeditor5": "^1.0.0" | ||
}, | ||
@@ -49,3 +51,4 @@ "engines": { | ||
"scripts": { | ||
"lint": "eslint --quiet '**/*.js'" | ||
"lint": "eslint --quiet '**/*.js'", | ||
"stylelint": "stylelint --quiet --allow-empty-input 'theme/**/*.css' 'docs/**/*.css'" | ||
}, | ||
@@ -55,2 +58,5 @@ "lint-staged": { | ||
"eslint --quiet" | ||
], | ||
"**/*.css": [ | ||
"stylelint --quiet --allow-empty-input" | ||
] | ||
@@ -57,0 +63,0 @@ }, |
@@ -79,3 +79,8 @@ /** | ||
const view = new DecoupledEditorUIView( this.locale, this.editing.view, this.sourceElement ); | ||
const shouldToolbarGroupWhenFull = !this.config.get( 'toolbar.shouldNotGroupWhenFull' ); | ||
const view = new DecoupledEditorUIView( this.locale, this.editing.view, { | ||
editableElement: this.sourceElement, | ||
shouldToolbarGroupWhenFull | ||
} ); | ||
this.ui = new DecoupledEditorUI( this, view ); | ||
@@ -82,0 +87,0 @@ } |
@@ -31,6 +31,10 @@ /** | ||
* @param {module:engine/view/view~View} editingView The editing view instance this view is related to. | ||
* @param {HTMLElement} [editableElement] The editable element. If not specified, it will be automatically created by | ||
* @param {Object} [options={}] Configuration options fo the view instance. | ||
* @param {HTMLElement} [options.editableElement] The editable element. If not specified, it will be automatically created by | ||
* {@link module:ui/editableui/editableuiview~EditableUIView}. Otherwise, the given element will be used. | ||
* @param {Boolean} [options.shouldToolbarGroupWhenFull] When set `true` enables automatic items grouping | ||
* in the main {@link module:editor-decoupled/decouplededitoruiview~DecoupledEditorUIView#toolbar toolbar}. | ||
* See {@link module:ui/toolbar/toolbarview~ToolbarOptions#shouldGroupWhenFull} to learn more. | ||
*/ | ||
constructor( locale, editingView, editableElement ) { | ||
constructor( locale, editingView, options = {} ) { | ||
super( locale ); | ||
@@ -45,3 +49,3 @@ | ||
this.toolbar = new ToolbarView( locale, { | ||
shouldGroupWhenFull: true | ||
shouldGroupWhenFull: options.shouldToolbarGroupWhenFull | ||
} ); | ||
@@ -55,3 +59,3 @@ | ||
*/ | ||
this.editable = new InlineEditableUIView( locale, editingView, editableElement ); | ||
this.editable = new InlineEditableUIView( locale, editingView, options.editableElement ); | ||
@@ -58,0 +62,0 @@ // This toolbar may be placed anywhere in the page so things like font size need to be reset in it. |
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
31664
447
12
+ Added@ckeditor/ckeditor5-core@16.0.0(transitive)
+ Added@ckeditor/ckeditor5-engine@16.0.0(transitive)
+ Added@ckeditor/ckeditor5-ui@16.0.0(transitive)
+ Added@ckeditor/ckeditor5-utils@16.0.0(transitive)
- Removed@ckeditor/ckeditor5-core@15.0.0(transitive)
- Removed@ckeditor/ckeditor5-engine@15.0.0(transitive)
- Removed@ckeditor/ckeditor5-ui@15.0.0(transitive)
- Removed@ckeditor/ckeditor5-utils@15.0.0(transitive)
- Removedckeditor5@15.0.0(transitive)