WordPress.org

Support

Support » How-To and Troubleshooting » custom quicktags?

custom quicktags?

  • 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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • 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/

    thank you.

    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.

    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’
    );

    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’
    );

    hmm stil not working…last try

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

    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.

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘custom quicktags?’ is closed to new replies.
Skip to toolbar