This issue has been created
There is 1 update.
 
 
XWiki Platform / cid:jira-generated-image-avatar-e6ce38fd-b325-46c7-a393-76a7594403d7 XWIKI-22890 Open

Don't output unnecessary Group Blocks in list items when copy pasting HTML content in WYSIWYG

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-4a8a3fac-bbca-4eda-957d-eff1b229327e Vincent Massol created this issue on 19/Feb/25 10:37
 
Summary: Don't output unnecessary Group Blocks in list items when copy pasting HTML content in WYSIWYG
Issue Type: cid:jira-generated-image-avatar-e6ce38fd-b325-46c7-a393-76a7594403d7 Improvement
Affects Versions: 17.1.0-rc-1
Assignee: Unassigned
Components: WYSIWYG Editor
Created: 19/Feb/25 10:37
Priority: cid:jira-generated-image-static-major-5710882f-6113-4353-89f0-5be311e4e2a0 Major
Reporter: Vincent Massol
Description:

If the HTML copied has list items that contain single blocks (e.g. images) wrapped inside a DIV, remove the unnecessary DIVs by using a filter.

Example HTML:

<ul>
<li><div><img src="imagesrc"/></li>
</ul>

Example resulting xwiki syntax:

* (((
localimagesrc
)))

Expected:

* localimagesrc
 
 

1 update

 
cid:jira-generated-image-avatar-4a8a3fac-bbca-4eda-957d-eff1b229327e Changes by Vincent Massol on 19/Feb/25 10:38
 
Description: If the HTML copied has list items that contain single blocks (e.g. images) wrapped inside a DIV, remove the unnecessary DIVs by using a filter.

Example HTML:

{code}
<ul>
<li><div><img src="imagesrc"/></
div></ li>
</ul>
{code}

Example resulting xwiki syntax:

{noformat}
* (((
localimagesrc
)))
{noformat}

Expected:

{noformat}
* localimagesrc
{noformat}