TinyMCE exec Command inside php loop
<p>Trying to get an href with TinyMCE command function working but no luck. I used double and single quotes as well. Here is the original code</p>

<pre><code>echo "&lt;a href="javascript:;" onclick="tinyMCE.activeEditor.setContent('');tinymce.execCommand('mceInsertContent',false, document.getElementById('div_".$i."').innerHTML); 
            return false;"&gt;[Manage Marketing]&lt;/a&gt;";
</code></pre>