Tidied up EditorPanel and AceEditor.