One tab for custom editor?


#1

Is there a way to force only having one tab of certain custom editor? Right now I’m implementing this in a hackish way by handling afterChoose to open a tab with a certain name, but this is not really clean and doesn’t work when opening files via c9 open for example.



#2

I think you can use documentLoad event listener of your editor, to either close the old tab or the new one.