♻️ set inline type

This commit is contained in:
Vanessa 2022-09-26 00:14:09 +08:00
parent eae9991e7b
commit f4c1687d4d
6 changed files with 19 additions and 8 deletions

View file

@ -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");