Enable <script> tags in SilverStripe’s HtmlEditorField
Enable <script>
tags in SilverStripeâs HtmlEditorField
. An implementation of this PR to enable this functionality in 3.1.
composer require kinglozzer/htmleditorscripts
No extra setup is needed as this module adds <script>
tags to extended_valid_elements
.
HtmlEditorConfig
instance. Copy the approach in _config.php
to enable it in other config instances;editor.onSaveContent
plugin events firing: as we canât remove the SilverStripe event that strips the <script>
tags (as we donât have a variable to reference in ed.onSaveContent.remove()
), we have to simply stop other events from running.Module rating system helping users find modules that are well supported. For more on how the rating system works visit Module standards
Score not correct? Let us know there is a problem