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

WYSIWYG editor causes content loss in computed fields when adding a macro

    XMLWordPrintable

Details

    • Bug
    • Resolution: Cannot Reproduce
    • Blocker
    • None
    • 17.10.4
    • CKEditor
    • Unknown

    Description

      On pages using the  class with computed fields, adding a macro in computed field causes the content to disappear.

      The issue does not occur on standard pages, only on pages where content is stored or rendered via computed/object-based fields.

      Steps to reproduce

      1. Open an  page that uses a class containing a computed field
      2. Edit the page
      3. Add a macro into  property  that uses computed field in the WYSIWYG editor using the XWiki macro tool. 

      Actual result

      • Field content disappears

      Expected result

      • Content should remain intact adding a macro and the macro should be added
      • Computed fields should preserve their content or at least not be overwritten/lost

      Environment

      • XWiki version: 17.x (regression observed after upgrade from 16.4.6)
      • Editor: CKEditor (WYSIWYG)
      • Page type: Article class pages with computed fields
      • Macro tried: PDF Viewer: PDF Viewer Pro 2.2.1

      Attachments

        Activity

          People

            MichaelHamann Michael Hamann
            andreic Camelia Andrei
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: