question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Mention plugin to allow white spaces

See original GitHub issue

I 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:closed
  • Created 7 years ago
  • Comments:12 (4 by maintainers)

github_iconTop GitHub Comments

3reactions
ghostcommented, May 8, 2018

@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!

1reaction
ghostcommented, May 8, 2018

sure! when i get a chance i can include that code on top of the latest version

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found