2017 © Pedro PelĆ”ez
 

silverstripe-module htmleditorscripts

Enable <script> tags in SilverStripeā€™s HtmlEditorField

image

kinglozzer/htmleditorscripts

Enable <script> tags in SilverStripeā€™s HtmlEditorField

  • Thursday, February 18, 2016
  • by kinglozzer
  • Repository
  • 1 Watchers
  • 0 Stars
  • 1,002 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 3 Versions
  • 2 % Grown

The README.md

HtmlEditorScripts

Enable <script> tags in SilverStripeā€™s HtmlEditorField. An implementation of this PR to enable this functionality in 3.1., (*1)

Installation

composer require kinglozzer/htmleditorscripts, (*2)

No extra setup is needed as this module adds <script> tags to extended_valid_elements., (*3)

Notes

  • Only set up to work with the default CMS HtmlEditorConfig instance. Copy the approach in _config.php to enable it in other config instances;
  • Prevents other 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.

The Versions

18/02 2016

dev-master

9999999-dev https://github.com/kinglozzer/htmleditorscripts

Enable <script> tags in SilverStripeā€™s HtmlEditorField

  Sources   Download

BSD-3-Clause

The Requires

 

javascript tags silverstripe script htmleditorfield

24/09 2015

1.0.1

1.0.1.0 https://github.com/kinglozzer/htmleditorscripts

Enable <script> tags in SilverStripeā€™s HtmlEditorField

  Sources   Download

BSD-3-Clause

The Requires

 

javascript tags silverstripe script htmleditorfield

29/04 2015

1.0.0

1.0.0.0 https://github.com/kinglozzer/htmleditorscripts

Enable <script> tags in SilverStripeā€™s HtmlEditorField

  Sources   Download

BSD-3-Clause

The Requires

 

javascript tags silverstripe script htmleditorfield