Uploaded image for project: '{RETIRED} CKEditor Integration'
  1. {RETIRED} CKEditor Integration
  2. CKEDITOR-227

Exception when saving a document in which a macro call was cut and pasted and changes are lost

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 1.25
    • None
    • None
    • Unknown

    Description

      This issue might reproduce only for a specific way of copy-pasting the macro call.
      This issue was reproduced on Chrome, on an XWiki 9.11.3 (with CKEditor 1.25).

      Create a document with the following content:

      == Titre 1 ==
      
      
      == Titre 2 ==
      
      {{display reference="A.B.C.WebHome"/}}
      
      {{display reference="Sandbox.WebHome"/}}
      

      Note that the document A.B.C.WebHome does not exist.

      Then in the CKEditor, cut and paste the "Titre 2" and the first display macro from where they are to above "Titre 1" like in the following screenshots (the selection of the Titre 2 + macro is done by starting dragging with the mouse at the beginning of the "Titre 2" and continuing under until the display macro is shown as selected):



      Actual result:
      When hitting save an continue an exception is displayed in the console and the page reloads (in edit mode).

      In addition, all the chnages done in the document after the cut and paste of the macro are lost from the document (but this is probably another issue, related to the save and continue action - the problem of unsaved content was reported as XWIKI-15696 ).

      Attachments

        1. Selection_078.png
          Selection_078.png
          17 kB
        2. Selection_079.png
          Selection_079.png
          7 kB
        3. Selection_081.png
          Selection_081.png
          4 kB
        4. Selection_083.png
          Selection_083.png
          119 kB

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lucaa Anca Luca
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: