mirror of
https://github.com/Karaka-Management/oms-Editor.git
synced 2026-01-11 17:18:42 +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
|
||||
{
|
||||
$head = $response->get('Content')->head;
|
||||
$head = $response->data['Content']->head;
|
||||
$head->addAsset(AssetType::JSLATE, 'Modules/Editor/Controller.js', ['type' => 'module']);
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -47,7 +47,7 @@ class BaseView extends View
|
|||
parent::__construct($l11n, $request, $response);
|
||||
$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);
|
||||
$this->addData('text', $view);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user