how can i add a new box in reply box or new topic box.
same like the insert image etc
same like the insert image etc
$(function() {
 if (!document.getElementById('text_editor_textarea')) return;
 Â
 Â
 userTag(390,'ang', 'http://i39.servimg.com/u/f39/18/21/41/30/bouton10.png', '<span style="color:#F66;font-style:italic;">', '</span>');
 Â
 Â
 function userTag(id, tagname, image, htmlStart, htmlEnd) {
  var breg = new RegExp('\\['+tagname+'\\](.+?)\\[\\/'+tagname+'\\]','gi');
  if (_userdata.user_id === id) {
   $("#text_editor_textarea").before("<img src='"+image+"'id='"+tagname+"-b'/>");
   $('#'+tagname+'-b').click(function(){$('#text_editor_textarea').sceditor('instance').insertText('['+tagname+']','[/'+tagname+']')});
  }
  $('div.postbody div').each(function () {if ($(this).text().indexOf('['+tagname+']') != -1) $(this).html($(this).html().replace(breg, htmlStart + '$1' + htmlEnd))});Â
 }
});
<script type="text/javascript">