Index: tinymce.module =================================================================== RCS file: /cvs/drupal-contrib/contributions/modules/tinymce/tinymce.module,v retrieving revision 1.90.4.16 diff -u -r1.90.4.16 tinymce.module --- tinymce.module 25 Feb 2007 20:02:44 -0000 1.90.4.16 +++ tinymce.module 20 Mar 2007 12:34:42 -0000 @@ -497,6 +497,8 @@ $init['verify_html'] = $settings['verify_html'] ? $settings['verify_html'] : 'false'; $init['preformatted'] = $settings['preformatted'] ? $settings['preformatted'] : 'false'; $init['convert_fonts_to_styles'] = $settings['convert_fonts_to_styles'] ? $settings['convert_fonts_to_styles'] : 'false'; + $init['remove_linebreaks'] = $settings['remove_linebreaks'] ? $settings['remove_linebreaks'] : 'true'; + $init['apply_source_formatting'] = $settings['apply_source_formatting'] ? $settings['apply_source_formatting'] : 'true'; $init['theme_advanced_resize_horizontal'] = 'false'; $init['theme_advanced_resizing_use_cookie'] = 'false'; @@ -903,6 +905,22 @@ '#description' => t('If you set this option to true, font size, font family, font color and font background color will be replaced by inline styles.') ); + $form['output']['remove_linebreaks'] = array( + '#type' => 'select', + '#title' => t('Remove Linebreaks'), + '#default_value' => $edit->settings['remove_linebreaks'], + '#options' => array('true' => 'true', 'false' => 'false'), + '#description' => t('Set this option to false to prevent TinyMCE from removing linebreaks from existing nodes. True avoids conflicts with some filters.') + ); + + $form['output']['apply_source_formatting'] = array( + '#type' => 'select', + '#title' => t('Apply Source Formatting'), + '#default_value' => $edit->settings['apply_source_formatting'], + '#options' => array('true' => 'true', 'false' => 'false'), + '#description' => t('This option makes TinyMCE apply source formatting. Set this to true for a cleaner HTML source. Choose false to avoid conflicts with some filters.') + ); + $form['css'] = array( '#type' => 'fieldset', '#title' => t('CSS'),