Nesting paragraphs or DIVs in Rich Text Editor (TinyMCE)? Options
mgrdcm
Posted: Tuesday, June 24, 2008 11:25:32 PM
Rank: Newbie

Joined: 4/15/2008
Posts: 17
Location: Indianapolis, IN
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.
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.