Deleting a line from editor unexpectedly removes formatting

XMLWordPrintable

    • Type: Bug
    • Resolution: Cannot Reproduce
    • Priority: Low
    • None
    • Affects Version/s: 4.0.5
    • Component/s: None
    • Environment:

      Firefox 8.0.1 on OS X 10.7.2

      The RTE produces surprising results when using the delete key at the beginning of a line, when applied to a line that already has formatting.

      For example, create a new page and enter the following:

      Line 1.
      
      
      
      h3. Line 3.
      
      Line 4.
      

      Note that line 2 is blank and contains no text. (Just press enter.) The editor should appear as shown in ss1.png.

      Next, click with the pointer at the beginning of line 3. Then press <delete> (or <backspace> if you're on a PC). The results are as shown in ss2.png.

      The problem is that Confluence is deleting the style applied to line 3 when the <delete> key is pressed. This behavior would make complete sense if line 2 had any content (since the text "Line 3" would end up being joined with line 2 text in what is effectively a paragraph style). However, the behavior is not intuitive when line 2 is a blank line.

      In this case, it seems clear to me that the user's intent is to delete the blank line above where the cursor lives, without changing any styles.

      (For what it's worth, I see that Microsoft Word also works the way I described when used with paragraph styles.)

      Update:

      In addition to the above, the results are also borked using a different sequence of operations, even without a blank line being involved. Follow these steps to reproduce (also with Conf 4.0.5 and FF 8.0.1 on OS X):

      • Create a new page.
      • Type "Foo bar. This is a test."
      • Press enter
      • Type "This is more stuff."
      • Click "Heading 3" in the style dropdown
      • Use the pointer to place the cursor immediately before the word "This" on the first line.
      • Press enter to move the text "This is a test." down to the next line.
      • Press <shift-down> to highlight the entire line "This is a test."
      • Press <delete> to delete the line "This is a test."
      • Note that the Heading 3 style applied to the "This is more stuff." line has disappeared.

        1. ss1.png
          ss1.png
          20 kB
        2. ss2.png
          ss2.png
          20 kB

            Assignee:
            Steve Haffenden (Inactive)
            Reporter:
            Scott Dudley [Inactive]
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: