I need to monitor selected content and react to it. I read view.state.selection.content() property. It works as expected except it’s not null / updated when contentediable loses focus / selection. So visually content is not selected but the model says that it is.
How can I get real selection?