You need to be logged in to post in the forum - Log In
An active JCE Pro Subscription is required to post in the forum - Buy a Subscription
- Support
- Forum
- JCE Editor
- Code being stripped
Support is currently Offline
Official support hours:
Monday To Friday
From 09:00 To 17:00 Europe/London (BST)
From 09:00 To 17:00 Europe/London (BST)
Please post your question in the Forum and we will get back to you as soon as we can.
Joomla 3.9.16 / JCE Editor 2.8.11
The following code works and is what I want (a whole module DIV link):
<a style="display: block;" href="index.php?option=com_content&view=article&id=39&Itemid=536">
<div class="projhover">
<h3>Aged Care</h3>
<ul>
<li>Churches of Christ</li>
<li>Holy Spirit Aged Care</li>
</ul>
</div></a>
Upon saving it gets stripped to (individual list item links):
<p><a style="display: block;" href="index.php?option=com_content&view=article&id=39&Itemid=536"></a></p>
<div class="projhover">
<h3><a style="display: block;" href="index.php?option=com_content&view=article&id=39&Itemid=536">Aged Care</a></h3>
<ul>
<li><a style="display: block;" href="index.php?option=com_content&view=article&id=39&Itemid=536">Churches of Christ</a></li>
<li><a style="display: block;" href="index.php?option=com_content&view=article&id=39&Itemid=536">Holy Spirit Aged Care</a></li>
</ul>
</div>
If client adds a new list item but does not understand the coding, the DIV link for the whole block gets removed
JCE Editor modifications made in an attempt to save code:
Filtering - Set to No Filtering
'Editor Parameters' - 'Cleanup and Output' Setting - I set the Validate HTML setting to - No
'Advanced' Settings - 'Allow Javascript', 'Allow CSS' and 'Allow PHP' to - Yes
'Plugin Parameters' - 'media support settings' - 'Allow IFrames' to Yes
Anyone able to assist so the 'top' code stays intact?
Many thanks.
The following code works and is what I want (a whole module DIV link):
<a style="display: block;" href="index.php?option=com_content&view=article&id=39&Itemid=536">
<div class="projhover">
<h3>Aged Care</h3>
<ul>
<li>Churches of Christ</li>
<li>Holy Spirit Aged Care</li>
</ul>
</div></a>
Upon saving it gets stripped to (individual list item links):
<p><a style="display: block;" href="index.php?option=com_content&view=article&id=39&Itemid=536"></a></p>
<div class="projhover">
<h3><a style="display: block;" href="index.php?option=com_content&view=article&id=39&Itemid=536">Aged Care</a></h3>
<ul>
<li><a style="display: block;" href="index.php?option=com_content&view=article&id=39&Itemid=536">Churches of Christ</a></li>
<li><a style="display: block;" href="index.php?option=com_content&view=article&id=39&Itemid=536">Holy Spirit Aged Care</a></li>
</ul>
</div>
If client adds a new list item but does not understand the coding, the DIV link for the whole block gets removed
JCE Editor modifications made in an attempt to save code:
Filtering - Set to No Filtering
'Editor Parameters' - 'Cleanup and Output' Setting - I set the Validate HTML setting to - No
'Advanced' Settings - 'Allow Javascript', 'Allow CSS' and 'Allow PHP' to - Yes
'Plugin Parameters' - 'media support settings' - 'Allow IFrames' to Yes
Anyone able to assist so the 'top' code stays intact?
Many thanks.
Unfortunately Tinymce (on which JCE is based) does not support block elements (<div>, <p> etc.) inside amchor element (<a> which is why the code is re-organised.
You might try changing the code slghtly to:
You might try changing the code slghtly to:
<div class="projhover">
<a href="/component/content/article/?Itemid=536" style="display: block;">
<h3>Aged Care</h3>
<ul>
<li>Churches of Christ</li>
<li>Holy Spirit Aged Care</li>
</ul>
</a>
</div>
Just because you're not paranoid doesn't mean everybody isn't out to get you.
more than a month ago
·
#105331
Many thanks - that worked - now customer has changed their mind anyway!!! Ahhh...
- Page :
- 1
There are no replies made for this post yet.
Be one of the first to reply to this post!
Be one of the first to reply to this post!