WordPress tinymce default link's target -
i'm trying edit wordpress tinymce editor links has target = "_blank". i've tried jquery set 'open link in new tab' checkbox checked but, no results. thank you
you can accomplish default_link_target
setting in tinymce configuration: https://www.tinymce.com/docs/plugins/link/#default_link_target
here tinymce fiddle of in action: http://fiddle.tinymce.com/31faab
to in wordpress need create simple plugin modifies setting tinymce loaded. this:
<?php add_filter('tiny_mce_before_init', 'add_my_options', 1000); function add_my_options($opt) { $opt['default_link_target'] = "_blank"; return $opt; //you must return $opt not break things } ?>
if have never created wp plugin not hard build , there plenty of examples on web.
Comments
Post a Comment