singerdmx / flutter-quill

Rich text editor for Flutter
https://pub.dev/packages/flutter_quill
MIT License
2.58k stars 832 forks source link

Add Table #1735

Closed dev-ravan closed 4 months ago

dev-ravan commented 9 months ago

Is there an existing issue for this?

The question

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

iremceliksena commented 7 months ago

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

?

CatHood0 commented 4 months ago

I will try to add this new feature

EchoEllet commented 4 months ago

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

singerdmx commented 4 months ago

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.

CatHood0 commented 4 months ago

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

singerdmx commented 4 months ago

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 commented 4 months ago

Look forward to your PR

Paiolus commented 2 months ago

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

CatHood0 commented 2 months ago

@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.

Paiolus commented 2 months ago

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