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

v2: Underline does not appear to be supported #1020

Open
ssteffanus12 opened this issue Dec 13, 2024 · 0 comments
Open

v2: Underline does not appear to be supported #1020

ssteffanus12 opened this issue Dec 13, 2024 · 0 comments

Comments

@ssteffanus12
Copy link

Relevant packages:

  • react-quill: 2.0.0
  • draftjs-to-html: 0.9.1
  • react: 17.0.2

For context, I've been a long-time user of draft-js, but since that project has been abandoned I've needed to switch to something newer, while maintaining support for a database that already contains draft-js json blobs... hence why I'm using draftToHtml to convert them to html snippets below.

Example code:

const TextViewer = ({ classes, data }) => {
    let content = "";
    if (data) {
        content = draftToHtml(data);
        console.log(content);
        /* prints <p><ins>message</ins></p> */
    }

   /* displays the text "message" without an underline */
    return (
        <div className={classes.root}>
            <QuillEditor
                className={classes.editor}
                value={content}
                readOnly
                theme="bubble"
            />
        </div>
    );
};
@ssteffanus12 ssteffanus12 changed the title Underline does not appear to be supported v2: Underline does not appear to be supported Dec 13, 2024
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

1 participant