Editor is only enabled if the -p option is specified. Also added an hook in the flow to easily add domain. Closes #1837