/Wysiwyg/Event/WysiwygEventHandler.php
PHP | 32 lines | 14 code | 5 blank | 13 comment | 0 complexity | 78998b630d3ee9b23639bc088bb562e4 MD5 | raw file
- <?php
- App::uses('CakeEventListener', 'Event');
- /**
- * Wysiwyg Event Handler
- *
- * @category Event
- * @package Croogo.Ckeditor
- * @license http://www.opensource.org/licenses/mit-license.php The MIT License
- * @link http://www.croogo.org
- */
- class WysiwygEventHandler implements CakeEventListener {
- /**
- * implementedEvents
- *
- * @return array
- */
- public function implementedEvents() {
- return array(
- 'Croogo.bootstrapComplete' => array(
- 'callable' => 'onBootstrapComplete',
- ),
- );
- }
- public function onBootstrapComplete($event) {
- Croogo::hookHelper('*', 'Wysiwyg.Wysiwyg');
- }
- }