Update "editor.js" to follow arv@'s review comments.