Commit c5d18d2b authored by oksana-c's avatar oksana-c Committed by anon

Issue #2833739 by oksana-c, anon: Linkit dialog appears in Add File dialog...

Issue #2833739 by oksana-c, anon: Linkit dialog appears in Add File dialog generated by D8 Editor File upload module
parent f9ba6216
......@@ -49,6 +49,11 @@ function linkit_ckeditor_plugin_info_alter(array &$plugins) {
* Implements hook_form_FORM_ID_alter().
*/
function linkit_form_editor_link_dialog_alter(&$form, FormStateInterface $form_state, $form_id) {
// Alter only the form with ID 'editor_link_dialog'.
if ($form_id !== 'editor_link_dialog') {
return;
}
/** @var Drupal\filter\Entity\FilterFormat $filter_format */
$filter_format = $form_state->getBuildInfo()['args'][0];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment