Initial commit
This commit is contained in:
31
local/modules/Tinymce/Hook/HookManager.php
Normal file
31
local/modules/Tinymce/Hook/HookManager.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
/*************************************************************************************/
|
||||
/* This file is part of the Thelia package. */
|
||||
/* */
|
||||
/* Copyright (c) OpenStudio */
|
||||
/* email : dev@thelia.net */
|
||||
/* web : http://www.thelia.net */
|
||||
/* */
|
||||
/* For the full copyright and license information, please view the LICENSE.txt */
|
||||
/* file that was distributed with this source code. */
|
||||
/*************************************************************************************/
|
||||
|
||||
namespace Tinymce\Hook;
|
||||
|
||||
use Thelia\Core\Event\Hook\HookRenderEvent;
|
||||
use Thelia\Core\Hook\BaseHook;
|
||||
|
||||
/**
|
||||
* Class HookManager
|
||||
*
|
||||
* @package Tinymce\Hook
|
||||
* @author Franck Allimant <franck@cqfdev.fr>
|
||||
*/
|
||||
class HookManager extends BaseHook
|
||||
{
|
||||
public function onJsWysiwyg(HookRenderEvent $event)
|
||||
{
|
||||
$content = $this->render("tinymce_init.tpl");
|
||||
$event->add($content);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user