<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Integrate tinyMCE into your wordpress plugins</title>
	<atom:link href="http://blog.zen-dreams.com/en/2009/06/30/integrate-tinymce-into-your-wordpress-plugins/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.zen-dreams.com/en/2009/06/30/integrate-tinymce-into-your-wordpress-plugins/</link>
	<description>Zen-Dreams.com</description>
	<lastBuildDate>Thu, 04 Mar 2010 19:44:45 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Amit</title>
		<link>http://blog.zen-dreams.com/en/2009/06/30/integrate-tinymce-into-your-wordpress-plugins/#comment-7419</link>
		<dc:creator>Amit</dc:creator>
		<pubDate>Sat, 09 Jan 2010 21:33:40 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zen-dreams.com/en/?p=609#comment-7419</guid>
		<description>Hi Anthony,

I followed your post and tinyMCE shows up well in my plugin for wordpress 2.8. I was earlier using the following statement to save content of my textarea to my DB but now I have no clue how to save tinyMCE’s content to DB…

$settings[&quot;template&quot;] = stripslashes($_POST[&quot;textareaContent&quot;]);
ajaxNewsletter::saveSettings($settings);

I’ll really appreciate if you may kindly guide me on this…

Thanks a lot,
ak</description>
		<content:encoded><![CDATA[<p>Hi Anthony,</p>
<p>I followed your post and tinyMCE shows up well in my plugin for wordpress 2.8. I was earlier using the following statement to save content of my textarea to my DB but now I have no clue how to save tinyMCE’s content to DB…</p>
<p>$settings["template"] = stripslashes($_POST["textareaContent"]);<br />
ajaxNewsletter::saveSettings($settings);</p>
<p>I’ll really appreciate if you may kindly guide me on this…</p>
<p>Thanks a lot,<br />
ak</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anthony</title>
		<link>http://blog.zen-dreams.com/en/2009/06/30/integrate-tinymce-into-your-wordpress-plugins/#comment-7036</link>
		<dc:creator>Anthony</dc:creator>
		<pubDate>Mon, 07 Dec 2009 16:59:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zen-dreams.com/en/?p=609#comment-7036</guid>
		<description>Derek,

You can have a look at my ZdMultilang plugin, this is where I extracted the code.</description>
		<content:encoded><![CDATA[<p>Derek,</p>
<p>You can have a look at my ZdMultilang plugin, this is where I extracted the code.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Derek</title>
		<link>http://blog.zen-dreams.com/en/2009/06/30/integrate-tinymce-into-your-wordpress-plugins/#comment-6997</link>
		<dc:creator>Derek</dc:creator>
		<pubDate>Sat, 05 Dec 2009 17:29:14 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zen-dreams.com/en/?p=609#comment-6997</guid>
		<description>Is there a simple plugin that uses this code that anyone can point to so I can see it in action?</description>
		<content:encoded><![CDATA[<p>Is there a simple plugin that uses this code that anyone can point to so I can see it in action?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Anthony</title>
		<link>http://blog.zen-dreams.com/en/2009/06/30/integrate-tinymce-into-your-wordpress-plugins/#comment-6921</link>
		<dc:creator>Anthony</dc:creator>
		<pubDate>Wed, 02 Dec 2009 20:08:30 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zen-dreams.com/en/?p=609#comment-6921</guid>
		<description>You&#039;ll have to do the following :
$content = apply_filters(&#039;the_content&#039;, $content);
$content = str_replace(&#039;]]&gt;&#039;, &#039;]]&gt;&#039;, $content);
then you can echo your $content</description>
		<content:encoded><![CDATA[<p>You&#8217;ll have to do the following :<br />
$content = apply_filters(&#8216;the_content&#8217;, $content);<br />
$content = str_replace(&#8216;]]&gt;&#8217;, &#8216;]]&gt;&#8217;, $content);<br />
then you can echo your $content</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: James</title>
		<link>http://blog.zen-dreams.com/en/2009/06/30/integrate-tinymce-into-your-wordpress-plugins/#comment-6850</link>
		<dc:creator>James</dc:creator>
		<pubDate>Sun, 29 Nov 2009 08:57:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zen-dreams.com/en/?p=609#comment-6850</guid>
		<description>Thanks! the info was really helpful. So my question is what pre-processing needs to be done to insert the data retrieved from the the_editor panel when saving the data (to a database), or displaying it. 

In regards to saving the data, I found that I needed to preprocess the data using stripslashes(). To display the data, so far, I have seen that I need to preprocess the data and translate out the shortcodes (saw it, haven&#039;t figured out what the &quot;correct&quot; way to translate it is yet)

Thanks,
James</description>
		<content:encoded><![CDATA[<p>Thanks! the info was really helpful. So my question is what pre-processing needs to be done to insert the data retrieved from the the_editor panel when saving the data (to a database), or displaying it. </p>
<p>In regards to saving the data, I found that I needed to preprocess the data using stripslashes(). To display the data, so far, I have seen that I need to preprocess the data and translate out the shortcodes (saw it, haven&#8217;t figured out what the &#8220;correct&#8221; way to translate it is yet)</p>
<p>Thanks,<br />
James</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Boby Ertanto</title>
		<link>http://blog.zen-dreams.com/en/2009/06/30/integrate-tinymce-into-your-wordpress-plugins/#comment-6815</link>
		<dc:creator>Boby Ertanto</dc:creator>
		<pubDate>Wed, 25 Nov 2009 01:45:01 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zen-dreams.com/en/?p=609#comment-6815</guid>
		<description>Your code works, however in the firebug it&#039;s showing error like jQuery is not defined, so I put the printing of the editor after calling enqueue_scripts(&quot;utils&quot;), and it works perfectly now...


Below is my code :

function ShowTinyMCE() {
	// conditions here
	wp_enqueue_script( &#039;common&#039; );
	wp_enqueue_script( &#039;jquery-color&#039; );
	if (function_exists(&#039;add_thickbox&#039;)) add_thickbox();
	wp_print_scripts(&#039;media-upload&#039;);
	if (function_exists(&#039;wp_tiny_mce&#039;)) wp_tiny_mce();
	wp_admin_css();
	wp_enqueue_script(&#039;utils&#039;);
	wp_print_scripts(&#039;editor&#039;);
	do_action(&quot;admin_print_styles-post-php&quot;);
	do_action(&#039;admin_print_styles&#039;);
}</description>
		<content:encoded><![CDATA[<p>Your code works, however in the firebug it&#8217;s showing error like jQuery is not defined, so I put the printing of the editor after calling enqueue_scripts(&#8220;utils&#8221;), and it works perfectly now&#8230;</p>
<p>Below is my code :</p>
<p>function ShowTinyMCE() {<br />
	// conditions here<br />
	wp_enqueue_script( &#8216;common&#8217; );<br />
	wp_enqueue_script( &#8216;jquery-color&#8217; );<br />
	if (function_exists(&#8216;add_thickbox&#8217;)) add_thickbox();<br />
	wp_print_scripts(&#8216;media-upload&#8217;);<br />
	if (function_exists(&#8216;wp_tiny_mce&#8217;)) wp_tiny_mce();<br />
	wp_admin_css();<br />
	wp_enqueue_script(&#8216;utils&#8217;);<br />
	wp_print_scripts(&#8216;editor&#8217;);<br />
	do_action(&#8220;admin_print_styles-post-php&#8221;);<br />
	do_action(&#8216;admin_print_styles&#8217;);<br />
}</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Romeo</title>
		<link>http://blog.zen-dreams.com/en/2009/06/30/integrate-tinymce-into-your-wordpress-plugins/#comment-6716</link>
		<dc:creator>Romeo</dc:creator>
		<pubDate>Mon, 16 Nov 2009 17:04:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zen-dreams.com/en/?p=609#comment-6716</guid>
		<description>HI,

thanks for the code but i&#039;m not getting ride of it.

What&#039;s the admin_head hook? Can u please tell me what file shoulw i modify and to wich file add the last line to be shown?

Sorry but im a newbie in coding.. so pls help
.-= Romeo´s last blog ..&lt;a href=&quot;http://feedproxy.google.com/~r/RomeoLab/~3/VAfuY6ViqPc/perdor-avatarin-tend&quot; rel=&quot;nofollow&quot;&gt;Perdor Avatarin Tend [WP Hack]&lt;/a&gt; =-.</description>
		<content:encoded><![CDATA[<p>HI,</p>
<p>thanks for the code but i&#8217;m not getting ride of it.</p>
<p>What&#8217;s the admin_head hook? Can u please tell me what file shoulw i modify and to wich file add the last line to be shown?</p>
<p>Sorry but im a newbie in coding.. so pls help<br />
<span class="cluv"> Romeo´s last blog ..<a href="http://feedproxy.google.com/~r/RomeoLab/~3/VAfuY6ViqPc/perdor-avatarin-tend" rel="nofollow">Perdor Avatarin Tend [WP Hack]</a> <span class="heart_tip_box"><img class="heart_tip" alt="My ComLuv Profile" border="0" width="16" height="14" src="http://blog.zen-dreams.com/wp-content/plugins/commentluv/images/littleheart.gif"/></span></span></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mat_</title>
		<link>http://blog.zen-dreams.com/en/2009/06/30/integrate-tinymce-into-your-wordpress-plugins/#comment-6676</link>
		<dc:creator>Mat_</dc:creator>
		<pubDate>Thu, 12 Nov 2009 18:16:06 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zen-dreams.com/en/?p=609#comment-6676</guid>
		<description>Hi !!!
My tiny_mce is working but i can&#039;t get the media uploader to work correctly. any idea ?

thanks !
.-= Mat_´s last blog ..&lt;a href=&quot;http://www.kune-studio.com/2009/08/arnaques-aux-sites-gratuits-faites-attention/&quot; rel=&quot;nofollow&quot;&gt;Arnaques aux sites gratuits, faites attention…&lt;/a&gt; =-.</description>
		<content:encoded><![CDATA[<p>Hi !!!<br />
My tiny_mce is working but i can&#8217;t get the media uploader to work correctly. any idea ?</p>
<p>thanks !<br />
<span class="cluv"> Mat_´s last blog ..<a href="http://www.kune-studio.com/2009/08/arnaques-aux-sites-gratuits-faites-attention/" rel="nofollow">Arnaques aux sites gratuits, faites attention…</a> <span class="heart_tip_box"><img class="heart_tip" alt="My ComLuv Profile" border="0" width="16" height="14" src="http://blog.zen-dreams.com/wp-content/plugins/commentluv/images/littleheart.gif"/></span></span></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Antone Roundy</title>
		<link>http://blog.zen-dreams.com/en/2009/06/30/integrate-tinymce-into-your-wordpress-plugins/#comment-6598</link>
		<dc:creator>Antone Roundy</dc:creator>
		<pubDate>Tue, 27 Oct 2009 02:24:31 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zen-dreams.com/en/?p=609#comment-6598</guid>
		<description>Thanks for posting this code.

One question -- when creating a plugin that you want to have able to run on various WordPress versions, can you use the code shown on this page, or does the plugin need to detect the WordPress version and call the code from your former post if it&#039;s on an old version?  If so, do you know how to check the WordPress version (I did some searching and couldn&#039;t find anything).

One other question: in your previous post, most of the code for the two versions was the same except that the order of the function calls was different -- is there any significance to that?

Thanks again.</description>
		<content:encoded><![CDATA[<p>Thanks for posting this code.</p>
<p>One question &#8212; when creating a plugin that you want to have able to run on various WordPress versions, can you use the code shown on this page, or does the plugin need to detect the WordPress version and call the code from your former post if it&#8217;s on an old version?  If so, do you know how to check the WordPress version (I did some searching and couldn&#8217;t find anything).</p>
<p>One other question: in your previous post, most of the code for the two versions was the same except that the order of the function calls was different &#8212; is there any significance to that?</p>
<p>Thanks again.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: jason</title>
		<link>http://blog.zen-dreams.com/en/2009/06/30/integrate-tinymce-into-your-wordpress-plugins/#comment-6245</link>
		<dc:creator>jason</dc:creator>
		<pubDate>Thu, 06 Aug 2009 16:17:11 +0000</pubDate>
		<guid isPermaLink="false">http://blog.zen-dreams.com/en/?p=609#comment-6245</guid>
		<description>i have a plugin that uses the code you have from above. and i can see the javascript and the stylesheets, however, the form does not display. do i need to put a textbox or an include box on the page with a certain id or name to get it to work? thanks for the help btw.</description>
		<content:encoded><![CDATA[<p>i have a plugin that uses the code you have from above. and i can see the javascript and the stylesheets, however, the form does not display. do i need to put a textbox or an include box on the page with a certain id or name to get it to work? thanks for the help btw.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
