mirror of
https://github.com/siyuan-note/siyuan.git
synced 2026-01-15 13:18:51 +01:00
🎨 标题块支持复制下方块 https://github.com/siyuan-note/siyuan/issues/5450
This commit is contained in:
parent
06b88df2dd
commit
daa29df6fc
4 changed files with 92 additions and 57 deletions
|
|
@ -31,6 +31,20 @@ import (
|
|||
"github.com/siyuan-note/siyuan/kernel/util"
|
||||
)
|
||||
|
||||
func getHeadingChildrenDOM(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
||||
arg, ok := util.JsonArg(c, ret)
|
||||
if !ok {
|
||||
return
|
||||
}
|
||||
|
||||
id := arg["id"].(string)
|
||||
dom := model.GetHeadingChildrenDOM(id)
|
||||
ret.Data = dom
|
||||
}
|
||||
|
||||
func getHeadingLevelTransaction(c *gin.Context) {
|
||||
ret := gulu.Ret.NewResult()
|
||||
defer c.JSON(http.StatusOK, ret)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue