Yes it should be. That's the standard code used to check if a given node is an IMG tag. See code examples here http://www.tinymce.com/wiki.php/API3:method.tinymce.Plugin.init or here http://www.tinymce.com/wiki.php/Creating_a_plugin