Fixed linting error in editor.js file.