New answers tagged

1

You can do this automatically by creating your own text filter in a custom module. Note that the /** @Filter ... */ in front of the class is not a comment, but an annotation, it has to be included in the file. Replace all fancy uppercase stuff with your own code. src/Plugin/Filter/MYFANCYFILTER.php <?php namespace Drupal\MY_MODULE\Plugin\Filter; use ...


0

I have tried to add target="_blank" by using Text Format=Full HTML using Source button. It worked for me. If you do not want manually then you can try following module https://www.drupal.org/project/editor_advanced_link


1

In Drupal 8 you can use the file_url_generator service Drupal::service('file_url_generator')->generateAbsoluteString($uri) Because the file_create_url($uri) function is deprecated: https://www.drupal.org/node/2940031


Top 50 recent answers are included