I\'m trying to add the Ace editor to a page, but I don\'t know how to get the height to be set automatically based on the length of its contents.
Ideally it would wo
You can use jQuery:
var length_editor = editor.session.getLength(); var rows_editor = length_editor * 17; $('#editor').css('height',rows_editor);