This commit is contained in:
Dennis Eichhorn 2023-05-31 15:59:17 +00:00
parent 6738eb8caf
commit 2c8557aae9
2 changed files with 2 additions and 2 deletions

View File

@ -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']);
}

View File

@ -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);