 @(Html.Kendo().Editor()
      .Name("editor")
      .HtmlAttributes(new { style = "width: 740px;height:440px" })
      .Tools(tools => tools
          .Clear()
          .Bold().Italic().Underline().Strikethrough()
          .JustifyLeft().JustifyCenter().JustifyRight().JustifyFull()
          .InsertUnorderedList().InsertOrderedList()
          .Outdent().Indent()
          .CreateLink().Unlink()
          .InsertImage()
          .SubScript()
          .SuperScript()
          .TableEditing()
          .ViewHtml()
          .Formatting()
          .FontName()
          .FontSize()
          .FontColor().BackColor()
          .CustomButton(cb => cb.Name("custom").ToolTip("Test").Exec(@<text>
            function(e) {
                var editor = $(this).data("kendoEditor");
                editor.exec("inserthtml", { value: "<hr />" });
            }
        </text>))
       .CustomButton(cb=> cb.Name("uploadimage").ToolTip("Test2").Exec(@<text>
         function(e)
        {
           $("#fileupload").trigger('click'); 
             
        }
        </text>)  )

      )
      .Events(e=>e.Select("change"))
      .Value(content)
)