|
@@ -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) {
|