Wordpress Move Button In Posting Page And Add Return Function

tunescool

BANNED
Joined
Jul 23, 2011
Messages
1,262
Reaction score
3,338
i use this to add a button in my posting page

Code:
// 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

Code:
<a href="http://url.com" target="_blank">See The Full Gallery Here</a>


See The Full Gallery Here


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
 
Try posting this in the Hire a Freelancer or Programming sections, you would get more response.
 
can you elaborate a little on the issue. i din understand what you are trying to implement.
 
Back
Top