mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-21 17:10:12 +01:00
This commit is contained in:
parent
03ed04a639
commit
95a296383a
1 changed files with 2 additions and 0 deletions
|
|
@ -23,6 +23,7 @@ import {renderAVAttribute} from "../protyle/render/av/blockAttr";
|
||||||
import {openAssetNewWindow} from "../window/openNewWindow";
|
import {openAssetNewWindow} from "../window/openNewWindow";
|
||||||
import {escapeHtml} from "../util/escape";
|
import {escapeHtml} from "../util/escape";
|
||||||
import {copyTextByType} from "../protyle/toolbar/util";
|
import {copyTextByType} from "../protyle/toolbar/util";
|
||||||
|
import {hideElements} from "../protyle/ui/hideElements";
|
||||||
|
|
||||||
const bindAttrInput = (inputElement: HTMLInputElement, id: string) => {
|
const bindAttrInput = (inputElement: HTMLInputElement, id: string) => {
|
||||||
inputElement.addEventListener("change", () => {
|
inputElement.addEventListener("change", () => {
|
||||||
|
|
@ -244,6 +245,7 @@ export const openFileAttr = (attrs: IObject, focusName = "bookmark", protyle?: I
|
||||||
</div>`,
|
</div>`,
|
||||||
destroyCallback() {
|
destroyCallback() {
|
||||||
focusByRange(range);
|
focusByRange(range);
|
||||||
|
hideElements(["select"], protyle)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
dialog.element.setAttribute("data-key", Constants.DIALOG_ATTR);
|
dialog.element.setAttribute("data-key", Constants.DIALOG_ATTR);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue