React-draft-wysiwyg: Pretty much every issue raised for mentions is ignored - are they actually useable?

Created on 1 Aug 2018  Â·  5Comments  Â·  Source: jpuri/react-draft-wysiwyg

I've just gotten set up with this package, and realised mentions isn't really complete. There's quite a few major issues with it:

  • Up/down arrow keys seem to change which mention is selected, but there's no way to add class/style changes, so it's very hard to tell
  • In some situations arrow keys do nothing (possibly when mouse is over suggestions)
  • No means of getting the mentions from the editorState, except putting a fake URL in and regex-ing out the domain, slashes and hashes
  • Occasionally doesn't replace text correctly, resulting in "@John Smith @Jo" instead of expected "@John Smith"

Would we consider it useable, or should it perhaps have a warning somewhere that it doesn't really do what draft-mentions does?

Most helpful comment

I'm considering this package dead, and I honestly would urge you to use
something like Quill instead. I was blown away how much easier and more
extensible it was. Replaced this entirely in about half an hour.

On Thu, 6 Jun 2019, 11:34 pm Harel Malka, notifications@github.com wrote:

I opened this: #616
https://github.com/jpuri/react-draft-wysiwyg/issues/616
in feb 2018.... I tried to implement it myself following my suggestion but
didn't have the time to invest. I might have another stab at it at some
point

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jpuri/react-draft-wysiwyg/issues/703?email_source=notifications&email_token=AIICZZXZVJUXXCJKEA3SHJDPZEG7FA5CNFSM4FNJ4KZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXC3H5Q#issuecomment-499495926,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIICZZQ5N7B6M3FS4QOWRFDPZEG7FANCNFSM4FNJ4KZA
.

All 5 comments

I'm trying to use it in my current project and 1 major thing was not solved (or at least I can't seem to make it work with the current mention API) is async mentions.
How can I dynamically get mentions (like an autocomplete for a gigantic user base) if the API does not give me onSearchChange hook? Is it even worth it to hack the onChange to capture everything and I make a custom parser to arbitrarily decide what is a custom mention?
Is there a way to extend the current "strategy" to get suggestions?

I opened this: https://github.com/jpuri/react-draft-wysiwyg/issues/616
in feb 2018.... I tried to implement it myself following my suggestion but didn't have the time to invest. I might have another stab at it at some point

I'm considering this package dead, and I honestly would urge you to use
something like Quill instead. I was blown away how much easier and more
extensible it was. Replaced this entirely in about half an hour.

On Thu, 6 Jun 2019, 11:34 pm Harel Malka, notifications@github.com wrote:

I opened this: #616
https://github.com/jpuri/react-draft-wysiwyg/issues/616
in feb 2018.... I tried to implement it myself following my suggestion but
didn't have the time to invest. I might have another stab at it at some
point

—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jpuri/react-draft-wysiwyg/issues/703?email_source=notifications&email_token=AIICZZXZVJUXXCJKEA3SHJDPZEG7FA5CNFSM4FNJ4KZKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGODXC3H5Q#issuecomment-499495926,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AIICZZQ5N7B6M3FS4QOWRFDPZEG7FANCNFSM4FNJ4KZA
.

What you see is what you dont get

Was this page helpful?
0 / 5 - 0 ratings

Related issues

kcabading picture kcabading  Â·  3Comments

DiegoGallegos4 picture DiegoGallegos4  Â·  4Comments

gyarasu picture gyarasu  Â·  4Comments

Fireprufe15 picture Fireprufe15  Â·  4Comments

FriOne picture FriOne  Â·  3Comments