Ckeditor在MVC 5中无法以Ajax.begin形式工作

时间:2018-11-26 10:30:53

标签: javascript asp.net-mvc ckeditor

<script src="https://cdn.ckeditor.com/4.7.0/full-all/ckeditor.js"></script>

@using (Ajax.BeginForm("EventEdit", "AdminSection", new AjaxOptions() { HttpMethod = "POST" }, new { @id = "Ajxform", enctype = "multipart/form-data" }))
{
    @Html.AntiForgeryToken()

    @Html.HiddenFor(m => m.ID)
 <div class="form-group">
    <label class="control-label col-md-2">Program Details</label>

    <div class="col-md-12">
        @Html.TextAreaFor(model => model.Program, new { @class = "form-control", @id = "editor" })
        <script src="~/Scripts/index.js"></script>
        @Html.ValidationMessageFor(model => model.Program, "", new { @class = "text-danger" })
    </div>
 </div>
}

0 个答案:

没有答案