<?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: Automatically getting underlined links in the RichTextEditor</title>
	<atom:link href="http://polygeek.com/1421_flex_getting-underlined-linksrichtexteditor/feed" rel="self" type="application/rss+xml" />
	<link>http://polygeek.com/1421_flex_getting-underlined-linksrichtexteditor</link>
	<description>polyGeek (noun) person with many geek related talents.</description>
	<lastBuildDate>Thu, 29 Jul 2010 13:07:13 -0700</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
	<item>
		<title>By: polyGeek</title>
		<link>http://polygeek.com/1421_flex_getting-underlined-linksrichtexteditor/comment-page-1#comment-61024</link>
		<dc:creator>polyGeek</dc:creator>
		<pubDate>Sat, 16 May 2009 03:20:01 +0000</pubDate>
		<guid isPermaLink="false">http://polygeek.com/?p=1421#comment-61024</guid>
		<description>&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;@Armen, wow, thanks for all the code. That really helps.&lt;/FONT&gt;&lt;/P&gt;</description>
		<content:encoded><![CDATA[<p><font FACE="Verdana"  COLOR="#0B333C"  >@Armen, wow, thanks for all the code. That really helps.</font></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Armen</title>
		<link>http://polygeek.com/1421_flex_getting-underlined-linksrichtexteditor/comment-page-1#comment-61021</link>
		<dc:creator>Armen</dc:creator>
		<pubDate>Fri, 15 May 2009 15:22:45 +0000</pubDate>
		<guid isPermaLink="false">http://polygeek.com/?p=1421#comment-61021</guid>
		<description>&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;@polyGeek Thx for the solution.&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;I find a simple way to fix the bug posted by @sydd&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;//store last changed link&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;private var _lastlink:String;&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;//add change event to see when link is changing (inside rteCustomizedInit())&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;body.linkTextInput.addEventListener(Event.CHANGE,onLinkChange);&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;private function onLinkChange(e:Event):void&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;        {&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;        	_lastlink = body.linkTextInput.text;&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;        	&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;        }&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;//and change the last lines of onLinkFocusOut()&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;// checking if link is set  and is not selected then underline, otherwise if not link //and underline exist remove underline&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt; if(!body.underlineButton.selected)&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;            {&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;            	if(_lastlink !== &quot;http://&quot; &amp;&amp; _lastlink !==null)&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;            	body.underlineButton.dispatchEvent( new MouseEvent( MouseEvent.CLICK, false ) );&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;            }else&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;            {&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;            	if(_lastlink == &quot;http://&quot; &#124;&#124; _lastlink ==&quot;&quot;)&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;            	body.underlineButton.dispatchEvent( new MouseEvent( MouseEvent.CLICK, false ) );&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;            }&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;&lt;/FONT&gt;&lt;/P&gt;</description>
		<content:encoded><![CDATA[<p><font FACE="Verdana"  COLOR="#0B333C"  >@polyGeek Thx for the solution.</font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  >I find a simple way to fix the bug posted by @sydd</font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  >//store last changed link</font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  >private var _lastlink:String;</font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  >//add change event to see when link is changing (inside rteCustomizedInit())</font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  >body.linkTextInput.addEventListener(Event.CHANGE,onLinkChange);</font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  ></font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  >private function onLinkChange(e:Event):void</font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  >        {</font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  >        	_lastlink = body.linkTextInput.text;</font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  >        	</font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  >        }</font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  ></font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  >//and change the last lines of onLinkFocusOut()</font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  >// checking if link is set  and is not selected then underline, otherwise if not link //and underline exist remove underline</font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  ></font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  > if(!body.underlineButton.selected)</font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  >            {</font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  >            	if(_lastlink !== &quot;http://&quot; &amp;&amp; _lastlink !==null)</font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  >            	body.underlineButton.dispatchEvent( new MouseEvent( MouseEvent.CLICK, false ) );</font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  >            }else</font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  >            {</font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  >            	if(_lastlink == &quot;http://&quot; || _lastlink ==&quot;&quot;)</font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  >            	body.underlineButton.dispatchEvent( new MouseEvent( MouseEvent.CLICK, false ) );</font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  >            }</font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  ></font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  ></font></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Don</title>
		<link>http://polygeek.com/1421_flex_getting-underlined-linksrichtexteditor/comment-page-1#comment-60692</link>
		<dc:creator>Don</dc:creator>
		<pubDate>Mon, 16 Feb 2009 20:27:52 +0000</pubDate>
		<guid isPermaLink="false">http://polygeek.com/?p=1421#comment-60692</guid>
		<description>&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;Thank you so much! This was driving users crazy...so I really appreciate you sharing it!&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;Don Kerr&lt;/FONT&gt;&lt;/P&gt;</description>
		<content:encoded><![CDATA[<p><font FACE="Verdana"  COLOR="#0B333C"  >Thank you so much! This was driving users crazy&#8230;so I really appreciate you sharing it!</font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  ></font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  >Don Kerr</font></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: polyGeek</title>
		<link>http://polygeek.com/1421_flex_getting-underlined-linksrichtexteditor/comment-page-1#comment-60617</link>
		<dc:creator>polyGeek</dc:creator>
		<pubDate>Sat, 24 Jan 2009 07:13:48 +0000</pubDate>
		<guid isPermaLink="false">http://polygeek.com/?p=1421#comment-60617</guid>
		<description>&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;@sydd, thanks for pointing that out. I&apos;ll put it on the 2Do list.&lt;/FONT&gt;&lt;/P&gt;</description>
		<content:encoded><![CDATA[<p><font FACE="Verdana"  COLOR="#0B333C"  >@sydd, thanks for pointing that out. I&apos;ll put it on the 2Do list.</font></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: sydd</title>
		<link>http://polygeek.com/1421_flex_getting-underlined-linksrichtexteditor/comment-page-1#comment-60616</link>
		<dc:creator>sydd</dc:creator>
		<pubDate>Fri, 23 Jan 2009 19:00:14 +0000</pubDate>
		<guid isPermaLink="false">http://polygeek.com/?p=1421#comment-60616</guid>
		<description>&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;Nice work, it has a problem tho:&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;If you make some text a link underlines it.&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;BUT if you select that text again and change the link it removes the underline :(&lt;/FONT&gt;&lt;/P&gt;</description>
		<content:encoded><![CDATA[<p><font FACE="Verdana"  COLOR="#0B333C"  >Nice work, it has a problem tho:</font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  >If you make some text a link underlines it.</font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  >BUT if you select that text again and change the link it removes the underline :(</font></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: polyGeek</title>
		<link>http://polygeek.com/1421_flex_getting-underlined-linksrichtexteditor/comment-page-1#comment-60405</link>
		<dc:creator>polyGeek</dc:creator>
		<pubDate>Wed, 03 Dec 2008 16:19:41 +0000</pubDate>
		<guid isPermaLink="false">http://polygeek.com/?p=1421#comment-60405</guid>
		<description>&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#FF00FF&quot;  &gt;@Jason&lt;FONT COLOR=&quot;#0B333C&quot;&gt;, no kidding. I did a lot of RegEx work on the HTML code for the CommentSubmitter here on polyGeek. Don&apos;t need a lot of that crap in there.&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;Thanks for the links. I&apos;ll check&apos;em out.&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;I sort of dropped the ball on the Sound thingy. Everyone hated it so I turned it off by default and didn&apos;t flesh it out. I think the typewriter-return plays anytime a field loses focus. You&apos;re right, a nice door sound for StarWars would fit right in with the old typewriting sounds. :)&lt;/FONT&gt;&lt;/P&gt;</description>
		<content:encoded><![CDATA[<p><font FACE="Verdana"  COLOR="#FF00FF"  >@Jason</font><font COLOR="#0B333C">, no kidding. I did a lot of RegEx work on the HTML code for the CommentSubmitter here on polyGeek. Don&apos;t need a lot of that crap in there.</font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  ></font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  >Thanks for the links. I&apos;ll check&apos;em out.</font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  ></font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  >I sort of dropped the ball on the Sound thingy. Everyone hated it so I turned it off by default and didn&apos;t flesh it out. I think the typewriter-return plays anytime a field loses focus. You&apos;re right, a nice door sound for StarWars would fit right in with the old typewriting sounds. :)</font></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Jason Langdon</title>
		<link>http://polygeek.com/1421_flex_getting-underlined-linksrichtexteditor/comment-page-1#comment-60399</link>
		<dc:creator>Jason Langdon</dc:creator>
		<pubDate>Wed, 03 Dec 2008 10:38:48 +0000</pubDate>
		<guid isPermaLink="false">http://polygeek.com/?p=1421#comment-60399</guid>
		<description>&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;The HTML the RTE creates is still pretty horendous. I don&apos;t know why Adobe hasn&apos;t cleaned up this part of the Flash Platform and try and make it adhere to the standards that Browsers now tend to be.&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;Here&apos;s a way to clean up your RTE generated code - http://thanksmister.com/?p=17&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;There&apos;s also a google code project for the component - http://code.google.com/p/flex-richtexteditor-html-utils/&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P &gt;&lt;FONT FACE=&quot;Verdana&quot;  COLOR=&quot;#0B333C&quot;  &gt;On a tangent, I was playing around with the sounds on your comment component and noticed that focusing the mouse out of the textarea will make the end of line typewriter sound. I would&apos;ve though it should make some form of power down sound, and that hitting the enter key would make the EOL sound? Not that I have the sound on anyways ;-)&lt;/FONT&gt;&lt;/P&gt;</description>
		<content:encoded><![CDATA[<p><font FACE="Verdana"  COLOR="#0B333C"  >The HTML the RTE creates is still pretty horendous. I don&apos;t know why Adobe hasn&apos;t cleaned up this part of the Flash Platform and try and make it adhere to the standards that Browsers now tend to be.</font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  ></font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  >Here&apos;s a way to clean up your RTE generated code &#8211; <a href="http://thanksmister.com/?p=17">http://thanksmister.com/?p=17</a></font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  >There&apos;s also a google code project for the component &#8211; <a href="http://code.google.com/p/flex-richtexteditor-html-utils/">http://code.google.com/p/flex-richtexteditor-html-utils/</a></font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  ></font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  ></font></p>
<p><font FACE="Verdana"  COLOR="#0B333C"  >On a tangent, I was playing around with the sounds on your comment component and noticed that focusing the mouse out of the textarea will make the end of line typewriter sound. I would&apos;ve though it should make some form of power down sound, and that hitting the enter key would make the EOL sound? Not that I have the sound on anyways ;-)</font></p>
]]></content:encoded>
	</item>
</channel>
</rss>
