2013-04-08 57 views

回答

2

如果你可以使用jQuery,你可以只读取其中的内容和使用setData它。

var html = jQuery('#YourDivSelector').html(); 
CKEDITOR.instances.editor1.setData(html); 
+0

或可替代'VAR HTML =的document.getElementById( 'YourDivID')。innerHTML'没有jQuery的。 – Nenotlep 2013-04-08 05:10:35