i use this to add a button in my posting page
// add more buttons to the html editor
function wptit_add_quicktags() {
?>
<script type="text/javascript">
QTags.addButton( 'wptit_pre', 'Gallery', '<a href="http://url.com" target="_blank">See The Full Gallery Here</a>', '', 'g', 'See The Full Gallery tag', 1 );
</script>
<?php
}
add_action( 'admin_print_footer_scripts', 'wptit_add_quicktags' );
someone helped me on another forum but didnt do everything i wanted
i want the button the last button, all the way on the rite, its the first button now
i want the button when hit to add the return key, as if the return has been hit and then this html
if i have the cursor after the g's, highlite the rest, and hit the button
gggggggggggggggghhhhhhhhhhhhhhhhh
this is what the button does
gggggggggggggggg
See The Full Gallery Here
return and it goes to a new line and the html is added