jodit/jodit-react

showCharsCounter not considering spaces and newlines

vickycena opened this issue · 0 comments

Jodit Version: 3.4.xxxxx

Browser:
OS:
Is React App:

Code

// A *self-contained* demonstration of the problem follows...

Hi, when I add the config showCharsCounter: true to display the char count in status bar It is using this regex (/[\s\n\t\r\uFEFF\u200b]+/g;) to get the count in stats.ts. Any reason why we are not considering spaces or new lines while calculating char count ?

Expected behavior:

Actual behavior: