Issue with Image Options in Quill Editor: "Embed node not found by offset" Error #2440
Open
1 task done
Labels
bug
Something isn't working
Is there an existing issue for this?
Flutter Quill version
flutter_quill: ^10.8.5 dart_quill_delta: ^10.8.3 flutter_quill_extensions: ^10.8.5
Steps to reproduce
Steps to Reproduce
flutter_quill_extensions
package for image upload functionality.Expected results
The selected option (e.g., "Delete") should execute successfully, and the operation should work regardless of where the editor cursor is positioned.
Actual results
The operation fails, and the following error is thrown:
[ERROR:flutter/runtime/dart_vm_initializer.cc(40)] Unhandled Exception: Invalid argument(s): Embed node not found by offset
#0 getEmbedNode (package:flutter_quill/src/common/utils/embeds.dart:18:10)
#1 ImageOptionsMenu.build. (package:flutter_quill_extensions/src/editor/image/image_menu.dart:123:32)
Additional Context
Custom Image Option Menus
If developers use custom image options menus, they should be able to manage this issue easily, based on the cursor position or by programmatically updating the editor's selection. However, the current behavior makes it difficult for developers to handle custom menus effectively.
This can create problems in scenarios where developers implement custom functionality for image options. A fix or documentation on how to handle custom implementations would be highly appreciated.
If needed, I can provide additional logs or screenshots.
The text was updated successfully, but these errors were encountered: