1 ckeditor5.module | ckeditor5_form_filter_format_editor_image_form_alter(&$form, $form_state) |
Implements hook_form_FORM_ID_alter().
Manipulate the image insert form to describe CKEditor-integration.
File
- core/
modules/ ckeditor5/ ckeditor5.module, line 848 - Provides integration with the CKEditor WYSIWYG editor.
Code
function ckeditor5_form_filter_format_editor_image_form_alter(&$form, $form_state) {
$format = $form_state['format'];
if ($format->editor === 'ckeditor5') {
$form['caption']['#description'] = t('If checked, a caption area will appear in the editor.');
}
}