Open vmc08 opened 3 years ago
@vmc08 I think the first thing that’s off is that you’re using "@draft-js-plugins/editor": "^4.1.0"
, whereas internally Draftail uses "draft-js-plugins-editor": "^2.1.1",
. There’s going to be a lot of things that are potentially off under the hood with such a wide discrepancy in version ranges. You also shouldn’t need to install the plugins editor package directly, since that’s a dependency of Draftail.
So I would recommend trying with a version of the mentions plugin that matches the editor’s version. I haven’t used the mentions plugin myself otherwise, so can’t comment to how it’s meant to be used or what to expect of it.
Hi @thibaudcolas , thanks for your reply. I'll try to do that. Will give update of the result.
Hi, thanks for creating this great library but I need help integrating @draft-js-plugins/mention.
Library versions, if this helps
have to use 0.10.5 for draft-js so draftail will work as expected (also stated in draftail doc)
Issue
I just followed the documentation in the mentions plugin but this is the result.
Editor Component
Plugins Hook
I'm noob at draft-js, I hope you guys can point out what I'm missing or what I did wrong.