Skip to content

✨Custom block quote #646

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

Merged
merged 5 commits into from
Mar 3, 2025
Merged

✨Custom block quote #646

merged 5 commits into from
Mar 3, 2025

Conversation

AntoLC
Copy link
Collaborator

@AntoLC AntoLC commented Feb 18, 2025

Purpose

We decided to split the pull request #566 to still improve the Alert custom block.
This PR will add the custom block Quote to the editor.

Proposal

  • ✨(frontend) add quote blocks to the editor
  • 🏷️(frontend) adapt title types
  • ✨(frontend) create feature doc-export
  • 🏗️(frontend) blockMapping refactoring
  • ✨(frontend) adapt export to quote block

Demo

scrnli_RElTB09jk3R4lf.webm

PDF:

image

Docx:

image

@AntoLC AntoLC self-assigned this Feb 18, 2025
@AntoLC AntoLC force-pushed the feature/custom-block-quote branch from fb51e86 to 8b89302 Compare February 18, 2025 16:41
@AntoLC AntoLC force-pushed the feature/custom-block-quote branch 6 times, most recently from 7a56e89 to 14cf008 Compare February 20, 2025 09:04
@AntoLC AntoLC linked an issue Feb 20, 2025 that may be closed by this pull request
@AntoLC AntoLC marked this pull request as ready for review February 20, 2025 09:09
@AntoLC AntoLC linked an issue Mar 3, 2025 that may be closed by this pull request
AntoLC added 5 commits March 3, 2025 12:10
Add a custom block to quote in the editor.
We recently changed the default title behavior.
It can now be undefined, we have to change the
types accordingly.
Create the feature doc-export, it will be
responsible for exporting the document.
As made for TablePDF, we separate the block mapping
in separate files. This will allow us to have
a better separation of concerns and to have
a more maintainable codebase.
We improve as well the typing. It will be easier
to add new blocks in the future.
We have a new block type, the quote block.
We have to adapt the export to handle this
new block type.
@AntoLC AntoLC force-pushed the feature/custom-block-quote branch from 14cf008 to c6208a0 Compare March 3, 2025 11:16
@AntoLC AntoLC merged commit cd5ee3f into main Mar 3, 2025
18 of 19 checks passed
@AntoLC AntoLC deleted the feature/custom-block-quote branch March 3, 2025 11:27
@AntoLC AntoLC mentioned this pull request Mar 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Export fails when document has no title ✨Quotes
1 participant