Skip to content

Instantly share code, notes, and snippets.

@Dynyx
Created June 4, 2012 13:01
Show Gist options
  • Save Dynyx/2868225 to your computer and use it in GitHub Desktop.
Save Dynyx/2868225 to your computer and use it in GitHub Desktop.
Insert HTML into a tinyMCE editor at the cursor location
<a href="javascript:void(0);" onclick="tinyMCE.execCommand('mceInsertContent', false, '<a href=\'http://www.google.com\'>This is a test</a>');">Insert</a>
@Umid221
Copy link

Umid221 commented Jul 9, 2023

thanks, it helped

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment