Created
June 4, 2012 13:01
-
-
Save Dynyx/2868225 to your computer and use it in GitHub Desktop.
Insert HTML into a tinyMCE editor at the cursor location
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<a href="javascript:void(0);" onclick="tinyMCE.execCommand('mceInsertContent', false, '<a href=\'http://www.google.com\'>This is a test</a>');">Insert</a> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
thanks, it helped