mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-03-04 03:40:15 +01:00
This commit is contained in:
parent
d59d4afa51
commit
f3fff63b7d
2 changed files with 3 additions and 8 deletions
|
|
@ -227,12 +227,6 @@ func setNodeAttrs0(node *ast.Node, nameValues map[string]string) (oldAttrs map[s
|
|||
}
|
||||
|
||||
for name, value := range nameValues {
|
||||
if strings.HasPrefix(name, "custom-av") {
|
||||
// 属性视图设置的属性值可以为空
|
||||
node.SetIALAttr(name, value)
|
||||
continue
|
||||
}
|
||||
|
||||
if "" == strings.TrimSpace(value) {
|
||||
node.RemoveIALAttr(name)
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue