[wp-trac] [WordPress Trac] #30463: Adding second link to a text in Visual editor doesn't work within a table

WordPress Trac noreply at wordpress.org
Sun Dec 28 21:16:47 UTC 2014


#30463: Adding second link to a text in Visual editor doesn't work within a table
--------------------------+-----------------------------------------
 Reporter:  Dumian        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  low           |   Milestone:  4.2
Component:  TinyMCE       |     Version:  4.0.1
 Severity:  minor         |  Resolution:
 Keywords:  needs-patch   |     Focuses:  javascript, administration
--------------------------+-----------------------------------------
Changes (by azaozz):

 * keywords:   => needs-patch
 * priority:  normal => low
 * severity:  normal => minor
 * milestone:  Awaiting Review => 4.2


Comment:

 Hi Dumian, thanks for the bug report.

 I can reproduce it inconsistently and is somewhat browser dependent.
 Doesn't happen in IE. In Firefox and Chrome usually the first attempt
 fails, but the second attempt succeeds. Depends on what is selected when
 you try to select all text inside a <td>. If the <td> node is selected,
 you cannot wrap it in a link, if only text node(s) is/are selected, or
 <img>, <span>, etc. it works as expected.

 Seems we will have to look at the current selection in
 https://core.trac.wordpress.org/browser/trunk/src/wp-
 includes/js/wplink.js#L265 in non-IE browsers.

 Currently cannot reproduce this for any other tags, so perhaps a fix is
 needed only for <td>.

--
Ticket URL: <https://core.trac.wordpress.org/ticket/30463#comment:1>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list