Code: Select all
<div class="black">
<h1 class="white">White heading</h1>
<h1 class="red">Red heading</h1>
<p class="white">White paragraph text</p>
</div>
<p>Another paragraph in "black on white"</p>
<div class="black">
<h1 class="white">White heading</h1>
<h1 class="red">Red heading</h1>
<p class="white">White paragraph text</p>
</div>
EDIT:
I have installed the CKEditor and I see, this is very close to what I want. It is just that the logic of creation of such nested structure is slightly upside-down. But works almost perfectly.