Greetings,
One design element on a site I'm working on is a "highlight" area. These appear inline, can contain multiple paragraphs of text, and still need to be able to be edited using TinyMCE.
In other words, what I have is:
Code:yadda yadda yadda, regular text on page
yadda yadda yadda, regular text on page
---HIGHLIGHT BOX BEGIN---
| yadda yadda yadda, text on a blue background with a border and such|
||
| yadda yadda yadda, text on a blue background with a border and such|
---HIGHLIGHT BOX END---
yadda yadda yadda, regular text on page
yadda yadda yadda, regular text on page
And the HTML is, approximately:
Code:
<p>yadda yadda yadda, regular text on page</p>
<p>yadda yadda yadda, regular text on page</p>
<div class="highlight">
<p>yadda yadda yadda, text on a blue background with a border and such</p>
<p>yadda yadda yadda, text on a blue background with a border and such</p>
</div>
<p>yadda yadda yadda, regular text on page</p>
<p>yadda yadda yadda, regular text on page</p>
I can't find a way to do this in TinyMCE without putting all the content in, then going back and adding the DIV using HTML. Is there any way to do this that I haven't been able to find?
My first thought was that I'd just make a Macro which took as a parameter the stuff to go inside the "highlight" DIV, but the issue is that there's no RichText parameter type for Macros.