Allow TinyMCE to create p's, else formatting doesn't work.

This commit is contained in:
cahrens
2014-03-19 16:52:51 -04:00
parent b1f4d28e46
commit cc2fec2e1a
2 changed files with 1 additions and 4 deletions

View File

@@ -33,6 +33,7 @@ Feature: CMS.HTML Editor
And I save the page
Then the page has text:
"""
<p>&nbsp;</p>
<p class="title">pages</p>
<style><!--
.title { color: red; }

View File

@@ -48,10 +48,6 @@ class @HTMLEditingDescriptor
statusbar: false,
# Necessary to avoid stripping of style tags.
valid_children : "+body[style]",
# Prevent TinyMCE from adding extra <p>&nbsp;</p> in code.
forced_root_block : "",
force_br_newlines : true,
force_p_newlines : false,
setup: @setupTinyMCE,
# Cannot get access to tinyMCE Editor instance (for focusing) until after it is rendered.
# The tinyMCE callback passes in the editor as a paramter.