Update editor-base.js