【发布时间】:2016-04-11 16:03:39
【问题描述】:
尝试为拼写检查模块实现自定义 showHint 调用。我关注了docs,但调用editor.showHint 似乎什么也没做,而是返回undefined。
我想我缺少一些东西。这是我要测试的沙箱代码:
editor.on('cursorActivity', function() {
var options = {
from: editor.getDoc().getCursor(),
to: editor.getDoc().getCursor(),
list: ['foo', 'bar', 'baz']
};
editor.showHint(options);
});
【问题讨论】:
标签: javascript plugins editor wysiwyg codemirror