mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-04 07:48:49 +01:00
This commit is contained in:
parent
a25b453a4e
commit
27f037068f
1 changed files with 1 additions and 0 deletions
|
|
@ -2033,6 +2033,7 @@ export class WYSIWYG {
|
|||
}
|
||||
// 链接,备注,样式,引用,pdf标注粘贴 https://github.com/siyuan-note/siyuan/issues/11572
|
||||
const range = getSelection().getRangeAt(0);
|
||||
protyle.toolbar.range = range;
|
||||
const inlineElement = range.startContainer.parentElement;
|
||||
if (range.toString() === "" && inlineElement.tagName === "SPAN") {
|
||||
const currentTypes = (inlineElement.getAttribute("data-type") || "").split(" ");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue