draft-js-typeahead icon indicating copy to clipboard operation
draft-js-typeahead copied to clipboard

Multiple mention decorators

Open Revln9 opened this issue 7 years ago • 2 comments

hi , Great plugin you have there , simple lightweight , i've used before the mention plugin from draft-js-plugins , and this feels like a 100 times lighter , fast and simple .

while i was changing my code to use your plugin , i've noticed that a couple of things are missing when you compare it to the mention plugin , some features needs to be added in order to make it more flexible , mention key should be configurable via props . Also it lacks the ability to load multiple decorators , example : a list for '@' , another one for '#'...

I'm working on it right now , if you are interested in these features , i'll make a PR for it once it is done. feeback is wellcome.

Revln9 avatar Apr 12 '17 16:04 Revln9

Thanks, glad you like it. That sounds neat, definitely interested in that - feel free to open a PR once you're done!

jvaill avatar Apr 12 '17 18:04 jvaill

Working example

http://jsfiddle.net/kcaewmw0/4/

Revln9 avatar Apr 13 '17 18:04 Revln9