Iam trying to add a tiny mce button to display a template like this
<div class ="template1"> <img src="" /> <span> <b>name:[cf]name[/cf] </b> <span> </div>
name of the button temp1,
if i click it, should add the above code in the text editor, [cf]name[/cf] is the short code to display name from the value.
how to accomplish it?