Layouts plugin provides a drag-and-drop editor that is used from the WordPress administration. Using this editor, you can create layouts, assign them to specific content and design entire pages.
When you ask for help or report issues, make sure to tell us the design that you want to achieve and the layouts that you have created so far.
Problem:
When you insert Scripts in the HTML editors of Layouts it does strip out every content between and
Solution:
Content Templates are not a place to enqueue custom scripts at all, neither any other HTML editor.
We have custom JavaScript editors so add your own JavaScript functionality, but none of them involves enqueuing custom scripts entirely.
It is a security policy against xss injection required long time ago for every input field and text area in Layouts (titles, content, slug, whatever), that will strip those scripts out.