【问题标题】:editting html with ckEditor, sending "ckEditor" edited email使用 ckEditor 编辑 html,发送“ckEditor”编辑的电子邮件
【发布时间】:2016-04-04 21:11:57
【问题描述】:

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

这是我网站的视图

我的想法是

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

我见过其他人发送电子邮件,但我找不到使用“ckEditor”编辑电子邮件并同时发送的人。

主要问题是

  • 如何编辑+保存“电子邮件表单”和“ckEditor”?
  • 如何在“发送电子邮件”中包含“电子邮件表单”?

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

【问题讨论】:

    标签: php html email ckeditor


    【解决方案1】:

    试一试:

    <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>
    

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

    【讨论】:

    • 我之前研究过包含电子邮件主题和正文的 html。感谢您的帮助,但我需要一个可以编辑 html 并保存它的页面。发送电子邮件是不同的部分
    • 如何拆分步骤。在客户端,更新 fckeditor 中的“html”,然后发送操作。该操作将更新数据库中的记录,然后使用服务器端在电子邮件正文中发送 html 字符串?
    • 这里是使用内联 fckeditor 更新数据库的示例:stackoverflow.com/questions/13625434/…
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多