我正在尝试在tinyMCE
项目中使用fckeditor mvc
。
所以我将此代码添加到我的网站标题中:
@Scripts.Render("//tinymce.cachefly.net/4.0/tinymce.min.js")
<script type="text/javascript">
// Initialize your tinyMCE Editor with your preferred options
tinyMCE.init({
// General options
mode: "textareas",
theme: "modern",
});
</script>
我将此添加到我的模型中:
[AllowHtml]
[DataType(DataType.MultilineText)]
public string NewsText { get; set; }
最后我的观点是:
<div class="form-group">
@Html.LabelFor(model => model.NewsDate, new { @class = "control-label col-lg-2" })
<div class="col-lg-10">
@Html.TextBoxFor(model => model.NewsDate, new { @class = "form-control myfont" })
@Html.ValidationMessageFor(i => i.NewsDate, "", new { @class = "validation" })
</div>
</div>
结果是:
每件事情都很好但是当我试图改变编辑主题以推进我的意思时:
<script type="text/javascript">
// Initialize your tinyMCE Editor with your preferred options
tinyMCE.init({
// General options
mode: "textareas",
theme: "advance",
});
</script>
editor
被删除了为什么?
答案 0 :(得分:-1)
简单的拼写错误,应该是&#34;高级&#34;不是&#34;提前&#34;