mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-06 21:00:16 +01:00
♻️ set inline type
This commit is contained in:
parent
eae9991e7b
commit
f4c1687d4d
6 changed files with 19 additions and 8 deletions
|
|
@ -9,6 +9,9 @@ export class BlockRef extends ToolbarItem {
|
|||
super(protyle, menuItem);
|
||||
// 不能用 getEventName,否则会导致光标位置变动到点击的文档中
|
||||
this.element.addEventListener("click", (event: MouseEvent & { changedTouches: MouseEvent[] }) => {
|
||||
if (protyle.toolbar.range.toString() === "") {
|
||||
return;
|
||||
}
|
||||
fixTableRange(protyle.toolbar.range);
|
||||
hintRef(protyle.toolbar.range.toString(), protyle, true);
|
||||
protyle.toolbar.element.classList.add("fn__none");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue