Check method isn't undefined (TinyMCE insert media)