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

Popular posts from this blog

Failed to execute goal org.apache.maven.plugins:maven-surefire-plugin:2.12:test (default-test) on project.Error occurred in starting fork -

windows - Debug iNetMgr.exe unhandle exception System.Management.Automation.CmdletInvocationException -

configurationsection - activeMq-5.13.3 setup configurations for wildfly 10.0.0 -