Making ACE editor resizable

user255416 picture user255416 · Dec 17, 2014 · Viewed 13.6k times · Source

Is there an option to add a handle to the ACE editor window for making the size of the editor window changeable by the enduser? I tried to use interactjs.io and applied resizable(true) to the .ace_content class but without an effect. What is the preferred way here?

Answer

David I. Samudio picture David I. Samudio · Jul 27, 2016

At least from version 1.2.3+ (I haven't tried previous ones), you could use:

    editor.setAutoScrollEditorIntoView(true);

Your Ace editor will fill its container.