This issue has been created
There are 7 updates.
 
 
XWiki Platform / cid:jira-generated-image-avatar-8406ab3d-b0a6-4b13-9b20-f817bea3bd4e XWIKI-23210 Closed

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

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-b5ce8cd2-d6b5-44b4-a6f0-12de5d59ac0c Marius Dumitru Florea created this issue on 17/May/25 08:32
 
Summary: The inplace edit mode should support WYSIWYG editors that don't produce HTML
Issue Type: cid:jira-generated-image-avatar-8406ab3d-b0a6-4b13-9b20-f817bea3bd4e Improvement
Affects Versions: 17.3.0
Assignee: Unassigned
Components: CKEditor, Edit
Created: 17/May/25 08:32
Priority: cid:jira-generated-image-static-major-4b5ffb95-5f60-437b-8fbd-a1964ae8fb46 Major
Reporter: Marius Dumitru Florea
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.
 
 

7 updates

 
cid:jira-generated-image-avatar-b5ce8cd2-d6b5-44b4-a6f0-12de5d59ac0c Changes by Marius Dumitru Florea on 17/May/25 08:33
 
Fix Version: 17.4.0-rc-1
Difficulty: Unknown Medium
Documentation: N/A
Documentation in Release Notes: N/A
Assignee: Marius Dumitru Florea
Resolution: Fixed
Status: Open Closed