You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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>
);
};
The text was updated successfully, but these errors were encountered:
ssteffanus12
changed the title
Underline does not appear to be supported
v2: Underline does not appear to be supported
Dec 13, 2024
Relevant packages:
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:
The text was updated successfully, but these errors were encountered: