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;
|
||||
}
|
||||
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"]');
|
||||
if (gutterFoldElement) {
|
||||
gutterFoldElement.removeAttribute("disabled");
|
||||
|
@ -116,6 +116,13 @@ const promiseTransaction = () => {
|
|||
}
|
||||
return;
|
||||
}
|
||||
if (doOperations[0].action === "setAttrs") {
|
||||
const gutterFoldElement = protyle.gutter.element.querySelector('[data-type="fold"]');
|
||||
if (gutterFoldElement) {
|
||||
gutterFoldElement.removeAttribute("disabled");
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
let range: Range;
|
||||
if (getSelection().rangeCount > 0) {
|
||||
|
|
Loading…
Add table
Reference in a new issue