Drupal 7: How to use CKeditor with Rules email I'm trying to do the following to allow the CKeditor to be used with a rules-base email:

function mymodule_form_rules_ui_edit_element_alter(&amp;$form, $form_state, $form_id) {
  $form['parameter']['message']['settings']['message']['#type'] = 'text_format';
  $form['parameter']['message']['settings']['message']['#format'] = 'full_html';
} 


However, I receive the following warning among others:

Warning: htmlspecialchars() expects parameter 1 to be string, array given in check_plain()


And the email I receive contains "Array" as the body. Seems like the issue is outstanding here: http://drupal.org/node/1031160

Is there a way to convert the output of CKeditor into a string?

Right now, I'm kind of missing the days where you just told CKeditor where not to show up.
I know this is an old issue but i had the same problem and could not find any answer so i figured it out myself.I thought i will put my findings here maybe it will help others.

Most important is that you should use text_formatted not text_format otherwise rules cannot render the field correct. Second is that you should use a different hook "mymodule_rules_action_info_alter" to change the type of the field. See in the example code how i changed the html body field for the mime mail rule "html email"

function mymodule_rules_action_info_alter(&amp;$actions) {
  $actions['mimemail']['parameter']['body']['type'] = 'text_formatted';
  $actions['mimemail_to_users_of_role']['parameter']['body']['type'] = 'text_formatted';
}