When we build a form with text_format field in Drupal 8, images inserted in ckeditor is temporary and will be deleted 6 hours after cron by default.
$form['content'] = [
'#type' => 'text_format',
'#title' => 'Content',
'#format' => 'full_html',
'#expected_value' => [
'value' => 'Text value',
'format' => 'plain_text',
],
];
最新评论