首页 文章

用于textarea和自由文本的Facebook jQuery自动完成插件

提问于
浏览
6

是否存在类似于Facebook的jQuery插件,它建议/使用此标准自动填充:

以下是Zapier的一个例子:

Zapier

2 回答

  • 0

    找到rich_textarea,符合所有标准 .

    https://github.com/Yermo/rich_textarea

  • 6

    即使你找到了一个适合你需求的插件,我想我会建议一个替代方案(对你来说,以及任何可能偶然发现的人) . 越多越好吧?

    Mentionator超过*您的所有要求,并且也更轻,并且与rich_textarea(此时接受的答案的主题插件)在更多数量的浏览器(可以加载到 <textarea> 元素)上兼容后) .

    我应该提到Mentionator是由你真正维护:) .

    • Mentionator提供 doesRecognizeDelimitedSubstringsdelimValue 选项,在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
    

相关问题