6
पर जाएं Ice संपादक के साथ एक काफी सरल ऑपरेशन का प्रयास कर रहा हूं: संपादक को किसी विशेष पंक्ति पर कूदना है। मैं इसे काम करने के लिए नहीं मिल सकता, यद्यपि! 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
किसी भी सलाह:
इस jsFiddle देखते हैं?
धन्यवाद।
यह भी दुर्भाग्य से नवीनतम संस्करण में टूट किया जा रहा है (v1.2.6) – pootzko