Fixes several bugs. Initial support for placeholder text in the editor.