[wp-trac] [WordPress Trac] #27309: Fix the "Link" button's disabled state

WordPress Trac noreply at wordpress.org
Wed Mar 26 23:12:52 UTC 2014


#27309: Fix the "Link" button's disabled state
--------------------------+--------------------
 Reporter:  azaozz        |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  3.9
Component:  TinyMCE       |     Version:  trunk
 Severity:  normal        |  Resolution:
 Keywords:  ux-feedback   |     Focuses:
--------------------------+--------------------

Comment (by azaozz):

 Replying to [comment:4 avryl]:
 > ...the unlink button is still active when the cursor is not inside a
 link.

 This is the same as in 3.8. Can easily be set to disabled when the caret
 is not in a link. The problem is the Unlink button has only two states:
 can remove | cannot remove. Trying to match that to disabled | enabled |
 highlighted wouldn't work :)

 It's a bit more problematic to enable it when there is a selected text and
 part of that text is in a link. Then clicking Unlink removes the partially
 selected link. Can try to patch it so it looks inside selected text when
 it spans more than one node and set it to 'enabled'. Will still be
 somewhat inconsistent, if it can remove a link it should be highlighted?

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


More information about the wp-trac mailing list