mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-23 01:50:12 +01:00
This commit is contained in:
parent
801e250621
commit
c24c0d6af7
1 changed files with 1 additions and 3 deletions
|
|
@ -908,8 +908,6 @@ export const zoomOut = (options: {
|
||||||
id: options.id,
|
id: options.id,
|
||||||
size: options.id === options.protyle.block.rootID ? window.siyuan.config.editor.dynamicLoadBlocks : Constants.SIZE_GET_MAX,
|
size: options.id === options.protyle.block.rootID ? window.siyuan.config.editor.dynamicLoadBlocks : Constants.SIZE_GET_MAX,
|
||||||
}, getResponse => {
|
}, getResponse => {
|
||||||
// 折叠标题块下内容退出聚焦定位 https://github.com/siyuan-note/siyuan/issues/13577
|
|
||||||
const parents2Id = options.protyle.block.parent2ID;
|
|
||||||
if (options.isPushBack) {
|
if (options.isPushBack) {
|
||||||
onGet({
|
onGet({
|
||||||
data: getResponse,
|
data: getResponse,
|
||||||
|
|
@ -927,7 +925,7 @@ export const zoomOut = (options: {
|
||||||
}
|
}
|
||||||
// https://github.com/siyuan-note/siyuan/issues/4874
|
// https://github.com/siyuan-note/siyuan/issues/4874
|
||||||
if (options.focusId) {
|
if (options.focusId) {
|
||||||
const focusElement = options.protyle.wysiwyg.element.querySelector(`[data-node-id="${options.focusId}"], [data-node-id="${parents2Id}"]`);
|
const focusElement = options.protyle.wysiwyg.element.querySelector(`[data-node-id="${options.focusId}"]`);
|
||||||
if (focusElement) {
|
if (focusElement) {
|
||||||
// 退出聚焦后块在折叠中 https://github.com/siyuan-note/siyuan/issues/10746
|
// 退出聚焦后块在折叠中 https://github.com/siyuan-note/siyuan/issues/10746
|
||||||
let showElement = focusElement;
|
let showElement = focusElement;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue