[editor] hide current window and document in script