Javascript 文档中的CKEditor样式表

Javascript 文档中的CKEditor样式表,javascript,html,ckeditor,Javascript,Html,Ckeditor,我们为客户提供一个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.

我们为客户提供一个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>

div,p,a,li,td{-webkit文本大小调整:无;文本装饰:无;}
@字体面{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“”格式('embedded-opentype'),url('http://sub.example.com/mailing/defaultFiles/elegiblenova-boldit-webfont.woff')格式('woff'),url('woff')http://sub.example.com/mailing/defaultFiles/elegiblenova-boldit-webfont.ttf“)格式('truetype');字体大小:正常;字体样式:正常;}
但是,当它被加载到CKEditor中时,CSS不在文档的源代码中。如何确保CSS在“文本区域”中,并且也将被输出


我使用的是债权人3.0,我不确定,因为我已经好几年没有使用CKEditor了,但我相信您需要。CKEditor 4更进一步,剥离更多内容,需要配置额外的设置。

用于将其他样式插入CKEditor编辑区域。基于
,它不会将网页的全局样式应用于内容,除非您以这种方式指定它们


我只使用过ckeditor 4.x,但您是否尝试过类似的方法
config.format_style={element:'style',attributes:{'type':'text/css'}