onEditorChange triggers on first render
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 35/100
- Tipo di issue
- Bug
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- react, typescript
- Ambito
- frontend
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- TypeScript
- Stelle
- 1.1k
- Fork
- 167
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Ha un modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di tinymce/tinymce-react
-
status: escalated
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
tinymce/tinymce-react#617 ·
-
smart_paste doesn't detected pasted urls as linkForse già presa @hardikpedia l’ha presa 50 giorni fa. Apertastatus: escalated
Difficoltà 3/5 1-2 giorni Idoneità per principianti 55/100
tinymce/tinymce-react#611 · 1 commento ·
-
needs: more info
Difficoltà 4/5 3-5 giorni Idoneità per principianti 20/100
tinymce/tinymce-react#595 · 1 commento ·
-
GitHub status: escalated
Difficoltà 3/5 1-2 giorni Idoneità per principianti 25/100
tinymce/tinymce-react#501 · 5 commenti · 8 reazioni ·
-
bug GitHub status: escalated
Difficoltà 4/5 3-5 giorni Idoneità per principianti 25/100
tinymce/tinymce-react#403 · 5 commenti · 1 reazione ·
Tutte le issue di tinymce/tinymce-react
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 72/100
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
tenstorrent/ttnn-visualizer#2526 ·
I maintainer di solito rispondono entro 1 giorno
-
trySessionCache calls /get-session twice when minting session_data (cache miss or expired cookie)Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 76/100
neondatabase/neon-js#301 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
I maintainer di solito rispondono entro 2 giorni
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
tashfeenahmed/freellmapi#2305 ·
I maintainer di solito rispondono entro 1 giorno