NOP using Ueditor Editor, official website http://ueditor.baidu.com/website/
Unzip after download.
\presentation\nop.web\content, create a new folder Ueditor and copy the extracted files to this folder.
New page under \presentation\nop.web\administration\views\shared\editortemplates ueditor.cshtml
1 @model String2 @using Nop.core3 @using Nop.Core.Domain.Common4 @using Nop.Services.Security5 @using Nop.Web.Framework.UI6 @{7Html.addscriptparts ("~/content/ueditor/ueditor.config.js");8Html.addscriptparts ("~/content/ueditor/ueditor.all.js");9Html.addscriptparts ("~/content/ueditor/lang/zh-cn/zh-cn.js");Ten } One A<script> -Ue.geteditor ("@ViewData. Templateinfo.getfullhtmlfieldid (String. Empty)", { -Initialframewidth:'100%', theInitialframeheight: - - }); -</script> - +@Html. TextArea (string. Empty,/*Name suffix*/ -ViewData.TemplateInfo.FormattedModelValue/*Initial Value*/ +)
When used, change the richeditor of the calling editor to Ueditor.
1<divclass="Form-group">2<divclass="col-md-3">3@Html. noplabelfor (model =model. Full)4</div>5<divclass="col-md-9">6@Html. editorfor (x = X.full,"Richeditor")7@Html. validationmessagefor (model =model. Full)8</div>9</div>
As for the editor inside the Upload path and menu, you look at the change it, no difficulty.
over!
Nop3.8 Custom Series (ii): Ueditor Editor