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

在文档首插入代码块后三击后退格会删除下一个相邻块的内容 #4726

Closed
Zuoqiu-Yingyi opened this issue Apr 28, 2022 · 1 comment
Assignees
Labels
Milestone

Comments

@Zuoqiu-Yingyi
Copy link
Contributor

描述问题 Describe the problem

复现步骤:

  1. 新建一个文档
  2. 在文档中随便输入几个字符
  3. 使用 API /api/block/prependBlock 往文档中插入一个非空代码块, 这里请求体如下所示, paremtID 为刚刚新建的文档块 ID
{
  "data": "```sql\n123\n```",
  "dataType": "markdown",
  "parentID": "20220428105203-l4r21a3"
}
  1. 三击刚刚插入的代码块, 之后使用 backspace 删除选中内容
  2. 代码块中所选内容删除, 下一个块内容移动到了代码块中, 刷新该文档后发现下一个块内容复制到了代码块中

期待的结果 Expected result

三击刚刚插入的代码块, 之后使用 backspace 删除选中内容时仅删除所选内容, 不影响相邻块

截屏或者录屏演示 Screenshot or screen recording presentation

思源笔记-bug反馈-28

版本环境 Version environment

  • Version: 2.0.2
  • Operatin system:
  • Browser (if used):

日志文件 Log file

更多信息 More information

@88250
Copy link
Member

88250 commented Apr 28, 2022

似乎不用 API 也是这个表现。

@88250 88250 changed the title 使用 API /api/block/prependBlock 在文档首插入代码块后三击后退格会删除下一个相邻块的内容 在文档首插入代码块后三击后退格会删除下一个相邻块的内容 Apr 28, 2022
@Vanessa219 Vanessa219 added the Bug label Apr 28, 2022
@Vanessa219 Vanessa219 added this to the 2.0.3 milestone Apr 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants