How do I make a textarea an ACE editor?
As far as I understood the idea of Ace, you shouldn’t make a textarea an Ace editor itself. You should create an additional div and update textarea using .getSession() function instead. html <textarea name=”description”/> <div id=”description”/> js var editor = ace.edit(“description”); var textarea = $(‘textarea[name=”description”]’).hide(); editor.getSession().setValue(textarea.val()); editor.getSession().on(‘change’, function(){ textarea.val(editor.getSession().getValue()); }); or just call textarea.val(editor.getSession().getValue()); only … Read more