Ich versuche, TinyMCE mit ASP.NET MVC 5 zu verwenden, jedoch scheint es nicht zu funktionieren. Das Textfeld wird angezeigt, es handelt sich jedoch um ein normales Textfeld, das nicht mit TinyMCE-Funktionen angereichert ist.TinyMCE in ASP.NET MVC 5 Razor
Views \ Shared_Layout.cshtml
<link rel="stylesheet" type="text/css" href="~/Content/jquery.datetimepicker.css"/>
<script src="~/Content/jquery.js"></script>
<script src="~/Content/build/jquery.datetimepicker.full.min.js"></script>
<script src="//cdn.tinymce.com/4/tinymce.min.js"></script>
<script type="text/javascript">
tinyMCE.init({
mode: "specific_textareas",
editor_selector: "editorHtml",
});
</script>
Views \ MyView \ Create.cshtml
@Html.TextAreaFor(model => model.Corpo, new { htmlAttributes = new { @class = "form-control editorHtml" } })
Irgendwelche Tipps?
Haben Sie Ihre JavaScript-Konsole überprüft, um festzustellen, ob Fehler aufgetreten sind? – mason