Update 3 Form plugins for Asset instanciators and exceptions.

This commit is contained in:
Colin Kuskie 2010-03-03 19:31:18 -08:00
parent 2b39e16cc8
commit 36b6081894
3 changed files with 15 additions and 14 deletions

View file

@ -169,8 +169,8 @@ Renders an HTML area field.
sub toHtml {
my $self = shift;
my $i18n = WebGUI::International->new($self->session);
my $richEdit = WebGUI::Asset::RichEdit->new($self->session,$self->get("richEditId"));
if (defined $richEdit) {
my $richEdit = eval { WebGUI::Asset::RichEdit->newById($self->session, $self->get("richEditId")); };
if (! Exception::Class->caught() ) {
$self->session->style->setScript($self->session->url->extras('textFix.js'),{ type=>'text/javascript' });
$self->set("extras", $self->get('extras') . ' onblur="fixChars(this.form.'.$self->get("name").')" mce_editable="true" ');
$self->set("resizable", 0);