Bind the configured handler to the EditorIsRendering hook

parent 75ce82c9
...@@ -12,6 +12,7 @@ use Modules\Core\Console\DownloadModuleCommand; ...@@ -12,6 +12,7 @@ use Modules\Core\Console\DownloadModuleCommand;
use Modules\Core\Console\InstallCommand; use Modules\Core\Console\InstallCommand;
use Modules\Core\Console\PublishModuleAssetsCommand; use Modules\Core\Console\PublishModuleAssetsCommand;
use Modules\Core\Console\PublishThemeAssetsCommand; use Modules\Core\Console\PublishThemeAssetsCommand;
use Modules\Core\Events\EditorIsRendering;
use Modules\Core\Foundation\Theme\ThemeManager; use Modules\Core\Foundation\Theme\ThemeManager;
use Modules\Core\Traits\CanPublishConfiguration; use Modules\Core\Traits\CanPublishConfiguration;
use Nwidart\Modules\Module; use Nwidart\Modules\Module;
...@@ -53,6 +54,7 @@ class CoreServiceProvider extends ServiceProvider ...@@ -53,6 +54,7 @@ class CoreServiceProvider extends ServiceProvider
$this->registerModuleResourceNamespaces(); $this->registerModuleResourceNamespaces();
$this->bladeDirectives(); $this->bladeDirectives();
$this->app['events']->listen(EditorIsRendering::class, config('asgard.core.core.wysiwyg-handler'));
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment