We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When selecting the text, i need to add the outer div with some format, I have used this code, but throws some exceptions,
const range = currentElement.summernote('createRange'); var newrange=range.nativeRange() const newParent = document.createElement('span'); newParent.setAttribute('contenteditable', false); newParent.setAttribute('class', 'freeze-word'); var newtext=newrange.surroundContents(newParent);
The exception, Failed to execute 'surroundContents' on 'Range': The Range has partially selected a non-Text node.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
When selecting the text, i need to add the outer div with some format, I have used this code, but throws some exceptions,
const range = currentElement.summernote('createRange');
var newrange=range.nativeRange()
const newParent = document.createElement('span');
newParent.setAttribute('contenteditable', false);
newParent.setAttribute('class', 'freeze-word');
var newtext=newrange.surroundContents(newParent);
The exception,
Failed to execute 'surroundContents' on 'Range': The Range has partially selected a non-Text node.
The text was updated successfully, but these errors were encountered: