mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-16 22:50:13 +01:00
This commit is contained in:
parent
cce7d31652
commit
0211e04c2b
2 changed files with 4 additions and 6 deletions
|
|
@ -352,9 +352,6 @@ export class Title {
|
|||
}
|
||||
|
||||
public render(protyle: IProtyle, response: IWebSocketData) {
|
||||
if (this.element.getAttribute("data-render") === "true" && this.element.dataset.nodeId === protyle.block.rootID) {
|
||||
return false;
|
||||
}
|
||||
if (protyle.options.render.hideTitleOnZoom) {
|
||||
if (protyle.block.showAll) {
|
||||
this.element.classList.add("fn__none");
|
||||
|
|
@ -362,6 +359,9 @@ export class Title {
|
|||
this.element.classList.remove("fn__none");
|
||||
}
|
||||
}
|
||||
if (this.element.getAttribute("data-render") === "true" && this.element.dataset.nodeId === protyle.block.rootID) {
|
||||
return false;
|
||||
}
|
||||
this.element.setAttribute("data-node-id", protyle.block.rootID);
|
||||
if (response.data.ial[Constants.CUSTOM_RIFF_DECKS]) {
|
||||
this.element.setAttribute(Constants.CUSTOM_RIFF_DECKS, response.data.ial[Constants.CUSTOM_RIFF_DECKS]);
|
||||
|
|
|
|||
|
|
@ -65,7 +65,7 @@ export const onGet = (options: {
|
|||
options.protyle.block.parentID = options.data.data.parentID;
|
||||
options.protyle.block.parent2ID = options.data.data.parent2ID;
|
||||
options.protyle.block.rootID = options.data.data.rootID;
|
||||
options.protyle.block.showAll = false;
|
||||
options.protyle.block.showAll = options.action.includes(Constants.CB_GET_ALL);
|
||||
options.protyle.block.mode = options.data.data.mode;
|
||||
options.protyle.block.blockCount = options.data.data.blockCount;
|
||||
options.protyle.block.scroll = options.data.data.scroll;
|
||||
|
|
@ -143,8 +143,6 @@ const setHTML = (options: {
|
|||
}
|
||||
});
|
||||
options.content = doc.body.innerHTML;
|
||||
|
||||
protyle.block.showAll = options.action.includes(Constants.CB_GET_ALL);
|
||||
const REMOVED_OVER_HEIGHT = protyle.contentElement.clientHeight * 8;
|
||||
const updateReadonly = typeof options.updateReadonly === "undefined" ? protyle.wysiwyg.element.innerHTML === "" : options.updateReadonly;
|
||||
if (options.action.includes(Constants.CB_GET_APPEND)) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue