Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-3187

Position of cursor is wrongly computed in a list item inside a document in IE

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 1.8 RC1
    • 1.7.1, 1.8 M2
    • WYSIWYG Editor
    • None
    • IE

    Description

      In the wiki editor, type:

      *** test1
      
      *** test2
      

      When editing in wysiwyg mode, the lists html will be

      <ul>
      <li><br />
            <ul>
            <li><br />
                  <ul><li>test1</li></ul>
            </li>
            </ul>
      </li>
      </ul>
      
      <ul>
      <li><br />
            <ul>
            <li><br />
                  <ul><li>test2</li></ul>
            </li>
            </ul>
      </li>
      </ul>
      

      Now, if the caret is positioned in the first list item in the second list, the endOffset reported will be 1, even if it really is before the <br /> (to test this, just type something in, it will be typed before the <br />).

      Note that this will not happen for the first list, nor for any of the items on a different level than the first, nor for any other element but the first element in the list.

      Attachments

        Activity

          People

            mflorea Marius Dumitru Florea
            lucaa Anca Luca
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: