I have ckeditor installed on my site, and when I use filter formatted textareas on my website where admin pages or fields were created using the UI, the ckeditor replaces correctly. When I use the form api to build one, it does not. This appears to happen on every textarea I make.

Here is what I am using.

    $form['message'] = array(
       '#type' => 'text_format',
       '#title' => t('Message'),
       '#format' => 'filtered_html',

The field renders as a filtered html field, the ckeditor just won't attach to it. How can I resolve this?

Thank you!

Your Answer

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

Browse other questions tagged or ask your own question.