Skip to content

Commit e85c0e5

Browse files
committed
fixed json response header is set correct
1 parent 7fd5a7e commit e85c0e5

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

Classes/Controller/CkeditorConfigurationController.php

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,11 @@
99
*/
1010
class CkeditorConfigurationController extends ActionController
1111
{
12+
/**
13+
* @var string
14+
*/
15+
protected $defaultViewObjectName = \Neos\Flow\Mvc\View\JsonView::class;
16+
1217
/**
1318
* @Flow\InjectConfiguration(path="buttons")
1419
* @var array
@@ -17,6 +22,6 @@ class CkeditorConfigurationController extends ActionController
1722

1823
public function configAction()
1924
{
20-
return \json_encode($this->ckeditorConfig);
25+
$this->view->assign('value', $this->ckeditorConfig);
2126
}
2227
}

0 commit comments

Comments
 (0)