Open honmaple opened 1 month ago
It seems that neither the old example nor the current one covers this, we should definitely document that info somewhere clear so everyone can access them.
Might want to have them in Custom Embed Blocks or somewhere related to the controller and update, and delete operations with clearer examples. As for now, I'm unable to take a look at this issue as I'm working on others.
It seems that some things in the video embed (from flutter_quill_extensions
) are simply not possible or not documented properly, for example deleting an image or custom embed from the editor doesn't call onImageRemoved
and is only callable when remove it using the remove button.
We may need to change some things on how the embed blocks work but it won't soon.
This is still an issue, why it was closed?
@EchoEllet I'm using Embeddable("tag", "sometag")
instead of BlockEmbed.custom(CustomBlockEmbed("tag", "sometag"))
, node.offset or node.documentOffset has been worked.
Could we reopen this?
Seems the direct cause is the reassignment at https://github.com/singerdmx/flutter-quill/blob/de94bc2c385e4161a94629d631818568598c3cf4/lib/src/editor/widgets/text/text_line.dart#L210C7-L210C18
Is there an existing issue for this?
The question
I have a custom embed widget.
But when I want to remove this embed, I must move cursor before at this embed, and then use
How could I get offset without move cursor? The node.offset or node.documentOffset always be zero