in case the current editor is a js editor