Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: 增加字数统计功能 #659

Merged
merged 1 commit into from
Dec 6, 2023
Merged

feat: 增加字数统计功能 #659

merged 1 commit into from
Dec 6, 2023

Conversation

3thernet
Copy link
Contributor

@3thernet 3thernet commented Dec 3, 2023

顶部工具栏显示当前字符数、单词数、段落数,需要至少点击一次按钮进行统计,多次点击切换显示 #291

@3thernet 3thernet changed the title feat: 增加字数统计功能 #291 feat: 增加字数统计功能 Dec 3, 2023
Copy link
Collaborator

@sunsonliu sunsonliu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

感谢贡献~
不过关于字数统计功能,我们的预期是在底部增加一个区域同时展示字数、段落数等信息,另外有些场景下不方便统计编辑区域的字数(比如编辑区里有大量base64数据),这时候用户可能希望统计预览区的信息。但我们一直没实现,感谢H4kur31的贡献,我们先合入代码,后续可能会对在你实现的代码基础上做一些修改以实现上述的特性,请知会~

src/toolbars/hooks/WordCount.js Show resolved Hide resolved
@sunsonliu sunsonliu merged commit e313d0c into Tencent:dev Dec 6, 2023
2 checks passed
jiawei686 added a commit that referenced this pull request Dec 7, 2023
* dev:
  chore(release): v0.8.30
  feat: #642 修改配置的默认值为false(与旧版本效果保持一致)
  feat: #642 在调用setMarkdown/setValue时保持页面的滚动位置
  docs(cherry): custom render (#661)
  feat: #642 close 增加配置,是否在初始化时保持页面的滚动位置
  feat: 优化处理base64数据的时机和正则,确保base64数据能够及时被替换成占位符
  feat: 增加字数统计功能 (#659)
  fix: 修复formatFullWidthMark函数 (#655)
  refactor(client): add sidebar tags (#644)
  fix: #650 修复切换主题时原始class被改错的问题
  feat: #653 增加新的配置开关,打开后cherry完成初始化后会根据hash进行 滚动定位 在demo里默认打开
  feat: #653 增加新的配置开关,打开后cherry完成初始化后会根据hash进行 滚动定位
  fix: #650 switchModel()API切换预览模式时隐藏工具栏
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants