Skip to content

Add justify option in export #395

Open
@virgile-dev

Description

@virgile-dev

Feature Request

Is your feature request related to a problem or unsupported use case? Please describe.
As a user, I want to be able to justify my text.

Describe the solution you'd like
Add the option on the editor.

Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.

Discovery, Documentation, Adoption, Migration Strategy
The justify option is supposed to be native in BlocNote.js : https://www.blocknotejs.org/docs/editor-basics/default-schema#default-block-properties

This is especially important for users who want to export the doc.

Pointers by Yousef (blocnote.js)
https://github.com/numerique-gouv/impress/blob/50891afd055b5dada1d34e57ab447638865410af/src/frontend/apps/impress/src/features/docs/doc-editor/components/BlockNoteToolbar.tsx#L17

-> this is where you add the formatting toolbar buttons. By default, they don't include a button for "justify", so you'd have to add that yourself
e.g.: <TextAlignButton textAlignment={"justify"} key={"textAlignJustifyButton"} />,

Metadata

Metadata

Assignees

Labels

editorneeds designA UX/UI proposal is required to move forwardneeds user researchFurther research is required to give a final answer

Type

No type

Projects

Status

Backlog

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions