Inserting text into Firefox rich text editor
var box = document.getElementById(ctrl).contentWindow;
box.document.designMode = "on";
...
function makeQuote(cmd)
{
var edittext = box.document.selection.createRange();
var original = edittext.htmlText;
edittext.pasteHTML('['+cmd+']'+original+'[/'+cmd+']');
So in this case, selecting text in the editor then triggering the event would yield something like:
[quote]this is a quote[/quote]
How is this done in Firefox?