mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-29 12:58:48 +01:00
🎨 Support path with spaces when using the link to set the header image Fix https://github.com/siyuan-note/siyuan/issues/8113
This commit is contained in:
parent
72c7a231c2
commit
1b96187ff2
1 changed files with 2 additions and 8 deletions
|
|
@ -3,13 +3,7 @@ import {getRandom, isMobile} from "../../util/functions";
|
|||
import {hideElements} from "../ui/hideElements";
|
||||
import {uploadFiles} from "../upload";
|
||||
import {fetchPost} from "../../util/fetch";
|
||||
import {
|
||||
getRandomEmoji,
|
||||
openEmojiPanel,
|
||||
unicode2Emoji,
|
||||
updateFileTreeEmoji,
|
||||
updateOutlineEmoji
|
||||
} from "../../emoji";
|
||||
import {getRandomEmoji, openEmojiPanel, unicode2Emoji, updateFileTreeEmoji, updateOutlineEmoji} from "../../emoji";
|
||||
import {upDownHint} from "../../util/upDownHint";
|
||||
/// #if !MOBILE
|
||||
import {openGlobalSearch} from "../../search/util";
|
||||
|
|
@ -322,7 +316,7 @@ export class Background {
|
|||
dialog.destroy();
|
||||
});
|
||||
btnsElement[1].addEventListener("click", () => {
|
||||
const style = `background-image:url(${dialog.element.querySelector("input").value});`;
|
||||
const style = `background-image:url("${dialog.element.querySelector("input").value}");`;
|
||||
this.ial["title-img"] = style;
|
||||
this.render(this.ial, protyle.block.rootID);
|
||||
fetchPost("/api/attr/setBlockAttrs", {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue