Details
-
Bug
-
Status: Open
-
Major
-
Resolution: Unresolved
-
Adobe Flex SDK 3.1 (Release)
-
None
-
None
-
Affected OS(s): All OS Platforms
Language Found: English
Description
Steps to reproduce:
1. Add a RTE component to your application.
2. Launch Program.
3. Type some words: "This is a special test."
4. Highlight "special". Choose Red #FF0000 from the color picker. Notice word turns red.
5. Highlight "test". Choose Red #FF0000 from the color picker. Notice word DOES NOT turn red.
I have fixed this bug and included the classes as attachments.
Workaround (if any):
The class needs to be modified slightly and then recompiled or used in a different namespace.
See attached for notes.
There are two changes:
ColorPicker.as
change one line in function "set selectedIndex(value:int):void"
// CRUZ: Replaced commented section with && 1 because you need to update the color every time
// Otherwise if you select one word in the RTE and choose red, and then select
// another word and choose red again, then the text color is not updated.
FROM:
if ((selectedIndex != -1 || !isNaN(selectedColor)) && value != selectedIndex)
TO:
if ((selectedIndex != -1 || !isNaN(selectedColor)) && 1)// value != selectedIndex)
SwatchPanel.as
change one line in function "swatches_clickHandler(event:MouseEvent):void"
// CRUZ: Replaced commented section with 1 because you need to update the color every time
// Otherwise if you select one word in the RTE and choose red, and then select
// another word and choose red again, then the text color is not updated.
FROM:
if (ColorPicker(owner).selectedIndex != selectedIndex)
TO:
if (1)//ColorPicker(owner).selectedIndex != selectedIndex)