onEditorChange triggers on first render
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Stale
- Tech stack
- react, typescript
- Domain
- frontend
Research direction
Start with the linked CodeSandbox reproduction, which points to src/index.tsx, and confirm whether onEditorChange fires on the first render with either value or initialValue. Then trace how the TinyMCE React component invokes the callback; done means the callback does not fire until the editor content actually changes.
Written by the indexing model from the issue text.
Description
What is the current behavior?
The onEditorChange callback fires immidiatelly on the first render. I'm not sure if thats expected but I would expect to not fire since there was no actual change to the content.
Same happens with either the value or initialValue property.
Please provide the steps to reproduce and if possible a minimal demo of the problem via codesandbox.io or similar.
https://codesandbox.io/p/devbox/vibrant-wilson-ms4v5p
What is the expected behavior?
onEditorChange should not fire
Which versions of TinyMCE, and which browser / OS are affected by this issue? Did this work in previous versions of TinyMCE or tinymce-react?
version 4.3.2
- Dominant language
- TypeScript
- Stars
- 1.1k
- Forks
- 167
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing 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-react
-
status: escalated
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
tinymce/tinymce-react#617 ·
-
smart_paste doesn't detected pasted urls as linkPossibly taken @hardikpedia claimed this 50 days ago. Openstatus: escalated
Difficulty 3/5 1-2 days Newbie friendliness 55/100
tinymce/tinymce-react#611 · 1 comment ·
-
needs: more info
Difficulty 4/5 3-5 days Newbie friendliness 20/100
tinymce/tinymce-react#595 · 1 comment ·
-
GitHub status: escalated
Difficulty 3/5 1-2 days Newbie friendliness 25/100
tinymce/tinymce-react#501 · 5 comments · 8 reactions ·
-
bug GitHub status: escalated
Difficulty 4/5 3-5 days Newbie friendliness 25/100
tinymce/tinymce-react#403 · 5 comments · 1 reaction ·
All issues in tinymce/tinymce-react
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
tenstorrent/ttnn-visualizer#2526 ·
Maintainers usually reply within 1 day
-
trySessionCache calls /get-session twice when minting session_data (cache miss or expired cookie)Open
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
neondatabase/neon-js#301 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 2 days
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
tashfeenahmed/freellmapi#2305 ·
Maintainers usually reply within 1 day