Sunday, September 8, 2013

Get content from ace editor to a textarea

Ace editor is awesome! We get to edit code with instant syntax highlighting. But often, we have to get the content from the editor, than just typing some with syntax highlighting. Ace editor have a function to get the value editor.getSession().getValue().

Here is a demo on getting value from the editor and setting it with textarea.

Fiddle here: http://jsfiddle.net/deepumohanp/tGF6y/

References

  1. How do I make a textarea an ace editor?
Related Posts Plugin for WordPress, Blogger...