Iframe is broken when the component is removed from DOM by React
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 25/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- react, typescript
- 領域
- frontend
調査の方向性
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.
索引モデルが issue の本文から書いたものです。
説明
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
- 主要言語
- TypeScript
- スター
- 1.1k
- フォーク
- 167
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
tinymce/tinymce-react のほかの issue
-
status: escalated
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
tinymce/tinymce-react#617 ·
-
smart_paste doesn't detected pasted urls as link対応中かも @hardikpedia が 50 日前に担当しました。 オープンstatus: escalated
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
tinymce/tinymce-react#611 · コメント 1 件 ·
-
needs: more info
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
tinymce/tinymce-react#595 · コメント 1 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
tinymce/tinymce-react#587 · コメント 15 件 · リアクション 3 件 ·
-
GitHub status: escalated
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
tinymce/tinymce-react#501 · コメント 5 件 · リアクション 8 件 ·
tinymce/tinymce-react の issue をすべて見る
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
zabuton-app/meguri#875 ·
メンテナーはふだん 1 日以内に返信
-
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
iruzen-dono/workless#117 ·
メンテナーはふだん 1 日以内に返信
-
area:api area:web wave wave:trivial
難易度 2/5 1〜3時間 初心者へのやさしさ 67/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
vetro-protocol/vetro-monorepo#1321 ·
メンテナーはふだん 1 日以内に返信