PDA

View Full Version : Drag into a htmleditor



vanadium
25 Jun 2009, 12:36 AM
Hi, I wanted to figure out if it is possible to insert into an htmlEditor panel a <div> and use it as drop target. I tried to insert it in the panel's value property and style it throgh a CSS but nothing happens; if I toggle the source edit I can see the code but the <div> isn't diplayed in the panel.
Any suggestion about this?

Thanks in advance

vanadium
26 Jun 2009, 4:57 AM
up

hendricd
26 Jun 2009, 6:24 AM
@vanadium -- Drag/Drop will be difficult, as HTMLEditor hosts an iframe to edit your content.

Animal
26 Jun 2009, 6:26 AM
You'll have to mask the HtmlEditor on start drag with a floating DIV which is a DropTarget.

On drop, insert the dragged data. The mouse position will not be available, it will just have to be inserted wherever the caret was.