• Hi, I’m trying to edit my quicktags.js but the file I have on my server, and the file that came with wordpress-2.8.4.zip, has all the code on one line.

    And I can’t tell where something ends and begins.

    Any help?

    Thanks.

Viewing 4 replies - 1 through 4 (of 4 total)
  • Regex search and replace for the win!.. 🙂

    http://wordpress.pastebin.com/f5316f334

    Hope that helps..

    Thread Starter vurtomatic

    (@vurtomatic)

    Hey t31os_, I am not familiar with pastebin. How does this work?

    Did you paste the code for 2.84’s quicktags.js onto the webpage and it formatted it for you?

    Or is this a different version of quicktags.js that is work in progress since the site is a debugging tool?

    Thanks, really appreciate it, so much easier to work out which bits I need to edit.

    Thread Starter vurtomatic

    (@vurtomatic)

    I am trying to add these buttons to the html editor:

    edButtons[edButtons.length]=new edButton("ed_span_image","image","<span class="image">","</span>","");
    edButtons[edButtons.length]=new edButton("ed_span_full-image","full-image","<span class="full-image">","</span>","");

    But everytime I save the quicktags.js file and reload my new post page, the row of quicktags disappear completely.

    All i did was take the quicktags.js (wp-includes/js/quicktags.js), reformat the code onto several lines using a regex search and replace then place the code into a pastebin.. (nothing has changed code wise in that file).

    Which as far as i can tell is what you asked for…

    Anything beyond that (editting) you’ll have to ask additional questions. I can’t help you with JS, i have very little experience with anything more then very basic JS.

    Using the code from the pastebin, be sure to use the code further down the page, to avoid copying the line numbers…

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Does anyone have a properly formatted quicktag.js?’ is closed to new replies.