My javascript is too weak to really understand how to take the
toolbar that is already defined by the other functions and add more
buttons. So I'll just put this on the "todo someday" list for now
and hope someone else does it in the meantime. ; )
On Nov 18, 2007, at 3:32 PM, Platonides wrote:
Jim Hu wrote:
Just to clarify - as can be seen from another
thread, I know how to
make a button prepend * or #. I'd like for the button to put the li
tags on every line of a multiline selection. Looking at the code in
wikibits.js for how the custom buttons work, it looks like that isn't
possible via mwCustomEditButtons, since pulling the selection is
done in
function insertTags(tagOpen, tagClose, sampleText) {
You don't need to use insertTags(). Use our own function.
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l
=====================================
Jim Hu
Associate Professor
Dept. of Biochemistry and Biophysics
2128 TAMU
Texas A&M Univ.
College Station, TX 77843-2128
979-862-4054