Commit cc2fec2e by cahrens

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

parent b1f4d28e
...@@ -33,6 +33,7 @@ Feature: CMS.HTML Editor ...@@ -33,6 +33,7 @@ Feature: CMS.HTML Editor
And I save the page And I save the page
Then the page has text: Then the page has text:
""" """
<p>&nbsp;</p>
<p class="title">pages</p> <p class="title">pages</p>
<style><!-- <style><!--
.title { color: red; } .title { color: red; }
......
...@@ -48,10 +48,6 @@ class @HTMLEditingDescriptor ...@@ -48,10 +48,6 @@ class @HTMLEditingDescriptor
statusbar: false, statusbar: false,
# Necessary to avoid stripping of style tags. # Necessary to avoid stripping of style tags.
valid_children : "+body[style]", 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, setup: @setupTinyMCE,
# Cannot get access to tinyMCE Editor instance (for focusing) until after it is rendered. # Cannot get access to tinyMCE Editor instance (for focusing) until after it is rendered.
# The tinyMCE callback passes in the editor as a paramter. # The tinyMCE callback passes in the editor as a paramter.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment