Prevent text in ProseMirror-Document from automatically moving up when previous node is emptied

Advertisements I have the following custom schema (shortened to only relevant parts): const schema = new Schema({ nodes: { doc: {content: ‘title section+’}, title: { content: ‘text*’, marks: "", isolating: true, toDOM() { return ["span", {class: "document-title"}, 0] }, parseDOM: [{tag: "span.document-title"}] }, section: { group: ‘section’, content: ‘block+’, toDOM() {return [‘section’, 0]} }, paragraph:… Read More Prevent text in ProseMirror-Document from automatically moving up when previous node is emptied