2017-11-13 2 views

답변

0

내 샘플 쇼 : 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; 
 
       } 
 
      } 
 
    });