Chrome crashed when paste “。)” string in editor

Aperta
#11,262 2 commenti 0 reazioni 0 assegnatari Vedi su GitHub

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
3/5
Tempo stimato
Mezza giornata
Idoneità per principianti
38/100
Tipo di issue
Bug
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
javascript, typescript
Ambito
frontend

Direzione di ricerca

The paste path is in modules/tinymce/src/core/main/ts/paste/Clipboard.ts, where the report points at the call to pasteBin.create() around line 282. First reproduce the crash in Chrome on Windows with the pasted string, since the report gives no minimal demo, then trace the paste handler from the keydown event. Done means the string pastes and shows in the editor without crashing, and normal paste still works. The suggested preventDefault is a guess to verify, not a confirmed fix.

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. Copy a string includes "。)" charactors.
  2. Click the editor content area.
  3. Press Ctrl+v to paste the string, then chrome crashed.
✔️ Expected result

Show pasted content in editor.

❌ Actual result

Chrome crashed.

❓ Possible solution

Add e.preventDefault() to modules/tinymce/src/core/main/ts/paste/Clipboard.ts line 282, before pasteBin.create();

📃 Other details

  • Browser: Chrome
  • OS: windows11
  • First affected version: 7.9.0

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.