editor.getRange({line:1},{line:2}) // 获取内容块字符
// 替换内容块内容为testeditors['js'].replaceRange('test',{line:2,ch:0},{line:2})
var lineobject = editors.getLineHandle(1) // 获取行对象Structure{ gutterMarkers: Object height: 14 parent: LeafChunk stateAfter: Object styles: Array[11] text: "init:function() {" }
editors.scrollTo(0,1000) // 滚动到x:0,y:1000
新闻热点
疑难解答