Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
允许通过设置
options.counter: true
来启用字数统计。为
Counter.render
添加了第三个参数,以支持对于字数统计功能的后续改进,例如 #297 。对现有 API 无影响。P.S. 建议使用
Markdown: 12/100
风格的字符统计标签,更为正式的同时也符合其他主流本地编辑器的做法。本 PR 不包括这一改动。其他变化:其他组件应该使用
vditor.options.counter != false
而非vditor.options.counter > 0
来判断字数统计的开启情况。