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

Pagebreak At End of Document Leads to Issues #6

Open
Alfeezy opened this issue Feb 23, 2021 · 1 comment
Open

Pagebreak At End of Document Leads to Issues #6

Alfeezy opened this issue Feb 23, 2021 · 1 comment

Comments

@Alfeezy
Copy link

Alfeezy commented Feb 23, 2021

When adding a pagebreak to the middle of a page in between paragraph elements, there are no issues. However, when creating a pagebreak as the last element of the editor, buggy behavior occurs. When trying to focus the cursor past this pagebreak, it will focus on the last element of the editor, which happens to be the pagebreak div. After pressing enter, a JS error is thrown in the console, and two new pagebreaks are added. When typing from this state, the text will appear inside of the div, and will offset the "page break" text:
image

Here is the JS error:

Uncaught TypeError: t.indexOf is not a function
    D                 .../summernote-bs4.min.self-641bdadb92e491611e0d1758872776b04b742d06cd8690baac754fbb248e26ee.js?body=1:4
    isCustomStyleTag  .../summernote-bs4.min.self-641bdadb92e491611e0d1758872776b04b742d06cd8690baac754fbb248e26ee.js?body=1:4
    insertParagraph   .../summernote-bs4.min.self-641bdadb92e491611e0d1758872776b04b742d06cd8690baac754fbb248e26ee.js?body=1:4
    insertParagraph   .../summernote-bs4.min.self-641bdadb92e491611e0d1758872776b04b742d06cd8690baac754fbb248e26ee.js?body=1:4
    wrapCommand       .../summernote-bs4.min.self-641bdadb92e491611e0d1758872776b04b742d06cd8690baac754fbb248e26ee.js?body=1:4
    invoke            .../summernote-bs4.min.self-641bdadb92e491611e0d1758872776b04b742d06cd8690baac754fbb248e26ee.js?body=1:4
    handleKeyMap      .../summernote-bs4.min.self-641bdadb92e491611e0d1758872776b04b742d06cd8690baac754fbb248e26ee.js?body=1:4
    initialize        .../summernote/summernote-bs4.min.self-641bdadb92e491611e0d1758872776b04b742d06cd8690baac754fbb248e26ee.js?body=1:4
    jQuery 2
@DennisSuitters
Copy link
Owner

Interesting, I was unaware of this. Will have to do some investigating.

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

No branches or pull requests

2 participants