It appears that in your code a variable becomes null after referencing it once. I'm not sure why, but you were populating a <textarea> above the text editor with the same value. Once I removed the textarea tag above, the rich text editor began to work properly on the page.