EditorSnippetBuilder
Methods
Add(System.String,System.String)
Adds predefined HTML code snippets in the content area.
Parameters
title - System.String
The title of the snippet.
snippet - System.String
The title of the snippet.
Example
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools => tools
.Snippets(snippets => snippets
.Add("Signature", "<p>Regards,<br /> John Doe,<br <a
href='mailto:john.doe@example.com'>john.doe@example.com</a></p>")
)
)
)
AddFromFile(System.String,System.String)
Loads predefined HTML code snippets in the content area from a file.
Parameters
title - System.String
The title of the snippet.
pathToSnippet - System.String
The path to the file that contains the snippet.
Example
@(Html.Kendo().Editor()
.Name("Editor")
.Tools(tools => tools
.Snippets(snippets => snippets
.AddFromFile("Signature", "~/Content/SignatureSnippet.html")
)
)
)