Get content from ace editor to a textarea
Contents
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
Author: Deepu Mohan Puthrote
Link: https://deepumohan.com/tech/get-content-from-ace-editor-to-textarea/
This work by Deepu Mohan Puthrote is licensed under a Creative Commons Attribution 4.0 International License