mirror of
https://github.com/Karaka-Management/oms-News.git
synced 2026-02-04 11:18:39 +00:00
Integrating new editor draft
This commit is contained in:
parent
e99aed4538
commit
fcac51a333
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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">
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user