Download & Extend

Different base styles for each textarea

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

Version:6.x-1.3-rc7» 6.x-2.x-dev
Category:support request» feature request

This might be considered for 6.x-2.x.

#3

I think it is better to set BodyId, would that also be good?

#4

Assigned to:Anonymous» Jorrit

I will look at this soon.

#5

Status:active» fixed

Fixed in CVS

#6

Status:fixed» closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

nobody click here