Skip to:
Content
Pages
Categories
Search
Top
Bottom

How to add a button with js_quicktags.js?


  • intellivision
    Participant

    @intellivision

    edButtons.push(
    new edButton(
    'ed_strike'
    ,'STRIKE'
    ,'<strike>'
    ,'</strike>'
    ,'s'
    )
    );

    I added that (and allowed strikethru functionality via another plugin) but the strike button does not show. Any ideas?

Viewing 1 replies (of 1 total)
  • I’m no JSkiddie but that looks like you only define the new edButton when someone pushes an old one. Is that right? Can you look for where the core buttons are defined and just add it to them? This quicktag principle isn’t new and I’m positive I saw a guide to adding buttons to quicktags (in wp, but the principle should be the same) – so there should be some documentation out there.

Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar