mirror of
https://github.com/Karaka-Management/oms-Editor.git
synced 2026-02-12 08:28:39 +00:00
fix bugs
This commit is contained in:
parent
6738eb8caf
commit
2c8557aae9
|
|
@ -50,7 +50,7 @@ final class BackendController extends Controller
|
||||||
*/
|
*/
|
||||||
public function setUpEditorEditor(RequestAbstract $request, ResponseAbstract $response, mixed $data = null) : void
|
public function setUpEditorEditor(RequestAbstract $request, ResponseAbstract $response, mixed $data = null) : void
|
||||||
{
|
{
|
||||||
$head = $response->get('Content')->head;
|
$head = $response->data['Content']->head;
|
||||||
$head->addAsset(AssetType::JSLATE, 'Modules/Editor/Controller.js', ['type' => 'module']);
|
$head->addAsset(AssetType::JSLATE, 'Modules/Editor/Controller.js', ['type' => 'module']);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -47,7 +47,7 @@ class BaseView extends View
|
||||||
parent::__construct($l11n, $request, $response);
|
parent::__construct($l11n, $request, $response);
|
||||||
$this->setTemplate('/Modules/Editor/Theme/Backend/Components/Editor/inline-editor-tools');
|
$this->setTemplate('/Modules/Editor/Theme/Backend/Components/Editor/inline-editor-tools');
|
||||||
|
|
||||||
$response->get('Content')->getData('head')->addAsset(AssetType::JSLATE, 'Modules/Editor/Controller.js', ['type' => 'module']);
|
$response->data['Content']->head->addAsset(AssetType::JSLATE, 'Modules/Editor/Controller.js', ['type' => 'module']);
|
||||||
|
|
||||||
$view = new TextView($l11n, $request, $response);
|
$view = new TextView($l11n, $request, $response);
|
||||||
$this->addData('text', $view);
|
$this->addData('text', $view);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user