When moving a image in designMode the image will loos all it's propertys except the src="", it would seam that the image is reinserted rathere then moved, this makes it an invalid image as it no longer has an alt="" atribute and might significaltly change it's representation on the page (float, margin etc.).
To test http://rtef.info/demo.htm go to HTML mode, put in the code for an image with some funny style to it, go back in to designmode, drag the image on to a different part of the test and watch as your attribtues be striped away.
I cannot confirm the issue in the latest Webkit r31114 on Mac OS X 10.5. Anders, is it still visible in the latest Webkit nightly or Safari 3.1 for Windows?
The issue is still there Go to http://rtef.info/demo.htm Switch to HTML mode Insert this code <img src="http://www.google.com/intl/da_ALL/images/logo.gif" alt="important description" width="99" height="120" /> move it here -> Switch to RichText mode Move the image to the other end of the text (drag and drop) Result: image is moved and only the image url survives, all other properties are removed from the image and as alt is completely striped it isn't even valid any more.
I still cannot confirm the bug on Mac OS X. So maybe the bug is PlatformOnly (visible only on Windows). I try to reproduce it on Windows tomorrow. Anyway, thank you for the details!
I belive I saw it first on XP and today on Vista, I'll try it on OS X 10.4 tomorrow, not sure it will be the nightly build though.
I tested the issue in the latest Webkit nightly and I can confirm existence of the bug but only on Windows.
<rdar://problem/5807008>
Yep i got the same here, its on vista and xp, but not on OS 10.4
Windows only. Confirmed with the CKEditor nightly build: http://nightly.ckeditor.com/latest/ckeditor/_samples/replacebyclass.html Just place an anchor anywhere in the text. Dragging it, on drop, it disappears, and the "magic" <img> tag gets outputted in the source view.