mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
d02795be6f
commit
b50dd5dca5
1 changed files with 1 additions and 1 deletions
|
|
@ -16,7 +16,7 @@ export const resize = (protyle: IProtyle) => {
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
// 保持光标位置不变 https://ld246.com/article/1673704873983/comment/1673765814595#comments
|
// 保持光标位置不变 https://ld246.com/article/1673704873983/comment/1673765814595#comments
|
||||||
if (protyle.toolbar.range) {
|
if (!protyle.disabled && protyle.toolbar.range) {
|
||||||
let rangeRect = protyle.toolbar.range.getBoundingClientRect();
|
let rangeRect = protyle.toolbar.range.getBoundingClientRect();
|
||||||
if (rangeRect.height === 0) {
|
if (rangeRect.height === 0) {
|
||||||
const blockElement = hasClosestBlock(protyle.toolbar.range.startContainer);
|
const blockElement = hasClosestBlock(protyle.toolbar.range.startContainer);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue