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

Wrong buttons state of RichTextEditor during selecting line of text (or all text) after assigning htmlText

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • Adobe Flex SDK Previous
    • None
    • mx: Rich Text Editor
    • None
    • Affected OS(s): Windows
      Browser: Internet Explorer 7.x
      Language Found: English

    Description

      Steps to reproduce:
      try to run the code
      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute">
      <mx:Script>
      <![CDATA[
      [Bindable]
      private var text: String = '<TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0"><B><I>first</I></B></FONT></P></TEXTFORMAT><TEXTFORMAT LEADING="2"><P ALIGN="LEFT"><FONT FACE="Verdana" SIZE="10" COLOR="#0B333C" LETTERSPACING="0" KERNING="0"><I>second</I></FONT></P></TEXTFORMAT>';
      ]]
      >
      </mx:Script>
      <mx:RichTextEditor id="richTextEditor" htmlText="

      {text}

      "/>
      </mx:Application>

      Actual Results:
      1. Click word "first". Buttons "B" and "I" are pressed. Double click word "first". Word "first" is selected, but buttons "B" and "I" are not pressed. This is bug.
      2. Press Ctrl+A. Text becomes selected. But buttons "B" and "I" are not pressed. This is bug.

      The bug reason is the richTextEditor.textArea.text contains "\r" symbol, because of two lines in text.

      Workaround (if any): not found

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated: