-
Notifications
You must be signed in to change notification settings - Fork 95
Open
Labels
needs: more infoFurther information is requestedFurther information is requested
Description
Bug Description
When using TinyMCE with Angular, repeatedly copy-pasting text segments with white background color results in excessive nested <span> tags being generated in the editor content.
Steps to Reproduce
- Initialize TinyMCE editor in Angular application
- Input a paragraph of text in the editor
- Select all text and set background color to white
- Randomly select a portion of text from the middle of the paragraph
- Copy the selected text (Ctrl+C)
- Position cursor at a fixed location in the editor
- Paste the copied text (Ctrl+V)
- repeat 5-7 more times
Expected Behavior
The pasted text should maintain clean HTML structure with minimal nested tags, similar to:
<p><span style="background-color: white;">Your text content</span></p>Actual Behavior
After multiple copy-paste operations, the HTML structure becomes heavily nested with multiple <span> tags:
<p>
<span style="background-color: white;">
<span style="background-color: white;">
<span style="background-color: white;">
<span style="background-color: white;">
Your text content
</span>
</span>
</span>
</span>
</p>This will reproduce in your example your example
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
needs: more infoFurther information is requestedFurther information is requested
