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/