I have a very simple schema that roughly looks like this:
title block*
My intent is to force a custom node type title to be the first, mandatory element. However when I’m in the editor and remove the title, when I call Node.check on the doc nothing happens. Isn’t this supposed to throw an error?
So yeah - I’m using TipTap and still getting used to all of this, but basically what I thought was the schema that I constructed wasn’t actually the case. I now have a different setup where the schema (from a content expression) looks okay and the behavior that I’m seeing with a schema like this: