Reputation: 11
I Initialized tinymce as below, but in IE, default_link_target does not work. tinymce version is 5.10.2
tinymce.init({
selector: '#mytextarea',
height: 800,
plugins: 'link, autolink',
default_link_target: '_blank'
});
In IE, a tag created by autolink. No target attribute.
<p><a href="http://www.google.com/">http://www.google.com/</a></p>
In Edge, a tag created by autolink.
<p><a href="http://www.google.com/" target="_blank" rel="noopener">http://www.google.com/</a></p>
Upvotes: 1
Views: 673
Reputation: 1
I had a similar issue, try including the extended_valid_elements option for tinymce.init
extended_valid_elements: 'a[class|title|href|target]',
link_default_target: '_blank',
Upvotes: 0