@ckeditor/ckeditor5-enter
Advanced tools
Comparing version 10.1.1 to 10.1.2
Changelog | ||
========= | ||
## [10.1.2](https://github.com/ckeditor/ckeditor5-enter/compare/v10.1.1...v10.1.2) (2018-10-08) | ||
### Bug fixes | ||
* The default action of <kbd>Enter</kbd> should be always prevented. Closes [ckeditor/ckeditor5#1120](https://github.com/ckeditor/ckeditor5/issues/1120). ([8d7c75f](https://github.com/ckeditor/ckeditor5-enter/commit/8d7c75f)) | ||
## [10.1.1](https://github.com/ckeditor/ckeditor5-enter/compare/v10.1.0...v10.1.1) (2018-07-18) | ||
@@ -5,0 +12,0 @@ |
{ | ||
"name": "@ckeditor/ckeditor5-enter", | ||
"version": "10.1.1", | ||
"version": "10.1.2", | ||
"description": "Enter feature for CKEditor 5.", | ||
@@ -9,17 +9,18 @@ "keywords": [ | ||
"ckeditor 5", | ||
"ckeditor5-feature" | ||
"ckeditor5-feature", | ||
"ckeditor5-plugin" | ||
], | ||
"dependencies": { | ||
"@ckeditor/ckeditor5-core": "^11.0.0", | ||
"@ckeditor/ckeditor5-engine": "^10.2.0", | ||
"@ckeditor/ckeditor5-utils": "^10.2.0" | ||
"@ckeditor/ckeditor5-core": "^11.0.1", | ||
"@ckeditor/ckeditor5-engine": "^11.0.0", | ||
"@ckeditor/ckeditor5-utils": "^11.0.0" | ||
}, | ||
"devDependencies": { | ||
"@ckeditor/ckeditor5-basic-styles": "^10.0.2", | ||
"@ckeditor/ckeditor5-editor-classic": "^11.0.0", | ||
"@ckeditor/ckeditor5-heading": "^10.0.2", | ||
"@ckeditor/ckeditor5-paragraph": "^10.0.2", | ||
"@ckeditor/ckeditor5-typing": "^11.0.0", | ||
"@ckeditor/ckeditor5-undo": "^10.0.2", | ||
"eslint": "^4.15.0", | ||
"@ckeditor/ckeditor5-basic-styles": "^10.0.3", | ||
"@ckeditor/ckeditor5-editor-classic": "^11.0.1", | ||
"@ckeditor/ckeditor5-heading": "^10.1.0", | ||
"@ckeditor/ckeditor5-paragraph": "^10.0.3", | ||
"@ckeditor/ckeditor5-typing": "^11.0.1", | ||
"@ckeditor/ckeditor5-undo": "^10.0.3", | ||
"eslint": "^5.5.0", | ||
"eslint-config-ckeditor5": "^1.0.7", | ||
@@ -26,0 +27,0 @@ "husky": "^0.14.3", |
@@ -17,3 +17,3 @@ CKEditor 5 Enter feature | ||
See the [`@ckeditor/ckeditor5-enter` package](https://docs.ckeditor.com/ckeditor5/latest/api/enter.html) page in [CKEditor 5 documentation](https://docs.ckeditor.com/ckeditor5/latest/). | ||
See the [`@ckeditor/ckeditor5-enter` package](https://ckeditor.com/docs/ckeditor5/latest/api/enter.html) page in [CKEditor 5 documentation](https://ckeditor.com/docs/ckeditor5/latest/). | ||
@@ -20,0 +20,0 @@ ## License |
@@ -19,2 +19,4 @@ /** | ||
* | ||
* For more information about this feature see the {@glink api/enter package page}. | ||
* | ||
* @extends module:core/plugin~Plugin | ||
@@ -40,2 +42,4 @@ */ | ||
this.listenTo( viewDocument, 'enter', ( evt, data ) => { | ||
data.preventDefault(); | ||
// The soft enter key is handled by the ShiftEnter plugin. | ||
@@ -47,3 +51,2 @@ if ( data.isSoft ) { | ||
editor.execute( 'enter' ); | ||
data.preventDefault(); | ||
view.scrollToTheSelection(); | ||
@@ -50,0 +53,0 @@ }, { priority: 'low' } ); |
@@ -21,2 +21,4 @@ /** | ||
* | ||
* For more information about this feature see the {@glink api/enter package page}. | ||
* | ||
* @extends module:core/plugin~Plugin | ||
@@ -62,2 +64,4 @@ */ | ||
this.listenTo( viewDocument, 'enter', ( evt, data ) => { | ||
data.preventDefault(); | ||
// The hard enter key is handled by the Enter plugin. | ||
@@ -69,3 +73,2 @@ if ( !data.isSoft ) { | ||
editor.execute( 'shiftEnter' ); | ||
data.preventDefault(); | ||
view.scrollToTheSelection(); | ||
@@ -72,0 +75,0 @@ }, { priority: 'low' } ); |
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
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Mixed license
License(Experimental) Package contains multiple licenses.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
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
Copyleft License
License(Experimental) Copyleft license information was found.
Found 1 instance in 1 package
Non-permissive License
License(Experimental) A license not known to be considered permissive was found.
Found 1 instance in 1 package
21520
359
4
+ Added@ckeditor/ckeditor5-engine@11.0.0(transitive)
- Removed@ckeditor/ckeditor5-engine@10.2.0(transitive)
- Removed@ckeditor/ckeditor5-utils@10.2.1(transitive)