onEditorChange triggers on first render
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/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 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.
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?
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
- 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 ·
-
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 ·
-
bug GitHub status: escalated
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 25/100
tinymce/tinymce-react#403 · 5 bình luận · 1 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