<?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: Hiding nested controls in a Flex RichTextEditor control (remix)</title>
	<atom:link href="http://blog.flexexamples.com/2007/12/04/hiding-nested-controls-in-a-flex-richtexteditor-control-remix/feed/" rel="self" type="application/rss+xml" />
	<link>http://blog.flexexamples.com/2007/12/04/hiding-nested-controls-in-a-flex-richtexteditor-control-remix/</link>
	<description>Just a bunch of Adobe Flex Examples</description>
	<lastBuildDate>Sun, 12 Feb 2012 19:26:49 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2007/12/04/hiding-nested-controls-in-a-flex-richtexteditor-control-remix/comment-page-1/#comment-7038</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Thu, 18 Feb 2010 00:32:52 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/04/hiding-nested-controls-in-a-flex-richtexteditor-control-remix/#comment-7038</guid>
		<description>Done; http://blog.flexexamples.com/2010/02/17/removing-controls-from-the-mx-richtexteditor-control-in-flex/</description>
		<content:encoded><![CDATA[<p>Done; <a href="http://blog.flexexamples.com/2010/02/17/removing-controls-from-the-mx-richtexteditor-control-in-flex/" rel="nofollow">http://blog.flexexamples.com/2010/02/17/removing-controls-from-the-mx-richtexteditor-control-in-flex/</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2007/12/04/hiding-nested-controls-in-a-flex-richtexteditor-control-remix/comment-page-1/#comment-7037</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Wed, 17 Feb 2010 23:46:19 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/04/hiding-nested-controls-in-a-flex-richtexteditor-control-remix/#comment-7037</guid>
		<description>Somebody asked how you could create a RichTextEditor with only the &lt;code&gt;linkTextInput&lt;/code&gt;, and I came up with this. I&#039;ll try and port this to a full example later if I get some time:

&lt;pre lang=&quot;mxml&quot;&gt;
&lt;?xml version=&quot;1.0&quot; encoding=&quot;utf-8&quot;?&gt;
&lt;mx:RichTextEditor name=&quot;LinkOnlyRichTextEditor&quot;
        xmlns:mx=&quot;http://www.adobe.com/2006/mxml&quot;
        creationComplete=&quot;init();&quot;&gt;
    
    &lt;mx:Script&gt;
        &lt;![CDATA[
            private function init():void {
                // remove unwanted controls...
                fontFamilyCombo.parent.removeChild(fontFamilyCombo);
                fontSizeCombo.parent.removeChild(fontSizeCombo);
                toolBar2.parent.removeChild(toolBar2);
                colorPicker.parent.removeChild(colorPicker);
                alignButtons.parent.removeChild(alignButtons);
                bulletButton.parent.removeChild(bulletButton);
                
                // remove vertical separators...
                _RichTextEditor_VRule1.parent.removeChild(_RichTextEditor_VRule1);
                _RichTextEditor_VRule2.parent.removeChild(_RichTextEditor_VRule2);
                
                // resize link TextInput control...
                linkTextInput.width = toolbar.width;
            }
        ]]&gt;
    &lt;/mx:Script&gt;
    
&lt;/mx:RichTextEditor&gt;
&lt;/pre&gt;

Peter</description>
		<content:encoded><![CDATA[<p>Somebody asked how you could create a RichTextEditor with only the <code>linkTextInput</code>, and I came up with this. I&#8217;ll try and port this to a full example later if I get some time:</p>

<div class="wp_syntax"><div class="code"><pre class="mxml" style="font-family:monospace;"><span style="color: #000000;">&lt;?xml version=<span style="color: #ff0000;">&quot;1.0&quot;</span> encoding=<span style="color: #ff0000;">&quot;utf-8&quot;</span>?<span style="color: #7400FF;">&gt;</span></span>
<span style="color: #000000;"><span style="color: #7400FF;">&lt;mx:RichTextEditor</span> name=<span style="color: #ff0000;">&quot;LinkOnlyRichTextEditor&quot;</span></span>
<span style="color: #000000;">        xmlns:mx=<span style="color: #ff0000;">&quot;http://www.adobe.com/2006/mxml&quot;</span></span>
<span style="color: #000000;">        creationComplete=<span style="color: #ff0000;">&quot;init();&quot;</span><span style="color: #7400FF;">&gt;</span></span>
&nbsp;
    <span style="color: #339933;">&lt;mx:Script&gt;</span>
<span style="color: #339933;">        &lt;![CDATA[</span>
<span style="color: #339933;">            private function init():void {</span>
<span style="color: #339933;">                // remove unwanted controls...</span>
<span style="color: #339933;">                fontFamilyCombo.parent.removeChild(fontFamilyCombo);</span>
<span style="color: #339933;">                fontSizeCombo.parent.removeChild(fontSizeCombo);</span>
<span style="color: #339933;">                toolBar2.parent.removeChild(toolBar2);</span>
<span style="color: #339933;">                colorPicker.parent.removeChild(colorPicker);</span>
<span style="color: #339933;">                alignButtons.parent.removeChild(alignButtons);</span>
<span style="color: #339933;">                bulletButton.parent.removeChild(bulletButton);</span>
&nbsp;
<span style="color: #339933;">                // remove vertical separators...</span>
<span style="color: #339933;">                _RichTextEditor_VRule1.parent.removeChild(_RichTextEditor_VRule1);</span>
<span style="color: #339933;">                _RichTextEditor_VRule2.parent.removeChild(_RichTextEditor_VRule2);</span>
&nbsp;
<span style="color: #339933;">                // resize link TextInput control...</span>
<span style="color: #339933;">                linkTextInput.width = toolbar.width;</span>
<span style="color: #339933;">            }</span>
<span style="color: #339933;">        ]]&gt;</span>
<span style="color: #339933;">    &lt;/mx:Script&gt;</span>
&nbsp;
<span style="color: #000000;"><span style="color: #7400FF;">&lt;/mx:RichTextEditor</span><span style="color: #7400FF;">&gt;</span></span></pre></div></div>

<p>Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: dr3d</title>
		<link>http://blog.flexexamples.com/2007/12/04/hiding-nested-controls-in-a-flex-richtexteditor-control-remix/comment-page-1/#comment-7022</link>
		<dc:creator>dr3d</dc:creator>
		<pubDate>Mon, 15 Feb 2010 18:21:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/04/hiding-nested-controls-in-a-flex-richtexteditor-control-remix/#comment-7022</guid>
		<description>you&#039;re going to have to subclass RichTextEditor in order to be able to access those protected components</description>
		<content:encoded><![CDATA[<p>you&#8217;re going to have to subclass RichTextEditor in order to be able to access those protected components</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Peter deHaan</title>
		<link>http://blog.flexexamples.com/2007/12/04/hiding-nested-controls-in-a-flex-richtexteditor-control-remix/comment-page-1/#comment-2061</link>
		<dc:creator>Peter deHaan</dc:creator>
		<pubDate>Fri, 19 Jun 2009 14:12:59 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/04/hiding-nested-controls-in-a-flex-richtexteditor-control-remix/#comment-2061</guid>
		<description>Taniguchi Toshio, J.,

I&#039;ve never tried fully customizing the RichTextEditor control, but you can find the MXML source code in your Flex SDK folder at &lt;em&gt;&lt;Flex SDK&gt;\frameworks\projects\framework\src\mx\controls\RichTextEditor.mxml&lt;/em&gt;

It may be possible to copy/paste that file and reorder the MXML components at the bottom of the code (or remove the TextArea altogether and pass a reference to an existing TextArea control to your custom RichTextEditor component).

Hope that helps,
Peter</description>
		<content:encoded><![CDATA[<p>Taniguchi Toshio, J.,</p>
<p>I&#8217;ve never tried fully customizing the RichTextEditor control, but you can find the MXML source code in your Flex SDK folder at <em>&lt;Flex SDK&gt;\frameworks\projects\framework\src\mx\controls\RichTextEditor.mxml</em></p>
<p>It may be possible to copy/paste that file and reorder the MXML components at the bottom of the code (or remove the TextArea altogether and pass a reference to an existing TextArea control to your custom RichTextEditor component).</p>
<p>Hope that helps,<br />
Peter</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Taniguchi Toshio, J.</title>
		<link>http://blog.flexexamples.com/2007/12/04/hiding-nested-controls-in-a-flex-richtexteditor-control-remix/comment-page-1/#comment-2062</link>
		<dc:creator>Taniguchi Toshio, J.</dc:creator>
		<pubDate>Fri, 19 Jun 2009 11:09:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/04/hiding-nested-controls-in-a-flex-richtexteditor-control-remix/#comment-2062</guid>
		<description>Hi,

I know the post its quite old but I would like to ask if it is possible to remove the textarea from the rte and add it into a different place [into a canvas, for example]?

Another question: It is possible to create a new textarea and make it editable using the same rte over and over?


Thanks :)

Your blog RuLeZ!</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p>I know the post its quite old but I would like to ask if it is possible to remove the textarea from the rte and add it into a different place [into a canvas, for example]?</p>
<p>Another question: It is possible to create a new textarea and make it editable using the same rte over and over?</p>
<p>Thanks :)</p>
<p>Your blog RuLeZ!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: morphy</title>
		<link>http://blog.flexexamples.com/2007/12/04/hiding-nested-controls-in-a-flex-richtexteditor-control-remix/comment-page-1/#comment-2063</link>
		<dc:creator>morphy</dc:creator>
		<pubDate>Thu, 15 Jan 2009 14:52:10 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/04/hiding-nested-controls-in-a-flex-richtexteditor-control-remix/#comment-2063</guid>
		<description>Hi !

Any idea on how to remove the title bar from a richTextEditor ?
I know there are titleBar and titleTextField properties on richTextEditor but they are protected properties ...

Thanx.</description>
		<content:encoded><![CDATA[<p>Hi !</p>
<p>Any idea on how to remove the title bar from a richTextEditor ?<br />
I know there are titleBar and titleTextField properties on richTextEditor but they are protected properties &#8230;</p>
<p>Thanx.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://blog.flexexamples.com/2007/12/04/hiding-nested-controls-in-a-flex-richtexteditor-control-remix/comment-page-1/#comment-2059</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Sat, 12 Apr 2008 00:22:17 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/04/hiding-nested-controls-in-a-flex-richtexteditor-control-remix/#comment-2059</guid>
		<description>while not quite what i was looking for this was lots of help in adding a button to the toolbar
&lt;pre lang=&quot;actionscript3&quot;&gt;
var but:Button = new Button();
but.label = &quot;Post News&quot;;
but.addEventListener(&quot;click&quot;,action_post_news);
rte.toolbar.addChild(but);
&lt;/pre&gt;

.. and after a bit of experimenting (still learning flex and as3) i found i could add before the TextArea with...
&lt;pre lang=&quot;actionscript3&quot;&gt;
news_title = new TextInput(); // doesnt start with Var as its globally defined so i can access its text
news_title.percentWidth = 100;
var lab1:Label = new Label();
lab1.text = &quot;Title&quot;;
var hb:HBox = new HBox();
hb.percentWidth = 100;
hb.addChild(lab1);
hb.addChild(news_title);
rte.addChildAt(hb, 0);
&lt;/pre&gt;</description>
		<content:encoded><![CDATA[<p>while not quite what i was looking for this was lots of help in adding a button to the toolbar</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;"><span style="color: #6699cc; font-weight: bold;">var</span> but<span style="color: #000066; font-weight: bold;">:</span>Button = <span style="color: #0033ff; font-weight: bold;">new</span> Button<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
but<span style="color: #000066; font-weight: bold;">.</span>label = <span style="color: #990000;">&quot;Post News&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
but<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addEventListener</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;click&quot;</span><span style="color: #000066; font-weight: bold;">,</span>action_post_news<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
rte<span style="color: #000066; font-weight: bold;">.</span>toolbar<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>but<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></pre></div></div>

<p>.. and after a bit of experimenting (still learning flex and as3) i found i could add before the TextArea with&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;">news_title = <span style="color: #0033ff; font-weight: bold;">new</span> TextInput<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span> <span style="color: #009900; font-style: italic;">// doesnt start with Var as its globally defined so i can access its text</span>
news_title<span style="color: #000066; font-weight: bold;">.</span>percentWidth = <span style="color: #000000; font-weight:bold;">100</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #6699cc; font-weight: bold;">var</span> lab1<span style="color: #000066; font-weight: bold;">:</span>Label = <span style="color: #0033ff; font-weight: bold;">new</span> Label<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
lab1<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">text</span> = <span style="color: #990000;">&quot;Title&quot;</span><span style="color: #000066; font-weight: bold;">;</span>
<span style="color: #6699cc; font-weight: bold;">var</span> hb<span style="color: #000066; font-weight: bold;">:</span>HBox = <span style="color: #0033ff; font-weight: bold;">new</span> HBox<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
hb<span style="color: #000066; font-weight: bold;">.</span>percentWidth = <span style="color: #000000; font-weight:bold;">100</span><span style="color: #000066; font-weight: bold;">;</span>
hb<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>lab1<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
hb<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addChild</span><span style="color: #000000;">&#40;</span>news_title<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
rte<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">addChildAt</span><span style="color: #000000;">&#40;</span>hb<span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></pre></div></div>

]]></content:encoded>
	</item>
	<item>
		<title>By: webdev.andrei</title>
		<link>http://blog.flexexamples.com/2007/12/04/hiding-nested-controls-in-a-flex-richtexteditor-control-remix/comment-page-1/#comment-2060</link>
		<dc:creator>webdev.andrei</dc:creator>
		<pubDate>Mon, 31 Mar 2008 09:45:15 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/04/hiding-nested-controls-in-a-flex-richtexteditor-control-remix/#comment-2060</guid>
		<description>What I wanted to accomplish is to make the background invisible either make it transparent or changing its color to match the background (white). I did the following:
&lt;pre lang=&quot;actionscript3&quot;&gt;
rich.setStyle(&quot;borderThickness&quot;, 1);
rich.setStyle(&quot;borderAlpha&quot;, 1);
rich.setStyle(&quot;borderColor&quot;, 0xFFFFFF);
rich.setStyle(&quot;dropShadowEnabled&quot;, false);
rich.setStyle(&quot;headerHeight&quot;, 0);
rich.setStyle(&quot;backgroundColor&quot;, 0xFFFFFF);
&lt;/pre&gt;
I noticed that RTE needs to have the border defined to be able to modify the default background. So after setting the border you may be able to set the alpha to transparent.</description>
		<content:encoded><![CDATA[<p>What I wanted to accomplish is to make the background invisible either make it transparent or changing its color to match the background (white). I did the following:</p>

<div class="wp_syntax"><div class="code"><pre class="actionscript3" style="font-family:monospace;">rich<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">setStyle</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;borderThickness&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
rich<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">setStyle</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;borderAlpha&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">1</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
rich<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">setStyle</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;borderColor&quot;</span><span style="color: #000066; font-weight: bold;">,</span> 0xFFFFFF<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
rich<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">setStyle</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;dropShadowEnabled&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #0033ff; font-weight: bold;">false</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
rich<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">setStyle</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;headerHeight&quot;</span><span style="color: #000066; font-weight: bold;">,</span> <span style="color: #000000; font-weight:bold;">0</span><span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span>
rich<span style="color: #000066; font-weight: bold;">.</span><span style="color: #004993;">setStyle</span><span style="color: #000000;">&#40;</span><span style="color: #990000;">&quot;backgroundColor&quot;</span><span style="color: #000066; font-weight: bold;">,</span> 0xFFFFFF<span style="color: #000000;">&#41;</span><span style="color: #000066; font-weight: bold;">;</span></pre></div></div>

<p>I noticed that RTE needs to have the border defined to be able to modify the default background. So after setting the border you may be able to set the alpha to transparent.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Mark</title>
		<link>http://blog.flexexamples.com/2007/12/04/hiding-nested-controls-in-a-flex-richtexteditor-control-remix/comment-page-1/#comment-2058</link>
		<dc:creator>Mark</dc:creator>
		<pubDate>Wed, 05 Dec 2007 15:02:22 +0000</pubDate>
		<guid isPermaLink="false">http://blog.flexexamples.com/2007/12/04/hiding-nested-controls-in-a-flex-richtexteditor-control-remix/#comment-2058</guid>
		<description>Thanks for this post, it&#039;s quite topical and removing the VRules was something I was struggling with.

Another aspect of the RichTextEditor I&#039;m having difficulty editing is the ControlBar that the toolbar and controls are contained within. I can&#039;t find a good way to target it and I want to remove the background from this component. Any thoughts on how I could tackle that?</description>
		<content:encoded><![CDATA[<p>Thanks for this post, it&#8217;s quite topical and removing the VRules was something I was struggling with.</p>
<p>Another aspect of the RichTextEditor I&#8217;m having difficulty editing is the ControlBar that the toolbar and controls are contained within. I can&#8217;t find a good way to target it and I want to remove the background from this component. Any thoughts on how I could tackle that?</p>
]]></content:encoded>
	</item>
</channel>
</rss>

