WordPress.org

Ready to get started?Download WordPress

Forums

custom quicktags? (8 posts)

  1. outbreak
    Member
    Posted 9 years ago #

    i'm trying to use my blog not only for written text, but for streaming mp3s as well. i have a nice little flash file here that is great for what i want, but i was wondering if there would be anyway to make a quicktag button over the posting box so that i can just click the button, insert the URL like with the link button, and that have it generate itself without me having to embed all the code.

  2. iddapidda
    Member
    Posted 9 years ago #

    Yes, you can edit the file quicktags.js which is in the wp-admin folder. Instructions can be found here: http://www.tamba2.org.uk/wordpress/quicktags/

  3. outbreak
    Member
    Posted 9 years ago #

    thank you.

  4. photojunkie
    Member
    Posted 9 years ago #

    That was amazingly helpful.. I use a lot of custom divs to layout text and imagery within my blog and I was getting really sick of doing it all by hand.

  5. quality26
    Member
    Posted 9 years ago #

    I am trying to make a quicktag that will perform multiple funtions in one button. My goal is to make it generate the HTML code:
    <font size=1>via

    Here is my attempt, but nothing appears when I refresh quicktags.js

    edButtons[edbuttons.length] =
    new edbutton('ed_credit'
    ,'credit'
    ,'<font size=1>via '
    ,'</font>'
    ,'c'
    );

  6. quality26
    Member
    Posted 9 years ago #

    oops..the post sucked up my link tag... it should have been this:

    '<font size=1>via '''

    edButtons[edbuttons.length] =
    new edbutton('ed_credit'
    ,'credit'
    ,'<font size=1>via '''
    ,'</font>'
    ,'c'
    );

  7. quality26
    Member
    Posted 9 years ago #

    hmm stil not working...last try

    <font size=1>via a href="" /a - that is the goal output with the <> tags

  8. mdlewis11
    Member
    Posted 9 years ago #

    I could never make this work using notepad or Word. They would step all over the java code, and when it was uploaded, it wouldn't work. However, I found a free java script editor HERE that allowed me to add my own quicktags. I just thought this might help others.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.