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.
我有一个使用自定义数据类型和部件的自定义模块。在我的编辑视图中,我有一些文本区域,但这些不是由 CKEditor 呈现的。仅呈现 BodyPart html 文本区域(如在页面和博客文章中)。我怎样才能做到这一点?
参考资料:https ://orchardckeditor.codeplex.com/
CKEditor 需要初始化,要么潜入这个 javascript 行的某个地方
CKEDITOR.replace(textarea);
或附加类ckeditor以进行自动初始化
ckeditor
<textarea class="ckeditor"></textarea>
如果它不起作用,您可能还需要将脚本要求添加到您的编辑视图
Script.Require("CKEditor");