When I load the tinymce editor on the page getDoc method return null and the editor doesn't work. I've commetted a little patch to solve this problem. Hope this help.

Prevent document is undefined when load tinymce.