Multiple white spaces are being collapsed when pasting content to an editor

Aperta
#11,254 3 commenti 4 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
1-2 giorni
Idoneità per principianti
62/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
typescript
Ambito
frontend

Direzione di ricerca

Start by reproducing the issue with the linked TinyMCE fiddle: create editor content containing “T EST” and insert the HTML. Then trace the editor’s HTML-paste handling and look for related tests; the payload names no files or tests. Done means pasted content retains both spaces, with a regression test covering the case.

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

Descrizione

type: bug

📝 Provide detailed reproduction steps (if any)

Please provide the steps to reproduce and if possible a minimal demo of the problem via fiddle.tiny.cloud or similar.

  1. Set up an editor
  2. Select that editor
  3. Create content with double spaces, (eg. "T EST")
  4. Insert the html content
    https://fiddle.tiny.cloud/2osK1q9Amj/1
✔️ Expected result

"T EST" (Double spaces between the T and the E)should be displayed

❌ Actual result

"T EST" (Only one space between the T and the E)

❓ Possible solution

📃 Other details

  • Browser: Chrome
  • OS: Windows
  • First affected version:8
  • Worked in version:

If you'd like to see this fixed sooner, add a 👍 reaction to this post.

Lingua principale
TypeScript
Stelle
16.3k
Fork
2.3k
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

Tutte le issue di tinymce/tinymce

Issue simili

Altre issue su TypeScript

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.