public function register()
{
$this->app->singleton(['xe.editor' => EditorHandler::class], function ($app) {
$editorHandler = $app['xe.interception']->proxy(EditorHandler::class, 'XeEditor');
/**
* @var EditorHandler $editorHandler
*/
$editorHandler = new $editorHandler($app['xe.pluginRegister'], $app['xe.config'], $app, $app['xe.storage'], $app['xe.media'], $app['xe.tag']);
$editorHandler->setDefaultEditorId($app['config']->get('xe.editor.default'));
return $editorHandler;
});
}