简体   繁体   中英

how to set text highlight color in flex?

I want to set the background color or highlight color of selected text in text area in Flex as we can set highlight color of text in MS Word.

And after setting this highlight color user can also edit this text without disappearing this highlight color.

Please help me doing this.

Any help or any idea will be appreciated.

Thanks.

U can use the TextRange class to hightlight text it highlights

Text Highlighter

Then add the keypress eventListener for the textArea and check with proper condition

and set the text Highlighter during edit.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM