I have a
textarea field in a custom module form , I guess there is ckeditor library by default in core in d8 . I tried the following :
$form['fieldset']['email_template'] = array( '#type' => 'text_format', '#format' => 'full_html', '#title' => t('E-mail template content'), '#default_value' => "<br><br><br>" . $dvalue, '#description' => t('A valid template for email trigger.<b> Please type ":" for variable suggestions</b>'), '#attributes' => array( ), '#required' => TRUE, '#cols' => 60, '#resizable' => TRUE, '#rows' => 13, //'#wysiwyg' => TRUE, );
I followed the link : https://www.drupal.org/node/1031160
But the ckeditor is not applying to the textarea as expected . Any idea ??
I was not given the text_format as
ckeditor in https://base_url/admin/config/content/formats .
I defined a new format which can apply to which all fields needed as ckeditor . cheers