Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
Adobe Flex SDK Previous
-
None
-
Affected OS(s): All OS Platforms
Affected OS(s): All OS Platforms
Language Found: English
Description
Reproduction:
1. View the MXML
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.macromedia.com/2005/mxml" xmlns="*">
<mx:Script>
<![CDATA[
public var htmlData:String="<textformat leading='2'><p align='center'><b><font size='40'>Formatted Text</font></b></p></textformat><BR><BR><textformat leading='2'><p align='left'><font face='_sans' size='12' color='#000000'> this is the text i am planning to use for testing rich text editor component. this paragrapgh will contain some text in <b>bold</b> ,<i>italic</i> and <u>underlined</u>. also the combination of <b><i>bold and italic</i></b>,<b><u>bold and underline</u></b> and <i><u>italic and underline</u></i>.You might notice that this text is in <b><i><u>bold, italic and underlined</u></i></b></font></p></textformat><BR><BR><textformat leading='2'><p align='left'><font face='verdana' size='12' color='#ff0000'>this text is red verdana of size 12</font><br><font face='georgia' size='14' color='#00ff00'>this text is green georgia of size 14</font><br><font face='arial' size='16' color='#0000ff'>this text is blue arial of size 16</font><br></p></textformat><BR><BR><textformat leading='2'><p><u><font face='arial' size='12' color='#ff0000'>this a red underlined arial font with no align set</font></u></p><p align='right'><font face='verdana' size='12' color='#00ff00'><b>this a green bold verdana font with align set to right</b></font></p><i><p align='center'><font face='georgia' size='12' color='#0000ff'>this a blue italic georgia font with align set to center</font></p></i><p align='left'>this is an unformatted text aligned align set to left</p></textformat><BR><BR><textformat leading='2'><li>bulleted text</li><li><font face='arial' size='12' color='#0000ff'><u><a href='www.macromedia.com'>bulleted link 1 with underline and blue color set</a></u></font></li><li><font color='#ff0000'><b>red bold text</b></font></li><li><font face='verdana' size='12'>verdana 12</font></li></textformat><BR><BR><textformat leading='2'><p align='left'><a href='www.macromedia.com'>A Normal link</a></p><p align='left'><b><u><a href='www.macromedia.com'>Formatted link 1</a></u></b></p><p align='left'><font face='verdana' size='12' color='#00ff00'><a href='www.macromedia.com'>Formatted link 2</a></font></p><p align='center'><a href='www.macromedia.com'>Aligned to center link</a></p><p align='right'><a href='www.macromedia.com'>Aligned to right link</a></p></textformat><BR><BR><textformat leading='2'><p align='center'>---------------------------------------</p><textformat>";
]]
>
</mx:Script>
<mx:Label text="Type HTML Code and Click apply to check whether the applied text in RTE is proper and check the status." />
<mx:TextArea width="640" height="400" id="myrte" htmlText="
"/>
<mx:Button label="Apply" click="myrte.htmlText = htmlData"/>
</mx:Application>
2. Now edit the TextArea [type some text]
3. Now click the apply button [It populated the TextArea with htmlText defined in htmlData]
Actual Results: Note the formatting is not the same as defined in the htmlText [var htmlData]
Expected Results:
Workaround: