Update base-editor.js