$("#menu").formatTxt($("#box-txt"), null, null, function(cx, slc, exc){
ShowMessage(cx, slc, exc);
});
function ShowMessage(cx, slc, exc){
cx.keyup();
exc == false ? alert("Not supported - The command was not executed by this browser. If possible, upgrade to a newer version.") : null;
}
$.fn.formatTxt.datafrmt_obj = {
ngrto: {tp:"bold", tg:["B", "STRONG"]},
itlco: {tp:"italic", tg:["I", "EM"]},
sblnhdo: {tp:"underline", tg:["U"]},
rscdo: {tp:"strikeThrough", tg:["STRIKE"]},
sbrlnhdo: {tg:[{nm:null, atr:"style", ext:"text-decoration"}], vlatr: function(mnit, slc){
return ["style", "text-decoration"];
}},
sbrscrto: {tp:"superscript", tg:["SUP"]},
sbscrto: {tp:"subscript", tg:["SUB"]},
tplist1: {tp:"insertUnorderedList", css: true},
tplist2: {tp:"insertOrderedList", css: true},
lmpfrmt: {tp:"removeFormat"}
}