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.