表格获取的html渲染样式丢失 #490
haipengsong
started this conversation in
General
Replies: 3 comments
-
|
Beta Was this translation helpful? Give feedback.
0 replies
-
不是,是在配置邮件内容时使用了富文本编辑器,需要把编辑器生成的html最后当作邮件发送出去,保留富文本内编辑的样式,所以编辑器生成的html没有内联样式的话就会出现样式丢失的问题 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
问题描述
作者您好:


在富文本中使用表格获取html进行预览渲染,发现表格样式丢失,查阅原官方文档解释是需要自定义样式:
但是现在我们的使用场景是富文本编辑的内容是用于发邮件的,所以在项目里预览可以通过自定义样式去解决,但是发出去的邮件就没办法修改样式了,这块有什么好的解决办法吗,而且现在只发现了表格,不知道还有没有其他的元素需要自定义样式。
富文本编辑效果如下:

不自定义样式的预览效果如下:

wangEditor 版本
5.6.15
是否查阅了文档 ?
(文档链接 https://cycleccc.github.io/docs/ )
是
最小成本的复现步骤
(请告诉我们,如何最快的复现该问题?)
Beta Was this translation helpful? Give feedback.
All reactions