[wp-trac] [WordPress Trac] #18149: Enhance "Insert/edit link" to predict user's intent
WordPress Trac
noreply at wordpress.org
Sun Aug 25 21:17:36 UTC 2013
#18149: Enhance "Insert/edit link" to predict user's intent
-------------------------+------------------------------
Reporter: itsalltech1 | Owner: azaozz
Type: enhancement | Status: reopened
Priority: normal | Milestone: Awaiting Review
Component: Editor | Version: 3.1
Severity: minor | Resolution:
Keywords: 2nd-opinion |
-------------------------+------------------------------
Comment (by avryl):
Good idea, then we could match links starting with a dot as well.
So if it doesn't match `'^([a-z]+:|#|\\?|\\.|\\/)'`, add the current
protocol.
And if anyone want to link to `page`, they should use `./page` instead.
The only thing that goes through now are links with a port number, so not
sure if it's best to check against `[a-z]+` or whitelisted protocols.
--
Ticket URL: <http://core.trac.wordpress.org/ticket/18149#comment:49>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list