diff options
Diffstat (limited to 'share')
-rw-r--r-- | share/www/script/futon.browse.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/share/www/script/futon.browse.js b/share/www/script/futon.browse.js index cc9c846e..408d34cc 100644 --- a/share/www/script/futon.browse.js +++ b/share/www/script/futon.browse.js @@ -826,7 +826,8 @@ $(this).html($("<pre></pre>").html($.futon.formatJSON(page.doc, {html: true}))) .makeEditable({allowEmpty: false, createInput: function(value) { - return $("<textarea rows='8' cols='80' spellcheck='false'></textarea>").enableTabInsertion(); + var rows = value.split("\n").length; + return $("<textarea rows='" + rows + "' cols='80' spellcheck='false'></textarea>").enableTabInsertion(); }, prepareInput: function(input) { $(input).makeResizable({vertical: true}); |