mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-18 21:18:07 +01:00
Merge remote-tracking branch 'origin/dev' into dev
This commit is contained in:
commit
517a5eebcf
2 changed files with 5 additions and 9 deletions
|
|
@ -6,7 +6,7 @@ import {blockRender} from "../render/blockRender";
|
|||
import {processRender} from "../util/processCode";
|
||||
import {highlightRender} from "../render/highlightRender";
|
||||
import {hasClosestBlock, hasClosestByAttribute, hasTopClosestByAttribute, isInEmbedBlock} from "../util/hasClosest";
|
||||
import {zoomOut} from "../../menus/protyle";
|
||||
import {setFold, zoomOut} from "../../menus/protyle";
|
||||
import {disabledProtyle, enableProtyle, onGet} from "../util/onGet";
|
||||
/// #if !MOBILE
|
||||
import {getAllModels} from "../../layout/getAll";
|
||||
|
|
@ -1061,6 +1061,10 @@ export const turnsIntoTransaction = (options: {
|
|||
const undoOperations: IOperation[] = [];
|
||||
let previousId: string;
|
||||
selectsElement.forEach((item, index) => {
|
||||
if ((options.type === "Blocks2Ps" || options.type === "Blocks2Hs") &&
|
||||
item.getAttribute("data-type") === "NodeHeading" && item.getAttribute("fold") === "1") {
|
||||
setFold(options.protyle, item, undefined, undefined, false);
|
||||
}
|
||||
item.classList.remove("protyle-wysiwyg--select");
|
||||
item.removeAttribute("select-start");
|
||||
item.removeAttribute("select-end");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue