mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-04 15:58:49 +01:00
This commit is contained in:
parent
a3605f5f06
commit
cf999cd336
1 changed files with 2 additions and 2 deletions
|
|
@ -1007,7 +1007,7 @@ export class Toolbar {
|
|||
} else {
|
||||
textElement.value = Lute.UnEscapeHTMLStr(renderElement.getAttribute("data-content") || "");
|
||||
}
|
||||
|
||||
const oldTextValue = textElement.value;
|
||||
textElement.addEventListener("input", (event) => {
|
||||
if (!renderElement.parentElement) {
|
||||
return;
|
||||
|
|
@ -1063,7 +1063,7 @@ export class Toolbar {
|
|||
}
|
||||
});
|
||||
this.subElementCloseCB = () => {
|
||||
if (!renderElement.parentElement || protyle.disabled) {
|
||||
if (!renderElement.parentElement || protyle.disabled || oldTextValue === textElement.value) {
|
||||
return;
|
||||
}
|
||||
let inlineLastNode: Element;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue