2015-04-30 63 views

回答

0
$('#summernote').on('summernote.paste', function (customEvent, nativeEvent) { 
    //set time out--so we buy some time to summernote can be receive and select pasting text 
    setTimeout(function() { 
     //this is texteditor container in summernote 
     $('.note-editable').selectText(); 
    //call removeFormat method to clear text 
     $("#summernote").summernote("removeFormat"); 
    }, 100); 

});` 
+0

請說明你的答案 –

+2

你可以添加的,爲什麼這應該工作的一些細節?僅有代碼的答案不是非常有用,可能會被刪除。 – Cristik