mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +01:00
This commit is contained in:
parent
694ba7108d
commit
6a31ab85aa
1 changed files with 1 additions and 1 deletions
|
|
@ -759,7 +759,7 @@ export const linkMenu = (protyle: IProtyle, linkElement: HTMLElement, focusText
|
||||||
inputElement.addEventListener("input", (event: KeyboardEvent) => {
|
inputElement.addEventListener("input", (event: KeyboardEvent) => {
|
||||||
if (!event.isComposing) {
|
if (!event.isComposing) {
|
||||||
// https://github.com/siyuan-note/siyuan/issues/4511
|
// https://github.com/siyuan-note/siyuan/issues/4511
|
||||||
linkElement.innerHTML = Lute.EscapeHTMLStr(inputElement.value).replace(/\\]/g, '<span data-type="backslash"><span>\\</span>]</span>').replace(/\\\[/g, '<span data-type="backslash"><span>\\</span>[</span>') || "";
|
linkElement.innerHTML = Lute.EscapeHTMLStr(inputElement.value) || "";
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
inputElement.addEventListener("keydown", (event) => {
|
inputElement.addEventListener("keydown", (event) => {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue