The Joomla! Forum ™



Forum rules


Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.



Post new topic Reply to topic  [ 6 posts ] 
Author Message
PostPosted: Sat Jun 23, 2012 8:40 am 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Sun Jan 17, 2010 10:47 pm
Posts: 102
Helo,
I have article having this code:

Code:
<p><img alt="Обука" src="dokumenti/baneri_sekcii/obuka.jpg" height="135" width="635" /></p>
<span class="obuka">
<p><strong>Test:</strong></p>
</span>
<p><span style="color: #339966;"><strong>AAA:</strong></span></p>
<ul>
<li><span style="color: #339966;">1</span></li>
<li><span style="color: #339966;">2</span></li>
<li><span style="color: #339966;">3</span></li>
<li><span style="color: #339966;">4</span></li>
<li><span style="color: #339966;">5</span></li>
<li><span style="color: #339966;">6</span></li>
</ul>


When i open the article immediately changes the code to:

Code:
<p><img alt="Обука" src="dokumenti/baneri_sekcii/obuka.jpg" height="135" width="635" /></p>
<p><span class="obuka"></span></p>
<p><strong>Test:</strong></p>
<p><span style="color: #339966;"><strong>AAA:</strong></span></p>
<ul>
<li><span style="color: #339966;">1</span></li>
<li><span style="color: #339966;">2</span></li>
<li><span style="color: #339966;">3</span></li>
<li><span style="color: #339966;">4</span></li>
<li><span style="color: #339966;">5</span></li>
<li><span style="color: #339966;">6</span></li>
</ul>


It removes the <span class="obuka"> automatically. How to stop that?

I'm on Joomla 1.5 using the latest JCE 2.2.0.

Thanks,
S@


Last edited by skullmonkey on Sun Jun 24, 2012 11:35 am, edited 1 time in total.

Top
 Profile  
 
PostPosted: Sat Jun 23, 2012 6:47 pm 
User avatar
Joomla! Guru
Joomla! Guru

Joined: Fri Dec 16, 2011 6:13 pm
Posts: 803
Location: Millersburg, OH
Try switching out that span for div instead (and make the appropriate changes to your CSS. I've found that JCE is generally friendlier to DIV tags than SPAN tags.

_________________
Ryan
Numinous Productions
Custom Joomla Templates, Joomla Troubleshooting and Personalized Tutorials
http://www.numinousmedia.com


Top
 Profile  
 
PostPosted: Sat Jun 23, 2012 8:07 pm 
Joomla! Master
Joomla! Master

Joined: Mon Oct 27, 2008 9:27 pm
Posts: 13692
Location: Akershus, Norway
span is an inline tag and is not allowed to span over block tags like p and div.
Use a div instead.


Top
 Profile  
 
PostPosted: Sun Jun 24, 2012 11:34 am 
Joomla! Enthusiast
Joomla! Enthusiast

Joined: Sun Jan 17, 2010 10:47 pm
Posts: 102
Thanks, I did that and went ok. So in the future, there is no way to fix the (span) compatibility? Just wondering cause this time I was lucky that I had only ~20 articles to fix, but if there were hundreds, the problem would be big.

Thanks again,
S@


Top
 Profile  
 
PostPosted: Sun Jun 24, 2012 11:50 am 
Joomla! Master
Joomla! Master

Joined: Mon Oct 27, 2008 9:27 pm
Posts: 13692
Location: Akershus, Norway
Actually you can put the class on the p tag. No need for a span at all.

Code:
<p class="obuka">
<strong>Test:</strong></p>


Top
 Profile  
 
PostPosted: Wed Dec 12, 2012 11:14 am 
Joomla! Apprentice
Joomla! Apprentice

Joined: Mon May 07, 2012 6:01 am
Posts: 26
Hihi, mình sử dụng được rồi. JCE thật là tuyệt vời,

_________________
http://onapnhatlinh.com >> Ổn áp Lioa Nhật Linh
http://doctorspa.vn >> Doctor Spa


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 6 posts ] 



Who is online

Users browsing this forum: No registered users and 3 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group