Opened 19 years ago
Closed 19 years ago
#3462 closed enhancement (fixed)
Change in 'Add link' behaviour in RTE
| Reported by: |
|
Owned by: |
|
|---|---|---|---|
| Milestone: | 2.1 | Priority: | lowest |
| Severity: | minor | Version: | 2.1 |
| Component: | Administration | Keywords: | has-patch commit |
| Focuses: | Cc: |
Description
At one time, when you inserted a link the "http://" was already
highlighted, so you could just paste in the link you can copied from
the address bar, overlaying the "http://" already there. Now this
"http://" is no longer highlighted, so you have to backspace over it
to wipe it out before or after you paste in the link.
Was this a deliberate change and will it be reverted ?
(Apologies if this is the wrong place for this)
Attachments (1)
Change History (8)
#1
@
19 years ago
- Milestone changed from 2.2 to 2.1
- Priority changed from normal to lowest
- Severity changed from normal to minor
- Type changed from defect to enhancement
- Version set to 2.1
#3
@
19 years ago
- Owner changed from anonymous to markjaquith
- Status changed from new to assigned
+1 for highlighting it. anything that kills paste ability is bad. BUT, we could also check for double http:// or https:// on the backend like so:
$url = preg_replace('|^http(s)?://http(s)?://|', 'http$2://', $url);
I see people doing that ALL the time, so this could be once of those nice "it just works" features. Even with highlighting, people are going to get it wrong sometimes.
#4
@
19 years ago
Note: this new behavior was introduced to RTE by ticket:2579 (dupl #3192) r4597 a week ago, but that added the 'http://', it was not previously there nor highlighted.
+1 selected
I think you're thinking of when the RTE is off and it's just a standard JS prompt. In 2.0.5, there's nothing in the URL box. ;)
However, this should be easy to do if it's generally agreed that we want this. :)