Skip to content

how to make an custom paragraph block #6549

Closed Answered by doodlewind
rien7 asked this question in Q&A
Discussion options

You must be logged in to vote

If you are going to build an embed block, the API surface is more polished currently (docs), and affine:note supports embed-* blocks as is children.

But regarding paragraph block, it's kind of "built-in" for default editors for AFFiNE, so there would be more edge cases (e.g., in selection) that should be handled if you are going to overwrite it with your own text block type. It might be more efficient if you can propose your feature request for your customization needs, and we can see if there could be more exposed API for the current paragraph block to fit.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by rien7
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants