Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

所见即所得和即使渲染只有空格输入时,不会触发 input 事件 #1263

Closed
1962247851 opened this issue Jul 10, 2022 · 5 comments
Assignees
Milestone

Comments

@1962247851
Copy link

1962247851 commented Jul 10, 2022

编辑模式

  • wysiwyg 所见即所得模式
  • ir 即时渲染模式

描述问题

在编辑器输入框有内容时(字数统计不为0)

  • 全选后输入任意空格,编辑器内容清空,但不触发input回调,并且右上角的字数统计无变化
  • 全选后输入回车,编辑器内容清空,回调 \n ,右上角字数统计变为0

期待的结果

全选后输入空格正常回调 '\n'

截屏或录像

_2022_07_10_21_39_00_4.mp4

版本信息

  • 版本:3.8.15
  • 操作系统:Win10
  • 浏览器:Edge

其他信息

"nuxt": "^2.15.8",
"vue": "^2.6.14",

@Vanessa219
Copy link
Owner

这是 CommonMark 规范,段前和段尾的空格会被移除。

@1962247851
Copy link
Author

1962247851 commented Jul 12, 2022

不好意思,我改正一下,分屏编辑模式下会触发回调,没遵守规范

@Vanessa219
Copy link
Owner

你的意思是 ir 下输入空格会触发 input,但是 wysiwyg 不会触发?
按道理是应该触发 input 事件的,因为这是用户在 input。

@Vanessa219 Vanessa219 reopened this Jul 13, 2022
@1962247851
Copy link
Author

昨天视频传不上去
在分屏预览模式下会触发input回调,而在所见即所得和及时渲染这两个模式里不会触发

Screenrecorder-2022-07-12-22-52-35-505.mp4

@Vanessa219 Vanessa219 changed the title 全选后输入空格不触发input回调,并且右上角的字数不变 所见即所得和即使渲染只有空格输入时,不会触发 input 事件 Jul 13, 2022
@Vanessa219 Vanessa219 self-assigned this Jul 13, 2022
@Vanessa219 Vanessa219 added this to the 3.8 milestone Jul 13, 2022
@Vanessa219
Copy link
Owner

收到,已修改 issue 标题,后期修复

Vanessa219 added a commit that referenced this issue Aug 4, 2022
Vanessa219 added a commit that referenced this issue Aug 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants