<?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/"
	
	xmlns:media="http://search.yahoo.com/mrss/"
		>
<channel>
	<title>Comments on: fixing wordpress &#8212; editor removing div tags</title>
	<atom:link href="http://blog.mcstudios.net/2007/03/19/fixing-wordpress-editor-removing-div-tags/feed" rel="self" type="application/rss+xml" />
	<link>http://blog.mcstudios.net/2007/03/19/fixing-wordpress-editor-removing-div-tags</link>
	<description></description>
	<lastBuildDate>Wed, 03 Mar 2010 07:59:10 -0800</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: marvinbrock</title>
		<link>http://blog.mcstudios.net/2007/03/19/fixing-wordpress-editor-removing-div-tags/comment-page-1#comment-2261</link>
		<dc:creator>marvinbrock</dc:creator>
		<pubDate>Tue, 16 Feb 2010 17:00:08 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mcstudios.net/2007/03/19/fixing-wordpress-editor-removing-div-tags/#comment-2261</guid>
		<description>Thanks for this.  Sure it isn&#039;t the result wanted, but these WYSIWYG&#039;s need to grow up and realise that they are over working a problem that doesn&#039;t exist.  Pain in the &#039;you know what&#039;!</description>
		<content:encoded><![CDATA[<p>Thanks for this.  Sure it isn&#39;t the result wanted, but these WYSIWYG&#39;s need to grow up and realise that they are over working a problem that doesn&#39;t exist.  Pain in the &#39;you know what&#39;!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: griphiam</title>
		<link>http://blog.mcstudios.net/2007/03/19/fixing-wordpress-editor-removing-div-tags/comment-page-1#comment-2202</link>
		<dc:creator>griphiam</dc:creator>
		<pubDate>Wed, 13 May 2009 01:10:54 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mcstudios.net/2007/03/19/fixing-wordpress-editor-removing-div-tags/#comment-2202</guid>
		<description>I&#039;ve turned off the WYSIWYG editor and have been writing raw HTML.  This isn&#039;t the &quot;greatest&quot; solution, but I haven&#039;t had a chance to try to re-enable it and figure out what a more correct solution is.  I just don&#039;t think that TinyMCE has evolved to a point where you can intermix native HTML and the interpreted editor.</description>
		<content:encoded><![CDATA[<p>I&#39;ve turned off the WYSIWYG editor and have been writing raw HTML.  This isn&#39;t the &#8220;greatest&#8221; solution, but I haven&#39;t had a chance to try to re-enable it and figure out what a more correct solution is.  I just don&#39;t think that TinyMCE has evolved to a point where you can intermix native HTML and the interpreted editor.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: matthew moore</title>
		<link>http://blog.mcstudios.net/2007/03/19/fixing-wordpress-editor-removing-div-tags/comment-page-1#comment-2201</link>
		<dc:creator>matthew moore</dc:creator>
		<pubDate>Tue, 12 May 2009 05:30:20 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mcstudios.net/2007/03/19/fixing-wordpress-editor-removing-div-tags/#comment-2201</guid>
		<description>So curious what do you use to create you page and add divs and styling ? I am trying to find something that will make wordpress more friendly. I am awnting to put some widgets on pages like the homepage and then put in my own content on certain pages but so far it is not letting me do that .. Can you please suggest something .</description>
		<content:encoded><![CDATA[<p>So curious what do you use to create you page and add divs and styling ? I am trying to find something that will make wordpress more friendly. I am awnting to put some widgets on pages like the homepage and then put in my own content on certain pages but so far it is not letting me do that .. Can you please suggest something .</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: coolnalu</title>
		<link>http://blog.mcstudios.net/2007/03/19/fixing-wordpress-editor-removing-div-tags/comment-page-1#comment-2112</link>
		<dc:creator>coolnalu</dc:creator>
		<pubDate>Sun, 28 Sep 2008 21:15:07 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mcstudios.net/2007/03/19/fixing-wordpress-editor-removing-div-tags/#comment-2112</guid>
		<description>uh...html tags were removed...</description>
		<content:encoded><![CDATA[<p>uh&#8230;html tags were removed&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: coolnalu</title>
		<link>http://blog.mcstudios.net/2007/03/19/fixing-wordpress-editor-removing-div-tags/comment-page-1#comment-2111</link>
		<dc:creator>coolnalu</dc:creator>
		<pubDate>Sun, 28 Sep 2008 21:13:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mcstudios.net/2007/03/19/fixing-wordpress-editor-removing-div-tags/#comment-2111</guid>
		<description>I am using 2.6.2. And what I am trying to do is stop it from removing my precious p tags. under wp-admin/js/editor.js,

I commented off two lines and replaced it with a new one
        
//content = content.replace(new RegExp(&#039;\\s*&#039;, &#039;mgi&#039;), &#039;&#039;);
        
//content = content.replace(new RegExp(&#039;\\s*\\s*&#039;, &#039;mgi&#039;), &#039;\n\n&#039;);
		
content = content.replace(new RegExp(&#039;\\s*\\s*\\s*&#039;, &#039;mgi&#039;), &#039;\n&#039;);

it now only removes  tags with empty content. i hope. seems working for me. hope it helps someone.</description>
		<content:encoded><![CDATA[<p>I am using 2.6.2. And what I am trying to do is stop it from removing my precious p tags. under wp-admin/js/editor.js,</p>
<p>I commented off two lines and replaced it with a new one</p>
<p>//content = content.replace(new RegExp(&#8216;\\s*&#8217;, &#8216;mgi&#8217;), &#8221;);</p>
<p>//content = content.replace(new RegExp(&#8216;\\s*\\s*&#8217;, &#8216;mgi&#8217;), &#8216;\n\n&#8217;);</p>
<p>content = content.replace(new RegExp(&#8216;\\s*\\s*\\s*&#8217;, &#8216;mgi&#8217;), &#8216;\n&#8217;);</p>
<p>it now only removes  tags with empty content. i hope. seems working for me. hope it helps someone.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan Moore! &#187; Solution for Wordpress turning div tags to p tags</title>
		<link>http://blog.mcstudios.net/2007/03/19/fixing-wordpress-editor-removing-div-tags/comment-page-1#comment-2109</link>
		<dc:creator>Dan Moore! &#187; Solution for Wordpress turning div tags to p tags</dc:creator>
		<pubDate>Fri, 26 Sep 2008 03:38:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mcstudios.net/2007/03/19/fixing-wordpress-editor-removing-div-tags/#comment-2109</guid>
		<description>[...] your lucky day, if you&#8217;re using WP 2.3.  Edit the tiny_mce_config.php as outlined at this article and [...]</description>
		<content:encoded><![CDATA[<p>[...] your lucky day, if you&#8217;re using WP 2.3.  Edit the tiny_mce_config.php as outlined at this article and [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dan</title>
		<link>http://blog.mcstudios.net/2007/03/19/fixing-wordpress-editor-removing-div-tags/comment-page-1#comment-2108</link>
		<dc:creator>Dan</dc:creator>
		<pubDate>Fri, 26 Sep 2008 03:33:03 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mcstudios.net/2007/03/19/fixing-wordpress-editor-removing-div-tags/#comment-2108</guid>
		<description>Mario&#039;s solution (#6) worked for me.  I&#039;m on WP 2.3.3.

Thanks!</description>
		<content:encoded><![CDATA[<p>Mario&#8217;s solution (#6) worked for me.  I&#8217;m on WP 2.3.3.</p>
<p>Thanks!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dave</title>
		<link>http://blog.mcstudios.net/2007/03/19/fixing-wordpress-editor-removing-div-tags/comment-page-1#comment-2049</link>
		<dc:creator>Dave</dc:creator>
		<pubDate>Tue, 26 Aug 2008 20:22:41 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mcstudios.net/2007/03/19/fixing-wordpress-editor-removing-div-tags/#comment-2049</guid>
		<description>Does anyone have a solution for WP 2.5 and up? This worked great for version before that but I can&#039;t seem to find that code anywhere in the tiny_mce_config.php file. Did div code move?</description>
		<content:encoded><![CDATA[<p>Does anyone have a solution for WP 2.5 and up? This worked great for version before that but I can&#8217;t seem to find that code anywhere in the tiny_mce_config.php file. Did div code move?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Chris</title>
		<link>http://blog.mcstudios.net/2007/03/19/fixing-wordpress-editor-removing-div-tags/comment-page-1#comment-1900</link>
		<dc:creator>Chris</dc:creator>
		<pubDate>Wed, 19 Mar 2008 16:46:36 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mcstudios.net/2007/03/19/fixing-wordpress-editor-removing-div-tags/#comment-1900</guid>
		<description>Just delete the p/-div[*] from the list then the  will not be replaced by the  tag. Worked here!</description>
		<content:encoded><![CDATA[<p>Just delete the p/-div[*] from the list then the  will not be replaced by the  tag. Worked here!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: j.daniel rivera</title>
		<link>http://blog.mcstudios.net/2007/03/19/fixing-wordpress-editor-removing-div-tags/comment-page-1#comment-1894</link>
		<dc:creator>j.daniel rivera</dc:creator>
		<pubDate>Wed, 19 Mar 2008 03:52:47 +0000</pubDate>
		<guid isPermaLink="false">http://blog.mcstudios.net/2007/03/19/fixing-wordpress-editor-removing-div-tags/#comment-1894</guid>
		<description>ok ppl, i found the solution.  Where it mentions &quot;p/-div[*]&quot;, replace it with this &quot;div/-div&quot;.  It work out for me.</description>
		<content:encoded><![CDATA[<p>ok ppl, i found the solution.  Where it mentions &#8220;p/-div[*]&#8220;, replace it with this &#8220;div/-div&#8221;.  It work out for me.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
