Give editor focus and go to line 2

master
Spencer Williams 12 years ago
parent de4a5a5316
commit 98a66d5c7e
  1. 6
      php-console.js

@ -85,6 +85,12 @@
editor = ace.edit(options.editor); editor = ace.edit(options.editor);
// give focus
editor.focus();
// move cursor to line 2
editor.gotoLine(2,0);
// set mode // set mode
PhpMode = require("ace/mode/php").Mode; PhpMode = require("ace/mode/php").Mode;
editor.getSession().setMode(new PhpMode()); editor.getSession().setMode(new PhpMode());

Loading…
Cancel
Save