Kendo UI 编辑器,在编辑器中显示 HTML 并编码 html 个实体

Kendo UI Editor, show HTML in Editor with encode html entities

我想在 Kendo UI 编辑器中看到 HTML

<h1>Hello World</h1>

我该怎么做?

我的样品展示于:https://dojo.telerik.com/ezOPAz/3

  $("#editor").kendoEditor({
    value: "<h1>Hello World</h1>",
    encoded: false,
            tools: [
                "viewHtml"
            ],
    deserialization: {
              custom: function(html) {
                 var encodedStr = html.replace(/[\u00A0-\u9999<>\&]/gim, function(i) {
                     return '&#'+i.charCodeAt(0)+';';
                  });
                return encodedStr;
              }
          }
  });