plugin_editor.js was mismerged, copying straight from upstream