File tree Expand file tree Collapse file tree 2 files changed +6
-7
lines changed
app/code/Magento/PageBuilder Expand file tree Collapse file tree 2 files changed +6
-7
lines changed Original file line number Diff line number Diff line change @@ -37,16 +37,17 @@ public function __construct(
37
37
38
38
/**
39
39
* Get config for wysiwyg initialization
40
- * @return \Magento\Framework\DataObject
40
+ *
41
+ * @return string
41
42
*/
42
- public function getConfig () : DataObject
43
+ public function getConfigJson () : string
43
44
{
44
45
$ config = $ this ->config ->getConfig ();
45
46
46
47
if (is_array ($ config )) {
47
48
$ config = new DataObject ($ config );
48
49
}
49
50
50
- return $ config ;
51
+ return $ config-> toJson () ;
51
52
}
52
53
}
Original file line number Diff line number Diff line change 3
3
* Copyright © Magento, Inc. All rights reserved.
4
4
* See COPYING.txt for license details.
5
5
*/
6
-
7
- /** @var Magento\PageBuilder\Block\Wysiwyg $block */
8
-
9
6
?>
7
+ <?php /** @var Magento\PageBuilder\Block\Wysiwyg $block */ ?>
10
8
<script>
11
9
require.config({
12
10
config: {
13
11
'mage/adminhtml/wysiwyg/tiny_mce/setup': {
14
- config: <?= /* @escapeNotVerified */ $ block ->getConfig ()-> toJson () ?>
12
+ config: <?= /* @noEscape */ $ block ->getConfigJson () ?>
15
13
}
16
14
}
17
15
});
You can’t perform that action at this time.
0 commit comments