[wp-trac] [WordPress Trac] #32180: Make link generation in wplink.js extendable

WordPress Trac noreply at wordpress.org
Wed Apr 29 15:16:13 UTC 2015


#32180: Make link generation in wplink.js extendable
--------------------------+-----------------------------------------
 Reporter:  martinsachse  |       Owner:
     Type:  enhancement   |      Status:  new
 Priority:  normal        |   Milestone:  4.3
Component:  Editor        |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |     Focuses:  javascript, administration
--------------------------+-----------------------------------------

Comment (by Otto42):

 Agreed, I ran into this same problem.

 The htmlUpdate function is currently the main problem here. All the rest
 of the functions in here can be overridden and the originals called to do
 their job, but because htmlUpdate both builds the link and inserts it into
 the textarea, it's not possible to easily modify the resulting link
 without overriding this whole function. At least, not without using silly
 self-modifying-code methods.

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


More information about the wp-trac mailing list