Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p><strong>WORDPRESS 3.5 UPDATE BELOW</strong></p> <p>If you're using Wordpress version&lt;3.0, you can use the post you referenced to, it's great.</p> <p>If your wordpress version is above 3.0 (aka newer versions) you can't use the <code>wp_tiny_mce</code> function for the tiny_mce, because it's deprecated. You need the newer function, <code>wp_editor</code>, which you can read all about it in here:</p> <blockquote> <p><a href="http://codex.wordpress.org/Function_Reference/wp_editor" rel="nofollow">http://codex.wordpress.org/Function_Reference/wp_editor</a></p> </blockquote> <p>For you to use of the <code>wp_editor</code> function and other WP elements your iframe (the for now containing only html and not linked into wp), you need to make your the <strong>iframe html file</strong> a <strong>php file</strong>, and add a require function of <strong>wp-load.php</strong> file.</p> <p>For example, if your iframe file is in your server's root folder with your wordpress install, all you need to do is to place the following in the top of your file:</p> <pre><code>&lt;?php require('./wp-load.php'); ?&gt; //iframe html/php code here </code></pre> <p>After you do that you can use any wordpress function in your iframe, including the tiny_mce.</p> <p><strong>---- UPDATE ----</strong></p> <p>If you are using wordpress 3.5 or higher, the implement method has slightly changed. more information is right in this short <a href="http://codestag.com/how-to-use-wordpress-3-5-media-uploader-in-theme-options/" rel="nofollow">tutorial</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload