mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-06 00:38:49 +01:00
💄 database link
This commit is contained in:
parent
acbbc26ebd
commit
164478def5
1 changed files with 9 additions and 6 deletions
|
|
@ -225,7 +225,9 @@ export const editAssetItem = (protyle: IProtyle, data: IAV, cellElements: HTMLEl
|
|||
if (type === "file") {
|
||||
menu.addItem({
|
||||
iconHTML: "",
|
||||
label: `<textarea rows="1" style="margin:4px 0;width: ${isMobile() ? "200" : "360"}px" class="b3-text-field"></textarea>`,
|
||||
type: "readonly",
|
||||
label: `<div class="b3-menu__label">${window.siyuan.languages.title}</div>
|
||||
<textarea rows="1" style="margin:4px 0;width: ${isMobile() ? "200" : "360"}px" class="b3-text-field"></textarea>`,
|
||||
});
|
||||
} else {
|
||||
menu.addItem({
|
||||
|
|
@ -293,11 +295,12 @@ export const addAssetLink = (protyle: IProtyle, data: IAV, cellElements: HTMLEle
|
|||
}
|
||||
menu.addItem({
|
||||
iconHTML: "",
|
||||
label: `<textarea rows="1" style="margin:4px 0;width: ${isMobile() ? "200" : "360"}px" class="b3-text-field" placeholder="${window.siyuan.languages.link}"></textarea>`,
|
||||
});
|
||||
menu.addItem({
|
||||
iconHTML: "",
|
||||
label: `<textarea rows="1" style="margin:4px 0;width: ${isMobile() ? "200" : "360"}px" class="b3-text-field" placeholder="${window.siyuan.languages.title}"></textarea>`,
|
||||
type: "readonly",
|
||||
label: `<div class="b3-menu__label">${window.siyuan.languages.link}</div>
|
||||
<textarea rows="1" style="margin:4px 0;width: ${isMobile() ? "200" : "360"}px" class="b3-text-field"></textarea>
|
||||
<div class="fn__hr"></div>
|
||||
<div class="b3-menu__label">${window.siyuan.languages.title}</div>
|
||||
<textarea style="width: ${isMobile() ? "200" : "360"}px;margin: 4px 0;" rows="1" class="b3-text-field"></textarea>`,
|
||||
});
|
||||
const rect = target.getBoundingClientRect();
|
||||
menu.open({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue