-
-
Notifications
You must be signed in to change notification settings - Fork 148
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] Word Count? #522
Comments
@rts-gordon What kind of API needs to be provided? |
Hi @jaywcjlove |
jaywcjlove
added a commit
that referenced
this issue
May 19, 2023
<MDEditor
onStatistics={(data) => {
console.log('data:', data)
}}
/> export interface Statistics extends TextState {
/** total length of the document */
length: number;
/** Get the number of lines in the editor. */
lineCount: number;
}
export interface TextState {
text: string;
selectedText: string;
selection: TextRange;
}
export interface TextRange {
start: number;
end: number;
} |
@rts-gordon Upgrade |
@jaywcjlove so fast so good. I will test the new feature. Thanks a lot. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi there,
Very lucky to test and use react-md-editor, it's simple and powerful.
Would you like to impl new feature "Word Count" to count English words and Chinese characters. I think it is a very useful feature.
Thank you.
The text was updated successfully, but these errors were encountered: