Hi @marijn , you have done some recent changes to the prosemirror-model
previously there was an onContent
option that we can pass to the serializeFragment
function in DOMSerializer
, I was using this function to insert a <br>
tag in empty paragraph and heading node while getting the html string from the editor, is it possible to get this option back or if you can share some way to do the same?
onContent: (node, contentDOM, serializingOptions) => {
domSerializer.serializeFragment(node.content, serializingOptions, contentDOM);
if (shouldInsertHardBreak(node)) {
contentDOM.appendChild(DOMSerializer.renderSpec(window.document, ['br']).dom);
}
},