2013-12-18 25 views

回答

1

试试这个:

function getClick(e) { 

     try {    //the name of your editor 
      var editor = $("#editor").data("kendoEditor"); 
      var editorContent = editor.value(); 
      alert(editorContent); 
      //Do Your stuff here 

     } 
     catch (e) { } 
    } 

然后用一个按钮

<button class="k-button" id="btnPreviewContent" onclick="getClick()">PreviewEditor Content</button> 
+1

打电话,当我尝试这个我只得到了标记的文本。有没有办法获得所有的html标签? –

相关问题