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
Ace provides an option: maxLines so that you can simply try:
maxLines
editor.setOptions({ maxLines: 15 });
http://jsfiddle.net/cirosantilli/9xdkszbz/