🎨 Improve handling of copy block ref when including images https://github.com/siyuan-note/siyuan/issues/9317

This commit is contained in:
Daniel 2023-09-30 17:56:47 +08:00
parent 82bed847e6
commit 121d33e74d
No known key found for this signature in database
GPG key ID: 86211BA83DF03017
3 changed files with 21 additions and 0 deletions

View file

@ -279,6 +279,19 @@ func getTreeStat(c *gin.Context) {
ret.Data = model.StatTree(id)
}
func getDOMText(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)
arg, ok := util.JsonArg(c, ret)
if !ok {
return
}
dom := arg["dom"].(string)
ret.Data = model.GetDOMText(dom)
}
func getRefText(c *gin.Context) {
ret := gulu.Ret.NewResult()
defer c.JSON(http.StatusOK, ret)