Typography customization for template
February 2014 Joomla Template
Rate this topic: 




1.00 out of 6 based on 1 vote(s)
- GK User
- Mon Jan 05, 2015 1:28 pm
- Reply with quote
- Report this post
I have template NEWS2.
I am trying cutomize typography elements in file template/typography/ful.xml.
I want change block elements (div wrapped by paragraph)
from
<group name="Blocks" type="html">
<item name="block1"><![CDATA[<div class="gkblock-1">content here...</div>]]></item>
<item name="block2"><![CDATA[<div class="gkblock-2">content here...</div>]]></item>
<item name="block3"><![CDATA[<div class="gkblock-3">content here...</div>]]></item>
</group>
to
<group name="Blocks" type="html">
<item name="block1"><![CDATA[<p><div class="gkblock-1">content here...</div></p>]]></item>
<item name="block2"><![CDATA[<p><div class="gkblock-2">content here...</div></p>]]></item>
<item name="block3"><![CDATA[<p><div class="gkblock-3">content here...</div></p>]]></item>
</group>
When I put a modified element in the article editor TinyMCE to the article, paragraph is not inserted.
It is caused by the TinyMCE editor or properties Typography plugin?
I am trying cutomize typography elements in file template/typography/ful.xml.
I want change block elements (div wrapped by paragraph)
from
<group name="Blocks" type="html">
<item name="block1"><![CDATA[<div class="gkblock-1">content here...</div>]]></item>
<item name="block2"><![CDATA[<div class="gkblock-2">content here...</div>]]></item>
<item name="block3"><![CDATA[<div class="gkblock-3">content here...</div>]]></item>
</group>
to
<group name="Blocks" type="html">
<item name="block1"><![CDATA[<p><div class="gkblock-1">content here...</div></p>]]></item>
<item name="block2"><![CDATA[<p><div class="gkblock-2">content here...</div></p>]]></item>
<item name="block3"><![CDATA[<p><div class="gkblock-3">content here...</div></p>]]></item>
</group>
When I put a modified element in the article editor TinyMCE to the article, paragraph is not inserted.
It is caused by the TinyMCE editor or properties Typography plugin?
-

- Senior Boarder
- teitbite
- Tue Jan 06, 2015 3:46 pm
- Reply with quote
- Report this post
Hi
It's being stripped by editor. A paragraph is not allowed to put a div inside, but it allows the other way around.
It's being stripped by editor. A paragraph is not allowed to put a div inside, but it allows the other way around.
-

- Moderator
2 posts
• Page 1 of 1
