Why is CodeMirror deleting my style tags?

Solved

Why is CodeMirror deleting my style tags?

g3cent
Tourist
11 2 1

Fix code editor asap.

It always delete this block of code:

 

<style><!--
#detail_decorate_root .magic-6{margin:0px 0px -4px 0px;padding:0px;border:0px}
#detail_decorate_root .magic-7{position:relative;width:100%;margin:0px;padding:0px;border:0px}
.embed-container { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; max-width: 100%; } .embed-container iframe, .embed-container object, .embed-container embed { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
--></style>

 

 No problems previously. What is going on???

Accepted Solution (1)

g3cent
Tourist
11 2 1

This is an accepted solution.

A temporary solution is not to press that button on top right BUT immediately save the document!!!

Screenshot at 2022-01-27 12_31_01.jpg

 

View solution in original post

Replies 2 (2)

g3cent
Tourist
11 2 1

This is an accepted solution.

A temporary solution is not to press that button on top right BUT immediately save the document!!!

Screenshot at 2022-01-27 12_31_01.jpg

 

ChristinG
Shopify Partner
1 0 0

The fix doesn't work anymore. Any css in a style-tag shows always up as text in the rte