Wordpress Move Button In Posting Page And Add Return Function

Discussion in 'HTML & Website Design' started by tunescool, Sep 14, 2013.

  1. #1
    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' );
    Code (markup):
    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

    by default 2013-09-14 at 8.36.23 AM.jpg

    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 text and hit the button this is what the button does

    [​IMG]

    return and it goes to a new line and the html is added
     
    tunescool, Sep 14, 2013 IP
  2. competent123

    competent123 Notable Member

    Messages:
    1,752
    Likes Received:
    71
    Best Answers:
    6
    Trophy Points:
    255
    #2
    use advanced visual editor ( there are many plugins)
     
    competent123, Sep 14, 2013 IP