Tweaks and fixes to the editor.

Signed-off-by: Oskar <oskar.warme@gmail.com>