Excessive nested span tags generated when repeatedly copy-pasting text with white background color
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 38/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- angular, html, typescript
Research direction
Start by reproducing the issue in the linked TinyMCE Angular example and inspect the generated HTML after repeated copy-paste operations. Done means the pasted content no longer accumulates redundant nested span tags while retaining the white background color.
Written by the indexing model from the issue text.
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
- Dominant language
- TypeScript
- Stars
- 346
- Forks
- 94
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from tinymce/tinymce-angular
-
Difficulty 3/5 1-2 days Newbie friendliness 45/100
tinymce/tinymce-angular#425 · 4 comments ·
-
Difficulty 3/5 1-2 days Newbie friendliness 35/100
tinymce/tinymce-angular#413 · 1 comment ·
-
needs: more info
Difficulty 4/5 3-5 days Newbie friendliness 42/100
tinymce/tinymce-angular#412 · 3 comments ·
-
GitHub status: escalated
Difficulty 4/5 3-5 days Newbie friendliness 35/100
tinymce/tinymce-angular#167 · 11 comments · 1 reaction ·
All issues in tinymce/tinymce-angular
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
ontola/atomic-server#1625 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
melgarafael/DeskcommCRM#1451 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 82/100
-
bug via-triage
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
bot:ai-assisted component:compact-js status:untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
midnightntwrk/midnight-sdk#403 ·