admin管理员组文章数量:1435859
It seems that Codemirror plugin show-hint is activated by shortcut. I need to implement live autoplete functionality, i.e. show hints after user entered first letters of keyword. Is there a way to do this with Codemirror?
It seems that Codemirror plugin show-hint is activated by shortcut. I need to implement live autoplete functionality, i.e. show hints after user entered first letters of keyword. Is there a way to do this with Codemirror?
Share Improve this question asked Jan 24, 2018 at 9:41 Eugene KrakosEugene Krakos 1591 silver badge8 bronze badges2 Answers
Reset to default 2Yes, there is a way to do this with CodeMirror. You can see the description of the addon for this here. CodeMirror offers the hint/show-hint.js
addon that allows you to display hints when a keyboard short-cut is used.
You can find additional information on adding hints in this StackOverflow question as well.
Additionally, you can checkout their demo here.
You could have a function that is fired off after a keyup event. An example of an implementation is in this Stack Overflow answer.
本文标签: javascriptLive autocomplete in CodemirrorStack Overflow
版权声明:本文标题:javascript - Live autocomplete in Codemirror - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745670856a2669558.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论