Manually trigger CKEditor textarea
Drupal 7 using the ckeditor module.
In case you have a textarea which is loaded through ajax for example, and ckeditor is not triggered, you can turn it on programatically:
Drupal.settings.ckeditor.elements[textarea_id] = 'filtered_html';
Drupal.ckeditorOn(textarea_id);
Note: there should be a better way to set the setting with the input filter, but I haven't figured out that yet, comments are welcome.