Html 如何使用ckeditor发送响应电子邮件
我正在使用ckeditor从Web服务器发送电子邮件。 但是我怎样才能使电子邮件的内容具有响应性呢? 据我所知,我尝试过的所有“响应电子邮件”模板都是从以下开始的:Html 如何使用ckeditor发送响应电子邮件,html,ckeditor,media-queries,responsive,Html,Ckeditor,Media Queries,Responsive,我正在使用ckeditor从Web服务器发送电子邮件。 但是我怎样才能使电子邮件的内容具有响应性呢? 据我所知,我尝试过的所有“响应电子邮件”模板都是从以下开始的: <center> <table style="width: 100%"> <tr> <td> Some content goes here... </td> </tr>
<center>
<table style="width: 100%">
<tr>
<td>
Some content goes here...
</td>
</tr>
</table>
</center>
如果是这样的话:我必须将它们放在ckeditor的文本区域中的什么位置才能与电子邮件一起发送?如果单击工具栏中的按钮查看源代码,可以在页面顶部添加样式标记 CKEditor还允许添加内联CSS 但是,要使这两种方法都起作用,您需要在ckeditor的config.js文件中启用allowedContent
config.allowedContent = true;
或者,您可以在启动CKEditor时启用allowedContent
<script>
CKEDITOR.replace( 'text-area-id' );
CKEDITOR.config.allowedContent = true;
</script>
CKEDITOR.replace('text area id');
CKEDITOR.config.allowedContent=true;
以下是文档:
<script>
CKEDITOR.replace( 'text-area-id' );
CKEDITOR.config.allowedContent = true;
</script>