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
I think that a solution might be counting the number of lines in the editor and then resize it to fit these lines:
editor.setOptions({ maxLines: editor.session.getLength() });
Hope this helps.