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

Wysiwyg editor 2 does not handle well properties that return null

    XMLWordPrintable

Details

    • Bug
    • Resolution: Duplicate
    • Major
    • None
    • 1.9.1
    • WYSIWYG Editor
    • None
    • Unknown

    Description

      When a property is set to null on a textarea in wysiwyg mode in syntax 2.0, then the editor uses the content of the full document in the wysiwyg.

      This is because of velocity not handling null well:

      We need to preset in wysiwyginput.vm the content field to empty

      #if($wysiwygInput && $wysiwygInput.containsKey($request.key))
      #set($content = "")
      #set($content = $wysiwygInput.get($request.key))
      #set($ok = $wysiwygInput.remove($request.key))
      #end

      Attachments

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              ludovic Ludovic Dubost
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: