get value tinymce.Editor


Per their API

var editor = ace.edit("code");
var myCode = editor.getSession().getValue();

editor.getSession().setValue("write your code here");

tinymce.activeEditor.setContent('<span>some</span> html');
tinymce.activeEditor.getContent({format: 'text'});