protected bool DoInsertDataCore(List <string> files, DataAction action, MarkupPointer begin, MarkupPointer end) { IHtmlEditorHost blogEditor = _blogEditor; ImageInsertEntryPoint imageInsertEntryPoint = ImageInsertEntryPoint; EditorContext.Invoke(delegate { //hack: drive the selection textRange to the caret (before calling InsertImages) EditorContext.MarkupServices.CreateMarkupRange(begin, end).ToTextRange().select(); string[] fileArray = files.ToArray(); blogEditor.InsertImages(fileArray, ImageInsertEntryPoint.DragDrop); }); return(true); }
public void InsertImages(string[] files, ImageInsertEntryPoint entryPoint) { ImageInsertionManager.InsertImagesCore(_currentEditor, _fileService, _currentEditorAccount, this, files); }