summernote: TypeError on highlighting multiple lines and applying a font size.

Description of your Issue or Request:

Getting Uncaught TypeError: Cannot read property 'nextSibling' of null when highlighting multiple lines and applying a font size. It works when just highlighting one line. image

This only started happening on v0.8.18, worked before on v0.8.8

Steps to reproduce (Add more if necessary):

Self Explanatory^ (highlight multiple sentences and apply a font size).

What is your Operating System, Browser and Version and Summernote Version you are using:

This can help find and resolve any issues.

  1. Operating System: Windows 10
  2. Browser and Version: Seems to be on all.
  3. Summernote Version (including which BS3, BS4, Lite or All): All v0.8.18

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Reactions: 3
  • Comments: 17 (12 by maintainers)

Most upvoted comments

I tried to come up with a solution in #4040 . Can you try it too? I used BS4. yarn install then update the nextPointWithEmptyNode function at line 615 at src/js/base/core/dom.js To test: yarn dev then go to http://localhost:3000/bs4.html

I tested in Skunkworks with the lite version and cannot reproduce the error there.

Yes, please add me to Skunkworks. Thanks.

I have definitely seen this in the lite version since that is what we are using for production and where I first ran into the issue. I’ll do some testing in that environment tomorrow and let you know.

I got the middle line problem a couple of times too when trying to reproduce this. I’m not sure what I was doing differently in that case. Likely related though.