I am trying to create text node type in this way
schema.nodes.text.create(attrs, Fragment.from("some string"), marks),
but this throw Error("NodeType.create can't construct text nodes"),
what is proper way to create text node types?
Thanks, I guess the position came from a lot of experimentation with the code and was left over, while not noticing that it makes no sense.
“Something” evaluated to true, ergo the inherited marks were used, which were no marks at all.
Thanks again and I am sorry to revive this thread.
I thought it would be related enough to merit it, but obivously, it isn’t. I’ll behave better the next time, promise.