--- tinymce.module.orig 2008-10-07 11:44:19 -0500 +++ tinymce.module 2008-10-07 15:28:14 -0500 @@ -507,9 +507,14 @@ $init['convert_fonts_to_spans'] = $settings['convert_fonts_to_spans'] ? $settings['convert_fonts_to_spans'] : '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['force_br_newlines'] = $settings['force_br_newlines'] ? $settings['force_br_newlines'] : 'false'; $init['theme_advanced_resize_horizontal'] = 'false'; $init['theme_advanced_resizing_use_cookie'] = 'false'; + if ($settings['force_br_newlines'] && $settings['force_br_newlines'] == true){ + $init['forced_root_block'] = ''; + } + $tinymce_mod_path = drupal_get_path('module', 'tinymce'); if (is_dir($tinymce_mod_path .'/tinymce/jscripts/tiny_mce/plugins/imagemanager/') && user_access('access tinymce imagemanager')) { --- tinymce.admin.inc.orig 2008-10-07 17:03:34 -0500 +++ tinymce.admin.inc 2008-10-07 15:26:43 -0500 @@ -362,6 +362,14 @@ '#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['output']['force_br_newlines'] = array( + '#type' => 'select', + '#title' => t('Force newlines to use breaks over paragraphs'), + '#default_value' => $edit->settings['force_br_newlines'], + '#options' => array('true' => 'true', 'false' => 'false'), + '#description' => t('If you set this option to true, TinyMCE will force BR elements on newlines instead of inserting paragraphs. This option is set to false by default.') + ); + $form['css'] = array( '#type' => 'fieldset', '#title' => t('CSS'),