flutter-quill icon indicating copy to clipboard operation
flutter-quill copied to clipboard

Inline Custom Embeds

Open Sesa1988 opened this issue 11 months ago • 3 comments

Is there an existing issue for this?

Use case

Hi,

I want to add some custom clickable text into the editor. I already implemented custom elements for images and other types but this one needs to be inline like normal text and flow with it.

Is this possible? I cant find a way.

Proposal

I'm not sure whats the best way is but a property to set somewhere that changes the flow of the custom block from block to inline.

Sesa1988 avatar Jan 10 '25 22:01 Sesa1988

Hi @Sesa1988 since https://github.com/singerdmx/flutter-quill/pull/2470 was merged, you should now be able to accomplish this with the textSpanBuilder parameter.

tjarvstrand avatar Feb 16 '25 15:02 tjarvstrand

Hi @Sesa1988 since #2470 was merged, you should now be able to accomplish this with the textSpanBuilder parameter.

Hi, sound good. Where can I find this parameter?

I cant update to the latest version because of the markdown_quill package: markdown_quill >=4.0.0 depends on flutter_quill ^10.1.2 and "app" depends on flutter_quill ^11.0.0, markdown_quill >=4.0.0 is forbidden. So, because foxynotes depends on markdown_quill ^4.2.0, version solving failed.

Sesa1988 avatar Feb 16 '25 18:02 Sesa1988

This is a problem that is not easy to answer or solve. Right now, we are somewhat stuck with the current implementation that the editor uses to obtain the selection of a text and the necessary interaction.

I am not saying that it will be solved immediately, since changing the current Proxies is an odyssey in itself, but in the future it is likely that this will be solved with something much more effective and that allows greater flexibility for everyone.

CatHood0 avatar Feb 21 '25 06:02 CatHood0