Is there a way to add custom buttons to the WMD Editor that extends the editor’s functionality?
My ideas for various buttons I want to add are to:
- Markup the selected text
- Insert some predefined text
Thanks
Turgs
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, you can.
1) you need extend the Images “wmd-buttons.jpg”
edit the image and add a button for extended functionality.
2) Add Script for the button to bind with an event(like inserting some text)
3) Now Define inserttext function and place your insertion code.