Fix js error: settings.editor is undefined