Download
We're evolving to serve you better! This current forum has transitioned to read-only mode. For new discussions, support, and engagement, we've moved to GitHub Discussions.

problem with and tags

  • #4842
    Avatar photo[anonymous]

    Hello everyone, Merry Christmas. I hope you are well around here.

    I’m trying to use the <publii-amp> and <publii-non-amp> tags within a post using the WYSIWYG editor to insert adsense ads, but the editor deletes the <amp-ad> tag for me.

    Image with the amp code of adsense. https://i.imgur.com/IpwVj5N.png

    Image with the adsense amp code in the publii editor. https://i.imgur.com/xQLKsuI.png

    With the adsense code for the no amp version this does not happen.

    Why is it happening here?

    #4864
    Avatar photo[anonymous]

    Hi,

    amp-ad is a non-standard HTML tag and at this moment it is removed by TinyMCE – you can fix this as I have described it here: https://forum.getpublii.com/topic/html-code-editors-removes-code/

    but I will also add the known amp tags to the default configuration, so it will be fixed in the upcoming v.0.37.4 🙂

    #4876
    Avatar photo[anonymous]
    Tomasz Dziuda wrote:

    amp-ad is a non-standard HTML tag and at this moment it is removed by TinyMCE – you can fix this as I have described it here: https://forum.getpublii.com/topic/html-code-editors-removes-code/

    I tried, but it didn’t work for me. I will wait for the next update.

    Have a happy new year.