4

The option for opening a link in the Redactor WYSIWYG no longer includes a field for opening it in a new tab? I haven't been able to find any docs that indicate any options for the Redactor config file to add this back in?

Screenshot

Jay
  • 1,042
  • 7
  • 24
  • @jolyonruss Did you try looking here? There should be a .js file. In my case on Craft 2, it's here. /resources/lib/redactor/redactor.js Redactor Path – Anvar Jamal Jun 10 '21 at 22:51

1 Answers1

12

Add the linkNewTab config option to the Redactor config you're using: So, that would become something like:

{
    "buttons": [...],
    "plugins": [...],
    "linkNewTab": true
}
Paul
  • 6,338
  • 12
  • 26
  • Top man. Really helpful. I did have a look through the docs but clearly missed that. Much appreciated. – Jay Jun 13 '18 at 14:07
  • Hi @Paul - I'm trying to configure Redactor in the same way but am not having any luck. I found a Simple.json and Standard.json files in /config/redactor/. Is this the correct place to make the changes? Is there anything I need to do after making the changes before the field will show up? – jolyonruss Aug 01 '18 at 15:41