suneditor icon indicating copy to clipboard operation
suneditor copied to clipboard

Add Inline Style for Table tag

Open gopal1996 opened this issue 3 years ago • 3 comments

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

gopal1996 avatar Mar 13 '21 19:03 gopal1996

@gopal1996 I'll try find a way.

JiHong88 avatar Mar 15 '21 06:03 JiHong88

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.

pengzj avatar Mar 22 '21 07:03 pengzj

@JiHong88 is this added in the latest version? I'm using the latest version but I don't see inline styles of table or any other element.

AbdiasMichael avatar Aug 03 '23 06:08 AbdiasMichael