Suneditor: Add Inline Style for Table tag

Created on 13 Mar 2021  路  2Comments  路  Source: JiHong88/SunEditor

Hi,

I am getting HTML content from the onChange function and sending those HTML data to the server to generate PDF.
Since table uses sunEditor class to apply styles. not able to captures the style details from onChange.
so, while generating PDF, the table loses the style and it coming as text.

Is there any way I can configure to apply inline styles to the table tag?

please find below the attached screenshot for reference

Screenshot 2021-03-14 at 1 19 30 AM

PDF Generated based on HTML data from SunEditor:
Screenshot 2021-03-14 at 1 20 47 AM

Thank you in Advance

question

Most helpful comment

Not only the PDF, but also sometimes we need to export the html content to other users, like api, they don't have the css file but we need to show original appearance .

THANK YOU FOR YOUR PERFECT JOB.

All 2 comments

@gopal1996 I'll try find a way.

Not only the PDF, but also sometimes we need to export the html content to other users, like api, they don't have the css file but we need to show original appearance .

THANK YOU FOR YOUR PERFECT JOB.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

davidkonrad picture davidkonrad  路  4Comments

Saeeed-B picture Saeeed-B  路  7Comments

dreamsight picture dreamsight  路  5Comments

chagonzles picture chagonzles  路  4Comments

redone80 picture redone80  路  4Comments