Posted by easp on July 9, 2009 at 3:34pm
3 followers
Jump to:
| Project: | FCKeditor - WYSIWYG HTML editor |
| Version: | 6.x-2.x-dev |
| Component: | Miscellaneous |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Jorrit |
| Status: | closed (fixed) |
Issue Summary
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
#1
I 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.
#2
This might be considered for 6.x-2.x.
#3
I think it is better to set BodyId, would that also be good?
#4
I will look at this soon.
#5
Fixed in CVS
#6
Automatically closed -- issue fixed for 2 weeks with no activity.