Edit this page

serialization.custom Function

Define custom serialization for the editable content. The method accepts a single parameter as a string and is expected to return a string.

Example

<textarea id="editor"></textarea>
<script>
$("#editor").kendoEditor({
    serialization: {
        custom: function(html) {
            return html.replace(/(<\/?)b(\s?)/, "$1strong$2");
        }
    }
});
</script>
Is this article helpful? Yes / No
Thank you for your feedback!

Give article feedback

Tell us how we can improve this article

close
Dummy