Skip to content

Instantly share code, notes, and snippets.

@Dynyx
Created June 4, 2012 13:01
Show Gist options
  • Select an option

  • Save Dynyx/2868225 to your computer and use it in GitHub Desktop.

Select an option

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
Copy Markdown

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