I think this would be a very useful example in the repo. I'm struggling to put together the docs to get this working, personally, and I imagine it's a common use case of draft.js.
Some of the core features would be:
My understanding is that this requires using most of the public api, which is why it'd make a great example. It'd also cover things like getting the text at the cursor position, which I haven't figured out yet.
@brigand You should see https://www.draft-js-plugins.com (it has the mention plugin)
Thanks! This is very helpful.
So the consensus is that complex editors should be built with a plugin system instead of the way the examples/docs do it?
No, it's up to you, just see it as a way to organize things. You can see the code they write & implement as the examples/docs
@brigand :
Here's another one for your reference -> https://github.com/dooly-ai/draft-js-typeahead
Most helpful comment
@brigand You should see https://www.draft-js-plugins.com (it has the mention plugin)