Hello,
The issues regarding serialization and deserialization custom options have been logged internally and will be fixed for the next official release.
For the pasteCleanup.custom I am logging it as a bug to be handled. You can monitor it from here: https://github.com/telerik/kendo-ui-core/issues/2059. For the time being, the custom pasteCleanup is not available for the MVC wrapper, but you can alternatively use the paste event to clean or strip any content to be pasted: http://docs.telerik.com/kendo-ui/api/javascript/ui/editor#events-paste.
As for serialization.custom and deserialization.custom, you can use the setOptions method in order to assign them later in the code. Like in this example:
@(Html.Kendo().Editor()
.Name(
"bloop"
)
.Events(e => e.Change(
"onChange"
).Paste(
"onPaste"
))
.Tools(t => t.ViewHtml())
)
<script type=
"text/javascript"
>
$(document).ready(
function
() {
var
kendoEditor = $(
"#bloop"
).data(
"kendoEditor"
);
kendoEditor.setOptions({
deserialization: {
custom: onDeserialization
},
serialization: {
custom: onSerialization
}
});
});
function
onPaste(html) {
console.log(
'onPaste'
);
return
html;
}
function
onSerialization(html) {
console.log(
'onSerialization'
);
return
html;
}
function
onDeserialization(html) {
console.log(
'onDeserialization'
);
return
html;
}
function
onChange() {
console.log(
'onChange'
);
}
</script>
I hope that helps.
Regards,
Ianko
Telerik by Progress
Do you want to have your say when we set our development plans?
Do you want to know when a feature you care about is added or when a bug fixed?
Explore the
Telerik Feedback Portal
and vote to affect the priority of the items