how to make an custom paragraph block #6549
-
If I want to make an custom paragraph block similar to
|
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
If you are going to build an embed block, the API surface is more polished currently (docs), and 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. |
Beta Was this translation helpful? Give feedback.
If you are going to build an embed block, the API surface is more polished currently (docs), and
affine:note
supportsembed-*
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.