@ckeditor/ckeditor5-enter
Advanced tools
Comparing version 26.0.0 to 27.0.0
{ | ||
"name": "@ckeditor/ckeditor5-enter", | ||
"version": "26.0.0", | ||
"version": "27.0.0", | ||
"description": "Enter feature for CKEditor 5.", | ||
@@ -15,14 +15,14 @@ "keywords": [ | ||
"dependencies": { | ||
"@ckeditor/ckeditor5-core": "^26.0.0", | ||
"@ckeditor/ckeditor5-engine": "^26.0.0", | ||
"@ckeditor/ckeditor5-utils": "^26.0.0" | ||
"@ckeditor/ckeditor5-core": "^27.0.0", | ||
"@ckeditor/ckeditor5-engine": "^27.0.0", | ||
"@ckeditor/ckeditor5-utils": "^27.0.0" | ||
}, | ||
"devDependencies": { | ||
"@ckeditor/ckeditor5-basic-styles": "^26.0.0", | ||
"@ckeditor/ckeditor5-editor-classic": "^26.0.0", | ||
"@ckeditor/ckeditor5-heading": "^26.0.0", | ||
"@ckeditor/ckeditor5-link": "^26.0.0", | ||
"@ckeditor/ckeditor5-paragraph": "^26.0.0", | ||
"@ckeditor/ckeditor5-typing": "^26.0.0", | ||
"@ckeditor/ckeditor5-undo": "^26.0.0" | ||
"@ckeditor/ckeditor5-basic-styles": "^27.0.0", | ||
"@ckeditor/ckeditor5-editor-classic": "^27.0.0", | ||
"@ckeditor/ckeditor5-heading": "^27.0.0", | ||
"@ckeditor/ckeditor5-link": "^27.0.0", | ||
"@ckeditor/ckeditor5-paragraph": "^27.0.0", | ||
"@ckeditor/ckeditor5-typing": "^27.0.0", | ||
"@ckeditor/ckeditor5-undo": "^27.0.0" | ||
}, | ||
@@ -29,0 +29,0 @@ "engines": { |
@@ -49,2 +49,3 @@ /** | ||
editor.execute( 'enter' ); | ||
view.scrollToTheSelection(); | ||
@@ -51,0 +52,0 @@ }, { priority: 'low' } ); |
@@ -12,2 +12,3 @@ /** | ||
import DomEventData from '@ckeditor/ckeditor5-engine/src/view/observer/domeventdata'; | ||
import BubblingEventInfo from '@ckeditor/ckeditor5-engine/src/view/observer/bubblingeventinfo'; | ||
import { keyCodes } from '@ckeditor/ckeditor5-utils/src/keyboard'; | ||
@@ -21,2 +22,5 @@ | ||
export default class EnterObserver extends Observer { | ||
/** | ||
* @inheritDoc | ||
*/ | ||
constructor( view ) { | ||
@@ -29,7 +33,5 @@ super( view ); | ||
if ( this.isEnabled && data.keyCode == keyCodes.enter ) { | ||
// Save the event object to check later if it was stopped or not. | ||
let event; | ||
doc.once( 'enter', evt => ( event = evt ), { priority: 'highest' } ); | ||
const event = new BubblingEventInfo( doc, 'enter', doc.selection.getFirstRange() ); | ||
doc.fire( 'enter', new DomEventData( doc, data.domEvent, { | ||
doc.fire( event, new DomEventData( doc, data.domEvent, { | ||
isSoft: data.shiftKey | ||
@@ -40,3 +42,3 @@ } ) ); | ||
// https://github.com/ckeditor/ckeditor5/issues/753 | ||
if ( event && event.stop.called ) { | ||
if ( event.stop.called ) { | ||
evt.stop(); | ||
@@ -43,0 +45,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
24565
390
+ 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-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)