Closed (fixed)
Project:
FCKeditor - WYSIWYG HTML editor
Version:
6.x-2.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
9 Jul 2009 at 15:34 UTC
Updated:
18 Oct 2009 at 20:30 UTC
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 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 commentedThis might be considered for 6.x-2.x.
Comment #3
Jorrit commentedI think it is better to set BodyId, would that also be good?
Comment #4
Jorrit commentedI will look at this soon.
Comment #5
Jorrit commentedFixed in CVS