How to convert a table with inline styles
Closed this issue · 1 comments
Thank you for your work.
From a simple table, QuillDeltaToHtmlConverter returns the following html:
<html><head><meta charset="UTF-8"/></head><body><table><tbody><tr><td data-row="row-gdej">one</td><td data-row="row-gdej">two</td></tr><tr><td data-row="row-4f4w"><br/></td><td data-row="row-4f4w"><br/></td></tr></tbody></table><p><br/></p></body></html>
I've set inlineStyles: true however the table in the generated html doesn't get any styling.
My next attempt was to include styles such as border: 1px solid #000
to td and tr by using customCssStyles or customTagAttributes, but to no avail. Here's what I tried:
new QuillDeltaToHtmlConverter(delta.ops, { inlineStyles: true, customCssStyles: { 'table' : {'width': '100%', 'table-layout': 'fixed'}, 'tr': {'border' : '1px solid #000' } } });
Could you please point me to the right direction?
No longer interested in this. I switched to a different editor with better table management than Quill. Thank you again.