-
-
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
core.js: An exception occurred while resetting the "Range" object. #525
Comments
Thanks for reporting. Resets the "Range" object when deleting, inserting, or modifying a node. I put a warning because it occurs in certain situations. |
Hi @JiHong88 , I've recently updated to new "suneditor": "2.34.0" package. But I noticed that our function to delete editor contents has stopped working. The function calls this.editorInstance.core.commandHandler(null, 'selectAll');
this.editorInstance.core.removeNode(); Did you make any changes to |
I was planning to use the |
👍 |
The 2.34.2 version has been updated. |
Hi @JiHong88, thank you. That seems to have resolved our issue. |
Hi @JiHong88 ,
I'm using the following function to clear the editor body text. The function use's
commandHandler
to selectAll content and remove the node. But after calling this function I'm getting a warning emitted fromcore.js
lib about resetting RANGE object.Is it possible to expose a public property on SunEditor to clear the body text? Or would you suggest a different approach to my function below?
Console Error:
core.js?4e0d:1630 [SUNEDITOR.core.removeNode.exception] An exception occurred while resetting the "Range" object.
Complete Stack Trace:
The text was updated successfully, but these errors were encountered: