Adding event listener to text editor

I’m using the “editable” property on a textblock element.
Is it possible to add a “keyUp” listener to the text-editor, without creating a custom editor?

Well, to answer your question literally: yes, you could add a “keyup” event listener to the Diagram.toolManager.textEditingTool.defaultTextEditor.

That would modify the behavior of the textarea HTML element used for editing every editable TextBlock in the diagram.

But it would not displace the “keydown” event listener that the TextEditingTool has already added to that textarea HTML element. So that behavior would still take place. If you need that behavior change (from the standard behavior), you would need to implement a custom text editor, as demonstrated by Text Editing Examples.

10X a lot it worked great!