Editor fixes

* Set focus on the text area when editing an existing page
* Fix the preview on page creation
* Refactor a bit how things are enabled/disabled