First of all, I see that you are using Observable.fromEvent , which seems to be part of RxJS and works with jQuery events. CKEditor 5 does not use RxJS and jQuery. It uses user events and user observables , which are something different from the observable that you want to use.
So, note that:
Observable.fromEvent(this.editor.editing.view, 'selectionChangeDone');
It is not a proper way to listen to the event and most likely only works because of some duck input .
The correct way to listen for CKE5 events is:
this.editor.editing.view.on( 'selectionChangeDone', () => { } );
Secondly, "enter" is not an event, but a command. If you want to listen to this command, you can do:
this.editor.commands.get( 'input' ).on( 'execute', ( evt, args ) => { console.log( evt, args ); } );
However, this is a very fresh API, which will be introduced in the next version of ckeditor-core (0.9.0), so to use it you need to use the current leading branch.
source share