singerdmx / flutter-quill

Rich text editor for Flutter
https://pub.dev/packages/flutter_quill
MIT License
2.6k stars 839 forks source link

Is it possible to customise image editing menu? #2186

Closed digitalheartxs closed 2 months ago

digitalheartxs commented 2 months ago

Is there an existing issue for this?

The question

I would like to remove resize option, change icons, etc. of image editing menu. Is it possible?

Screenshot 2024-09-05 at 14 52 18
EchoEllet commented 2 months ago

The ImageOptionsMenu widget itself isn't customizable however you can have your custom onImageClicked:

QuillEditorImageEmbedConfigurations(
  onImageClicked: (imageSource) {},
)

and show a different menu.

CatHood0 commented 2 months ago

@EchoEllet should we add a new way to customize the image menu?

EchoEllet commented 2 months ago

@EchoEllet should we add a new way to customize the image menu?

We should document on how to show a different dialog with an example.