New answers tagged


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 ...


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


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:

Top 50 recent answers are included