get value of rich text file

JavaScript
texteditor.value = (data.content);
Source

Also in JavaScript: