[wp-trac] [WordPress Trac] #32143: wpLink function getAttrs() missing link-text

WordPress Trac noreply at wordpress.org
Mon Apr 27 07:04:11 UTC 2015


#32143: wpLink function getAttrs() missing link-text
-------------------------+-----------------------------
 Reporter:  xwolf        |      Owner:
     Type:  enhancement  |     Status:  new
 Priority:  normal       |  Milestone:  Awaiting Review
Component:  General      |    Version:  4.2
 Severity:  normal       |   Keywords:
  Focuses:  javascript   |
-------------------------+-----------------------------
 After last update to 4.2 wpLink() was renewed and the title-input was
 replaced.
 Instead of title, you can now insert/change the link text.
 https://core.trac.wordpress.org/browser/trunk/src/wp-
 includes/js/wplink.js?rev=32017

 But in function getAttrs() the val of link-text was forgotten.

 Therfor I proporse to add this line in getAttrs():

    linktext: $.trim( inputs.text.val() ),


 Also it would be nice to populate the link-text field with the document
 title of a chosed intern element, like it was made with the old title-
 field before.

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


More information about the wp-trac mailing list