1 ckeditor5.module | ckeditor5_form_filter_format_editor_link_form_alter(&$form, $form_state) |
Implements hook_form_FORM_ID_alter().
Manipulate the link dialog form to remove setting the link text, which is not (yet) supported).
File
- core/
modules/ ckeditor5/ ckeditor5.module, line 861 - Provides integration with the CKEditor WYSIWYG editor.
Code
function ckeditor5_form_filter_format_editor_link_form_alter(&$form, $form_state) {
$format = $form_state['format'];
if ($format->editor === 'ckeditor5') {
$form['text']['#access'] = FALSE;
}
}