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
- Some amp-img tags get stripped but not others
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.
I've read another post on how to avoid getting the <amp-img> code stripped out, and it worked half-way for me. The line:
{wbamp-show start}<amp-img src="/images/bildgalleri01/hemstäd.jpg" alt="Anne Blom anställd rengör ugn" width="1200px" height="802px" layout="responsive"></amp-img>{wbamp-show end}
doesn't get stripped out for me anymore if I switch from code-mode to editor-mode, but this line:
{wbamp-show start}<div class="offertknapp2"><a href="hemstadning/offert-for-hemstadning"><amp-img src="/images/knappar/knapp_hem_pris2.png" alt="Offertknapp hemstäd" width=75 height=107></amp-img></a></div>{wbamp-show end}
Still turns into this:
{wbamp-show start}
<div class="offertknapp2"></div>
{wbamp-show end}
Any insight? I can't see why the second line would still be stripped since the first line now works. I followed the suggestion in https://www.joomlacontenteditor.net/support/forum/92799-amp-image-tag-is-stripped-out to get it to work partially.
{wbamp-show start}<amp-img src="/images/bildgalleri01/hemstäd.jpg" alt="Anne Blom anställd rengör ugn" width="1200px" height="802px" layout="responsive"></amp-img>{wbamp-show end}
doesn't get stripped out for me anymore if I switch from code-mode to editor-mode, but this line:
{wbamp-show start}<div class="offertknapp2"><a href="hemstadning/offert-for-hemstadning"><amp-img src="/images/knappar/knapp_hem_pris2.png" alt="Offertknapp hemstäd" width=75 height=107></amp-img></a></div>{wbamp-show end}
Still turns into this:
{wbamp-show start}
<div class="offertknapp2"></div>
{wbamp-show end}
Any insight? I can't see why the second line would still be stripped since the first line now works. I followed the suggestion in https://www.joomlacontenteditor.net/support/forum/92799-amp-image-tag-is-stripped-out to get it to work partially.
The basic cause of this problem is the the <amp-img> tag is not valid child element of the <a> tag, so it is being removed by the editor.
In the Editor Global Configuration, set Validate HTML to No.
In the Editor Global Configuration, set Validate HTML to No.
Just because you're not paranoid doesn't mean everybody isn't out to get you.
more than a month ago
·
#96242
Thank you for the reply.
Validate HTML was already set to no. Any other suggestions?
Validate HTML was already set to no. Any other suggestions?
Please try this plugin - https://github.com/widgetfactory/editor-amp
Download, install and enable as instructed.
This plugin is experimental, so there may be some issues. Please report back what you find.
Download, install and enable as instructed.
This plugin is experimental, so there may be some issues. Please report back what you find.
Just because you're not paranoid doesn't mean everybody isn't out to get you.
more than a month ago
·
#96260
Ok, I tried it on my local copy and it made things much worse. It turned this:
Into this:
{wbamp-show start}<amp-img src="/images/bildgalleri01/hemstäd.jpg" alt="Anne Blom anställd rengör ugn" width="1200px" height="802px" layout="responsive"></amp-img>{wbamp-show end}
<h2 class="ingress">Hemstädning i Stockholm - Hemstädade fräscha, inbjudande hem</h2>
<p class="ingress">Hemstädning i Stockholm med våra medarbetare ger att ditt hem blir hemstädat med mer än en extra glans och ger mer än bara ett städat hem.</p>
<p class="ingress">För att trygga dig som vår uppdragsgivare inom hemstäd så har vi sett till att:</p>
<ul>
<li class="ingress">Samtliga av våra medarbetare är fullt försäkrade, speciellt viktigt för</li>
<li class="ingress">Omfattas av dubbla kollektivavtal för att säkra upp att ni har samma återkommande personal.</li>
<li class="ingress">Vår personal har tystnadsplikt om känsliga uppgifter, det är ett förtroende att städa hos våra kunder.</li>
<li class="ingress">Samtliga medarbetare är kontrollerade i belastningsregistret.</li>
<li class="ingress">Hemstäd sker alltid minst två och två, och alltid dagtid.</li>
<li class="ingress">Vi brukar säga att två par ögon är bättre än ett – det är lättare att missa saker när man är ensam än när man är två som kan kolla varandra.</li>
<li class="ingress">Vår personal litar på varandra eftersom vi är inte fler anställda på Anne Blom än att alla känner varandra.</li>
<li class="ingress">Varje morgon så möts vi på kontoret och umgås samt får en allmän genomgång inför dagens uppdrag. Vilket ger trygga, säkra uppdrag.</li>
<li class="ingress">Vår sammanhållning gör att alla hjälper varandra och att alla litar på varandra.</li>
</ul>
<h2>Hemstäd Stockholm med erfarenhet och vi är alltid rädda om sakerna</h2>
{wbamp-show start}<div class="offertknapp2"><a href="/hemstadning/offert-for-hemstadning"><amp-img src="/images/knappar/knapp_hem_pris2.png" width=75 height=107></amp-img></a></div>{wbamp-show end}
Into this:
{wbamp-show start}<amp-img src="/images/bildgalleri01/hemstäd.jpg" alt="Anne Blom anställd rengör ugn" width="1200px" height="802px" layout="responsive"></amp-img></div>
<p>{wbamp-show end}</p>
Please download again and install - https://github.com/widgetfactory/editor-amp
Just because you're not paranoid doesn't mean everybody isn't out to get you.
more than a month ago
·
#96268
Ok, that fixed the making it worse part, now we're back to this:
Turning into this:
{wbamp-show start}<div class="offertknapp2"><a href="/hemstadning/offert-for-hemstadning"><amp-img src="/images/knappar/knapp_hem_pris2.png" width=75 height=107></amp-img></a></div>{wbamp-show end}
Turning into this:
{wbamp-show start}
<div class="offertknapp2"></div>
{wbamp-show end}
This is working in my tests. Please send me a login - https://www.joomlacontenteditor.net/contact/site-login
Just because you're not paranoid doesn't mean everybody isn't out to get you.
more than a month ago
·
#96300
Yes I see, I tried the amp-test article you created and it worked for me as well. However, there must be something else in the code for the whole article I was referring to originally that's messing up.
I pasted the whole article into the AMP-test article, and this time I got the same result as before with the code removal.
Can you try again with the new AMP-test article?
I pasted the whole article into the AMP-test article, and this time I got the same result as before with the code removal.
Can you try again with the new AMP-test article?
- 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!