Created
December 24, 2012 06:22
-
-
Save thomasgriffin/4368038 to your computer and use it in GitHub Desktop.
This is the way you should send content to the TinyMCE Editor in WP 3.5.
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
// This replaces the old window.send_to_editor function. | |
wp.media.editor.insert('your_content_goes_here'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
As a note, this requires that the
media-editor.js
file be loaded on the page so that thewp.media.editor
object is populated.