|
|
@ -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()); |
|
|
|