19 | UE.getEditor('myEditor'); 20 |21 |
19 | 编辑区域一 20 | | 21 |22 | |
25 | 编辑区域二 26 | | 27 |内容2 | 28 |
31 | 编辑区域三 32 | | 33 |内容3 | 34 |
标题 | 内容 |
---|---|
中国 | 19 | |
21 | 22 | 51 | 52 | -------------------------------------------------------------------------------- /DjangoUeditor/static/ueditor/_examples/server/getContent.ashx: -------------------------------------------------------------------------------- 1 | <%@ WebHandler Language="C#" Class="getContent" %> 2 | /** 3 | * Created by visual studio 2010 4 | * User: xuheng 5 | * Date: 12-3-6 6 | * Time: 下午21:23 7 | * To get the value of editor and output the value . 8 | */ 9 | using System; 10 | using System.Web; 11 | 12 | public class getContent : IHttpHandler { 13 | 14 | public void ProcessRequest (HttpContext context) { 15 | context.Response.ContentType = "text/html"; 16 | 17 | //获取数据 18 | string content = context.Server.HtmlEncode(context.Request.Form["myEditor"]); 19 | 20 | 21 | //存入数据库或者其他操作 22 | //------------- 23 | 24 | //显示 25 | context.Response.Write(""); 26 | context.Response.Write( 27 | 28 | ""); 32 | 33 | context.Response.Write("Content of First Editor: "); 34 | context.Response.Write("
24 | 从1.2.6开始,会自动同步数据无需再手动调用sync方法 25 | 26 | 27 |
28 | 29 | 50 | 51 | 52 | 53 | 54 | 55 | -------------------------------------------------------------------------------- /DjangoUeditor/static/ueditor/_examples/textareaDemo.html: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 |你已登录,欢迎你:{{ user.username }}
17 | {# #} 18 | 注销登录 19 | {% else %} 20 |你还没有登录,请 21 | {# #} 22 | 登录 23 | 或者 24 | 25 |
26 | {% endif %} 27 |密码修改成功!
16 |17 | 如果您输入的邮件地址所对应的账户存在,设置密码的提示已经发送邮件给您,您将很快收到。 18 |
19 |20 | 如果你没有收到邮件, 请确保您所输入的地址是正确的, 并检查您的垃圾邮件文件夹. 21 |
22 |