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

Add Table

Open dev-ravan opened this issue 1 year ago • 2 comments

Is there an existing issue for this?

The question

I have to add table in my editor how to achieve in quill editor

dev-ravan avatar Feb 10 '24 03:02 dev-ravan

You have to build the table widget or use the own from flutter and use it in the editor, take a look at this

EchoEllet avatar Feb 17 '24 00:02 EchoEllet

Hello, I also have html containing

. I want to reflect the HTML codes as they are and edit them in the editor. How can I do this, or can I do it? Can it only detect parameters such as

?

iremceliksena avatar Mar 19 '24 11:03 iremceliksena

I will try to add this new feature

CatHood0 avatar Jun 22 '24 05:06 CatHood0

You can use Custom Embed Blocks to implement it with Table widget or using flutter_editable_table or a similar package.

EchoEllet avatar Jun 25 '24 15:06 EchoEllet

It seems that flutter_editable_table is not maintained in a timely manner and some dependencies are out of date. We may consider copying over the code in a dedicated folder so we can easily update its dependencies.

singerdmx avatar Jun 28 '24 04:06 singerdmx

It seems that flutter_editable_table is not maintained in a timely manner and some dependencies are out of date. We may consider copying over the code in a dedicated folder so we can easily update its dependencies.

I make my own implementation, but, i having issues with the focusNode in QuillEditor and weird behaviors using TextField

i know it's ugly but, i'm still testing. I'm using QuillEditor in each cell of the table, and this cause this strange behavio (could be by a wrong updating implementation by me)

https://github.com/singerdmx/flutter-quill/assets/114286961/ce4555a1-93f4-4bd4-adc8-a467eaa1f4e8

yeah, it's the same but using Textfield. It Works good, but, has weird behaviors when you try to delete any characters when the input is empty

https://github.com/singerdmx/flutter-quill/assets/114286961/f7287129-0c7c-40fe-a65f-eb34790b319f

CatHood0 avatar Jun 28 '24 20:06 CatHood0

This is cool and a good start. Yeah, better to have our own code than relying on an external package. @CatHood0 My suggestion is getting it in with something to start even though it may not be perfect. Even iPhone has quite some flaws when it starts. I think it is fine to have some flaws in this feature. Worst case users do not use it at all. I believe other contributors will perfect this feature later iteratively.

singerdmx avatar Jun 28 '24 22:06 singerdmx

Look forward to your PR

singerdmx avatar Jun 28 '24 22:06 singerdmx

Hi! Please could you share the code of those implementations? I'm using flutter quill and I need to use tables...

Paiolus avatar Sep 07 '24 13:09 Paiolus

@Paiolus I suggest you take a look at flutter_quill_extensions and take this code with caution because the implementation of tables is currently limited and contains several bugs. At the moment, it is on my to-do list to improve the implementation so that it works as expected.

CatHood0 avatar Sep 07 '24 14:09 CatHood0

okay, thank you... I'll try to solve it. If I find something I will tell you!

What a pitty, quill editor is a nice plug-in

Paiolus avatar Sep 07 '24 15:09 Paiolus