Is there a way to add a default mark to a node?

Hi, I’ve been trying to add a default mark to a custom node I’m creating but I don’t see a way to do it by default but using “commands”

also I wish to add a default mark to every text node (wrapping the text node) is that possible?

many thanks for the help.

An appendTransaction hook could do something like this, by ensuring newly added nodes get the appropriate marks.

I just did a test on this, it works great! many thanks, but It does not apply when pasting text, I believe I must modify the pasted content using the events right?