I am working on document automation solution through which user can drag item from custom text list (Task Pane) in to the Word document. I want to create add-in using Office.js.
In VSTO we are getting button down event where we have handle DragDrop:
if (MouseButtons == MouseButtons.Left)
{
strValue = (sender as Button).Text;
ThisAddIn.objWordApplication.Selection.SetRange(Cursor.Position.X, Cursor.Position.Y);
(sender as Button).DoDragDrop(" ", DragDropEffects.All);
oCC1 = ThisAddIn.objWordApplication.ActiveDocument.ContentControls.Add(Word.WdContentControlType.wdContentControlText);
oCC1.Range.Text = strValue;
}
Using Office.js, is it possible to achieve same thing from html container (Task pane) to Word document?
Thanks