Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 ckeditor 3.6.2,一切正常,只是我无法将任何内容附加到编辑器,这是我的代码
CKEDITOR.appendTo( 'post_content','<pre class="html"></pre>' );
它没有在萤火虫控制台上给我任何错误,但也没有在文本区域中附加任何内容,尝试在 ckeditor 文档上查看它,但没有一个解决了我的问题
谢谢
实际上我明白了,我做错了......如果其他人有同样的问题,试试这段代码
CKEDITOR.instances.post_content.insertText('<pre class="html"></pre>');
post_content 是您的编辑器的 id