Re-attaching the web component to DOM breaks editor.
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 45/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- typescript
- Domain
- frontend
Research direction
Start with the linked CodePen reproduction and repeat the remove-and-append steps in the browser. Trace the web component lifecycle around DOM removal and reattachment, then verify that formatted content is preserved and remains editable after the element is reattached.
Written by the indexing model from the issue text.
Description
Steps to reproduce:
- Go to https://codepen.io/tinymce/pen/oNLbGwP
- Type some text and apply formatting
- Select tinymce-editor in the element inspector
- Store it in global variable, then remove and add back:
const ed = $0;
document.body.removeChild($0);
document.body.appendChild(ed);
Now the editor is back but the content is not editable and old content is lost.
- Dominant language
- TypeScript
- Stars
- 21
- Forks
- 8
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from tinymce/tinymce-webcomponent
-
GitHub
Difficulty 3/5 1-2 days Newbie friendliness 35/100
tinymce/tinymce-webcomponent#55 · 2 comments ·
All issues in tinymce/tinymce-webcomponent
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug clawsweeper:linked-pr-open clawsweeper:needs-live-repro clawsweeper:no-new-fix-pr impact:message-loss issue-rating: 🐚 platinum hermit P2 regression
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
-
enhancement
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
calcite-components needs triage refactor
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Esri/calcite-design-system#15203 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 90/100
danielmiessler/LifeOS#2218 ·