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

Is there any option to add table

Open mohammadfayiztp opened this issue 3 years ago • 8 comments

when i add table code it's showing like

 const delta = this.quill.clipboard.convert(
    '<table><tr><th>Company</th><th>Contact</th><th>Country</th></tr></table>'
  );
  this.quill.setContents(delta, 'silent');

ReactQuill version

"react-quill": "^2.0.0-beta.4",

mohammadfayiztp avatar Dec 24 '21 14:12 mohammadfayiztp

@zenoamaro please take a look

mohammadfayiztp avatar Dec 24 '21 14:12 mohammadfayiztp

Any updates?

anelad avatar Oct 03 '22 10:10 anelad

Any updates?

Alfrex92 avatar Jan 30 '23 06:01 Alfrex92

I tried the same method but I can't add the table. It encloses all the texts in a p tag. Is there any update?

ozkanparlakkilic avatar Jul 31 '23 13:07 ozkanparlakkilic

need this... Any solution?

chienweiluo avatar Apr 16 '24 01:04 chienweiluo

Well, @chienweiluo; issue is open for +2 years and no response at all. Maybe you should consider using another package or find your own solution; since the repo or @zenoamaro's himself looks like dead :/

anelad avatar Apr 16 '24 17:04 anelad

Thanks for reply, bro. Quill just released 2.0.0 today, I think i will give it a try.

Well, @chienweiluo; issue is open for +2 years and no response at all. Maybe you should consider using another package or find your own solution; since the repo or @zenoamaro's himself looks like dead :/

chienweiluo avatar Apr 17 '24 04:04 chienweiluo

@chienweiluo if you don’t need HTML for specific needs like custom fonts or text coloring; I prefer to use Markdown instead. No XML based tags, easier to read, easier and faster to parse. There should be good packages for it; or even you can parse it by yourself easily; and more, you can add your own features like text coloring etc by leaving the standartsa and adding some unorthodox custom markings.

Idk but even Github might have shared the markdown package we already use here.

anelad avatar Apr 17 '24 04:04 anelad