mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-17 07:00:12 +01:00
🎨 Improve handling of copy block ref when including images https://github.com/siyuan-note/siyuan/issues/9317
This commit is contained in:
parent
82bed847e6
commit
121d33e74d
3 changed files with 21 additions and 0 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue