Iframe is broken when the component is removed from DOM by React
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 4/5
- Temps estimé
- 3-5 jours
- Accessibilité débutants
- 25/100
- Type d'issue
- Bug
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- react, typescript
- Domaine
- frontend
Piste de recherche
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.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
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
- Langage dominant
- TypeScript
- Étoiles
- 1.1k
- Forks
- 167
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Préparer son environnement
- Aucun Dockerfile ni fichier Docker Compose
- Propose un modèle de pull request
- Lire le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de tinymce/tinymce-react
-
status: escalated
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
tinymce/tinymce-react#617 ·
-
smart_paste doesn't detected pasted urls as linkPeut-être pris @hardikpedia l’a pris il y a 50 jours. Ouvertestatus: escalated
Difficulté 3/5 1-2 jours Accessibilité débutants 55/100
tinymce/tinymce-react#611 · 1 commentaire ·
-
needs: more info
Difficulté 4/5 3-5 jours Accessibilité débutants 20/100
tinymce/tinymce-react#595 · 1 commentaire ·
-
Difficulté 3/5 1-2 jours Accessibilité débutants 35/100
tinymce/tinymce-react#587 · 15 commentaires · 3 réactions ·
-
GitHub status: escalated
Difficulté 3/5 1-2 jours Accessibilité débutants 25/100
tinymce/tinymce-react#501 · 5 commentaires · 8 réactions ·
Toutes les issues de tinymce/tinymce-react
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
zabuton-app/meguri#875 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 1/5 Moins d'une heure Accessibilité débutants 86/100
iruzen-dono/workless#117 ·
Les mainteneurs répondent en général sous 1 jour
-
area:api area:web wave wave:trivial
Difficulté 2/5 1-3 heures Accessibilité débutants 67/100
-
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
Les mainteneurs répondent en général sous 1 jour
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 76/100
vetro-protocol/vetro-monorepo#1321 ·
Les mainteneurs répondent en général sous 1 jour