I've made a couple of templates for my users. The templates are formated with divs.
My problem is when the user needs to make a h1,h2.. element inside the template, the editor automaticly closes my div tag and brakes the template.
Is there a way to prevent this behaviour, I would hate to make my templates with tables just for this reason.
Any help appreciated
Tue, 12/30/2008 - 22:29
#1
Re: template div tags closing unexpectedly
Re: template div tags closing unexpectedly
Here are the templates, very basic stuff just using id's to format the columns in css.
Re: template div tags closing unexpectedly
<div id="basic">input text here</div>
results in this HTML when people use the editor
<div id="basic">input text here</div>
<div>line 1</div>
<div>line 2</div>
Changing the template to
<div id="basic">
<p>input text here</p>
</div>
should do the trick.
Re: template div tags closing unexpectedly
Yes it works perfectly with the p tags
Many thanks, You have saved my day!
Re: template div tags closing unexpectedly
Hmmm? This seemed to work for me once upon a time (i think) but now no longer does.
It causes MANY upexpected results and is quite annoying.
What I get is my annoyingly wierd now.
My temlate (as it appears in source):
Re: template div tags closing unexpectedly