Hello. I created mark link plugin with href attr. Someone can use it with state.schema.marks.link.create({ href }) and paste any href. I want to transform this href and store it another way (suppose check and add https:// prefix).
How can I define attr transform rule in plugin declaration?
In this case I have to add this transformation logic to every place where link.create({ href }) is called. I wanted to encapsulate it in link plugin declaration