Skip to content

Using getSemanticHTML() #43

Closed
Closed
@rskuipers

Description

@rskuipers

Hello,

First if all a big thank you for this package, it's been working well so far.
One thing that we noticed is that if you have a numbered list and a bulleted list, they both get saved as an <ol> tag which is semantically incorrect. After some research I found this issue where they mention you should use getSemanticHTML() as opposed to innerHTML to prevent this issue.

quill.on('text-change', () => {
    const quillContent = quill.getSemanticHTML();
    const inputContent = this.inputTarget;
    inputContent.value = quillContent;
})

Is there a specific reason you went with innerHTML, or can I submit a PR to change this?

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions