Use Workspace::observeTextEditors in init script example

No need to go through the view to get the editor instance.