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.
エディターの外部からエディターでテキストを選択する必要があります。これを使用してeditor.getSelection().getSelectedText()いますが、何も返されません。どうすればそのテキストを取得できますか??
editor.getSelection().getSelectedText()
以下は 3.6.1 以降で利用可能で、4.1 ではスムーズに動作します。
CKEDITOR.instances.yourInstanceName.getSelection().getSelectedText();
問題が発生した場合は、追加情報を提供してください: ブラウザ (ベンダー + バージョン)、CKEditor バージョン、および構成。