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.

About

This is the company blog of
Drupal specialist Merge.nl

We are located in Breda (Netherlands) and build websites using Drupal. More about us.

Content on this blog is licensed under a Creative Commons Attribution-Noncommercial-Share Alike 3.0 Netherlands License.

Creative Commons License

Recent Comments

Social