mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-18 15:40:12 +01:00
🎨 Improve av https://github.com/siyuan-note/siyuan/issues/15524
This commit is contained in:
parent
7b8d163723
commit
31667b0964
1 changed files with 3 additions and 1 deletions
|
|
@ -4270,9 +4270,9 @@ func updateAttributeViewValue(tx *Transaction, attrView *av.AttributeView, keyID
|
||||||
if "" == content {
|
if "" == content {
|
||||||
// 使用动态锚文本
|
// 使用动态锚文本
|
||||||
val.Block.Content = util.UnescapeHTML(blockText)
|
val.Block.Content = util.UnescapeHTML(blockText)
|
||||||
|
updateBlockValueStaticText(tx, node, tree, avID, "")
|
||||||
} else {
|
} else {
|
||||||
val.Block.Content = content
|
val.Block.Content = content
|
||||||
// 设置静态锚文本 Database-bound block primary key supports setting static anchor text https://github.com/siyuan-note/siyuan/issues/10049
|
|
||||||
updateBlockValueStaticText(tx, node, tree, avID, content)
|
updateBlockValueStaticText(tx, node, tree, avID, content)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
@ -4463,6 +4463,8 @@ func bindBlockAv0(tx *Transaction, avID string, node *ast.Node, tree *parse.Tree
|
||||||
}
|
}
|
||||||
|
|
||||||
func updateBlockValueStaticText(tx *Transaction, node *ast.Node, tree *parse.Tree, avID, text string) {
|
func updateBlockValueStaticText(tx *Transaction, node *ast.Node, tree *parse.Tree, avID, text string) {
|
||||||
|
// 设置静态锚文本 Database-bound block primary key supports setting static anchor text https://github.com/siyuan-note/siyuan/issues/10049
|
||||||
|
|
||||||
if nil == node {
|
if nil == node {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue