mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-29 12:58:48 +01:00
This commit is contained in:
parent
4cbb21e81a
commit
2230d12fbb
3 changed files with 3 additions and 2 deletions
|
|
@ -144,6 +144,7 @@
|
|||
@include text-clamp(1);
|
||||
flex: 1;
|
||||
font-size: 17px;
|
||||
min-height: 30px;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -394,7 +394,7 @@ export const initKeyboardToolbar = () => {
|
|||
return;
|
||||
}
|
||||
const buttonElement = hasClosestByMatchTag(target, "BUTTON");
|
||||
if (!buttonElement || buttonElement.getAttribute("disabled")) {
|
||||
if (!buttonElement || buttonElement.getAttribute("disabled") || getSelection().rangeCount === 0) {
|
||||
return;
|
||||
}
|
||||
event.preventDefault();
|
||||
|
|
|
|||
|
|
@ -36,7 +36,7 @@ export const handleTouchEnd = (event: TouchEvent) => {
|
|||
target.tagName === "SPAN" && window.webkit?.messageHandlers &&
|
||||
!hasClosestByAttribute(target, "data-type", "NodeBlockQueryEmbed")) {
|
||||
// ios 长按行内元素弹出菜单
|
||||
const types = target.getAttribute("data-type").split(" ")
|
||||
const types = (target.getAttribute("data-type") || "").split(" ")
|
||||
if (types.includes("inline-memo")) {
|
||||
editor.protyle.toolbar.showRender(editor.protyle, target);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue