ckeditor5-react
ckeditor5-react copied to clipboard
No ability to listen to events.
I need to override some core behavior in ckeditor5 so I can respond to clicks and events in the react area but that seems to be impossible as there is no onKeyDown or onClick event listeners exposed from ckeditor...
Hi, you can listen to the mentioned events directly on the document view. At first, you'll need to get the editor instance, then set up a listener:
const viewDocument = editor.editing.view.document;
viewDocument.on( 'keydown', ( evt, data ) => {
console.log( evt, data );
} );
Hi @Mgsy, how about listening to dialogDefinition ?. Is it possible to customize the link dialog with a custom React component?