toeverything/blocksuite

​Callout Block feature request

Open

#6709 aperta il 8 apr 2024

Vedi su GitHub
 (3 commenti) (4 reazioni) (1 assegnatario)TypeScript (553 fork)github user discovery
good first issuestorytype:feat

Metriche repository

Star
 (5858 star)
Metriche merge PR
 (Nessuna PR mergiata in 30 g)

Descrizione

Description

We need a Callout Block to set "important information" or "highlight information" in the Doc and Edgeless.

Use case

I already have a Callout Block design draft.

How to insert Callout Block:

The Callout Block will be inserted via Slash Menu.

Callout Block supported operations:

1. Nested Content:

When the user can evoke the Slash Menu in the Callout Block, all Slash Menu Items will be displayed, but only if the user selects Normal Text, Headings, Inline Format (Bold, Italic, Underline, DeleteLine, Inline But only when user selects Normal Text, Headings, Inline Format (Bold, Italic, Underline, DeleteLine, Inline Code, Highlights, Inline Link, Inline's linked Doc) and List, they will be embedded, and when user selects unsupported type, it will be put directly under the Callout Block, and of course, the Callout Block itself supports to be nested up to three times.

2. Change the colour of Callout Block:

Callout Block supports AFFiNE colour system and Dark/Light mode.

3.Change the Icon of Callout Block:

Anything else?

No response

Are you willing to submit a PR?

  • Yes I'd like to help by submitting a PR!

Guida contributor