| @@ -46,9 +46,17 @@ | ||
| 46 | 46 | public function show_on_form_builder( $name = '' ) { |
| 47 | 47 | $size = FrmField::get_option( $this->field, 'size' ); |
| 48 | 48 | $max = FrmField::get_option( $this->field, 'max' ); |
| 49 | 49 | |
| 50 | - echo '<textarea name="' . esc_attr( $this->html_name( $name ) ) . '" rows="' . esc_attr( $max ) . '" id="' . esc_attr( $this->html_id() ) . '" class="dyn_default_value"'; | |
| 50 | + $html_atts = array( | |
| 51 | + 'name' => $this->html_name( $name ), | |
| 52 | + 'id' => $this->html_id(), | |
| 53 | + 'rows' => $max, | |
| 54 | + 'class' => 'dyn_default_value', | |
| 55 | + 'placeholder' => FrmField::get_option( $this->field, 'placeholder' ), | |
| 56 | + ); | |
| 57 | + echo '<textarea'; | |
| 58 | + FrmAppHelper::array_to_html_params( $html_atts, true ); | |
| 51 | 59 | |
| 52 | 60 | if ( $size ) { |
| 53 | 61 | if ( is_numeric( $size ) ) { |
| 54 | 62 | $size .= 'px'; |
| @@ -89,9 +97,9 @@ | ||
| 89 | 97 | */ |
| 90 | 98 | public function front_field_input( $args, $shortcode_atts ) { |
| 91 | 99 | $input_html = $this->get_field_input_html_hook( $this->field ); |
| 92 | 100 | $this->add_aria_description( $args, $input_html ); |
| 93 | - $rows = ( $this->field['max'] ) ? 'rows="' . esc_attr( $this->field['max'] ) . '" ' : ''; | |
| 101 | + $rows = $this->field['max'] ? 'rows="' . esc_attr( $this->field['max'] ) . '" ' : ''; | |
| 94 | 102 | |
| 95 | 103 | return '<textarea name="' . esc_attr( $args['field_name'] ) . '" id="' . esc_attr( $args['html_id'] ) . '" ' . |
| 96 | 104 | $rows . $input_html . '>' . |
| 97 | 105 | FrmAppHelper::esc_textarea( $this->field['value'] ) . |