Open Uche01 opened 3 months ago
You can create a custom Rule
that extends from DeleteRule
and verify if the content that will be removed is an image (by now is the solution that i can think)
By now we don't have plan to add this by now. Probably in future releases this will be fixed (at this moment we need to take more attention to issues that are affecting to the perfomance and the stability of the package).
There are similar issues related to this, will reopen it since I do plan on a solution when I have the time, should not make changes directly to flutter_quill
for this fix.
at this moment we need to take more attention to issues that are affecting to the perfomance and the stability of the package
This is why a fix will take a while before introducing it.
Is there an existing issue for this?
The question
I am trying to delete an image from file system when an image is removed from the editor. Overriding the callback
onImageRemovedCallback
appears to work only when image is removed by clicking on the 'Remove' option on the image actions popup. However, when image is removed by clicking backspace key on the keyboard, the callback is not fired. How can I fix this?Here is the call back code: