mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-05-21 03:21:21 +08:00
This commit is contained in:
parent
89c55026ab
commit
178a7e8d77
@ -995,7 +995,7 @@ export class Toolbar {
|
||||
/// #endif
|
||||
const textElement = this.subElement.querySelector(".b3-text-field") as HTMLTextAreaElement;
|
||||
if (types.includes("NodeHTMLBlock")) {
|
||||
textElement.value = Lute.UnEscapeHTMLStr(renderElement.querySelector("protyle-html").getAttribute("data-content") || "");
|
||||
textElement.value = renderElement.querySelector("protyle-html").getAttribute("data-content") || "";
|
||||
} else if (isInlineMemo) {
|
||||
textElement.value = Lute.UnEscapeHTMLStr(renderElement.getAttribute("data-inline-memo-content") || "");
|
||||
} else {
|
||||
|
2
app/stage/protyle/js/protyle-html.js
vendored
2
app/stage/protyle/js/protyle-html.js
vendored
@ -7,7 +7,7 @@ class ProtyleHtml extends HTMLElement {
|
||||
super()
|
||||
const shadowRoot = this.attachShadow({mode: 'open'})
|
||||
this.display = this.shadowRoot
|
||||
const dataContent = Lute.UnEscapeHTMLStr(this.getAttribute('data-content'))
|
||||
const dataContent = this.getAttribute('data-content')
|
||||
this.display.innerHTML = dataContent
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user