-
AuthorPosts
-
kryptos Friend
kryptos
- Join date:
- November 2009
- Posts:
- 105
- Downloads:
- 0
- Uploads:
- 8
- Thanks:
- 9
- Thanked:
- 13 times in 9 posts
December 8, 2009 at 12:08 pm #146690I have problem with blog view when I use image caption.
Articles with images that have no caption, shows with text wrapped arround picture, but articles with images that have caption, shows with text under the image.See pictures bellow.
I want text to be wrapped arround picture in both cases, with or without image caption. Is it possible?
-
Anonymous Moderator
JA Developer
- Join date:
- September 2014
- Posts:
- 9914
- Downloads:
- 207
- Uploads:
- 152
- Thanks:
- 1789
- Thanked:
- 2008 times in 1700 posts
December 9, 2009 at 9:59 am #326178Hi kryptos
I have checked in our demo site but could not find this issue.
Could you give me your live url?
kryptos Friendkryptos
- Join date:
- November 2009
- Posts:
- 105
- Downloads:
- 0
- Uploads:
- 8
- Thanks:
- 9
- Thanked:
- 13 times in 9 posts
December 9, 2009 at 10:50 am #326185thanx, I’ve found out that editor makes a problem.
I use JCE
when I open article on demo site on my local host, I got this<img src=”images/stories/demo/world/rs-1.jpg” alt=”Sample image” align=”left” title=”Sample image” class=”caption” />
but, when I install JCE editor and open an article, and just update picture with no changes, than save the article, it changes code into this:
<img style=”float: left;” src=”images/stories/demo/world/rs-1.jpg” alt=”Sample image” title=”Sample image” class=”caption” />
I tested it, and when I turn back code like in original demo, it works fine, but when I open article with JCE editor and just update picture, I get something like on second picture, no wrapped text…
so, what are you suggesting?
edit:
I can send you my live url, but there’s no articles with image caption because of this problem. So I made this one Lorem Ipsum example and posted a pictures.
kryptos Friendkryptos
- Join date:
- November 2009
- Posts:
- 105
- Downloads:
- 0
- Uploads:
- 8
- Thanks:
- 9
- Thanked:
- 13 times in 9 posts
December 9, 2009 at 2:30 pm #326195It seems that my answer is the best one on this topic 😀
anyway, I wonder do you attending do do something about that (JCE does not make wrong code), some fixes or something, or do I have to change my editor and if I do which one is the best?
micrantha Friendmicrantha
- Join date:
- May 2007
- Posts:
- 465
- Downloads:
- 0
- Uploads:
- 6
- Thanks:
- 6
- Thanked:
- 158 times in 148 posts
December 9, 2009 at 8:44 pm #326237Hello kryptos,
I see you are alone on this.
I reproduced your problem on my local install of quickstart-version.I looked at source-code of webpage before and after installing JCE 1.5.6:
I opened and saved an article without changes
(Artist > 3D Computer Graphics > England stars offer summer coaching)before:
<div class="article-content">
<p>
<div style="float: left; width: 100px;" class="img_caption left">
<img class="caption" src="/jatelineiii/images/resized/images/stories/demo/artist/3d-3_100_100.jpg" alt="Sample image" title="Sample image" align="left" border="0">
<p>Sample image</p>
</div>
</p>after:
<div class="article-content">
<p>
<div style="width: 100px;" class="img_caption null">
<img style="float: left;" class="caption" src="/jatelineiii/images/resized/images/stories/demo/artist/3d-3_100_100.jpg" alt="Sample image" title="Sample image">
<p>Sample image</p>
</div>
</p>So what happens?
before changing editor the generated div around image reads:
<div style=”float: left; width: 100px;” class=”img_caption left”>
after changing to JCE:
<div style=”width: 100px;” class=”img_caption null”>So the div looses its float:left and its class left
(in addons.css line 111: .left {float: left;}
So it becomes normal div, with text below it.Question is: why are the properties of this div changed?
When I am right this code is generated in plugins/content/plg_jathumbnail.php
I don’t know what is wrong there but I think a programmer can fix it.I cannot solve it, just pinpoint the question.
Best regards,
Micrantha1 user says Thank You to micrantha for this useful post
kryptos Friendkryptos
- Join date:
- November 2009
- Posts:
- 105
- Downloads:
- 0
- Uploads:
- 8
- Thanks:
- 9
- Thanked:
- 13 times in 9 posts
December 9, 2009 at 9:00 pm #326238Thanks for your reply, micrantha, I hope that someone will do something about this problem, cause I really want to keep my JCE editor and use caption class normally..
micrantha Friendmicrantha
- Join date:
- May 2007
- Posts:
- 465
- Downloads:
- 0
- Uploads:
- 6
- Thanks:
- 6
- Thanked:
- 158 times in 148 posts
December 9, 2009 at 9:05 pm #326239Yes, I don’t want to miss it either.
I think it is a general issue for this template.
Maybe you could try a ticket to staff about this.
greetings,
MicranthaSaguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
December 11, 2009 at 4:23 am #326331The problem is from the JCE editor, not any other extenions.
1) The JCE editor automatic replace the ‘align=”left”‘ or ‘align=”right”‘ by the “style=”float:left”” property or the ‘float:right’ property inside the img tag.
2) the “caption” feature was built-in in the joomla package, the joomla system automatic detect ‘class=”caption”‘ inside the img tag and render a bock has format if have
<div STYLE class="img_caption CLASS">
<img class="caption" src="IMAGE" align="CLASS">
<p>Sample image</p>
</div>
( CLASS: equal :left” or “right” )
The value of the “CLASS” demermen by the image alignment mode. if the image has not the “align” property, the value is “null”.
The simplest fix, before saving the content of artcile, you should hide the editor by use Toggle Editor function and save,
brunotedeschi Friendbrunotedeschi
- Join date:
- May 2009
- Posts:
- 22
- Downloads:
- 0
- Uploads:
- 0
- Thanked:
- 1 times in 1 posts
January 2, 2010 at 1:39 pm #327966<em>@tienhc 156499 wrote:</em><blockquote>The problem is from the JCE editor, not any other extenions.
1) The JCE editor automatic replace the ‘align=”left”‘ or ‘align=”right”‘ by the “style=”float:left”” property or the ‘float:right’ property inside the img tag.
2) the “caption” feature was built-in in the joomla package, the joomla system automatic detect ‘class=”caption”‘ inside the img tag and render a bock has format if have
<div STYLE class="img_caption CLASS">
<img class="caption" src="IMAGE" align="CLASS">
<p>Sample image</p>
</div>
( CLASS: equal :left” or “right” )
The value of the “CLASS” demermen by the image alignment mode. if the image has not the “align” property, the value is “null”.
The simplest fix, before saving the content of artcile, you should hide the editor by use Toggle Editor function and save,</blockquote>
This seems to me a bad way to fix this problem.
JA Thumbnail should work with JCE Editor without having to take this extra step.
kryptos Friendkryptos
- Join date:
- November 2009
- Posts:
- 105
- Downloads:
- 0
- Uploads:
- 8
- Thanks:
- 9
- Thanked:
- 13 times in 9 posts
January 2, 2010 at 3:37 pm #327971Well, I’m not happy with this solution, but what can I do? 🙂
I just replace style=”float:left” tag with align=”left” and everything works fine..
filmlover7 Friendfilmlover7
- Join date:
- March 2010
- Posts:
- 111
- Downloads:
- 0
- Uploads:
- 1
- Thanks:
- 41
- Thanked:
- 1 times in 1 posts
March 30, 2010 at 12:23 am #338344<em>@kryptos 158682 wrote:</em><blockquote>Well, I’m not happy with this solution, but what can I do? 🙂
I just replace style=”float:left” tag with align=”left” and everything works fine..</blockquote>
So is it worth it to use JCE with Teline III?Saguaros ModeratorSaguaros
- Join date:
- September 2014
- Posts:
- 31405
- Downloads:
- 237
- Uploads:
- 471
- Thanks:
- 845
- Thanked:
- 5346 times in 4964 posts
March 31, 2010 at 4:16 am #338527Dear filmlover7!
with style=”float:left” and align=”left” , you can use one of them to align image with condition: this property is put inside the “img” tag, i do not think that having a different between these properties.
-
AuthorPosts
Viewing 12 posts - 1 through 12 (of 12 total)This topic contains 12 replies, has 6 voices, and was last updated by Saguaros 14 years, 8 months ago.
We moved to new unified forum. Please post all new support queries in our New Forum
Jump to forum