#1847: Drag picture in Mozilla trashes src
----------------------+-----------------------------------------------------
Reporter: dinu | Owner:
Type: Bug | Status: closed
Priority: Normal | Milestone:
Component: General | Version: FCKeditor 2.5.1
Resolution: invalid | Keywords: Confirmed Firefox
----------------------+-----------------------------------------------------
Comment (by dinu):
Here's in more detail:[[BR]]
- the script resides at http://server/path/to/script[[BR]]
- it has uploaded files at http://server/path/to/script/Upload[[BR]]
- it uses mod_rewrite to serve virtual addresses such as
http://server/path/to/script/virtual/page/address[[BR]]
- in FCKeditor, I set
FCKConfig.BaseHref='http://server/path/to/script'[[BR]]
- now, when editing, if I insert a picture it has the url
Upload/image/picture.ext[[BR]]
- when I drag the picture around, the URL changes to
../../Upload/image/picture.ext, which is mapped to
http://server/path/Upload/image/picture.ext (to/script/ missing)[[BR]]
- as a result, picture disappears
So the problem is not mod_rewrite, but the fact that FF maps relative urls
wrong when having <base href="...">. I think this will always be a problem
when using BaseHref in FF, so it's more that a weird instance bug, it
breaks the whole BaseHref feature in FF. I took a look at the code, and
saw that it's easy to tell when an internal drag operation occurs
(FCK.MouseDownFlag in FCK.InitializeBehaviors._ExecDrop), so I wonder if
restoring urls from _fcksavedurl at this point would be a cheap fix to
this?
--
Ticket URL: <http://dev.fckeditor.net/ticket/1847#comment:8>
FCKeditor <http://www.fckeditor.net>
The text editor for Internet
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac