I would like to have the default target in the link dialog be _blank. I have made the following change in my code:
var targetTab = dialogDefinition.getContents( 'target' );
// Set the default value for the URL field.
var targetField = targetTab.get( 'linkTargetType' );
targetField[ 'default' ] = '_blank';
When I display the link dialog it show _blank as the target as desired. My problem is that unless I manually change the link target in the dropdown list the target is not added to the <a> tag.
var targetTab = dialogDefinition.getContents( 'target' );
// Set the default value for the URL field.
var targetField = targetTab.get( 'linkTargetType' );
targetField[ 'default' ] = '_blank';
When I display the link dialog it show _blank as the target as desired. My problem is that unless I manually change the link target in the dropdown list the target is not added to the <a> tag.

Re: Default link target not working correctly
I changed
in _source\plugins\link\dialogs\link.js to
and this works fine.
Re: Default link target not working correctly
Re: Default link target not working correctly