Mention plugin to allow white spaces
See original GitHub issueI am dealing with an API that returns a lots of results so mentioning someone from their first name can be tricky. I’d like to be able to type John Do
so John Doe
pops out but right now the popover disappear after a white space is inserted.
I’m unsure how tricky that would be to implement, I’ve been looking at https://github.com/draft-js-plugins/draft-js-plugins/blob/9f94e5c94d4b08605d9ab227218f141d8bee2cf3/draft-js-mention-plugin/src/MentionSuggestions/index.js#L102 and will probably dig deeper but feel free to let me know if you have already worked on it.
Issue Analytics
- State:
- Created 7 years ago
- Comments:12 (4 by maintainers)
Top Results From Across the Web
How to use CKEdior plugin Mention to allow white space for ...
I am using this plugin https://ckeditor.com/docs/ckeditor4/latest/features/mentions.html. However, it stops searching after typed whitespace ...
Read more >3 Ways To Force Whitespace In The WordPress Editor
Method 3: Using white-space:pre This way, you don't need to have any additional CSS to remove the styling from the pre block. This...
Read more >Mention - DraftJS Plugins - High quality plugins with great UX
We are happy to accept pull requests to extend the default mentionRegExp as well. supportWhitespaceAllows you to support a whitespace while typing a...
Read more >Extra WhiteSpace in Neve theme - WordPress.org
Hi,. I'm using the Table Of Contents block, but due to some reason, there is some white space on the Grid Layout on...
Read more >Mentions plugin | Docs - TinyMCE
The mentions plugin will present a list of users when a user types the “@” symbol followed by the beginnings of a username...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@kurenov
I read a couple of other issues about this and it looks like this feature was omitted because the maintainers have too much to deal with at the moment. I read about another pull request that was denied from 2 years ago #402 , so I copied that person’s code and created a fork here if anyone wants to see a working example, just go into docs, npm start, and use Custom Mentions to test. it’s up to date with v2.0.8
i agree it’s a very important feature!
sure! when i get a chance i can include that code on top of the latest version