Asp.net MVC 编辑器文件上传



我根据官方网站制作了一个剑道编辑器。我在上传文件时遇到了问题,是否有任何命令可以从PC中选择文件并将其保存在服务器上?

@(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>)
)

您应该使用剑道上传小部件。在此处查看示例。

最新更新