p tags messing up design elements (tinymce)
Permalink
Hey All
I have a simple page with a headline H1 and body text P.
I want my users to be able to update both sections without having to style their own content via tinymce. They know nothing about what a paragraph tag is or what a heading 1 tag is.
So here is my current code:
When I do it this way, tinymce is adding <p> tags to the content within the <h1> tag. Therefore stripping the css rule I have for the <h1>.
Is there a way to fix this? Or am I coding this incorrectly?
Help is greatly appreciated!
iShiva
I have a simple page with a headline H1 and body text P.
I want my users to be able to update both sections without having to style their own content via tinymce. They know nothing about what a paragraph tag is or what a heading 1 tag is.
So here is my current code:
<h1><?php $a = new Area('Headline'); $a->display($c); ?></h1> <p><?php $a = new Area('Body Text'); $a->display($c); ?></p>
When I do it this way, tinymce is adding <p> tags to the content within the <h1> tag. Therefore stripping the css rule I have for the <h1>.
Is there a way to fix this? Or am I coding this incorrectly?
Help is greatly appreciated!
iShiva
try using page attributes instead
Thanks Mnkras for replying.
I will try to research that a little. I'm a web designer but brand new to C5 and still trying to figure things out.
Where can I access page attributes? Can ya be more specific?
Thanks again
I will try to research that a little. I'm a web designer but brand new to C5 and still trying to figure things out.
Where can I access page attributes? Can ya be more specific?
Thanks again
Actually, I just got it. Not too hard. Just had to play around a bit.
Thanks for the tip!
Thanks for the tip!
I'm sure a lot of us have similar issues with the <p> tag getting stuffed in when we didn't ask for it.
Can you post your resolution here please?
Can you post your resolution here please?