codemirror autocomplete after any keyup?

前端 未结 11 1486
忘了有多久
忘了有多久 2020-12-29 04:06

I\'m working on trying to add a custom autocomplete, that I want to trigger whenever the user is typing (configurable of course). I\'ve found a couple examples of autocomple

11条回答
  •  执念已碎
    2020-12-29 04:47

    To also display the autocomplete widget:

    onKeyEvent: function (e, s) {
        if (s.type == "keyup") {
            CodeMirror.showHint(e);
        }
    }
    

提交回复
热议问题