diff --git a/kernel/model/search.go b/kernel/model/search.go index 13492699e..b4aa12115 100644 --- a/kernel/model/search.go +++ b/kernel/model/search.go @@ -799,6 +799,8 @@ func FindReplace(keyword, replacement string, replaceTypes map[string]bool, ids if "" == n.TextMarkTextContent { unlinks = append(unlinks, n) } + + util.PushReloadTag() } else if n.IsTextMarkType("u") { if !replaceTypes["u"] { return ast.WalkContinue diff --git a/kernel/util/websocket.go b/kernel/util/websocket.go index 6ba724266..a0638d5b0 100644 --- a/kernel/util/websocket.go +++ b/kernel/util/websocket.go @@ -182,6 +182,10 @@ func PushReloadFiletree() { BroadcastByType("filetree", "reloadFiletree", 0, "", nil) } +func PushReloadTag() { + BroadcastByType("main", "reloadTag", 0, "", nil) +} + type BlockStatResult struct { RuneCount int `json:"runeCount"` WordCount int `json:"wordCount"`