Skip to content
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

Fixing summernote core file #4749

Merged
merged 1 commit into from Aug 13, 2016
Merged

Fixing summernote core file #4749

merged 1 commit into from Aug 13, 2016

Conversation

LucasKauz
Copy link
Contributor

@LucasKauz LucasKauz commented Aug 11, 2016

Problem:
When using multiple instances of summernote on admin this error come to console "node is null", this break the js flow and besides not letting the summernote take more than one textarea it break other js parts

Solution:
Instead of just making sure the node is text it also checks if the node really exists before trying to get its proprieties

Now:
If the node does not exist or for some reason is not true or do not have value we return false to the function.

Also, as seen in https://github.com/summernote/summernote/blob/develop/src/js/base/core/dom.js#L200

PS: Also in the master branch, into the dist
https://github.com/summernote/summernote/blob/master/dist/summernote.js#L661

They changed it in the summernote core.

Problem:
When using multiple instances of summernote on admin this error come to console "node is null", this break the js flow and besides not letting the summernote take more than one textarea it break other js parts

Solution:
Instead of just making sure the node is text it also checks if the node really exists before trying to get its proprieties

Now:
If the node does not exist or for some reason is not true or do not have value we return false to the function.

Also, as seen in https://github.com/summernote/summernote/blob/develop/src/js/base/core/dom.js#L200

They changed it in the summernote core.
@danielkerr danielkerr merged commit 522e505 into opencart:master Aug 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants