是否有类似于Facebook的jQuery插件,建议使用以下条件自动完成:
以下是Zapier的一个很好的例子:
发布于 2014-06-06 14:17:41
找到符合所有条件的rich_textarea。
发布于 2016-07-02 15:22:07
尽管你已经找到了一个适合你需要的插件,但我想我还是建议你另一种选择(对于你,以及任何可能会遇到这种情况的人)。越多越好,对吧?
门冬氨酸超过了*您所有的要求,而且也更轻巧,并且可以在更多的浏览器上兼容(它能够被附加到<textarea>
元素上),而不是rich_textarea (本文发布时接受的答案的主题插件)。
我可能应该提到,Mentionator确实是由您维护的:)。
*Mentionator提供doesRecognizeDelimitedSubstrings和delimValue选项,这些选项在Mentionator文档中描述为:
doesRecognizeDelimitedSubstrings:
A boolean which, if defined as true, will allow the external value
of a mention, herein called "mentionExternalValue", to sustain
modifications so long as the result of each such modification
is in mentionExternalValue.split(delimValue)
delimValue:
A string, or regular expression representing the set of strings,
that, given doesRecognizeDelimitedSubstrings === true, delimit
mentionExternalValue substrings that can also serve as external
value of the mention if yielded by a modification of
mentionExternalValue
https://stackoverflow.com/questions/23999700
复制相似问题