I want to use Ace in an HTML textarea element, but there doesn't seem
to be any documentation on this. It seems only to work with non-form
elements like div and pre.
Alternatively, is there any Javascript code I could use to pull the
contents of Ace into a variable? I was originally doing it with
textarea's "value" attribute, but if Ace can't work with textareas, is
there another way to pull the content?
// Setup
editor = ace.edit("my_div");
// Read
text = editor.getSession().getValue()
Cheers,
Giles
--
Giles Thomas
giles....@resolversystems.com
+44 (0) 20 3051 2751
Dirigible: a programmable cloud spreadsheet
<http://projectdirigible.com/>
17a Clerkenwell Road, London EC1M 5RD, UK
VAT No.: GB 893 5643 79
Registered in England and Wales as company number 5467329.
Registered address: 843 Finchley Road, London NW11 8NA, UK