Browsers, Word and Outlook are not small apps. Every feature counts in the player download and we have to make some hard choices.
I wish we had better HTML support. The Apollo platform will. -Alex ________________________________ From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of carl_steinhilber Sent: Wednesday, March 14, 2007 4:12 PM To: [email protected] Subject: [flexcoders] Re: Can't I style an anchor in a RichTextEditor?? 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] <mailto:flexcoders%40yahoogroups.com> , "Alex Harui" <[EMAIL PROTECTED]> 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:flexcoders%40yahoogroups.com> [mailto:[email protected] <mailto:flexcoders%40yahoogroups.com> ] On > Behalf Of carl_steinhilber > Sent: Wednesday, March 14, 2007 3:02 PM > To: [email protected] <mailto:flexcoders%40yahoogroups.com> > 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 >

