1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Wordpress Move Button In Posting Page And Add Return Function

Discussion in 'Blogging' started by tunescool, Sep 7, 2013.

  1. tunescool

    tunescool Power Member

    Joined:
    Jul 23, 2011
    Messages:
    557
    Likes Received:
    61
    Gender:
    Male
    Home Page:
    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
     
  2. tunescool

    tunescool Power Member

    Joined:
    Jul 23, 2011
    Messages:
    557
    Likes Received:
    61
    Gender:
    Male
    Home Page:
    someone
     
  3. tunescool

    tunescool Power Member

    Joined:
    Jul 23, 2011
    Messages:
    557
    Likes Received:
    61
    Gender:
    Male
    Home Page:
    i need this please
     
  4. dcuthbert

    dcuthbert Regular Member

    Joined:
    Jun 15, 2011
    Messages:
    411
    Likes Received:
    249
    Try posting this in the Hire a Freelancer or Programming sections, you would get more response.
     
  5. hackerzonline

    hackerzonline Newbie

    Joined:
    Sep 19, 2011
    Messages:
    21
    Likes Received:
    4
    Occupation:
    blissfully unemployed
    Location:
    India
    can you elaborate a little on the issue. i din understand what you are trying to implement.
     
  6. nanavlad

    nanavlad Jr. VIP Jr. VIP Premium Member

    Joined:
    Dec 2, 2009
    Messages:
    2,419
    Likes Received:
    892
    Gender:
    Male
    Occupation:
    SEO Consultant
    Location:
    Proxy Central