implement toolbar for textEditor