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

在块内按 复制为引用 快捷键失效 #13361

Closed
TCOTC opened this issue Dec 3, 2024 · 5 comments
Closed

在块内按 复制为引用 快捷键失效 #13361

TCOTC opened this issue Dec 3, 2024 · 5 comments
Assignees
Labels

Comments

@TCOTC
Copy link
Contributor

TCOTC commented Dec 3, 2024

#13128 (comment)

@Vanessa219
Copy link
Member

不拉进版本了

@Misuzu2027
Copy link
Contributor

发现使用插件创建的 Protyle 中, 复制为引用 快捷键也是失效的 ,其他快捷键比如复制为嵌入块是正常的。测试版本 v3.1.15-dev1

@Vanessa219
Copy link
Member

插件示例里面是正常的

image

@Misuzu2027
Copy link
Contributor

我测试了一下,是页签中的 Protyle 没法触发快捷键,调试后发现是这行代码的判断:

} else if (activeTab.model instanceof Custom && activeTab.model.editors?.length > 0) {

解决方法应该是在创建 Protyle 后,把 Protyle 添加到 页签 的 editors 中。

@Vanessa219
Copy link
Member

这个可能需要插件作者手动添加一下了。

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