嗨,我有一个像这样的htmleditor:
@{
ViewBag.Title = "Home Page";
}
@Html.DevExpress().HtmlEditor(
settings =>
{
settings.Name = "heFeatures";
settings.CallbackRouteValues = new { Controller = "HtmlEditor", Action = "FeaturesPartial" };
settings.SettingsImageUpload.UploadCallbackRouteVa lues = new { Controller = "HtmlEditor", Action = "FeaturesImageUpload" };
settings.SettingsImageSelector.Enabled = true;
settings.SettingsImageSelector.EditingSettings.All owCreate = true;
settings.SettingsImageSelector.EditingSettings.All owDelete = true;
settings.SettingsImageSelector.EditingSettings.All owMove = true;
settings.SettingsImageSelector.EditingSettings.All owRename = true;
settings.SettingsImageSelector.UploadSettings.Enab led = true;
}).GetHtml()
<input type="submit" value="Create" />
如何在htmleditor数据中发送到控制器的方法。我需要这个htmlcontent保存到我的数据库...我在asp.net web表单中执行此操作:代码隐藏中的editor1.content
但我不知道如何在Razor中执行此操作...