富文本编辑器在本地的缓存不对
Open
Nobody has claimed this yet.
- Dominant language
- Vue
- Stars
- 16.3k
- Forks
- 4.7k
- PR merge metrics
- No merged PRs in 30d
Description
在缓存中,最后键入的值没有被保存。因为在keydown事件里,tinymce.get('tinymceEditer').getContent()方法取到的值不包含当前键入的字符。
建议将keydown事件改为keyup
刚刚重新又测试了一遍发现这个getContent在keydown事件里面是有概率取不到当前键入的值,不是稳定的,很奇怪
Contributor guide
No contributing guide indexed for this repository
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.
Research direction
Search the rich-text editor integration for the TinyMCE instance named tinymceEditer and inspect where its cache is updated from keyboard events. Reproduce typing locally, then verify that the final typed character is included reliably in the cached value.
Written by the indexing model from the issue text.
Assessment
- Domain
- frontend
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100