google-code-export / django-grappelli

Automatically exported from code.google.com/p/django-grappelli
0 stars 0 forks source link

Can't do nested block-level elements in TinyMCE #61

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add Div to the theme_advanced_blockformats property
2. Add div to the valid_child_elements
3. Go into the source editor, add a nested div

What is the expected output? What do you see instead?
Expected:
<div>
    <div></div>
</div>

Instead:
<div></div>

What version of the product are you using? On what operating system?
svn checkout of Grappelli, Mac OS X 10.5.7, FireFox 3.5

Please provide any additional information below.
Tables also seem to be broken, and for the life of me, I can't seem to get
TinyMCE to see any custom templates for content I've added.

Original issue reported on code.google.com by btaylord...@gmail.com on 9 Jul 2009 at 3:37

GoogleCodeExporter commented 9 years ago
I´m sorry, but this question is not related to grappelli - it´s a 
tinymce-issue and
you may want to use the tinymce-forum.

btw: a DIV is _not_ a blockformat (by definition). currently, I don´t think 
tinymce
can handle DIVs correctly. eg, how do you insert a paragraph into a DIV, if 
both is
defined within blockformats?

Original comment by sehmaschine on 9 Jul 2009 at 7:39

GoogleCodeExporter commented 9 years ago
I stand corrected :)

Original comment by btaylord...@gmail.com on 9 Jul 2009 at 12:46