[英]CKEditor Stylesheet in document
我们为客户提供HTML编辑器来调整其电子邮件模板。 但是,某些电子邮件模板的顶部具有自定义样式表。
链接到此:
<style type="text/css">
div, p, a, li, td { -webkit-text-size-adjust:none; text-decoration:none;}
@font-face {font-family: 'elegible_nova_rgbold_italic';src: url('http://sub.example.com/mailing/defaultFiles/elegiblenova-boldit-webfont.eot');src: url('http://sub.example.com/mailing/defaultFiles/elegiblenova-boldit-webfont.eot?#iefix') format('embedded-opentype'),url('http://sub.example.com/mailing/defaultFiles/elegiblenova-boldit-webfont.woff') format('woff'),url('http://sub.example.com/mailing/defaultFiles/elegiblenova-boldit-webfont.ttf') format('truetype');font-weight: normal;font-style: normal;}
</style>
但是,将其加载到CKEditor时,CSS不在文档源中。 如何确保CSS在“文本区域”中并且也会输出?
我正在使用债权人3.0
我不确定,因为我已经好几年没有使用CKEditor了,但是我相信您需要特别允许该内容 。 CKEditor 4可以走得更远,甚至剥夺更多东西,并且需要配置其他设置。
使用config.contentsCss
将其他样式插入CKEditor编辑区域。 经典CKEditor基于<iframe>
,除非您以这种方式指定,否则它不会将网页的全局样式应用于内容。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.