Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我在管理器区域创建了一个自定义页面,并希望添加用于编辑 HTML 内容的文本区域。我似乎无法弄清楚如何引用现有控件。谢谢
要创建 HTML 编辑器,请执行以下步骤:
1:包括设置 html-editor 的局部视图
@Html.Partial("~/Areas/Manager/Views/Shared/Partial/TinyMCE.cshtml")
2:将类编辑器添加到您的文本区域
<textarea class="editor"></textarea>
这应该够了吧。
问候
/ 哈坎