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

Cursor lost while editing while zoom in on document #9071

Closed
3 tasks done
WingDr opened this issue Aug 30, 2023 · 5 comments
Closed
3 tasks done

Cursor lost while editing while zoom in on document #9071

WingDr opened this issue Aug 30, 2023 · 5 comments
Assignees
Labels
Milestone

Comments

@WingDr
Copy link

WingDr commented Aug 30, 2023

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

视频里是我写的一个插件,在2.10.1中没有问题,但是在2.10.2中出现了视频中的情况,控制台中显示没有querySelector(应该是没找到protyle的节点),剩余的插件我已经关闭,插件本身的监听也已经关闭,布局用的是murri.js,本身没有大量的监听(2.10.1中我也使用了这个,但是没有这个问题,应该是新增的功能产生的)。

使用默认主题也是一样的,只不过录视频的时候是用的Savor主题

_2023_08_30_11_44_43_928.mp4

另外关闭这个tab以及关闭插件之后仍然出现了这种情况,呈现的效果就是输入之后光标消失

Expected result

应该确切定位到原本位置

Screenshot or screen recording presentation

No response

Version environment

- Version: 2.10.2
- Operating System: Windows
- Browser (if used):

Log file

控制台的错误完整是这样的:

main.1e7b2c2c5d76f49ec39a.js:3174 fetch post error TypeError: Cannot read properties of undefined (reading 'querySelector')
    at Jf (main.1e7b2c2c5d76f49ec39a.js:1249:24229)
    at Object.callback [as afterCB] (main.1e7b2c2c5d76f49ec39a.js:1249:26142)
    at lp (main.1e7b2c2c5d76f49ec39a.js:1384:11881)
    at ct (main.1e7b2c2c5d76f49ec39a.js:1384:6583)
    at main.1e7b2c2c5d76f49ec39a.js:1247:26355
    at main.1e7b2c2c5d76f49ec39a.js:3174:2854
(匿名) @ main.1e7b2c2c5d76f49ec39a.js:3174
Promise.catch(异步)
b @ main.1e7b2c2c5d76f49ec39a.js:3174
Ut @ main.1e7b2c2c5d76f49ec39a.js:1247
Nc @ main.1e7b2c2c5d76f49ec39a.js:1249
(匿名) @ main.1e7b2c2c5d76f49ec39a.js:3447
msgCallback @ main.1e7b2c2c5d76f49ec39a.js:3447
i.onmessage @ main.1e7b2c2c5d76f49ec39a.js:34

发成错误的代码是这里:

image

然后再进入Jf之后是这里

image

应该是这个n有问题

More information

No response

@Vanessa219
Copy link
Member

这个可能需要调试一下,你的插件发我看一下

@WingDr
Copy link
Author

WingDr commented Aug 31, 2023

siyuan-plugin-zettelkasten.zip

名字就是这个压缩包的名字,这个是编译后的版本,github的链接在这

@Vanessa219
Copy link
Member

点按钮没作用,是因为报错了么?
image

@WingDr
Copy link
Author

WingDr commented Aug 31, 2023

忘了说咋用了orz

设置界面在这里:
image

打开之后设置好这两项:
image

就是放置文档的笔记本和路径(最后没有'/')。在这个路径下面放上任意内容的文件
image

然后再打开卡片视图就行了。设置好路径之后也可以用这个快速新建文件,点保存就会新建,点取消或者点外面关闭就不会。
image

抱歉这个目前大部分都是直接复制的我之前插件的东西,所以设置起来有点复杂,辛苦了

@WingDr
Copy link
Author

WingDr commented Aug 31, 2023

点按钮没作用,是因为报错了么?

没出现东西主要是没找到块,控制台的显示已有的块的列表是空的

@Vanessa219 Vanessa219 changed the title Cursor locating error when multiple protyles exists Cursor lost while editing while zoom in on document Sep 1, 2023
@Vanessa219 Vanessa219 self-assigned this Sep 1, 2023
@Vanessa219 Vanessa219 added the Bug label Sep 1, 2023
@Vanessa219 Vanessa219 added this to the 2.10.3 milestone Sep 1, 2023
Vanessa219 added a commit that referenced this issue Sep 1, 2023
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

2 participants