tinymce / tinymce-react

Offical TinyMCE React component
MIT License
937 stars 152 forks source link

Displaying the number of characters in the status bar #442

Closed kolserdav closed 1 year ago

kolserdav commented 1 year ago

Is your feature request related to a problem? Please describe.

The problem is that tinymce-reactdoes not have event onInput , but only onChange, and therefore there is no way to count the number of characters in the text input process.

Describe the solution you'd like

  1. Primary - Need a callback in properties for listening onInput event.
  2. And secondary, it would be nice to be able to display the number of characters in the status bar.

    Describe alternatives you've considered

I tried to get content through ref in event onKeyDown. But so far nothing has worked for me.

kolserdav commented 1 year ago

On the first point, I found a solution - this is event onEditorChange. Any advice on the second point?

exalate-issue-sync[bot] commented 1 year ago

Ref: INT-3161