Disable plugin on condition

My appendTransaction method is just initializing marks on text and paragraph nodes, similar to this:

Now when I paste, this plugin makes everything initialize with default marks, which I don’t want.

I can possibly formulate the changes if there is a paste transaction. How do I get to know if a transaction is a paste event or not?

Thanks :slight_smile: