<?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: Setting the background color of the RichTextEditor text area in Flex</title>
	<atom:link href="http://blog.flexexamples.com/2008/08/25/setting-the-background-color-of-the-richtexteditor-text-area-in-flex/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2008/08/25/setting-the-background-color-of-the-richtexteditor-text-area-in-flex/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Thu, 18 Mar 2010 07:46:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: patrick</title>
		<link>http://blog.flexexamples.com/2008/08/25/setting-the-background-color-of-the-richtexteditor-text-area-in-flex/comment-page-1/#comment-6441</link>
		<dc:creator>patrick</dc:creator>
		<pubDate>Tue, 24 Nov 2009 08:56:13 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/08/25/setting-the-background-color-of-the-richtexteditor-text-area-in-flex/#comment-6441</guid>
		<description>I &#039;m working on a website which used the RechTextEditor, can you tell me how i can make the default text color #cccccc but don&#039;t change the title color.Thank you very much.</description>
		<content:encoded><![CDATA[<p>I &#8216;m working on a website which used the RechTextEditor, can you tell me how i can make the default text color #cccccc but don&#8217;t change the title color.Thank you very much.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Gan</title>
		<link>http://blog.flexexamples.com/2008/08/25/setting-the-background-color-of-the-richtexteditor-text-area-in-flex/comment-page-1/#comment-6233</link>
		<dc:creator>Gan</dc:creator>
		<pubDate>Wed, 04 Nov 2009 15:47:25 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/08/25/setting-the-background-color-of-the-richtexteditor-text-area-in-flex/#comment-6233</guid>
		<description>How to set background color for some selected lines on a Rich Text Area. Say if you have 10 lines of text, you want to highlight only 3 lines (line 2,3,4) only, how do you do that? Please note that I would like to high light the whole back ground for entire line (not just text alone).</description>
		<content:encoded><![CDATA[<p>How to set background color for some selected lines on a Rich Text Area. Say if you have 10 lines of text, you want to highlight only 3 lines (line 2,3,4) only, how do you do that? Please note that I would like to high light the whole back ground for entire line (not just text alone).</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2008/08/25/setting-the-background-color-of-the-richtexteditor-text-area-in-flex/comment-page-1/#comment-3687</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Sat, 21 Feb 2009 17:51:33 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/08/25/setting-the-background-color-of-the-richtexteditor-text-area-in-flex/#comment-3687</guid>
		<description>Alexander,

Good catch! I filed this in the Flex bug base as https://bugs.adobe.com/jira/browse/SDK-19453 and attached a workaround.
Basically, you&#039;ll need to re-set the &lt;code&gt;htmlText&lt;/code&gt; property after calling the &lt;code&gt;setStyle()&lt;/code&gt; method:
&lt;pre class=&quot;code&quot;&gt;
private function btn_click(evt:ColorPickerEvent):void {
    var formattedText:String = richTextEditor.htmlText;
    richTextEditor.textArea.setStyle(&quot;backgroundColor&quot;, evt.color);
    // Workaround...
    richTextEditor.htmlText = formattedText;
}
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>Alexander,</p>
<p>Good catch! I filed this in the Flex bug base as <a href="https://bugs.adobe.com/jira/browse/SDK-19453" rel="nofollow">https://bugs.adobe.com/jira/browse/SDK-19453</a> and attached a workaround.<br />
Basically, you&#8217;ll need to re-set the <code>htmlText</code> property after calling the <code>setStyle()</code> method:</p>
<pre class="code">
private function btn_click(evt:ColorPickerEvent):void {
    var formattedText:String = richTextEditor.htmlText;
    richTextEditor.textArea.setStyle("backgroundColor", evt.color);
    // Workaround...
    richTextEditor.htmlText = formattedText;
}
</pre>
<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Alexander</title>
		<link>http://blog.flexexamples.com/2008/08/25/setting-the-background-color-of-the-richtexteditor-text-area-in-flex/comment-page-1/#comment-3688</link>
		<dc:creator>Alexander</dc:creator>
		<pubDate>Fri, 20 Feb 2009 10:53:00 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2008/08/25/setting-the-background-color-of-the-richtexteditor-text-area-in-flex/#comment-3688</guid>
		<description>I found that it works incorrect. Try to set some text style like color, size etc and change background color. It jumps to default values.</description>
		<content:encoded><![CDATA[<p>I found that it works incorrect. Try to set some text style like color, size etc and change background color. It jumps to default values.</p>
]]></content:encoded>
	</item>
</channel>
</rss>
