mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
4ccdc53dc5
commit
c760e203ca
1 changed files with 3 additions and 1 deletions
|
|
@ -328,15 +328,17 @@ export const openFileAttr = (attrs: IObject, id: string, focusName = "bookmark")
|
||||||
item.editor.protyle.wysiwyg.renderCustom(attrsResult);
|
item.editor.protyle.wysiwyg.renderCustom(attrsResult);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
/// #endif
|
||||||
fetchPost("/api/attr/resetBlockAttrs", {id, attrs: attrsResult}, () => {
|
fetchPost("/api/attr/resetBlockAttrs", {id, attrs: attrsResult}, () => {
|
||||||
|
/// #if !MOBILE
|
||||||
if (attrsResult.bookmark !== attrs.bookmark) {
|
if (attrsResult.bookmark !== attrs.bookmark) {
|
||||||
const bookmark = getDockByType("bookmark").data.bookmark;
|
const bookmark = getDockByType("bookmark").data.bookmark;
|
||||||
if (bookmark instanceof Bookmark) {
|
if (bookmark instanceof Bookmark) {
|
||||||
bookmark.update();
|
bookmark.update();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
/// #endif
|
||||||
});
|
});
|
||||||
/// #endif
|
|
||||||
dialog.destroy();
|
dialog.destroy();
|
||||||
});
|
});
|
||||||
dialog.element.querySelectorAll(".b3-text-field").forEach((item: HTMLInputElement) => {
|
dialog.element.querySelectorAll(".b3-text-field").forEach((item: HTMLInputElement) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue