MrMistreater

Insert HTML into tinyMCE editor at cursor location

May 29th, 2012
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
jQuery 0.15 KB | None | 0 0
  1. <a href="javascript:void(0);" onclick="tinyMCE.execCommand('mceInsertContent', false, '<a href=\'http://www.google.com\'>This is a test</a>');">Insert</a>
Advertisement
Add Comment
Please, Sign In to add comment