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

在公式后面粘贴图片,然后在公式后面按回车会导致公式被复制一份 #12637

Closed
3 tasks done
dream-tentacle opened this issue Sep 28, 2024 · 18 comments
Closed
3 tasks done
Assignees

Comments

@dream-tentacle
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Can the issue be reproduced with the default theme (daylight/midnight)?

  • I was able to reproduce the issue with the default theme

Could the issue be due to extensions?

  • I've ruled out the possibility that the extension is causing the problem.

Describe the problem

如题,下有录屏

Expected result

修复bug

Screenshot or screen recording presentation

2024-09-28.11-34-51.mp4

Version environment

- Version: 3.1.7
- Operating System: windows
- Browser (if used): NO

Log file

应该能复现,不行的话我再传

More information

No response

@Vanessa219
Copy link
Member

不能重现,还麻烦上传一下 .sy。

@dream-tentacle
Copy link
Author

siyuan.log

@dream-tentacle
Copy link
Author

作业一.sy.zip

@dream-tentacle
Copy link
Author

@Vanessa219 测试感觉比较宽的图片(导致换到下一行)都会这样,我这边新开一个文档也能复现

@dream-tentacle
Copy link
Author

当出现这种情况的时候,后一个公式具备如下性质:鼠标在该行后面点击,看不到闪烁的光标,按回车后又会复制,此时最后一行公式仍然具备该性质

@88250
Copy link
Member

88250 commented Sep 28, 2024

我这里也不能重现。

请检查是否是插件或者代码片段影响。

@TCOTC
Copy link
Contributor

TCOTC commented Sep 28, 2024

按回车后又会复制,此时最后一行公式仍然具备该性质

我可以复现:

default.webm

@Vanessa219
Copy link
Member

@TCOTC 这个是坏的数据,按照他第一个录屏进行操作也能复现么?

@TCOTC
Copy link
Contributor

TCOTC commented Sep 28, 2024

那个操作我没复现出来

@TCOTC
Copy link
Contributor

TCOTC commented Sep 28, 2024

严格来说我不需要插入图片就能复现公式重复的问题:

default.webm

@TCOTC
Copy link
Contributor

TCOTC commented Sep 28, 2024

不过说到跟图片相关的光标问题,我就想到 #12238

@dream-tentacle
Copy link
Author

我这里也不能重现。

请检查是否是插件或者代码片段影响。

我没用插件,文件里也没有代码

Vanessa219 added a commit that referenced this issue Sep 28, 2024
@Vanessa219
Copy link
Member

麻烦下个版本再看看

@Vanessa219 Vanessa219 self-assigned this Sep 28, 2024
@Vanessa219 Vanessa219 added this to the 3.1.8 milestone Sep 28, 2024
@88250 88250 removed this from the 3.1.8 milestone Sep 28, 2024
@88250
Copy link
Member

88250 commented Sep 28, 2024

这个改进就不归入特定版本了,谢谢。
This improvement will not be included in a specific version, thank you.

@TCOTC
Copy link
Contributor

TCOTC commented Sep 29, 2024

我这里还是选中公式的后半部分再按 Enter 就会创建一个重复的公式,这是预期内的行为吗?

@Vanessa219
Copy link
Member

好像选不中公式的后半部分,一选就全选了。

@TCOTC
Copy link
Contributor

TCOTC commented Sep 30, 2024

就是上面那个录屏的操作,可以选中公式的后半部分

Vanessa219 added a commit that referenced this issue Sep 30, 2024
@TCOTC
Copy link
Contributor

TCOTC commented Oct 1, 2024

我希望向前选中之后回车也跟向后选中保持一致,都是回车取消选中:

default.webm

Vanessa219 added a commit that referenced this issue Oct 7, 2024
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

4 participants