parchment
parchment copied to clipboard
[Question] Is it possible to define how a blot is serialized ?
Context:
I'm trying to define a custom inline embed blot to display something similar to repo shields. The way, I'm currently implementing it as an IMG tag and setting an alt attribute that has a description of the image. Is it possible to make the blot be serialized to the value of the alt attribute when calling quill.getText()
You can override the instance method value and lengths, to match what you expect to get from getText or getContents IIRC