Only include resources if button will show
Show in WYSIWYG mode and Source mode.
Use "jQuery.fn.mtDialog" instead of "ed.windowManager".