<?xml version="1.0" encoding="UTF-8"?><!-- generator="wordpress/2.2.1" -->
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/">
<channel>
	<title>Comments on: Condensing HTML white space in the TextArea control in Flex</title>
	<link>http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/</link>
	<description>A bunch of examples for Adobe Flex and ActionScript</description>
	<pubDate>Thu, 08 Jan 2009 13:47:36 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.2.1</generator>

	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/#comment-16705</link>
		<author>peterd</author>
		<pubDate>Fri, 14 Nov 2008 16:07:37 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/#comment-16705</guid>
		<description>abhishek,

If it looks like a Flex bug, can you please file it at http://bugs.adobe.com/flex/ and include a simple test case. Or, if it looks like a Flash Player bug, can you please file it at http://bugs.adobe.com/flashplayer/ and include a simple test case.

Peter</description>
		<content:encoded><![CDATA[<p>abhishek,</p>
<p>If it looks like a Flex bug, can you please file it at <a href="http://bugs.adobe.com/flex/" rel="nofollow">http://bugs.adobe.com/flex/</a> and include a simple test case. Or, if it looks like a Flash Player bug, can you please file it at <a href="http://bugs.adobe.com/flashplayer/" rel="nofollow">http://bugs.adobe.com/flashplayer/</a> and include a simple test case.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: abhishek</title>
		<link>http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/#comment-16703</link>
		<author>abhishek</author>
		<pubDate>Fri, 14 Nov 2008 12:43:30 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/#comment-16703</guid>
		<description>when i show 2 images 1 below other with their titles, it showing me 1 image then its title then below it 2 nd img title and then 2nd image.
is  all html tags are working properlly in flex ?</description>
		<content:encoded><![CDATA[<p>when i show 2 images 1 below other with their titles, it showing me 1 image then its title then below it 2 nd img title and then 2nd image.<br />
is  all html tags are working properlly in flex ?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/#comment-12274</link>
		<author>peterd</author>
		<pubDate>Fri, 25 Apr 2008 02:28:22 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/#comment-12274</guid>
		<description>Actually, I turned this into a new entry (so you can view source, see a SWF, etc), &lt;a href="http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-richtexteditor-control-in-flex/" rel="nofollow"&gt;&lt;u&gt;"Condensing HTML white space in the RichTextEditor control in Flex"&lt;/u&gt;&lt;/a&gt;.

Peter</description>
		<content:encoded><![CDATA[<p>Actually, I turned this into a new entry (so you can view source, see a SWF, etc), <a href="http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-richtexteditor-control-in-flex/" rel="nofollow"><u>&#8220;Condensing HTML white space in the RichTextEditor control in Flex&#8221;</u></a>.</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/#comment-12271</link>
		<author>peterd</author>
		<pubDate>Thu, 24 Apr 2008 23:52:18 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/#comment-12271</guid>
		<description>&lt;a href="http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/#comment-12265" rel="nofollow"&gt;Marcio&lt;/a&gt;,

Does this work for you?
&lt;pre class="code"&gt;
&#60;mx:RichTextEditor id="richTextEditor"
        htmlText="{str}"
        textAreaStyleName="myTextAreaStyleName" 
        width="100%"
        height="100%"
        creationComplete="richTextEditor.textArea.condenseWhite = true;" /&#62;
&lt;/pre&gt;

Or:
&lt;pre class="code"&gt;
&#60;?xml version="1.0" encoding="utf-8"?&#62;
&#60;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&#62;

    &#60;mx:Script&#62;
        &#60;![CDATA[
            private function checkBox_change(evt:Event):void {
                richTextEditor.textArea.condenseWhite = checkBox.selected;
            }
        ]]&#62;
    &#60;/mx:Script&#62;

    &#60;mx:String id="str" source="lorem.txt" /&#62;

    &#60;mx:ApplicationControlBar dock="true"&#62;
        &#60;mx:Form styleName="plain"&#62;
            &#60;mx:FormItem label="condenseWhite:"&#62;
                &#60;mx:CheckBox id="checkBox"
                        change="checkBox_change(event);" /&#62;
            &#60;/mx:FormItem&#62;
        &#60;/mx:Form&#62;
    &#60;/mx:ApplicationControlBar&#62;

    &#60;mx:RichTextEditor id="richTextEditor"
            htmlText="{str}"
            textAreaStyleName="myTextAreaStyleName" 
            width="100%"
            height="100%" /&#62;

&#60;/mx:Application&#62;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p><a href="http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/#comment-12265" rel="nofollow">Marcio</a>,</p>
<p>Does this work for you?</p>
<pre class="code">
&lt;mx:RichTextEditor id="richTextEditor"
        htmlText="{str}"
        textAreaStyleName="myTextAreaStyleName"
        width="100%"
        height="100%"
        creationComplete="richTextEditor.textArea.condenseWhite = true;" /&gt;
</pre>
<p>Or:</p>
<pre class="code">
&lt;?xml version="1.0" encoding="utf-8"?&gt;
&lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
        layout="vertical"
        verticalAlign="middle"
        backgroundColor="white"&gt;

    &lt;mx:Script&gt;
        &lt;![CDATA[
            private function checkBox_change(evt:Event):void {
                richTextEditor.textArea.condenseWhite = checkBox.selected;
            }
        ]]&gt;
    &lt;/mx:Script&gt;

    &lt;mx:String id="str" source="lorem.txt" /&gt;

    &lt;mx:ApplicationControlBar dock="true"&gt;
        &lt;mx:Form styleName="plain"&gt;
            &lt;mx:FormItem label="condenseWhite:"&gt;
                &lt;mx:CheckBox id="checkBox"
                        change="checkBox_change(event);" /&gt;
            &lt;/mx:FormItem&gt;
        &lt;/mx:Form&gt;
    &lt;/mx:ApplicationControlBar&gt;

    &lt;mx:RichTextEditor id="richTextEditor"
            htmlText="{str}"
            textAreaStyleName="myTextAreaStyleName"
            width="100%"
            height="100%" /&gt;

&lt;/mx:Application&gt;
</pre>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Marcio</title>
		<link>http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/#comment-12265</link>
		<author>Marcio</author>
		<pubDate>Thu, 24 Apr 2008 17:16:51 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/#comment-12265</guid>
		<description>How to condense white space around HTML tags or TXT using the Flex RichTextEditor control

?</description>
		<content:encoded><![CDATA[<p>How to condense white space around HTML tags or TXT using the Flex RichTextEditor control</p>
<p>?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ozgur Uksal</title>
		<link>http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/#comment-12262</link>
		<author>Ozgur Uksal</author>
		<pubDate>Thu, 24 Apr 2008 15:20:47 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/#comment-12262</guid>
		<description>Hi Peter,
Thank you for your time. Even though it takes more time to write in actionscript, it is the only way to build real applications like creating visual controls/components and containers at run time. I don't find mxml useful because it is used for building static controls. Most of the examples I found online and books are using mxml which is unfair. I need to improve my skill set on Flex. Anyone can drag and drop controls in Flex, and mxml is generated by default. Therefore, I need some examples in actionscript to improve my skills. I appreciated your time and examples on your site.

Sincerely,</description>
		<content:encoded><![CDATA[<p>Hi Peter,<br />
Thank you for your time. Even though it takes more time to write in actionscript, it is the only way to build real applications like creating visual controls/components and containers at run time. I don&#8217;t find mxml useful because it is used for building static controls. Most of the examples I found online and books are using mxml which is unfair. I need to improve my skill set on Flex. Anyone can drag and drop controls in Flex, and mxml is generated by default. Therefore, I need some examples in actionscript to improve my skills. I appreciated your time and examples on your site.</p>
<p>Sincerely,</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: peterd</title>
		<link>http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/#comment-12261</link>
		<author>peterd</author>
		<pubDate>Thu, 24 Apr 2008 14:27:24 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/#comment-12261</guid>
		<description>&lt;a href="http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/#comment-12260" rel="nofollow"&gt;Ozgur&lt;/a&gt;,

No good reason, apart from it takes more time to write each example twice. :)
I updated the entry above and added a hybrid MXML+ActionScript version, is that what you were looking for, or did you want 100% ActionScript?

Peter</description>
		<content:encoded><![CDATA[<p><a href="http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/#comment-12260" rel="nofollow">Ozgur</a>,</p>
<p>No good reason, apart from it takes more time to write each example twice. :)<br />
I updated the entry above and added a hybrid MXML+ActionScript version, is that what you were looking for, or did you want 100% ActionScript?</p>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ozgur</title>
		<link>http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/#comment-12260</link>
		<author>Ozgur</author>
		<pubDate>Thu, 24 Apr 2008 14:05:58 +0000</pubDate>
		<guid>http://blog.flexexamples.com/2008/04/24/condensing-html-white-space-in-the-textarea-control-in-flex/#comment-12260</guid>
		<description>Why don't use give your examples in Actionscript?</description>
		<content:encoded><![CDATA[<p>Why don&#8217;t use give your examples in Actionscript?</p>
]]></content:encoded>
	</item>
</channel>
</rss>
