jQuery("div#myc_frame a.c_quote").live("click",function () { var nick = jQuery(this).attr("nick"); var tx = ((window.getSelection&&window.getSelection())||(document.getSelection&&document.getSelection())||(document.selection&&document.selection.createRange&&document.selection.createRange().text)); if(tx!="") {insertText("comment_message","[quote_][b]"+nick+"'.$locale['myc_elwrote'].'[/b]\n"+tx+"[/quote]","inputform");} else {insertText("comment_message","[b]"+nick+"[/b], ","inputform");} jQuery("#comment_message").focus(); return false; }); //[quote] заменил на [quote_], ибо срабатывает бб-код внутри qeshi...