mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-03 15:28:49 +01:00
This commit is contained in:
parent
a5e281f0b5
commit
98e4f27deb
1 changed files with 1 additions and 1 deletions
|
|
@ -525,7 +525,7 @@ export const keydown = (protyle: IProtyle, editorElement: HTMLElement) => {
|
|||
const selectElements = Array.from(protyle.wysiwyg.element.querySelectorAll(".protyle-wysiwyg--select"));
|
||||
if (selectElements.length === 0) {
|
||||
const inlineElement = hasClosestByAttribute(range.startContainer, "data-type", null);
|
||||
if (inlineElement) {
|
||||
if (inlineElement && inlineElement.tagName === "SPAN") {
|
||||
const types = inlineElement.getAttribute("data-type").split(" ");
|
||||
if (types.length > 0) {
|
||||
protyle.toolbar.range = range;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue