Iframe is broken when the component is removed from DOM by React
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 25/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Đình trệ
- Công nghệ
- react, typescript
- Lĩnh vực
- frontend
Hướng nghiên cứu
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.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- TypeScript
- Star
- 1.1k
- Fork
- 167
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của tinymce/tinymce-react
-
status: escalated
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
tinymce/tinymce-react#617 ·
-
smart_paste doesn't detected pasted urls as linkCó thể đã có người làm @hardikpedia đã nhận 50 ngày trước. Đang mởstatus: escalated
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 55/100
tinymce/tinymce-react#611 · 1 bình luận ·
-
needs: more info
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
tinymce/tinymce-react#595 · 1 bình luận ·
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
tinymce/tinymce-react#587 · 15 bình luận · 3 reaction ·
-
GitHub status: escalated
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 25/100
tinymce/tinymce-react#501 · 5 bình luận · 8 reaction ·
Tất cả issue của tinymce/tinymce-react
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
zabuton-app/meguri#875 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 86/100
iruzen-dono/workless#117 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
area:api area:web wave wave:trivial
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
vetro-protocol/vetro-monorepo#1321 ·
Maintainer thường phản hồi trong vòng 1 ngày