springload / wagtaildraftail

🐦📝🍸 Draft.js editor for Wagtail, built upon Draftail and draftjs_exporter
https://pypi.python.org/pypi/wagtaildraftail
MIT License
24 stars 3 forks source link

Update Link and Document sources to prevent confusing editing of entities without text selected #57

Open thibaudcolas opened 6 years ago

thibaudcolas commented 6 years ago

See https://github.com/springload/draftail/issues/85. Until there is a new API there, those two sources need to either:

I like option 2 better because it's closer to the behavior of other editors, and the text can always be edited / reverted afterwards. For links, we could go with the the page title for pages, and full URL (external or email links). For documents, the document title seems like a good link text.

thibaudcolas commented 6 years ago

Assigning to @vincentaudebert like https://github.com/springload/draftail/issues/85.