<?php
/**
 * Copyright © Magento, Inc. All rights reserved.
 * See COPYING.txt for license details.
 */

/**
 * @var Magento\PageBuilder\Block\WysiwygSetup $block
 * @var Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer
 */

?>
<?php
$config = $block->getConfigJson();
$script = <<<SCRIPT
    require.config({
        config: {
            'mage/adminhtml/wysiwyg/tiny_mce/setup': {
                config: {$config}
            }
        }
    });
SCRIPT;
?>
<?= /* @noEscape */ $secureRenderer->renderTag('script', [], $script, false) ?>
