fixes editor initialisation when in an inline