This is a migrated thread and some comments may be shown as answers.

Inserting text within the editor on drop of node from treeview plugin

0 Answers 91 Views
Editor
This is a migrated thread and some comments may be shown as answers.
Monish
Top achievements
Rank 1
Monish asked on 29 Sep 2012, 05:39 AM
Hi,

I want to insert the text of the node of the treeview where the user has dropped the node within editor.
Dropping of the node from  treeview to editor is achieved using Kendo DragAndDrop and Kendo Template. I am using template for each node and mark them as draggable. DragAndDrop feature of treeview is disabled as I don't want the nodes to be drag-n-drop within treeview. I am able to add the text where the cursor is within the editor (by using insertHtml) but not where the user has dropped the node.
For example, if user is trying to drop node on line 3 but the cursor is currently on line 1, the text is getting inserted in line 1 and not line 3.

Any idea how to achieve this?

Regards,
Monish.

No answers yet. Maybe you can help?

Tags
Editor
Asked by
Monish
Top achievements
Rank 1
Share this question
or