mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-07-03 14:09:06 +02:00
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user