0

As the title says pretty straight forward.

I just need to know how to transfer all of the content from a div into a CKEditor while not transferring the div itself.

It's version 4.1 btw.

4

1 に答える 1

2

jQuery を使用できる場合は、コンテンツを読み込んで setData を入れるだけで済みます。

var html = jQuery('#YourDivSelector').html();
CKEDITOR.instances.editor1.setData(html);
于 2013-04-08T05:08:15.523 に答える