[wp-trac] [WordPress Trac] #63712: Switching between Visual and Code editor in the Classic Editor (TinyMCE) generates new HTML elements
WordPress Trac
noreply at wordpress.org
Thu Jul 17 06:24:35 UTC 2025
#63712: Switching between Visual and Code editor in the Classic Editor (TinyMCE)
generates new HTML elements
----------------------------+-----------------------------
Reporter: goce.mitevski | Owner: (none)
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: TinyMCE | Version: 6.8.2
Severity: normal | Keywords:
Focuses: administration |
----------------------------+-----------------------------
The issue happens when creating or editing a post with the Classic editor.
Whenever you switch between the Visual and Code editor, the following new
block of content gets appended to the post body.
{{{
<div style="pointer-events: none; border: medium;"></div>
}}}
Every time the post is saved and the user is in the Visual Editor the
following line gets re-appended to the post body, so we get...
{{{
<div style="pointer-events: none; border: medium;"></div>
<div style="pointer-events: none; border: medium;"></div>
}}}
The only way to get rid of this code is to remove it from the Code editor
and save the post again. However, every time you switch back to the Visual
editor it gets added again.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/63712>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list