mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-02-12 10:14:21 +01:00
This commit is contained in:
parent
7e8e6167ff
commit
2e0b8945cf
2 changed files with 3 additions and 3 deletions
|
|
@ -364,8 +364,8 @@ export class Toolbar {
|
|||
}
|
||||
}
|
||||
contents.childNodes.forEach((item: HTMLElement, index) => {
|
||||
if (item.nodeType !== 3 && item.tagName !== "BR") {
|
||||
const types = item.getAttribute("data-type").split(" ");
|
||||
if (item.nodeType !== 3 && item.tagName !== "BR" && item.tagName !== "IMG") {
|
||||
const types = (item.getAttribute("data-type") || "").split(" ");
|
||||
if (type === "clear") {
|
||||
for (let i = 0; i < types.length; i++) {
|
||||
if (textObj && textObj.type === "text") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue