【发布时间】:2014-05-19 23:28:53
【问题描述】:
我正在尝试使用 Ace Editor 进行一个相当简单的操作:让编辑器跳转到特定的行。但是,我无法让它工作!
查看这个 jsFiddle:http://jsfiddle.net/Xu9Tb/
var editor = ace.edit('editor');
editor.scrollToLine(50, true, true, function () {});
// Doesn't do anything at all
editor.gotoLine(50, 10, true);
// Will move the caret to the line, but it will not scroll
// to the editor to the line if it's off screen
有什么建议吗?
谢谢。
【问题讨论】:
标签: javascript ace-editor