Enable <script> tags in SilverStripe’s HtmlEditorField
<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
HtmlEditorConfiginstance. Copy the approach in
_config.phpto enable it in other config instances;
editor.onSaveContentplugin 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