Textedit: code style
texteditor: use breadcrumb api instead of doing it manually