Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Is there a way to use a different body style for two textareas on the same page?
It appears I can not theme them differently.
Comments
Comment #1
easp CreditAttribution: easp commentedI ended up adding the following line to fckeditor.module:
$textarea_id = $conf['show_toggle'] == 't' ? $js_id : $element['#id'];
$_fckeditor_js_ids[$element['#id']] = $textarea_id;
$js = $js_id ." = new FCKeditor( '". $textarea_id ."' );
". $js_id .".BasePath = '". $module_full_path ."/fckeditor/';
". $js_id .".Config['CustomConfigurationsPath'] = \"". $fckeditor_config_path ."\";
". $js_id .".Config['BodyClass'] = \"". $element['#id'] ."\";
". $js_id .".Config['TextareaID'] = \"". $element['#id'] ."\";";
It adds a class to the body element with the name of the element id. It allows me to do custom css styling per textareaID.
Comment #2
Jorrit CreditAttribution: Jorrit commentedThis might be considered for 6.x-2.x.
Comment #3
Jorrit CreditAttribution: Jorrit commentedI think it is better to set BodyId, would that also be good?
Comment #4
Jorrit CreditAttribution: Jorrit commentedI will look at this soon.
Comment #5
Jorrit CreditAttribution: Jorrit commentedFixed in CVS