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.

Publii v.0.36.1 can’t handle tag for javascript and ld+json schema.org

  • #3183
    Avatar photo[anonymous]

    Hello,

    I installed the new Publii v.0.36.1 (build 13320) beta. After editing my document, that had ld+json and javascript tags, it is not rendered anymore.

    I had to remove the tags and edit the html file on my server to add the tags again.

    Best, Claas

    #3187
    Avatar photo[anonymous]
    This reply has been marked as private.
    #3205
    Avatar photo[anonymous]

    Hi,

    TinyMCE is removing script tags by default. You can consider changing TinyMCE settings. I suppose that it is a similar problem: https://github.com/GetPublii/Publii/issues/674

    #3213
    Avatar photo[anonymous]

    Hi,

    thanks for your answer.

    I added to tinymce.override.json
    {
    "extended_valid_elements": "*[*]"
    }

    But thats does not solve the problem for me.

    I also noticed that the CDATA part was added by Publii. It would be correct without the CDATA part.

    #3214
    Avatar photo[anonymous]

    Disabeling script at all worked for me by adding:

    {
      valid_elements : "script"
    }