[html-formfu] Modifying generated html for some form elements
Nigel Metheringham
nigel.metheringham at dev.intechnology.co.uk
Wed Mar 10 19:45:14 GMT 2010
My solution for this was to add these in my catalyst root controller
(purely because it seemed like a reasonable place to put oddments):-
# hack some of the FormFu stuff a bit...
sub HTML::FormFu::Element::Textarea::_string_field_start {
my ( $self, $render ) = @_;
return (
$self->next::method($render) . '<div class="textarea_container">' );
}
sub HTML::FormFu::Element::Textarea::_string_field_end {
my ( $self, $render ) = @_;
return ( '</div>' . $self->next::method($render) );
}
Seemed like the cleanest way I could see... still a bit messy but thats
down to TinyMCE as much as anything.
Nigel.
--
[ Nigel Metheringham Nigel.Metheringham at InTechnology.com ]
[ - Comments in this message are my own and not ITO opinion/policy - ]
More information about the HTML-FormFu
mailing list