Iframe is broken when the component is removed from DOM by React
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- react, typescript
- Área
- frontend
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- TypeScript
- Estrellas
- 1.1k
- Forks
- 167
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Tiene una plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de tinymce/tinymce-react
-
status: escalated
Dificultad 2/5 1-3 horas Aptitud para principiantes 62/100
tinymce/tinymce-react#617 ·
-
smart_paste doesn't detected pasted urls as linkPosiblemente ocupada @hardikpedia la tomó hace 50 días. Abiertostatus: escalated
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
tinymce/tinymce-react#611 · 1 comentario ·
-
needs: more info
Dificultad 4/5 3-5 días Aptitud para principiantes 20/100
tinymce/tinymce-react#595 · 1 comentario ·
-
Dificultad 3/5 1-2 días Aptitud para principiantes 35/100
tinymce/tinymce-react#587 · 15 comentarios · 3 reacciones ·
-
GitHub status: escalated
Dificultad 3/5 1-2 días Aptitud para principiantes 25/100
tinymce/tinymce-react#501 · 5 comentarios · 8 reacciones ·
Todos los issues de tinymce/tinymce-react
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
tenstorrent/ttnn-visualizer#2526 ·
Los mantenedores suelen responder en 1 día
-
trySessionCache calls /get-session twice when minting session_data (cache miss or expired cookie)Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
neondatabase/neon-js#301 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 78/100
Los mantenedores suelen responder en 2 días
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
tashfeenahmed/freellmapi#2305 ·
Los mantenedores suelen responder en 1 día