I’m trying to do a rather simple thing but I can’t see where I should do it.
A user is editing text using the default text editor. I need to trim() spaces on this text before it gets anywhere.
So far I’ve tried changing value diagram.toolManager.textEditingTool.defaultTextEditor in onDeactivate callback, adding a value function to defaultTextEditor, adding event listeners for blur and keydown. And all of those seems to be too late because value is updated, but what being sent still contains old value with spaces.