开发者

how to enable drag and drop into radeditor from images already on page

开发者 https://www.devze.com 2023-03-08 08:43 出处:网络
The example on this page demonstrates how to use drag and drop from the Telerik TreeView into a RadEditor. What I\'m trying to do is do the same as this, but without having to use a treeview.

The example on this page demonstrates how to use drag and drop from the Telerik TreeView into a RadEditor. What I'm trying to do is do the same as this, but without having to use a treeview.

Specifically I have a list of images that the user can choose from (that they uploaded earlier) rendered as standard &l开发者_JAVA百科t;img> tags. I want to allow them to drag from that list into the RadEditor.

In the example, the javascript code is all standard jquery and only references the RadEditor control (not the TreeView) but I can't use the example 'as is' because the events 'OnClientNodeDragging' and 'OnClientNodeDropping' are only defined for a TreeView control (not the RadEditor).

Perhaps I could just hook the equivalent events using jquery directly, but I'm not sure what events that would be? Jquery only seems to define mousedown/mouseup/mousemove events not drag and drop events per se?

0

精彩评论

暂无评论...
验证码 换一张
取 消