fixes editor initialisation when in an inline
Merge pull request #10 from alesdotio/master

fixes initialisation problems