> I think this should be possible by preventing the mousedown and click
> events on an image, so that they can't be dragged. I haven't tested
> it, but that should work as follows:
One issue that I expect with this is the the image can be injected
anywhere: not necessarily when the cursor is at the beginning of the
document, and so the image would not be fixed.
Thinking about it further, what would be ideal for me, would be if the
editable area was not all of the iFrame, but there was a wrapper div,
like:
<body>
<p> This is not editable</p>
<div>
<p>This is editable</p>
</div>
</body>
And in fact only the contents of the wrapper div was seen as content
of the replaced textarea. Then if the body of the iFrame could be
exposed via an API. Then I could inject/remove elements "externally"
as I see fit.
Is such a thing possible?
Michal.