Editor toolbar implementation (fixes #392)