Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Question] Is it possible to define how a blot is serialized ? #117

Open
farhat-h opened this issue Jul 15, 2022 · 1 comment
Open

[Question] Is it possible to define how a blot is serialized ? #117

farhat-h opened this issue Jul 15, 2022 · 1 comment

Comments

@farhat-h
Copy link

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()

@ramarivera
Copy link

You can override the instance method value and lengths, to match what you expect to get from getText or getContents IIRC

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants