Hacktoberfest 2026: le issue che i maintainer hanno segnato per ottobre, aperte e adatte ai principianti. Sfoglia le issue Hacktoberfest

Excessive nested span tags generated when repeatedly copy-pasting text with white background color

Aperta
#420 1 commento 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
3-5 giorni
Idoneità per principianti
38/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Ferma
Stack tecnologico
angular, html, typescript
Ambito
frontend, web-dev

Direzione di ricerca

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.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

needs: more info

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

  1. Initialize TinyMCE editor in Angular application
  2. Input a paragraph of text in the editor
  3. Select all text and set background color to white
  4. Randomly select a portion of text from the middle of the paragraph
  5. Copy the selected text (Ctrl+C)
  6. Position cursor at a fixed location in the editor
  7. Paste the copied text (Ctrl+V)
  8. repeat 5-7 more times

Image

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

Lingua principale
TypeScript
Stelle
346
Fork
95
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di tinymce/tinymce-angular

Tutte le issue di tinymce/tinymce-angular

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.