mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-07-03 14:09:06 +02:00
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user