// INSERT HTML TAGS (BUTTONS)
// ----------------------------------------------------
function insertTag(Code, CodeOn, CodeOff) {
trace(Code)
if (/:SelectionEnd > /:SelectionStart) {
/:PlainText = /:PlainText.slice (0,/:SelectionStart) + CodeOn + /:PlainText.slice (/:SelectionStart,/:SelectionEnd) + CodeOff + /:PlainText.slice (/:SelectionEnd);
/:LastCursorPos = /:SelectionEnd + length (CodeOn) + length (CodeOff);
/:SelectionEnd = -1;
// no selection - code on / off
} else if (eval (Code)) {
Code = 0;
/:PlainText = /:PlainText.slice (0,/:LastCursorPos) + CodeOff + /:PlainText.slice (/:LastCursorPos);
/:LastCursorPos += length (CodeOff);
} else {
Code = 1;
/:PlainText = /:PlainText.slice (0,/:LastCursorPos) + CodeOn + /:PlainText.slice (/:LastCursorPos);
/:LastCursorPos += length(CodeOn);
}
}

//*************************************************

così lo pubblicato per il player 7 e funziona.
L'unico problema è che non chiude i tag che apri.