Moved code which involved only the DOM in the Editor module to EditorController.
Added an editor panel, which when opened makes the tab editable.