Created
August 29, 2018 21:53
-
-
Save EdCharbeneau/b175c142621e034ee977d0c1bbe07e49 to your computer and use it in GitHub Desktop.
CSS Strike in Kendo UI Editor
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<style>html { font-size: 14px; font-family: Arial, Helvetica, sans-serif; }</style> | |
<title></title> | |
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2018.2.620/styles/kendo.common-material.min.css" /> | |
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2018.2.620/styles/kendo.material.min.css" /> | |
<link rel="stylesheet" href="https://kendo.cdn.telerik.com/2018.2.620/styles/kendo.material.mobile.min.css" /> | |
<script src="https://kendo.cdn.telerik.com/2018.2.620/js/jquery.min.js"></script> | |
<script src="https://kendo.cdn.telerik.com/2018.2.620/js/kendo.all.min.js"></script> | |
</head> | |
<body> | |
<div id="example"> | |
<div class="box wide"> | |
<h4>Information</h4> | |
<p> | |
The following demo shows how to use the Editor's style tool, which provides the ability to customize the widget content by means of custom | |
CSS classes and styling, and a CSS file registered in the Editor iframe document. | |
</p> | |
</div> | |
<textarea id="editor" rows="10" cols="30" style="width:100%;height:400px"> | |
<p> | |
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. | |
</p> | |
<p>Features include:</p> | |
<ul> | |
<li>Text formatting & alignment</li> | |
<li>Bulleted and numbered lists</li> | |
<li>Hyperlink and image dialogs</li> | |
<li>Cross-browser support</li> | |
<li>Identical HTML output across browsers</li> | |
<li>Gracefully degrades to a <code>textarea</code> when JavaScript is turned off</li> | |
</ul> | |
<p> | |
Read <a href="http://docs.telerik.com/kendo-ui">more details</a> or send us your | |
<a href="http://www.telerik.com/forums/">feedback</a>! | |
</p> | |
</textarea> | |
<script> | |
$("#editor").kendoEditor({ | |
tools: [ | |
{ name: "formatting", width: 150, items: [ | |
{ text: "Highlight Error", value: ".hlError" }, | |
{ text: "Highlight OK", value: ".hlOK" }, | |
{ text: "Inline Code", value: ".inlineCode" }, | |
{ text: "Strike", value: ".strike" } | |
] } | |
], | |
stylesheets: [ | |
"editorStyles.css" | |
] | |
}); | |
</script> | |
</div> | |
</body> | |
</html> |
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
.hlError | |
{ | |
background-color:#fea; | |
color:#f33; | |
} | |
.hlOK | |
{ | |
background-color:#aef; | |
color:#060; | |
} | |
.inlineCode | |
{ | |
font:bold 12px monospace; | |
} | |
.strike { | |
text-decoration: line-through; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment