論理アップローダfor ckeditorはプロジェクトに問題なくインストールされています。私は、コントローラを次ていますckeditor.js:219 Uncaught TypeError:未定義のプロパティ 'dir'を設定できません
public class Default1Controller : Controller
{
//
// GET: /Default1/
Context _db = new Context();
[HttpGet]
public ActionResult Index()
{
return View();
}
[HttpPost]
public ActionResult Index(content model)
{
_db.tbl_Content.Add(model);
_db.SaveChanges();
return View();
}
}
と私のコンテンツモデル:
@model ckeditor.Models.content
@{
ViewBag.Title = "Index";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<h2>Index</h2>
@using (Html.BeginForm()) {
@Html.AntiForgeryToken()
@Html.ValidationSummary(true)
<fieldset>
<legend>content</legend>
<div class="editor-label">
@Html.LabelFor(model => model.text)
</div>
<div class="editor-field">
@Html.TextAreaFor(model => model.text)
@Html.ValidationMessageFor(model => model.text)
</div>
<p>
<input type="submit" value="Create" />
</p>
</fieldset>
}
<div>
@Html.ActionLink("Back to List", "Index")
</div>
@section Scripts {
@Scripts.Render("~/bundles/jqueryval")
<script src="~/Scripts/ckeditor/ckeditor.js"></script>
<script src="~/Scripts/ckeditor/adapters/jquery.js"></script>
<script>
$(function() {
$('#text').ckeditor();
});
</script>
}
しかし、私は何をすべき私の
@html.TextAreaFor()
にCKEditorバージョンを持っていない:
public class content
{
[Key]
public int id { get;set; }
public string text { get; set; }
}
あなたのコンソールの最初のエラーを見てください - あなたのスクリプトの1つが見つからない(パスを確認してください) –