- fix [ 1216061 ] 2 rich editors - 1 field

This commit is contained in:
Matthew Wilson 2005-06-13 19:44:20 +00:00
parent e236ea22a0
commit b263d76b15
3 changed files with 9 additions and 7 deletions

View file

@ -401,7 +401,7 @@ sub getName {
#-------------------------------------------------------------------
sub getRichEditor {
my $self = shift;
my $calledAsWebMethod = shift;
my $nameId = shift;
my @toolbarRow1 = split("\n",$self->getValue("toolbarRow1"));
push(@toolbarRow1,"contextmenu") if ($self->getValue("enableContextMenu"));
my @toolbarRow2 = split("\n",$self->getValue("toolbarRow2"));
@ -409,7 +409,8 @@ sub getRichEditor {
my @toolbarButtons = (@toolbarRow1,@toolbarRow2,@toolbarRow3);
my @plugins;
my %config = (
mode => "specific_textareas",
mode => "exact",
elements => $nameId,
theme => "advanced",
document_base_url => "/",
auto_reset_designmode => "true",

View file

@ -1189,7 +1189,7 @@ sub HTMLArea {
defaultValue=>$params->{defaultValue}
});
WebGUI::Style::setScript($session{config}{extrasURL}.'/textFix.js',{ type=>'text/javascript' });
$output .= WebGUI::Asset::RichEdit->new($richEditId)->getRichEditor;
$output .= WebGUI::Asset::RichEdit->new($richEditId)->getRichEditor($params->{name});
return $output;
}