From 98a66d5c7ecdc460c885d8081b7d7a7996b52973 Mon Sep 17 00:00:00 2001 From: Spencer Williams Date: Thu, 2 May 2013 18:39:10 -0600 Subject: [PATCH] Give editor focus and go to line 2 --- php-console.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/php-console.js b/php-console.js index 81d03b8..79dbba9 100644 --- a/php-console.js +++ b/php-console.js @@ -85,6 +85,12 @@ editor = ace.edit(options.editor); + // give focus + editor.focus(); + + // move cursor to line 2 + editor.gotoLine(2,0); + // set mode PhpMode = require("ace/mode/php").Mode; editor.getSession().setMode(new PhpMode());