mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-08 08:14:21 +01:00
This commit is contained in:
parent
2b459bc269
commit
8ea0a334aa
1 changed files with 2 additions and 1 deletions
|
|
@ -346,7 +346,8 @@ const renderKeyboardToolbar = () => {
|
|||
const range = getSelection().getRangeAt(0);
|
||||
const isProtyle = hasClosestByClassName(range.startContainer, "protyle-wysiwyg", true);
|
||||
const nodeElement = hasClosestBlock(range.startContainer);
|
||||
if (!isProtyle || !nodeElement) {
|
||||
if (!isProtyle || !nodeElement ||
|
||||
hasClosestByAttribute(range.startContainer, "data-type", "av-search")) {
|
||||
dynamicElements[0].classList.add("fn__none");
|
||||
dynamicElements[1].classList.add("fn__none");
|
||||
return;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue