Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8351878

RichTextArea: Pasting from RTF doesn't apply formatting

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • jfx25
    • javafx
    • None
    • Cause Known

      Steps to reproduce:

      1. Open the attached "RichTextArea_Demo.docx" file in Microsoft Word
      2. In Word: "Select-All" then "Copy"
      3. Launch the "RichEditor Demo": `ant run-richeditor-demo`
      4. Click in the RichEditor Demo Window to get focus
      5. Paste

      BUG: The text will be pasted, but the formatting will be lost

      See the attached screenshot.

      This only happens with the RTF import. When copying the same text from the RichTextArea Demo (which I used as the original source to generate the .docx file), and paste it into the RichEditor Demo window, which uses an internal format, it works as expected.

        1. RichTextArea_Demo.docx
          40 kB
          Kevin Rushforth
        2. RichText RTF Paste Bug.png
          439 kB
          Kevin Rushforth

            angorya Andy Goryachev
            kcr Kevin Rushforth
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: