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

In-line editing should work with the raw property value not the display value

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 12.10
    • Fix Version/s: 13.4-rc-1
    • Component/s: Live Data
    • Labels:
      None
    • Tests:
      Unit, Integration
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Pull Request Status:
      Pull Request accepted
    • Similar issues:

      Description

      ATM if you double click on a cell that uses the HTML displayer you end up editing the HTML code. This is not right. A property that uses the HTML displayer and that is editable must have a raw property value. For live tables we have this naming convention:

      {
        ...
        "someProperty": "display value (could be HTML)",
        "someProperty_value": "raw property value",
        ...
      }
      

      We also need to figure out how to integrate the property (edit) displayers that are available on the server side. This means that the live data HTML displayer should:

      • when entering edit mode: try to load the actual edit displayer from the server
      • when leaving edit mode: call the displayer from the server (the one that produced the initial HTML we got as property value)

        Attachments

          Activity

            People

            Assignee:
            mleduc Manuel Leduc
            Reporter:
            mflorea Marius Dumitru Florea
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: