خرید بک لینک

Vote count: 0

i installed logical Uploader for ckeditor in my project and it Was installed without problems. i have following controller :

 public class Default1Controller : Controller
{
    //
    // GET: /Default1/
    Context _db = new Context();
    [HttpGet]
    public ActionResult Index()
    {
        retu View();
    }
    [HttpPost]
    public ActionResult Index(content model)
    {
        _db.tbl_Content.Add(model);
        _db.SaveChanges();
        retu View();
    }
}

and my content model:

 public class content
{
    [Key]
    public int id { get;set; }
    public string text { get; set; }
}

my strongly typed Index 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>
}

but i don't have ckeditor on my @html.TextAreaFor() what should i do? enter image description here

asked 3 mins ago

برچسب: نویسنده: استخدام کار تاريخ: يکشنبه 26 ارديبهشت 1395 ساعت: 13:23

صفحه بندی