首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >用ckEditor编辑html,发送"ckEditor“编辑的电子邮件

用ckEditor编辑html,发送"ckEditor“编辑的电子邮件
EN

Stack Overflow用户
提问于 2015-12-30 21:05:35
回答 1查看 323关注 0票数 0

目前我正在使用ckEditor发送/编辑电子邮件。

这是我的网站

我想的是

让电子邮件表单->用ckEditor ->编辑电子邮件表单发送“ckEditor”编辑的电子邮件

我见过其他人发电子邮件,但我找不到人使用'ckEditor‘编辑电子邮件和发送同时。

主要问题有:

  • 我如何edit+save‘电子邮件形式’和‘电子邮件编辑器’?
  • 如何包含“电子邮件表单”以“发送电子邮件”?

(我目前正在使用$mailbody列出带有html的电子邮件)

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-12-30 21:08:54

扔这个:

代码语言:javascript
复制
<html>
<head>
<title>Comment Form from FCKeditor - Sample</title>
<meta content="text/html; charset=utf-8" http-equiv="Content-Type">
<meta content="noindex, nofollow" name="robots">
<link href="../sample.css" rel="stylesheet" type="text/css"><!--insert correct path to the file on your server-->
<script src="../../fckeditor.js" type="text/javascript"></script><!--insert correct path to the file on your server-->
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0">
<form action="mailto:mail@mail.com?subject=New Comment" method="post" name="form1"><!--insert correct path to your email-->
<table border="0" cellpadding="4" cellspacing="2" width="90%">
<tr valign="top">
<td bgcolor="#CCCCCC">Title</td>
</tr>
<tr valign="top">
<td></td>
</tr>
<tr valign="top">
<td>
<p>Name:<br><input name="textfield1" size="50" type="text"> </p>
<p>Email:<br><input name="textfield2" size="50" type="text"> </p>
<p>Subject:<br><input name="textfield3" size="50" type="text"> </p>
<p>Question or Comment:<br>
<script type="text/javascript">
<!--
// Automatically calculates the editor base path based on the _samples directory.
// This is usefull only for these samples. A real application should use something like this:
// oFCKeditor.BasePath = '/fckeditor/' ;    // '/fckeditor/' is the default value.
var sBasePath = document.location.href.substring(0,document.location.href.lastIndexOf('_samples')) ;
var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.Height   = 300 ;
oFCKeditor.Value    = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;
oFCKeditor.Create() ;
//-->
</script>
<br></p>
</td>
</tr>
<tr valign="top">
<td><input name="Submit" type="submit" value="Submit"> </td>
</tr>
</table>
</form>
</body>
</html>

根据需要更新表单操作。干杯

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/34537237

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档