Skip to content
Snippets Groups Projects
Commit bcffdb23 authored by Jacob Rockowitz's avatar Jacob Rockowitz
Browse files

Resolve #3451642 "Improve linkit attributes"

parent d117d10f
No related branches found
No related tags found
1 merge request!152Resolve #3451642 "Improve linkit attributes"
Pipeline #187507 passed with warnings
......@@ -195,8 +195,10 @@ function linkit_schemadotorg_property_field_alter(
return;
}
// Use linkit for the link URL autocompletion.
$widget_id = 'linkit';
// Use Linkit or Linkit (with attributes) for the link URL autocompletion.
$widget_id = (\Drupal::moduleHandler()->moduleExists('linkit_attributes'))
? 'linkit_attributes'
: 'linkit';
$widget_settings = ['linkit_auto_link_text' => TRUE];
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment