Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.php |
— | — | @@ -699,7 +699,12 @@ |
700 | 700 | $field_args['cols'] = 80; |
701 | 701 | $sfgTabIndex++; |
702 | 702 | $sfgFieldNum++; |
703 | | - list( $new_text, $new_javascript_text ) = SFFormInputs::textAreaHTML( '!free_text!', 'free_text', false, ( $form_is_disabled || $is_restricted ), $field_args ); |
| 703 | + if ( $cur_value == '' ) { |
| 704 | + $default_value = '!free_text!'; |
| 705 | + } else { |
| 706 | + $default_value = $cur_value; |
| 707 | + } |
| 708 | + list( $new_text, $new_javascript_text ) = SFFormInputs::textAreaHTML( $default_value, 'free_text', false, ( $form_is_disabled || $is_restricted ), $field_args ); |
704 | 709 | if ( in_array( 'edittools', $free_text_components ) ) { |
705 | 710 | // borrowed from EditPage::showEditTools() |
706 | 711 | $options[] = 'parse'; |