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.
私はckeditor3.6.2を使用していますが、エディターに何も追加できないだけですべてが正常に機能します。これが私のコードです
CKEDITOR.appendTo( 'post_content','<pre class="html"></pre>' );
Firebugコンソールでエラーが発生することはありませんが、テキストエリアに何も追加されていません。ckeditorのドキュメントで調べてみましたが、いずれも私の問題を解決しませんでした。
ありがとう
実際、私はそれを手に入れましたが、間違っていました...他の誰かが同じ問題を抱えている場合は、このコードを試してください
CKEDITOR.instances.post_content.insertText('<pre class="html"></pre>');
post_content は編集者の ID です