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

The inplace edit mode should support WYSIWYG editors that don't produce HTML

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 17.4.0-rc-1
    • 17.3.0
    • CKEditor, Edit
    • None
    • Medium
    • N/A
    • N/A

    Description

      Currently, the inplace edit mode assumes that all WYSIWYG editors expect as input HTML and output HTML. This is not true for editors like BlockNote though, see XWIKI-23025, which produce a specific JSON syntax.

      There are a few things to improve:

      • stop hard-coding the syntax used to render the content for edit (annotated HTML currently); take it instead from the configured WYSIWYG editor
      • stop injecting the rendered content in the DOM document, because it may not be HTML
      • when saving the content, let the WYSIWYG editor manage the submitted content fields; depending on the editor output, the editor may use either the RequiresHTMLConversion or the new RequiresConversion parameter and the associated extra parameters.

      Attachments

        Issue Links

          Activity

            People

              mflorea Marius Dumitru Florea
              mflorea Marius Dumitru Florea
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: