i have a text editor wich reads text frm database and i want to have a button that when i press it inserts some html code in the text editor...
eg button inserts this when pressed: and asks for title
<!-- HORIZONTAL DIVIDER WITH ICON AND TEXT --><div class="table bottomhr smartdivider"><div class="table-cell"><i class="icon-user-add small coloredbottomhr"></i></div><div class="table-cell fullwidth"></div><div class="table-cell"><p class="verysmall coloredbottomhr nobreak"><strong>test</strong></p></div></div> <!-- END OF HORIZONTAL DIVIDER WITH ICON AND TEXT -->
is this possible?