Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- jQuery(".insert_to_post").live('click', function() {
- var shortcode = '';
- shortcode = '[gist id="' + jQuery(this).attr("gist_id") + '"]';
- tinyMCE.activeEditor.execCommand('mceInsertContent', 0, shortcode);
- jQuery("#dialog").dialog( "close" );
- return false;
- });
Add Comment
Please, Sign In to add comment