Dispatch commands via TextEditorView::trigger

This allows commands to be invoked against detached TextEditorViews,
which happens in package specs.