<?xml version="1.0" encoding="utf-8"?>
<!--
* FCKeditor - The text editor for Internet - http://www.fckeditor.net
* Copyright (C) 2003-2007 Frederico Caldeira Knabben
*
* == BEGIN LICENSE ==
*
* Licensed under the terms of any of the following licenses at your
* choice:
*
* - GNU General Public License Version 2 or later (the "GPL")
* http://www.gnu.org/licenses/gpl.html
*
* - GNU Lesser General Public License Version 2.1 or later (the "LGPL")
* http://www.gnu.org/licenses/lgpl.html
*
* - Mozilla Public License Version 1.1 or later (the "MPL")
* http://www.mozilla.org/MPL/MPL-1.1.html
*
* == END LICENSE ==
*
* This is the sample templates definitions file. It makes the "templates"
* command completely customizable.
*
* See FCKConfig.TemplatesXmlPath in the configuration file.
-->
<Templates imagesBasePath="fck_template/images/">
<Template image="template1.gif" title="Basic">
<Description>Basic one column layout.</Description>
<Html><![CDATA[
<div id="basic">
input text here
</div>
]]></Html>
</Template>
<Template image="template1.gif" title="Two col A">
<Description>Two column layout with 1/1 split</Description>
<Html><![CDATA[
<div id="two-col-1by1">
<div id="left1by1">left column here</div>
<div id="right-1by1">right column here</div>
<div class="clearer"> </div>
</div>
]]></Html>
</Template>
<Template image="template1.gif" title="Two col B">
<Description>Two column layout with 1/2 split</Description>
<Html><![CDATA[
<div id="two-col-1by2">
<div id="left1by2">left column here</div>
<div id="right1by2">right column here</div>
<div class="clearer"> </div>
</div>
]]></Html>
</Template>
</Templates>
<div class="pagecontent">
<h1>Parent Page > Breadcrumbs</h1>
<h2>Page content title goes here</h2>
<p>Content text and things go here</p>
</div>
<h1 class="pagecontent">Parent Page > Breadcrumbs</h1>
<h3 class="pagecontent">Page content title goes here</h3>
<p class="pagecontent">Content text and things go here</p>
lizsterine wrote: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):
<div class="pagecontent">
<h1>Parent Page > Breadcrumbs</h1>
<h2>Page content title goes here</h2>
<p>Content text and things go here</p>
</div>
When the user highlights or clicks on a line and changee the format to a Heading 1 or Normal or whatever via the Format menu, the code turns into this:
<h1 class="pagecontent">Parent Page > Breadcrumbs</h1>
<h3 class="pagecontent">Page content title goes here</h3>
<p class="pagecontent">Content text and things go here</p>
THe div is gone and it put the div's class on all other block elements. Can anyone help? It's driving me and my client nuts!
Re: template div tags closing unexpectedly
Re: template div tags closing unexpectedly
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
Re: template div tags closing unexpectedly
Re: template div tags closing unexpectedly