even though this thread is pretty old, I have a follow up question to this.
With a mark, I am wrapping text in a tag.
The mark does nothing, expect it replaces the <p> tag with a <variable> tag.
I programmatically create the text node and mark and on the console, it looks good (the node object has the mark in the marks array).
const mark = this.editor.schema.marks.variable.create();
const textNode = this.editor.schema.text(someString, [mark]);
After, the text appears in the editor, yet the mark is missing.
When I manually select (any) text and add the variable mark via command/button, it works as expected. The
is swapped to .
Should I expect the marks in the array to rendered correctly when adding them like so?
I have tried with preexisting marks, but the result is the same.