<?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: How To Allow Stripped Element Attributes in WordPress&#8217; TinyMCE Editor</title>
	<atom:link href="http://www.engfers.com/2008/10/16/how-to-allow-stripped-element-attributes-in-wordpress-tinymce-editor/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.engfers.com/2008/10/16/how-to-allow-stripped-element-attributes-in-wordpress-tinymce-editor/</link>
	<description>» scrumptious blog &#38; code » nothing more, nothing less</description>
	<lastBuildDate>Thu, 26 Jan 2012 18:45:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
	<item>
		<title>By: Wordpress TincyMCE Editor Removes Attributes &#124; LMH Productions</title>
		<link>http://www.engfers.com/2008/10/16/how-to-allow-stripped-element-attributes-in-wordpress-tinymce-editor/comment-page-1/#comment-18524</link>
		<dc:creator>Wordpress TincyMCE Editor Removes Attributes &#124; LMH Productions</dc:creator>
		<pubDate>Thu, 01 Sep 2011 01:24:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.engfers.com/?p=635#comment-18524</guid>
		<description>[...] some searching (took forever), I was able to find a way of modifying the TinyMCE configuration to allow the additional attribute. To do this, you [...]</description>
		<content:encoded><![CDATA[<p>[...] some searching (took forever), I was able to find a way of modifying the TinyMCE configuration to allow the additional attribute. To do this, you [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Fritz Dowey</title>
		<link>http://www.engfers.com/2008/10/16/how-to-allow-stripped-element-attributes-in-wordpress-tinymce-editor/comment-page-1/#comment-17361</link>
		<dc:creator>Fritz Dowey</dc:creator>
		<pubDate>Fri, 15 Jul 2011 13:13:30 +0000</pubDate>
		<guid isPermaLink="false">http://www.engfers.com/?p=635#comment-17361</guid>
		<description>Thanks for the concepts you discuss through this website. In addition, quite a few young women who become pregnant never even try and get health insurance coverage because they have anxiety they couldn&#039;t qualify. Although a lot of states currently require  insurers supply coverage in spite of the pre-existing conditions. Rates on these kinds of guaranteed plans are usually bigger, but when thinking about the high cost of health care it may be a safer route to take to protect the financial future.</description>
		<content:encoded><![CDATA[<p>Thanks for the concepts you discuss through this website. In addition, quite a few young women who become pregnant never even try and get health insurance coverage because they have anxiety they couldn&#8217;t qualify. Although a lot of states currently require  insurers supply coverage in spite of the pre-existing conditions. Rates on these kinds of guaranteed plans are usually bigger, but when thinking about the high cost of health care it may be a safer route to take to protect the financial future.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: WP插入代码插件 Prettify Button 发布 &#124; Ghoul To World!</title>
		<link>http://www.engfers.com/2008/10/16/how-to-allow-stripped-element-attributes-in-wordpress-tinymce-editor/comment-page-1/#comment-15714</link>
		<dc:creator>WP插入代码插件 Prettify Button 发布 &#124; Ghoul To World!</dc:creator>
		<pubDate>Mon, 23 May 2011 16:47:26 +0000</pubDate>
		<guid isPermaLink="false">http://www.engfers.com/?p=635#comment-15714</guid>
		<description>[...] 一些遗憾 最新版的WP会过滤掉HTML标签里面的一些属性，比如pre标签里面的class属性，这导致最初插入的脚本不能显示高亮，因为css类名prettyprint丢失了。后来找到了解决方法，但却带来了副作用，在Webkit内核的浏览器里面粘贴纯文本时，纯文本会被粘贴两次，第二次排版混乱，查看源代码发现文字被贴上了 &lt;div id=&#8221;_mcePaste&#8221;&gt;XXXX&lt;/div&gt; 标签。对Chrome死忠的我来说，这的确有些让人难以接受，求助解决方法。 [...]</description>
		<content:encoded><![CDATA[<p>[...] 一些遗憾 最新版的WP会过滤掉HTML标签里面的一些属性，比如pre标签里面的class属性，这导致最初插入的脚本不能显示高亮，因为css类名prettyprint丢失了。后来找到了解决方法，但却带来了副作用，在Webkit内核的浏览器里面粘贴纯文本时，纯文本会被粘贴两次，第二次排版混乱，查看源代码发现文字被贴上了 &lt;div id=&#8221;_mcePaste&#8221;&gt;XXXX&lt;/div&gt; 标签。对Chrome死忠的我来说，这的确有些让人难以接受，求助解决方法。 [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sepulchered</title>
		<link>http://www.engfers.com/2008/10/16/how-to-allow-stripped-element-attributes-in-wordpress-tinymce-editor/comment-page-1/#comment-5996</link>
		<dc:creator>sepulchered</dc:creator>
		<pubDate>Mon, 05 Apr 2010 17:03:19 +0000</pubDate>
		<guid isPermaLink="false">http://www.engfers.com/?p=635#comment-5996</guid>
		<description>I&#039;m sorry for previous post.
&quot;that has s inside&quot; =&gt; &quot;that has div-tags inside&quot;
&quot;by tags, that unfortunatelly tinymce do automatically&quot; =&gt; &quot;by p-tags, that unfortunatelly tinymce do automatically&quot;</description>
		<content:encoded><![CDATA[<p>I&#8217;m sorry for previous post.<br />
&#8220;that has s inside&#8221; =&gt; &#8220;that has div-tags inside&#8221;<br />
&#8220;by tags, that unfortunatelly tinymce do automatically&#8221; =&gt; &#8220;by p-tags, that unfortunatelly tinymce do automatically&#8221;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sepulchered</title>
		<link>http://www.engfers.com/2008/10/16/how-to-allow-stripped-element-attributes-in-wordpress-tinymce-editor/comment-page-1/#comment-5995</link>
		<dc:creator>sepulchered</dc:creator>
		<pubDate>Mon, 05 Apr 2010 17:01:03 +0000</pubDate>
		<guid isPermaLink="false">http://www.engfers.com/?p=635#comment-5995</guid>
		<description>Hello, I found your article very usefull.
I want to add filter that unables enclosing my shortcode (that has s inside) by  tags, that unfortunatelly tinymce do automatically. This behaviour makes my page invalid.
I wrote this piece of code:

function change_mce_options( $init ) {
    $init[&#039;force_p_newlines&#039;] = false;
    return $init;
}
add_filter(&quot;mce_force_p_newlines&quot;, &quot;change_mce_options&quot;);

But it doesn&#039;t seem to work. Can you help with that?
What&#039;s wrong? 
Or is there other way to stop tinymce do such things?</description>
		<content:encoded><![CDATA[<p>Hello, I found your article very usefull.<br />
I want to add filter that unables enclosing my shortcode (that has s inside) by  tags, that unfortunatelly tinymce do automatically. This behaviour makes my page invalid.<br />
I wrote this piece of code:</p>
<p>function change_mce_options( $init ) {<br />
    $init['force_p_newlines'] = false;<br />
    return $init;<br />
}<br />
add_filter(&#8220;mce_force_p_newlines&#8221;, &#8220;change_mce_options&#8221;);</p>
<p>But it doesn&#8217;t seem to work. Can you help with that?<br />
What&#8217;s wrong?<br />
Or is there other way to stop tinymce do such things?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Voku</title>
		<link>http://www.engfers.com/2008/10/16/how-to-allow-stripped-element-attributes-in-wordpress-tinymce-editor/comment-page-1/#comment-5756</link>
		<dc:creator>Voku</dc:creator>
		<pubDate>Tue, 16 Feb 2010 01:49:52 +0000</pubDate>
		<guid isPermaLink="false">http://www.engfers.com/?p=635#comment-5756</guid>
		<description>THX for this... but I have to add the code above in this file -&gt; 
 
wp-includes/js/tinymce/wp-tinymce.php

... because the plugin didn&#039;t work for me (WP 2.9.1) :-(</description>
		<content:encoded><![CDATA[<p>THX for this&#8230; but I have to add the code above in this file -&gt; </p>
<p>wp-includes/js/tinymce/wp-tinymce.php</p>
<p>&#8230; because the plugin didn&#8217;t work for me (WP 2.9.1) <img src='http://www.engfers.com/wp-includes/images/smilies/icon_sad.gif' alt=':-(' class='wp-smiley' /> </p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Oliver David</title>
		<link>http://www.engfers.com/2008/10/16/how-to-allow-stripped-element-attributes-in-wordpress-tinymce-editor/comment-page-1/#comment-5492</link>
		<dc:creator>Oliver David</dc:creator>
		<pubDate>Wed, 13 Jan 2010 16:24:05 +0000</pubDate>
		<guid isPermaLink="false">http://www.engfers.com/?p=635#comment-5492</guid>
		<description>here is how u can do it, its the best way</description>
		<content:encoded><![CDATA[<p>here is how u can do it, its the best way</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Abel Braaksma</title>
		<link>http://www.engfers.com/2008/10/16/how-to-allow-stripped-element-attributes-in-wordpress-tinymce-editor/comment-page-1/#comment-3248</link>
		<dc:creator>Abel Braaksma</dc:creator>
		<pubDate>Thu, 09 Jul 2009 10:26:54 +0000</pubDate>
		<guid isPermaLink="false">http://www.engfers.com/?p=635#comment-3248</guid>
		<description>This looks really like what I need right now. I want to experiment a bit with TinyMCE. Though I know it pretty well from other environments, I&#039;m quite new to WordPress. Could you extend your post to explain to noobs like me where and how your code should be added? I.e., suppose I&#039;d make a plugin with some TinyMCE settings changed, can I then use your code and how?</description>
		<content:encoded><![CDATA[<p>This looks really like what I need right now. I want to experiment a bit with TinyMCE. Though I know it pretty well from other environments, I&#8217;m quite new to WordPress. Could you extend your post to explain to noobs like me where and how your code should be added? I.e., suppose I&#8217;d make a plugin with some TinyMCE settings changed, can I then use your code and how?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Eugenia Mcloskey</title>
		<link>http://www.engfers.com/2008/10/16/how-to-allow-stripped-element-attributes-in-wordpress-tinymce-editor/comment-page-1/#comment-1320</link>
		<dc:creator>Eugenia Mcloskey</dc:creator>
		<pubDate>Thu, 22 Jan 2009 15:30:34 +0000</pubDate>
		<guid isPermaLink="false">http://www.engfers.com/?p=635#comment-1320</guid>
		<description>Good piece.</description>
		<content:encoded><![CDATA[<p>Good piece.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Aaron</title>
		<link>http://www.engfers.com/2008/10/16/how-to-allow-stripped-element-attributes-in-wordpress-tinymce-editor/comment-page-1/#comment-1303</link>
		<dc:creator>Aaron</dc:creator>
		<pubDate>Tue, 13 Jan 2009 17:13:13 +0000</pubDate>
		<guid isPermaLink="false">http://www.engfers.com/?p=635#comment-1303</guid>
		<description>In order to use the iframe within TinyMCE, the code above would read as such:

function my_change_mce_options( $init ) {
    // Command separated string of extended elements
    $ext = &#039;iframe[id&#124;class&#124;title&#124;style&#124;align&#124;frameborder&#124;height&#124;longdesc&#124;marginheight&#124;marginwidth&#124;name&#124;scrolling&#124;src&#124;width]&#039;;

    // Add to extended_valid_elements if it alreay exists
    if ( isset( $init[&#039;extended_valid_elements&#039;] ) ) {
        $init[&#039;extended_valid_elements&#039;] .= &#039;,&#039; . $ext;
    } else {
        $init[&#039;extended_valid_elements&#039;] = $ext;
    }

    // Super important: return $init!
    return $init;
}

add_filter(&#039;tiny_mce_before_init&#039;, &#039;my_change_mce_options&#039;);</description>
		<content:encoded><![CDATA[<p>In order to use the iframe within TinyMCE, the code above would read as such:</p>
<p>function my_change_mce_options( $init ) {<br />
    // Command separated string of extended elements<br />
    $ext = &#8216;iframe[id|class|title|style|align|frameborder|height|longdesc|marginheight|marginwidth|name|scrolling|src|width]&#8216;;</p>
<p>    // Add to extended_valid_elements if it alreay exists<br />
    if ( isset( $init['extended_valid_elements'] ) ) {<br />
        $init['extended_valid_elements'] .= &#8216;,&#8217; . $ext;<br />
    } else {<br />
        $init['extended_valid_elements'] = $ext;<br />
    }</p>
<p>    // Super important: return $init!<br />
    return $init;<br />
}</p>
<p>add_filter(&#8216;tiny_mce_before_init&#8217;, &#8216;my_change_mce_options&#8217;);</p>
]]></content:encoded>
	</item>
</channel>
</rss>

