added initial edit handling for editor, fixes #1
added initial formatting handling