Quote: |
# Make insertion of FUDcode at cursor or around selected text work in Mozilla.
|
Not sure what you mean, but if I highlight a block of text and click a fudcode button the text is replaced with a set of fudcode tags, not wrapped in the tags.
This occurs with Mozilla Firebird 0.7 after upgrading to rc7.
I noticed that my old boards used the following for Mozilla:
// From http://www.massless.org/mozedit/
function mozWrap(txtarea, open, close)
{
var selLength = txtarea.textLength;
var selStart = txtarea.selectionStart;
var selEnd = txtarea.selectionEnd;
if (selEnd == 1 || selEnd == 2)
selEnd = selLength;
var s1 = (txtarea.value).substring(0,selStart);
var s2 = (txtarea.value).substring(selStart, selEnd)
var s3 = (txtarea.value).substring(selEnd, selLength);
txtarea.value = s1 + open + s2 + close + s3;
return;
}
Perhaps it would be of use for tagging mozilla (or at least Firebird).