/Wysiwyg/Event/WysiwygEventHandler.php

https://github.com/kareypowell/croogo · PHP · 32 lines · 14 code · 5 blank · 13 comment · 0 complexity · 78998b630d3ee9b23639bc088bb562e4 MD5 · raw file

  1. <?php
  2. App::uses('CakeEventListener', 'Event');
  3. /**
  4. * Wysiwyg Event Handler
  5. *
  6. * @category Event
  7. * @package Croogo.Ckeditor
  8. * @license http://www.opensource.org/licenses/mit-license.php The MIT License
  9. * @link http://www.croogo.org
  10. */
  11. class WysiwygEventHandler implements CakeEventListener {
  12. /**
  13. * implementedEvents
  14. *
  15. * @return array
  16. */
  17. public function implementedEvents() {
  18. return array(
  19. 'Croogo.bootstrapComplete' => array(
  20. 'callable' => 'onBootstrapComplete',
  21. ),
  22. );
  23. }
  24. public function onBootstrapComplete($event) {
  25. Croogo::hookHelper('*', 'Wysiwyg.Wysiwyg');
  26. }
  27. }