Iframe is broken when the component is removed from DOM by React
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 25/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- react, typescript
- Ambito
- frontend
Direzione di ricerca
Start with the TinyMCE React component’s handling of iframe removal and reload, using the linked reproduction CodeSandbox to observe the failure. The issue does not name repository files or tests, and leaves open whether the fix belongs in this component or TinyMCE itself. Done means the editor detects the iframe reload and reinitializes, as expected for an unmount/remount.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
What is the current behavior?
React uses add/remove to manipulate DOM. But when iframe is removed from DOM it looses its context (see https://github.com/whatwg/dom/issues/891).
TinyMce doesn't detect iframe reload
Please provide the steps to reproduce and if possible a minimal demo of the problem via codesandbox.io or similar.
https://codesandbox.io/embed/eloquent-heisenberg-du24mx?fontsize=14&hidenavigation=1&theme=dark
What is the expected behavior?
TinyMce detect iframe reload, and reinitialize (similarly to unmount/remount). Not sure if the fix should be part of main tinymce 🤔
But here is a workaround https://codesandbox.io/s/cool-meadow-zrr0t1?file=/src/index.js
Which versions of TinyMCE, and which browser / OS are affected by this issue? Did this work in previous versions of TinyMCE or tinymce-react?
- TinyMCE: 4.2.0
- Lingua principale
- TypeScript
- Stelle
- 1.1k
- Fork
- 167
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di tinymce/tinymce-react
-
status: escalated
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
tinymce/tinymce-react#617 ·
-
smart_paste doesn't detected pasted urls as linkForse già presa @hardikpedia l’ha presa 50 giorni fa. Apertastatus: escalated
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
tinymce/tinymce-react#611 · 1 commento ·
-
needs: more info
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
tinymce/tinymce-react#595 · 1 commento ·
-
Difficoltà 3/5 1-2 giorni Idoneità per principianti 35/100
tinymce/tinymce-react#587 · 15 commenti · 3 reazioni ·
-
GitHub status: escalated
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
tinymce/tinymce-react#501 · 5 commenti · 8 reazioni ·
Tutte le issue di tinymce/tinymce-react
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
tenstorrent/ttnn-visualizer#2526 ·
I maintainer di solito rispondono entro 1 giorno
-
trySessionCache calls /get-session twice when minting session_data (cache miss or expired cookie)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
neondatabase/neon-js#301 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
tashfeenahmed/freellmapi#2305 ·
I maintainer di solito rispondono entro 1 giorno