1
현재 Drupal 8에 대한 사용자 정의 모듈을 개발 중입니다. 사용자로부터 일부 데이터를 얻기 위해 백엔드 양식을 추가하는 동안 ckeditor가 내 textareas ...를 대체하도록 설정하려고했지만 실패했습니다>. 내 텍스트 영역을 대체 할 수있는 ckeditor를로드해야 할Drupal 8 사용자 정의 모듈의 ckeditor
$form['text'] = array(
'#type' => 'textarea',
'#title' => t('Text'),
'#required' => TRUE,
'#attributes' => array(
'id' => 'text',
'style' => 'max-width: 650px'
),
'#default_value' => $data['text']
);
: 여기
<는 양식 정의인가? 나는 이미 시도
일 :
$build['#attached'] = array(
'js' => array(
drupal_get_path('module', 'ckeditor') . '/js/ckeditor.js'
drupal_render($build);
및
drupal_load_library("ckeditor", "ckeditor");
하지만 모든 종속성을로드 할 수 없습니다