silverstripe / silverstripe-framework

Silverstripe Framework, the MVC framework that powers Silverstripe CMS
https://www.silverstripe.org
BSD 3-Clause "New" or "Revised" License
720 stars 820 forks source link

FIX Support pre tag #11253

Closed sabina-talipova closed 1 month ago

sabina-talipova commented 1 month ago

Description

POC: Another solution to support using "code" string in WYSIWYG. User can add code snippet wrapped in <pre> HTML tag. However, there is some difference in how the snippet code will be processed depending on how it was entered. If the snippet code was entered through Source Code, then all its contents will be processed and, for example, HTML tags will not be displayed in the text area. If the code is entered directly into the HTMLEDitor text field, then all internal tags will be displayed as text.

Test steps

Parent issue