Integrating new editor draft

This commit is contained in:
Dennis Eichhorn 2017-08-17 21:54:27 +02:00
parent e99aed4538
commit fcac51a333
2 changed files with 20 additions and 1 deletions

View File

@ -170,6 +170,9 @@ class Controller extends ModuleAbstract implements WebInterface
$view->setTemplate('/Modules/News/Theme/Backend/news-create');
$view->addData('nav', $this->app->moduleManager->get('Navigation')->createNavigationMid(1000701001, $request, $response));
$editor = new \Modules\Editor\Theme\Backend\Components\Editor\BaseView($this->app, $request, $response);
$view->addData('editor', $editor);
return $view;
}

View File

@ -18,7 +18,23 @@ echo $this->getData('nav')->render(); ?>
<div class="row">
<div class="col-xs-12 col-md-9">
<?php include __DIR__ . '/../../../Editor/Theme/Backend/editor.tpl.php'; ?>
<div id="testEditor" class="m-editor">
<section class="box wf-100">
<div class="inner">
<input type="text" name="title" form="docForm">
</div>
</section>
<section class="box wf-100">
<div class="inner">
<?= $this->getData('editor')->render('iNews'); ?>
</div>
</section>
<div class="box wf-100">
<?= $this->getData('editor')->getData('text')->render('iNews'); ?>
</div>
</div>
</div>
<div class="col-xs-12 col-md-3">