Kendo Editor Custom Style Feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!--Editor Styles--> | |
.hlError | |
{ | |
background-color:#fea; | |
color:#f33; | |
} | |
.hlOK | |
{ | |
background-color:#aef; | |
color:#060; | |
} | |
.inlineCode | |
{ | |
font:bold 12px monospace; | |
} | |
@* Code *@ | |
@( | |
Html.Kendo().Editor() | |
.Name("kEditor") | |
.Tools(tools => tools | |
.Clear() | |
.Styles(styles => styles | |
.Add("Highlight Error", "hlError") | |
.Add("Highlight OK", "hlOK") | |
.Add("Inline Code", "inlineCode") | |
) | |
) | |
.StyleSheets(styles => styles.Add(Url.Content("~/Content/EditorStyles.css"))) | |
.Value(@<text> | |
Kendo UI Editor allows your users to edit HTML in a familiar, user-friendly way.<br /> | |
In this version, the Editor provides the core HTML editing engine, which includes basic | |
text formatting, hyperlinks, lists, | |
and image handling. The widget <strong>outputs identical HTML</strong> across all major | |
browsers, follows | |
accessibility standards and provides API for content manipulation. | |
</text>) | |
.HtmlAttributes(new {style="width:740px;height:240px"}) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment