Telerik.Web.UI.Editor.CommandList["InsertUnorderedList"] = function(commandName, editor, args) { |
var selection = editor.getSelection(); |
var selectedHTML = selection.getHtml(); |
editor.pasteHtml("<ul class=ulolProdDesc><li>" + selectedHTML + "</li></ul>"); |
} |
Is there any way to grab the line of text the cursor is on when you hit the button on the tool bar? Or is there a better way to do this (maybe like limiting the amount of list items a list can have?). When I try to use createRestorePoint() I get an undefined error, even though I'm not sure I can use it anyway. Thanks for the help.