Skip to content

Commit

Permalink
🐛 #11321
Browse files Browse the repository at this point in the history
  • Loading branch information
Vanessa219 committed May 11, 2024
1 parent 30b0f69 commit e04c8ff
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 38 deletions.
2 changes: 1 addition & 1 deletion app/src/protyle/toolbar/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -995,7 +995,7 @@ export class Toolbar {
/// #endif
const textElement = this.subElement.querySelector(".b3-text-field") as HTMLTextAreaElement;
if (types.includes("NodeHTMLBlock")) {
textElement.value = renderElement.querySelector("protyle-html").getAttribute("data-content") || "";
textElement.value = Lute.UnEscapeHTMLStr(renderElement.querySelector("protyle-html").getAttribute("data-content") || "");
} else if (isInlineMemo) {
textElement.value = Lute.UnEscapeHTMLStr(renderElement.getAttribute("data-inline-memo-content") || "");
} else {
Expand Down
76 changes: 39 additions & 37 deletions app/stage/protyle/js/protyle-html.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e04c8ff

Please sign in to comment.