Support Forum

Please note that this forum is only available to you in read only mode. In order to contribute to this conversation you will need to renew your subscription.

JCE editor changing html

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Hi - JCE editor 2.5.2 is driving me mad by rewriting my html when I toggle from code to normal view.
I've turned off everything I can find and it's still doing it :-(
I'm running J 3.4.3
Anyone any idea what I'm missing?
Thanks
Ian
  • ianpanorton's Avatar
  • ianpanorton
  • 6 Month Developer
  • 1258 posts
  • 3 Thanks
  • Karma: 7
The administrator has disabled public write access.
Hi Ian,

What html are you adding?

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi Paul - thanks for getting back to me.

The site is www.bizzybounce.co.uk/newsite. On the home page there are nine rectangles, each one linking to a different range of products.

The code I'm using (which works) is:

<p><img src="images/Adultrockstar-1.jpg" alt="Adult rockstar bouncy castle" /></p>
<a href="index.php?option=com_content&view=article&id=116&Itemid=424">
<div class="moreinfo">More info</div></a>

And JCE is changing it to this, which doesn't work:

<p><img src="images/Adultrockstar-1.jpg" alt="Adult rockstar bouncy castle" /></p>
<p><a href="index.php?option=com_content&view=article&id=116&Itemid=424"></a></p>
<div class="moreinfo"><a href="index.php?option=com_content&view=article&id=116&Itemid=424">More info</a></div>
<p> </p>

It's probably my lousy html!

Thanks

Ian
  • ianpanorton's Avatar
  • ianpanorton
  • 6 Month Developer
  • 1258 posts
  • 3 Thanks
  • Karma: 7
The administrator has disabled public write access.
Hi Ian,

Try adding the link inside the div rather than outside

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi Paul - this looks more elegant, but it doesn't work:

<p><img src="images/Adultrockstar-1.jpg" alt="Adult rockstar bouncy castle" /></p>
<div class="moreinfo"><a href="index.php?option=com_content&view=article&id=116&Itemid=424">More info</a></div>

Where am I going wrong?

Thanks

Ian
  • ianpanorton's Avatar
  • ianpanorton
  • 6 Month Developer
  • 1258 posts
  • 3 Thanks
  • Karma: 7
The administrator has disabled public write access.
How about

<div class="moreinfo">
<p><img src="images/Adultrockstar-1.jpg" alt="Adult rockstar bouncy castle" /></p>
<a href="index.php?option=com_content&view=article&id=116&Itemid=424">More info</a></div>

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi Paul - I've tried that one, but no joy,

This is the result:

www.bizzybounce.co.uk/newsite/index.php

Look at bouncy castles top left…

Thanks for getting back to me,

Ian
  • ianpanorton's Avatar
  • ianpanorton
  • 6 Month Developer
  • 1258 posts
  • 3 Thanks
  • Karma: 7
The administrator has disabled public write access.
How about toggle the editor off and

<div class="moreinfo">
<img src="images/Adultrockstar-1.jpg" alt="Adult rockstar bouncy castle" />
<a href="index.php?option=com_content&view=article&id=116&Itemid=424">More info</a></div>

If you re-open the page with JCE it will add the p tag back - sometimes I disable the parent container option in JCE config

Although that does depend if the end user will edit the content and I work in the html editor rather the normal view

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi Paul - I'm afraid this still doesn't work, so I've reverted to my original.

I've set 'no container and paragraph on enter' in global config - that was what I was looking for - which stops JCE rewriting stuff. Thanks for that.

Nobody else works on the site, only me. Is there any disadvantage in leaving this setting as it is now?

Thanks

Ian
  • ianpanorton's Avatar
  • ianpanorton
  • 6 Month Developer
  • 1258 posts
  • 3 Thanks
  • Karma: 7
The administrator has disabled public write access.
No its advantage if you work in the html editor (for me anyway) - you may come a cropper if you use the interface screen to add text content as no container will be added automatically

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi Paul - thanks for this.

I wonder if you can give me some advice. The product pages on this site are not happy.

www.bizzybounce.co.uk/newsite/index.php/castles/22-bouncy-castles/140-circus-12x12

I've got the product details and slideshow wrapped in divs but it seems very heath robinson and a bit dull to me.

Any suggestions as to how I could make the mechanics a bit more elegant?

Thanks

Ian
  • ianpanorton's Avatar
  • ianpanorton
  • 6 Month Developer
  • 1258 posts
  • 3 Thanks
  • Karma: 7
The administrator has disabled public write access.
Hi Ian,

I would suggest adding more images to the slideshow

At the moment it looks a bit odd flashing through 3 images the same

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
The page also looks a bit unbalanced with the content shorter than the sidebar - I'd be tempted to add a pic below the text of kids jumping around looking happy

The background of the pic removed so its just the kids

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Hi Paul - thanks for getting back to me.

I know the slideshow looks odd - they're only holding pics - we haven't decided on the ones we're going to use yet :-)

And a good idea about the pic below the text, I will do that or something like it. Another pair of eyes always helps.

However, it was the actual mechanics of the page I'm worrying about. Is there a better way to lay it out than the two divs? A table perhaps?

Thanks again

Ian
  • ianpanorton's Avatar
  • ianpanorton
  • 6 Month Developer
  • 1258 posts
  • 3 Thanks
  • Karma: 7
The administrator has disabled public write access.
And it's the logos down the side making the sidebar too long. I'm thinking of making them smaller and running them horizontally across the bottom...
  • ianpanorton's Avatar
  • ianpanorton
  • 6 Month Developer
  • 1258 posts
  • 3 Thanks
  • Karma: 7
The administrator has disabled public write access.
The site is still very much a work in process...
  • ianpanorton's Avatar
  • ianpanorton
  • 6 Month Developer
  • 1258 posts
  • 3 Thanks
  • Karma: 7
The administrator has disabled public write access.
You could use the shortcodes plugin syntax to make it two columns

docs.joomlabamboo.com/zen-grid-framework-4/theme/Using-shortcodes.html

If its a tabular data then in makes sense to use a table but using tables for positioning isn't a good idea and you also have to factor in responsive table issues
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Look at the "Example grid" and below section of that page

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.
Thanks Paul - looks like just what I need. I'll get into it again next week.

Thanks again for your help,

Ian
  • ianpanorton's Avatar
  • ianpanorton
  • 6 Month Developer
  • 1258 posts
  • 3 Thanks
  • Karma: 7
The administrator has disabled public write access.
No problem :)

Good luck with the site

Cheers
Paul
  • manh's Avatar
  • manh
  • Moderator
  • 45248 posts
  • 2106 Thanks
  • Karma: 603
The administrator has disabled public write access.

zentoolsIf you use Zentools please post a review at the Joomla! Extensions Directory.

Happy Campers