Skip to content

Instantly share code, notes, and snippets.

(function () {
if (typeof (ko) === undefined) {
throw 'Knockout is required, please ensure it is loaded before loading this validation plug-in';
}
ko.bindingHandlers.cleditor = {
init: function(element, valueAccessor, allBindingsAccessor) {
var modelValue = valueAccessor(),
allBindings = allBindingsAccessor();