Product Bundles
DevCraft
All Telerik .NET tools and Kendo UI JavaScript components in one package. Now enhanced with:
Web
Mobile
Document Management
Desktop
Reporting
Testing & Mocking
CMS
UI/UX Tools
Debugging
Free Tools
Support and Learning
Productivity and Design Tools
<telerik:RadEditor runat=
"server"
ID=
"RadEditor1"
OnClientCommandExecuting=
"OnClientCommandExecuting"
>
<Content>
<ul>
<li></li>
</ul>
</Content>
</telerik:RadEditor>
<script>
function
OnClientCommandExecuting(sender, args) {
var
editorUtils = Telerik.Web.UI.Editor.Utils;
command = args.get_commandName();
selElm = sender.getSelectedElement();
isEmptyLi = selElm.nodeName ===
"LI"
&&
editorUtils.isEmptyDom(selElm.firstChild);
if
(command ===
"EnterNewLine"
&& isEmptyLi) {
args.set_cancel(
true
);
}
</script>