This commit is contained in:
Vanessa 2023-03-08 22:51:03 +08:00
parent faf08d6c60
commit 3856a624f8
2 changed files with 2 additions and 1 deletions

View file

@ -2,7 +2,7 @@
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, height=device-height, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, viewport-fit=cover;">
<meta name="viewport" content="width=device-width, height=device-height, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, viewport-fit=cover">
<style id="editorFontSize" type="text/css"></style>
</head>
<body class="fn__flex-column">

View file

@ -205,6 +205,7 @@ export const initKeyboardToolbar = () => {
const protyle = window.siyuan.mobile.editor.protyle;
if (slashBtnElement) {
protyle.hint.fill(decodeURIComponent(slashBtnElement.getAttribute("data-value")), protyle);
focusByRange(protyle.toolbar.range);
event.preventDefault();
event.stopPropagation();
return;