TinyMCE: Applying style to multiple paragraphs
I have a question regarding applying style (from the drop down list) for selected paragraphs. Suppose I have the following two paragraphs and the HTML code is as follows:
[php]
My first paragraph...
My second paragraph...
[/php]
After selecting both paragraphs and applying the style(redBox), I am getting the following:
[php]
My first paragraph...
My second paragraph...
[/php]
What I want is, when I have multiple paragraphs one after the other, I want to put one red box around all the paragraphs. For this, I have to select all the paragraphs and chose the style(redBox).
Now each paragraph is getting its own red box instead of one big red box around all the paragraphs.
Here is the sample HTML code that I am expecting from TinyMCE
[php]
My first paragraph...
My second paragraph...
[/php]
Here is my css class for redBox (../tinymce/config/custom_content.css)
[php]
.redBox
{
border:1px solid red;
padding: 1% 1% 0.5% 1%;
display:block;
overflow:auto;
margin-bottom: 1%;
width: 95%;
}
[/php]
Thanks.