[FIXED] Script tag label is no longer visible in the CMS field after reload/reopen

Hi!
I’ve added a HTML element with a script inside a Collection → CMS field (using the CMS editor).
The first time, the Script tag is visible inside the editor but after reload/reopen it dissapears.

Here is a video (no sound) with the issue

@Lucian_Dinu could you please share the script? I want to test it in within my collection.

Hello @Martin … sure…

    <!-- Do the highlight -->
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/styles/atom-one-dark-reasonable.min.css" integrity="sha512-RwXJS3k4Z0IK6TGoL3pgQlA9g2THFhKL7z9TYWdAI8u6xK0AUuMWieJuWgTRayywC9A94ifUj1RzjDa1NIlUIg==" crossorigin="anonymous" referrerpolicy="no-referrer">
    <script onload="webcard.isEdit ? null : hljs.highlightAll();" src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.3.1/highlight.min.js" integrity="sha512-Pbb8o120v5/hN/a6LjF4N4Lxou+xYZ0QcVF8J6TWhBbHmctQWd8O6xTDmHpE/91OjPzCk4JRoiJsexHYg4SotQ==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>
    <!-- END: Do the highlight -->   

Thank you @Lucian_Dinu

I can confirm, the script in combination with the HTML element disappears. I created a bug ticket for it and will keep you updated.

2 Likes

@Lucian_Dinu, should be fixed now

Hi @Martin … I can confirm that this is fixed now.

Thanks.

1 Like