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

Fix nested tags when using p separator #244

Merged
merged 4 commits into from
Apr 3, 2023

Conversation

cristianoccazinsp
Copy link

When using

separators, <ul> and <ol> elements are currently nested inside <p>'s. However, this is incorrect HTML syntax and may break when using certain editors.

With this, after adding each ul/ol, a correction is made so nested tags are taken out to the parent. Code taken from https://developpaper.com/implementation-of-rich-text-editor-with-javascript/

@stulip stulip merged commit 384b449 into wxik:master Apr 3, 2023
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.

3 participants