Opened 15 years ago
Closed 11 years ago
#5325 closed Bug (fixed)
Path becomes relative after a copy / paste
Reported by: | Ollea | Owned by: | |
---|---|---|---|
Priority: | Normal | Milestone: | |
Component: | General | Version: | 3.0 |
Keywords: | Firefox VendorFix | Cc: |
Description
If you are accessing CKEditor with an URL ending with a slash, let's say :
http://ckeditor.com/demo/
Insert a new link in the editor and specify "http://ckeditor.com/test/" (please note the ending slash) as URL.
Then select the newly created link and copy / paste it.
Now have a look at the source, the link becomes :
<a href="../test/">...
Even if you specify the config baseHref.
How can we fix this ?
Change History (8)
comment:1 Changed 15 years ago by
Milestone: | CKEditor 3.3 |
---|---|
Priority: | High → Normal |
comment:2 Changed 15 years ago by
Priority: | Normal → High |
---|
comment:3 Changed 15 years ago by
Priority: | High → Normal |
---|
If you provide a patch then you can set the priority that you want. Meanwhile I guess that this is a browser bug that will be hard to fix.
comment:4 Changed 15 years ago by
Yes, you are right, this is a browser specific bug, I thought it could be solved more easily. I will check if I can fix it.
comment:5 Changed 13 years ago by
Related to #193, still blocked by firefox bug https://bugzilla.mozilla.org/show_bug.cgi?id=295930
comment:6 Changed 13 years ago by
Changes in copy/paste will be fixed in Firefox 12 according to https://bugzilla.mozilla.org/show_bug.cgi?id=613517
comment:7 Changed 13 years ago by
Keywords: | Firefox VendorFix added |
---|---|
Status: | new → confirmed |
Version: | 3.2 → 3.0 |
To reproduce:
- Create page with code like (you can use ip or domain):
<div contenteditable="true"> <a href="http://192.168.1.150:8595/index.html">Link1</a> <img src="http://192.168.1.150:8595/someimage.jpg"> </div>
- Open it in Firefox and copy links and images
- Paste them into CKEditor
Result: Firefox will chnage absolute URLs to:
<a href="../../../../../index.html">Link1</a> <br /> <img src="../../../../../b.jpg" /> <br />
comment:8 Changed 11 years ago by
Resolution: | → fixed |
---|---|
Status: | confirmed → closed |
This issue has been fixed in Firefox and I can't reproduce it in CKEditor anymore.
I think this bug must be defined as a high priority because the resulting URLs (after a copy / paste) are broken.