摘要: 第一步将 KindEditor 的源文件添加到项目中,建议放到 /Scripts/kindeditor 目录中,其中只需要有 lang目录、plugis目录、themes目录和kindeditor-min.js文件即可。第二步在 /Views/Shared/EditorTemplates 目录中添加一个分部视图“kindeditor.cshtml”(文件名可任意)。代码如下:@Html.TextArea(string.Empty, ViewData.TemplateInfo.FormattedModelValue)第三步在需要应用编辑器的Model属性中设置 DataAnnotations,比 阅读全文
posted @ 2012-03-31 20:51 魏聪 阅读(2018) 评论(3) 推荐(1) 编辑
摘要: 先踩个脚印~~ 阅读全文
posted @ 2012-03-30 08:04 魏聪 阅读(117) 评论(0) 推荐(0) 编辑