I have to agree with Carl, what's te point of having a URL feature in the RTE, if you don't intend browsing somewhere...
The only solution I have - I have the same issue - is manipulating the htmlText content by putting <u>nderline and <font> tags around the <A>nchortags Here is a little tool to exchange HTML from RTE with plaintext..it allows to send back and forth so you can see what works and what doesn't...styles don't ;-) <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml <http://www.adobe.com/2006/mxml> " layout="absolute"> <mx:RichTextEditor x="10" y="10" id="rtf"> </mx:RichTextEditor> <mx:Button x="343" y="9" label=">>" click="txt.text=rtf.htmlText"/> <mx:TextArea x="391" y="10" width="325" height="300" id="txt" wordWrap="true"/> <mx:Button x="343" y="288" label="<<" click="rtf.htmlText=txt.text"/> </mx:Application> Iko --- In [email protected], "carl_steinhilber" <[EMAIL PROTECTED]> wrote: > > While I understand what you're saying, Alex, that's just not a valid > answer. > > I realize that HTML support is not very advanced in Flex. But, > truthfully, it doesn't take a highly advanced HTML browser to know > that people expect hyperlinks to be rendered differently than the rest > of the text on the screen. In fact, it doesn't take even a > [i]mildly[/i] advanced browser. The very [i]first[/i] web browser did > that... even before the rest of the HTML spec was complete... even > before HTML had an img tag. > > Word does it, and it's not a browser. Outlook does it, and it's not > (technically) a browser. Heck, the Flex IDE even understands the > concept, and it's [i]certainly[/i] not a browser. When you hold the > CTRL key down and roll over an object name in your MXML... what does > it do? It highlights the text to indicate that it's clickable. > > It seems like that has less to do with HTML support and more to do > with usability and interface design. > > Unfortunately, I [i]do[/i] need editability. That's the whole point of > my current application. And if you can style anchors in non-editable > text objects, how big a stretch is it, really, to be able to apply > styles to editable text objects. Obviously the developers knew it was > important, otherwise they wouldn't have made it possible for > non-editable components either. > > As it stands now, I'll pretty much have to roll out my application > with the URL text box removed from the RichTextEditor. Since it's > completely unusable sans any type of visual feedback in the text. > > > > --- In [email protected], "Alex Harui" aharui@ wrote: > > > > HTML/CSS support in Flash/Flex has always been limited. We're just not > > a browser. > > > > > > > > You can style anchor tags, but not in editable controls. > > > > > > > > If you don't need editability, use Text instead of RichTextEditor and > > set htmlText and a styleSheet (not styleName). Try to follow the > > example in the doc for flash.text.TextField.htmlText. > > > > > > > > -Alex > > > > > > > > ________________________________ > > > > From: [email protected] [mailto:[EMAIL PROTECTED] On > > Behalf Of carl_steinhilber > > Sent: Wednesday, March 14, 2007 3:02 PM > > To: [email protected] > > Subject: [flexcoders] Can't I style an anchor in a RichTextEditor?? > > > > > > > > I've tried various techniques that I picked up on the web, but can't > > seem to apply a style specifically to the anchor links in a > > RichTextEditor. > > > > Basically, I want a style like: > > .myRTETextAreaStyle A { > > color:#0000ff; > > text-decoration:underline; > > } > > but I'm not having much luck. > > > > I tried setting > > myRTE.textArea.styleName="myRTETextAreaStyle"; > > in creationComplete. > > > > I tried creating a stylesheet on the fly using the StyleSheet object, > > CSSStyleDeclaration, and the StyleManager. > > > > I (first) tried simply declaring the style in an mx:Style block. > > > > Nothing seems to work. > > > > And for the life of my I can't understand why the RTE doesn't do it by > > default out of the box. Under what earthly circumstance would NOT > > differenciating a link from the rest of the text in an RTE be > > intuitive?? Ah well... c'est l'vie. > > > > Anyone know how to make it work after the fact? > > > > Thanks in advance! > > -Carl > > >

