Iframe is broken when the component is removed from DOM by React
Dieses Issue hat noch niemand übernommen.
Bewertung
- Schwierigkeit
- 4/5
- Geschätzter Aufwand
- 3-5 Tage
- Anfängerfreundlichkeit
- 25/100
- Issue-Typ
- Bug
- Klarheit
- Größtenteils klar
- Aktivitätsstatus
- Veraltet
- Tech-Stack
- react, typescript
- Bereich
- frontend
Rechercherichtung
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.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Beschreibung
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
- Vorherrschende Sprache
- TypeScript
- Sterne
- 1.1k
- Forks
- 167
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Entwicklungsumgebung
- Kein Dockerfile und keine Docker-Compose-Datei
- Hat eine Pull-Request-Vorlage
- Beitragsleitfaden lesen
Erste Schritte
- Lesen Sie das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreiben Sie ins Issue, dass Sie es übernehmen — das erspart doppelte Arbeit.
- Forken Sie das Repository und arbeiten Sie in einem Branch.
- Öffnen Sie einen Pull Request, der die Issue-Nummer nennt.
Mehr aus tinymce/tinymce-react
-
status: escalated
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
tinymce/tinymce-react#617 ·
-
smart_paste doesn't detected pasted urls as linkEvtl. vergeben @hardikpedia hat das vor 50 Tagen übernommen. Offenstatus: escalated
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 55/100
tinymce/tinymce-react#611 · 1 Kommentar ·
-
needs: more info
Schwierigkeit 4/5 3-5 Tage Anfängerfreundlichkeit 20/100
tinymce/tinymce-react#595 · 1 Kommentar ·
-
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 35/100
tinymce/tinymce-react#587 · 15 Kommentare · 3 Reaktionen ·
-
GitHub status: escalated
Schwierigkeit 3/5 1-2 Tage Anfängerfreundlichkeit 25/100
tinymce/tinymce-react#501 · 5 Kommentare · 8 Reaktionen ·
Alle Issues in tinymce/tinymce-react
Ähnliche Issues
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 82/100
zabuton-app/meguri#875 ·
Maintainer antworten meist innerhalb von 1 Tag
-
Schwierigkeit 1/5 Unter einer Stunde Anfängerfreundlichkeit 86/100
iruzen-dono/workless#117 ·
Maintainer antworten meist innerhalb von 1 Tag
-
area:api area:web wave wave:trivial
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 67/100
-
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 62/100
Maintainer antworten meist innerhalb von 1 Tag
-
bug
Schwierigkeit 2/5 1-3 Stunden Anfängerfreundlichkeit 76/100
vetro-protocol/vetro-monorepo#1321 ·
Maintainer antworten meist innerhalb von 1 Tag