Underline dissappears when get

Hello everyone,

I had the basic schema includings underline:

u: { parseDom: [ {tag: ‘u’}, {style: ‘text-decoration=underline’}, ], toDOM() { return [‘u’, 0]; } } as MarkSpec,

It worked when I edited and created new content. But the underline disappeared when I try to recall and get the content to ngx-Editor component. Why is there no Underline in the basic schema? Is there any conflicts for the Underline-rules in the input rules. I couldn’t find it in the prosemirror-example-setup.

I don’t know anything about ngx-Editor, but that mark spec looks correct.

1 Like