I have a custom widget for a field that hides the field if certain conditions are not met. My custom widget field extends the StringTextareaWidget class as a base. When it renders, my widget never displays ckeditor.

If I change the display widget to "Text Area (multiple rows)" ckeditor displays as expected.

To test my code, I commended out everything except the class declaration that extends StringTextAreaWidget, and this also prevents the ckeditor from displaying when the widget is rendered. How do I get my custom field widget to display with ckeditor?


I was extending the wrong class from my field widget. The proper class to extend if you're looking to use CKEditor is TextareaWidget

|improve this answer|||||

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.