2016-02-26 91 views
0

我根據官方網站製作了一個kendo編輯器。我遇到了文件上傳的問題,是否有任何命令從PC中選擇文件並將其保存在服務器上?Asp.net mvc編輯器文件上傳

@(Html.Kendo().Editor() 
     .Name("editor") 
     .HtmlAttributes(new { style = "width: 100%;height:440px" }) 
     .Tools(tools => tools 
      .Clear() 
      .InsertImage() 
      .InsertFile() 
      .Bold().Italic().Underline().Strikethrough() 
      .JustifyLeft().JustifyCenter().JustifyRight().JustifyFull() 
      .InsertUnorderedList().InsertOrderedList() 
      .Outdent().Indent() 
      .CreateLink().Unlink() 
      .SubScript() 
      .SuperScript() 
      .TableEditing() 
      .Formatting() 
      .CleanFormatting() 
      .FontName() 
      .FontSize() 
      .FontColor().BackColor() 
      .Print()) 
     .Value(@<text>@Html.Raw(ViewBag.Html)</text>) 
) 

回答

0

您應該使用劍道上載部件。看看樣品here