I want to add a new Insert/edit image button to the TinyMCE toolbar that functions identically to the built-in one (opens the popup with all the options, etc.), but has a different HTML output once you click the Insert button. More specifically, I want the second button to output the code in a way that works with my lazy loading setup. Whereas the first button just outputs code for a normal image like usual. That way I can choose what I want on an image by image basis.
Normally, I try not to post help topics without trying something first, but I frankly can't figure out where to start. I've found how to add a custom button to TinyMCE editor (http://community.tinymce.com/tryit/3_x/custom_toolbar_button.php
), but that's about it.
I also found some code related to the Insert/edit image button under assets/components/tinymce/jscripts/tiny_mce/plugins/advimage, but nothing that seems to change the HTML output. My hope was to just copy/paste all the files under a new name and change the output, then add the button with the new name under System Settings. A method that would probably break upon updating TinyMCE, but it would get me by.
I appreciate any help or direction!