Orchard CKEditor not rendering on custom text areas

121 views Asked by At

I have a custom module that works with a custom data type and part. In my edit view I have some textareas but these are no rendered by CKEditor. Only BodyPart html text areas are rendered (like in pages & blog posts). How can I do this?

References: https://orchardckeditor.codeplex.com/

1

There are 1 answers

1
Xeevis On

CKEditor needs to be initialized, either sneak in somewhere this javascript line

CKEDITOR.replace(textarea);

or append class ckeditor for auto-initialization

<textarea class="ckeditor"></textarea>

If it doesn't work you may also need to add script requirement to your edit view

Script.Require("CKEditor");