AppFlowy-IO/appflowy-editor

[FR] Ability to edit placeholder text

Opened this issue · 2 comments

Description

I would like the ability to edit the placeholder text that appears when adding a new paragraph or when creating a blank editor.

Impact

I am not using the editor in the context of a "notion" clone so I would like to be able to "label" the field, and hide the helper text that pops up for each paragraph.

Additional Context

No response

Hi @chimon2000

You can customize the default paragraph placeholder by doing:

 map[ParagraphBlockKeys.type] = ParagraphBlockComponentBuilder(
     configuration: BlockComponentConfiguration(
         placeholderText: (node) => 'Custom placeholder',
     ),
);

Or you mean customizing placeholder for each paragraphNode ?

For the text that displays when I create an editor with an empty Delta.