Integrating new editor draft

This commit is contained in:
Dennis Eichhorn 2017-08-17 21:54:27 +02:00
parent bedb367db6
commit 72422e5ea3
2 changed files with 5 additions and 2 deletions

View File

@ -166,6 +166,9 @@ class Controller extends ModuleAbstract implements WebInterface
$accGrpSelector = new \Modules\Profile\Theme\Backend\Components\AccountGroupSelector\BaseView($this->app, $request, $response);
$view->addData('accGrpSelector', $accGrpSelector);
$editor = new \Modules\Editor\Theme\Backend\Components\Editor\BaseView($this->app, $request, $response);
$view->addData('editor', $editor);
return $view;
}

View File

@ -42,8 +42,8 @@ echo $this->getData('nav')->render(); ?>
<tr><td colspan="2"><label for="iTitle"><?= $this->getHtml('Title') ?></label>
<tr><td><input type="text" id="iTitle" name="title" placeholder="&#xf040; <?= $this->getHtml('Title') ?>" required><td>
<tr><td colspan="2"><label for="iMessage"><?= $this->getHtml('Message') ?></label>
<tr><td><?php //include __DIR__ . '/../../../Editor/Theme/Backend/inline-editor-tools.tpl.php'; ?>
<tr><td><textarea id="iMessage" name="description" placeholder="&#xf040;" required></textarea><td>
<tr><td><?= $this->getData('editor')->render('editor-tools'); ?>
<tr><td><?= $this->getData('editor')->getData('text')->render('editor-text'); ?>
<tr><td colspan="2"><input type="submit" value="<?= $this->getHtml('Create', 0, 0); ?>"><input type="hidden" name="type" value="<?= htmlspecialchars(\Modules\Tasks\Models\TaskType::SINGLE, ENT_COMPAT, 'utf-8'); ?>">
</table>
</form>