check parent to detect TinyMCE

This pull request will close #457