[wp-trac] [WordPress Trac] #38229: Open link in new tab stays checked when creating new links.

WordPress Trac noreply at wordpress.org
Tue Oct 4 21:30:23 UTC 2016


#38229: Open link in new tab stays checked when creating new links.
--------------------------+-----------------------------
 Reporter:  JoelStransky  |      Owner:
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  TinyMCE       |    Version:  4.6.1
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 If while creating a link in TinyMCE you check the "Open link in new tab"
 and save, creating an additional new link will have the box ticked by
 default.
 http://g.recordit.co/bMX15RlmtG.gif

 This appears be an oversite in wplink.js where
 {{{
 wpLink.setDefaultValues()
 }}}
 which is only called for brand new links, doesn't attempt to clear this
 box.

 Suggested fix:
 {{{inputs.openInNewTab.prop( 'checked', false );}}}

--
Ticket URL: <https://core.trac.wordpress.org/ticket/38229>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list