Uploaded image for project: 'Apache Flex'
  1. Apache Flex
  2. FLEX-28963

RichTextEditor.htmlText gets unnecessary tag

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK 4.5.1 (Release)
    • None
    • mx: Rich Text Editor
    • None
    • Affected OS(s): All OS Platforms
      Affected OS(s): All OS Platforms
      Language Found: English

    Description

      Steps to reproduce:
      1. Run the attached Main.mxml
      2. Type "aaaa" in RichTextEditor
      3. Change the color "aaaa" to Blue (0000FF)
      4. Make the first two letters to Bold
      5. Change the color for the last two letters to Black (000000)
      6. Click the button "->String then ->RichTextEditor.htmlText

      Actual Results:
      On the right side, you can see the log as below:
      Copy to String object >>>>>>>>>>>>>>>>>>>>>>
      <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0000FF" LETTERSPACING="0" KERNING="0"><B>aa</B><FONT COLOR="#000000">aa</FONT></FONT></P></TEXTFORMAT>
      Copy back to RichTextEditor.htmlText >>>>>>>>>>>>>>>>>>>>>>
      <TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0000FF" LETTERSPACING="0" KERNING="0"><B>aa</B><FONT COLOR="#000000">aa<FONT COLOR="#0000FF"></FONT></FONT></FONT></P></TEXTFORMAT>

      The tag below is unnecessary.
      <FONT COLOR="#0000FF"></FONT>

      Expected Results:
      No the following tag.
      <FONT COLOR="#0000FF"></FONT>

      Workaround (if any):

      Attachments

        Activity

          People

            Unassigned Unassigned
            adobejira Adobe JIRA
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: