Transaction not beeing applied

Thanks for reply, Marijn!

I understand that I shouldn’t mutate node.attrs properties directly. But changing them via transaction.setNodeAttribute or transaction.setNodeMarkup is okay, right? Just don’t forget to dispatch it.

If suggestion above is correct is it okay to update attributes of child nodes with setNodeAttribute method from parent node?