0
カスタムshowHint
を実装しようとすると、スペルチェックモジュールが呼び出されます。私はdocsに従っていますが、editor.showHint
を呼び出すと何も起こらず、undefined
を返します。CodeMirrorカスタムshowHint()呼び出しが機能しない
私には何かがありません。ここでは、テストに私のサンドボックスのコードは次のとおりです。
editor.on('cursorActivity', function() {
var options = {
from: editor.getDoc().getCursor(),
to: editor.getDoc().getCursor(),
list: ['foo', 'bar', 'baz']
};
editor.showHint(options);
});
http://jsfiddle.net/3wvcudqt/3/