(function() { // TinyMCE plugin start. tinymce.PluginManager.add( 'ANIMATETinyMCE', function( editor, url ) { // Register a command to open the dialog. editor.addCommand( 'animate_open_dialog', function( ui, v ) { animateSelectedShortcodeType = v; selectedText = editor.selection.getContent({format: 'text'}); animate_tb_dialog_helper.loadShortcodeDetails(); animate_tb_dialog_helper.setupShortcodeType( v ); jQuery( '#animatedialog-shortcode-options' ).addClass( 'shortcode-' + v ); jQuery( '#animatedialog-selected-shortcode' ).val( v ); var f=jQuery(window).width(); b=jQuery(window).height(); f=720