Skip to content

Commit

Permalink
🎨 Vditor 支持
Browse files Browse the repository at this point in the history
no placeholder after(SV)
Fix Vanessa219/vditor#570
  • Loading branch information
88250 committed Jul 12, 2020
1 parent bd5eaf2 commit 81b750d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion javascript/lute.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion javascript/lute.min.js.map

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion vditor_sv.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ import (
// SpinVditorSVDOM 自旋 Vditor Split-View DOM,用于分屏预览模式下的编辑。
func (lute *Lute) SpinVditorSVDOM(markdown string) (ovHTML string) {
// 为空的特殊情况处理
if util.Caret == markdown {
if util.Caret == strings.TrimSpace(markdown) {
return "<div data-type=\"p\" data-block=\"0\"><span data-type=\"text\"><wbr></span><span data-type=\"newline\"><br /><span style=\"display: none\">\n</span></span></div>"
}

Expand Down

0 comments on commit 81b750d

Please sign in to comment.