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

Some AI custom actions cannot be deleted #12586

Closed
3 tasks done
the-A-W opened this issue Sep 25, 2024 · 3 comments
Closed
3 tasks done

Some AI custom actions cannot be deleted #12586

the-A-W opened this issue Sep 25, 2024 · 3 comments
Assignees
Labels
Milestone

Comments

@the-A-W
Copy link

the-A-W commented Sep 25, 2024

人工智能自定义操作无法删除

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

删除该自定义操作

Screenshot or screen recording presentation

No response

Version environment

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

Log file

siyuan.log

More information

No response

@the-A-W
Copy link
Author

the-A-W commented Sep 25, 2024

aded7c76687efbef5742f222e322b300
7f1294ef7f1e238fb7af8a170bfcaa55
编辑按钮无法点击,不能使用该自定义操作也不能删除该操作

@88250
Copy link
Member

88250 commented Sep 25, 2024

请给一下能够重现问题的原始操作提示文本

@TCOTC
Copy link
Contributor

TCOTC commented Sep 25, 2024

我这里随便填了一个 JS 也能复现:

/* 点击大纲自动展开下级 JS片段 */
setTimeout(() => {
    console.log("加载代码片段:自动展开大纲");
    document.querySelector('.sy__outline').addEventListener('mousedown', event => {
        if (!event.target.classList.contains('b3-list-item__text')) return;
        if (event.target.parentNode.getAttribute("data-type") !== "NodeHeading") return;
        const b3ListItemToggle = event.target.parentNode.querySelector('.b3-list-item__toggle');
        if (b3ListItemToggle.classList.contains('fn__hidden')) return;
        b3ListItemToggle.click();
    });
}, 200);

image

image

@88250 88250 added this to the 3.1.8 milestone Sep 25, 2024
@88250 88250 added the Bug label Sep 25, 2024
@88250 88250 changed the title 人工智能自定义操作无法删除 AI custom actions cannot be deleted Sep 25, 2024
@88250 88250 changed the title AI custom actions cannot be deleted Some AI custom actions cannot be deleted Sep 25, 2024
Vanessa219 added a commit that referenced this issue Sep 26, 2024
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

4 participants