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

In-place editor throws error and becomes non responsive sometimes when editing a section of a page

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • Major
    • 12.4-rc-1
    • 12.3-rc-1
    • Edit
    • None
    • Windows 10 Pro 64 bit, Edge 81, using a local instance XWiki 12.3 RC1 on Oracle 12c, Tomcat 9.0.31
    • Unknown
    • N/A
    • N/A

    Description

      STEPS TO REPRODUCE

      1. In a page, insert some text containing 2 or more headings, like:
        = Ne amores quidem sanctos a sapiente alienos esse arbitrantur. =
        
        Lorem ipsum dolor sit amet, consectetur adipiscing elit. Quae enim adhuc protulisti, popularia sunt, ego autem a te elegantiora desidero. 
        
        == Non quam nostram quidem, inquit Pomponius iocans; ==
        
        [[Quid enim de amicitia statueris utilitatis causa expetenda vides.>>http://loripsum.net/]] Sed quanta sit alias, nunc tantum possitne esse tanta. Tum ille timide vel potius verecunde.
        
      2. Try to edit a paragraph from the 'Pencil' button located on the right side of a heading

      EXPECTED RESULTS

      The page content enters in-place edit mode.

      ACTUAL RESULTS

      Sometimes (quite often on my tests) the in-place editing area becomes non responsive and an error is displayed in browser's console:

      jquery.js:1468 Uncaught Error: Syntax error, unrecognized expression: #xwikicontent > #HNeamoresquidemsanctosasapientealienosessearbitrantur.
          at Function.fa.error (jquery.js:1468)
          at fa.tokenize (jquery.js:2125)
          at fa.select (jquery.js:2546)
          at Function.fa [as find] (jquery.js:869)
          at n.fn.init.find (jquery.js:2792)
          at new n.fn.init (jquery.js:2909)
          at n (jquery.js:75)
          at Object.afterEdit (InplaceEditing?language=en&docVersion=1.1:1)
          at i (jquery.js:3187)
          at Object.fireWith [as resolveWith] (jquery.js:3317)

      At this point, the 'Save & View' or 'Cancel' buttons cannot be used to navigate away from the edit mode, the user has to click on another page.

      Attachments

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              iandriuta Ilie Andriuta
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: