zenoamaro / react-quill

A Quill component for React.
https://zenoamaro.github.io/react-quill
MIT License
6.79k stars 925 forks source link

Is there any option to add table #758

Open mohammadfayiztp opened 2 years ago

mohammadfayiztp commented 2 years ago

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 commented 2 years ago

@zenoamaro please take a look

anelad commented 2 years ago

Any updates?

Alfrex92 commented 1 year ago

Any updates?

ozkanparlakkilic commented 1 year ago

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?

chienweiluo commented 7 months ago

need this... Any solution?

anelad commented 7 months ago

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

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 :/

anelad commented 7 months ago

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