I’m developing a plugin and I want to listen a event that the user switches to reading view or editing view, but I haven’t found an API for that.
Is there any solution or maybe just I missed something? Thanks for any help.
I’m developing a plugin and I want to listen a event that the user switches to reading view or editing view, but I haven’t found an API for that.
Is there any solution or maybe just I missed something? Thanks for any help.
You can listen to workspace.on('layout-change', ...)
although this event is also triggered for other types of layout changes.