Hi,
We are triying to attach to the keyboard events in the document editor but the event is never fired
<ejs-documenteditorcontainer
id="container"
ref="doceditcontainer"
class="height-100-important"
:enableLocalPaste="false"
:enableWordExport="true"
:enableToolbar="true"
@hook:mounted="onEditorLoaded"
data-cy="documentEditor"
>
We are attaching to the event in the onEditorLoaded method
In the template we are using ejs-documentEditorContainer, but in the documentation you use the ejs-documentEditor, so,we get the reference of the documentEditor from the documentEditorContainer, but it doesn't work.
What can be wrong?
onEditorLoaded(): void {
this.docEditorContainer?.ej2Instances.documentEditor.addEventListener("keydown", (event: any) => {
console.log("KeyDownDetected",event)
})
}
Thank you in advance for your response,
Regards
Gaspar