I wonder if prosemirror could support edition of a template node:
<template>
<p>some block content</p>
</template>
- it is possible to template.append(template.content) and directly edit that content, as it would be possible with a standard div
- serialization from DOM to HTML behaves as expected
- parsing from html string in prosemirror always fail since the html fragment inside the template tag goes into template.content and template.childNodes is empty.
If prosemirror-view systematically did
if (template.content) {
template.textContent = '';
template.appendChild(template.content)
}
it would fix it. However i’m not sure of the side effects.