mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-23 07:24:07 +01:00
This commit is contained in:
parent
6d8d730262
commit
459f3e2f04
1 changed files with 8 additions and 1 deletions
|
|
@ -73,7 +73,7 @@ const promiseTransaction = () => {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
countBlockWord([], protyle.block.rootID, true);
|
countBlockWord([], protyle.block.rootID, true);
|
||||||
if (doOperations.length === 1 && (doOperations[0].action === "unfoldHeading" || doOperations[0].action === "foldHeading" || doOperations[0].action === "setAttrs")) {
|
if (doOperations.length === 1 && (doOperations[0].action === "unfoldHeading" || doOperations[0].action === "foldHeading")) {
|
||||||
const gutterFoldElement = protyle.gutter.element.querySelector('[data-type="fold"]');
|
const gutterFoldElement = protyle.gutter.element.querySelector('[data-type="fold"]');
|
||||||
if (gutterFoldElement) {
|
if (gutterFoldElement) {
|
||||||
gutterFoldElement.removeAttribute("disabled");
|
gutterFoldElement.removeAttribute("disabled");
|
||||||
|
|
@ -116,6 +116,13 @@ const promiseTransaction = () => {
|
||||||
}
|
}
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
if (doOperations[0].action === "setAttrs") {
|
||||||
|
const gutterFoldElement = protyle.gutter.element.querySelector('[data-type="fold"]');
|
||||||
|
if (gutterFoldElement) {
|
||||||
|
gutterFoldElement.removeAttribute("disabled");
|
||||||
|
}
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
let range: Range;
|
let range: Range;
|
||||||
if (getSelection().rangeCount > 0) {
|
if (getSelection().rangeCount > 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue