-
-
Notifications
You must be signed in to change notification settings - Fork 316
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
Tab key causing uncaught error #660
Comments
@peter-chow The issue is not reproduced. |
@JiHong88, the following options have been specified: { The issue can also be reproduced on the SunEditor Option page (http://suneditor.com/sample/html/options.html) by specifying a maxCharCount and setting the charCounterType to "byte-html". This occurs on Edge, Chrome and Firefox, |
_fix: util.getByteLength exception handling
The 2.37.0 version has been updated. |
Thanks @JiHong88. I'll give it a test. |
Hello,
I'm experiencing an issue where pressing the tab key in the editor doesn't insert a tab but instead causes an uncaught error (this is through the suneditor-react module):
Uncaught TypeError: Cannot read property 'toString' of undefined
at Object.getByteLength (main.js:947)
at Object.getCharLength (main.js:2206)
at Object.checkCharCount (main.js:2200)
at Object.insertNode (main.js:1921)
at HTMLDivElement.onKeyDown_wysiwyg (main.js:2308)
This error occurs when you specify a value for: maxCharCount, and set the charCounterType to: byte-html. If you set, charCounterType to: char or byte, no error is thrown.
This is using version 2.36.5.
Regards,
Peter
The text was updated successfully, but these errors were encountered: