AppFlowy-IO / appflowy-editor

A highly customizable rich-text editor for Flutter. The AppFlowy Editor project for AppFlowy and beyond.
https://pub.dev/packages/appflowy_editor
Other
396 stars 166 forks source link

[Bug] Slash Command Menu Items #708

Open moesaid opened 5 months ago

moesaid commented 5 months ago

Bug Description

Awesome work, guys! I'm really enthusiastic about the project! Today, I began my exploration today, but I couldn't find information on how or where we can interact with 'Slash Command Menu Items.'

Is there an accessible API for this widget?

How to Reproduce

Slash Command

Expected Behavior

ability to customize the menu and its items

Operating System

mac

AppFlowy Editor Version(s)

2.3.2

Screenshots

Screenshot 2024-02-07 at 7 53 09 PM

Additional Context

No response

moesaid commented 4 months ago

@LucasXu0 I wanna pick your brain on that one, what's your thoughts?

at15 commented 2 months ago

It is in the shortcut commands

https://github.com/AppFlowy-IO/appflowy-editor/blob/796d1249fe5a7f936cb9060208561c45db484098/lib/src/editor/editor_component/service/shortcuts/character/slash_command.dart#L5-L35