implement document link chooser in rich text
Merge branch 'documents'