-
-
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
Error with StrictMode option for _setDefaultFormat #1401
Comments
Had the same issue, wasn't able to solve. I'll follow the thread to see any updates on this, best of luck. |
Please I have the same error and I can't solve it, I will follow this topic for updates |
+1 |
Same issue here, I'll follow to see any updates on this. |
Could it be a browser cache issue? |
I am using Firefox version 126.0 and it does not seem to be a caching problem. I tried it this way:
|
@johnnybaida Thank you. |
Version 2.46.3 has been updated. |
Describe the bug
On the last version of the SunEditor 2.46.2 the StrictMode option is causing a input managment error.
While the flag StrictMode is true the suneditor on the onKeyUp_wysiwyg function and more exactly in the _setDefaultFormat is throwing the error:
Uncaught TypeError: format is undefined
To Reproduce
Steps to reproduce the behavior:
{ "strictMode": true, "value": "<span>Ciao</span>", "mode": "classic", "rtl": false, "katex": "window.katex", "resizingBar": false, "showPathLabel": false, "resizeEnable": false, "imageResizing": false, "imageHeightShow": false, "imageAlignShow": false, "imageFileInput": false, "imageUrlInput": false, "videoResizing": false, "videoHeightShow": false, "videoAlignShow": false, "videoFileInput": false, "videoUrlInput": false, "videoRatioShow": false, "audioUrlInput": false, "tabDisable": false, "shortcutsHint": false, "mediaAutoSelect": false, "buttonList": [ [ "undo", "redo", "font", "fontSize", "formatBlock", "paragraphStyle", "blockquote", "bold", "underline", "italic", "strike", "subscript", "superscript", "fontColor", "hiliteColor", "textStyle", "removeFormat", "outdent", "indent", "align", "horizontalRule", "list", "lineHeight", "table", "link", "image", "video", "audio", "math", "imageGallery", "fullScreen", "showBlocks", "codeView", "preview", "print", "save", "template" ] ], "lang": "SUNEDITOR_LANG.it", "lang(In nodejs)": "it" }
'
2. Click on 'With focus on the text value -> press "Enter then Ctrl + A, then backspace"
As you can see from the attach:
'
Expected behavior
To manage properly the input without strictMode active :)
Desktop:
Desktop 2:
The text was updated successfully, but these errors were encountered: