Uploaded image for project: 'Confluence Data Center'
  1. Confluence Data Center
  2. CONFSERVER-23323

Make cursor handling around placeholders in webkit and firefox more robust

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • 4.0
    • None
    • None
    • None

      NOTE: This bug report is for Confluence Server. Using Confluence Cloud? See the corresponding bug report.

      Webkit problems

      • deleting or backspacing the last character or image in the placeholder removes the whole placeholder
      • delete inside a placeholder moves cursor up (we should stay in place or else only delete subsequent content as in MS word)
      • when there are 2 empty paragraphs in the placeholder, deleting the first paragraph or backspacing the second removes the placeholder
      • selecting the whole contents of the placeholder (where there is a single or multiple lines of content with inline markup), pressing delete or backspace removes the whole placeholder
      • if there are multiple lines of content in the placeholder and the last line contains an empty list item, selecting the whole contents and hitting backspace or delete removes the whole placeholder
      • when there is a single list item inside the placeholder, pressing backspace or delete removes the whole placeholder
      • when there is a single word styled with strong, italics and underline inside the placeholder, pressing backspace or delete removes the whole placeholder
      • delete leaves behinds <p></p>

      Firefox problems

      • deleting the last character in the placeholder causes an extra line to be inserted into the body of the placeholder:
        <td class="wysiwyg-macro-body">
            <p><br/></p>
            <br/>
        </td>
        

        Notice the BR outside of the P – this is responsible for the extra line.

              dave@atlassian.com dave (Inactive)
              dave@atlassian.com dave (Inactive)
              Affected customers:
              1 This affects my team
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: