Info
- 2 posts
- 2 voices
- Started 4 years ago by intellivision
- Latest reply from fel64
- This topic is not resolved
How to add a button with js_quicktags.js?
-
- Posted 4 years ago #
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?
-
- Posted 4 years ago #
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.
-
You must log in to post.