Skip navigation
Currently Being Moderated

How do highlighted-text stays highlighted when the it is out of focus?

Jul 11, 2012 12:24 PM

Hi all,


I am currently having a dificulty in getting my custom-made Flex 3 RichText based on TLF 3.0 to work correctly.

If you look at the "TLF Editor (Advanced)" in Tour De Flex, whenever you highlight the text and then hit one of the text-styling buttons, for example bold, the text will be bolded, as expected, and the highlight stays.


My custom RichText has the same setup: left pane is the text editor and right pane is the text-styling-UI buttons.

The difficulty that I got is getting the text stays highlighted when the user hits one of the text-styling-UI buttons.

I just couldn't figure out how the text could stays highlighted in  "TLF Editor (Advanced)"  example.


I actually got the "TLF Editor (Advanced)" code and got it to run on Flex Builder 4 but I still couldn't figure out what made the highlight stays.


I appreciate any input on this.

Again, I am building a Flex 3 RichText component based on TLF 3.0.

And I am using Flex SDK: 3.6.



  • Currently Being Moderated
    Jul 12, 2012 12:06 AM   in reply to mrHanditan

    Could you please paste here the handler (just the key part) of highlight and text-styling button? Those handlers will show how new format is applied or appended.

    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points