Skip to content

Commit 12b62b7

Browse files
committed
AC-12726::[2.4.8-beta1] TinyMCE 5 migration to TinyMCE 7
1 parent e1bf932 commit 12b62b7

File tree

3 files changed

+36
-1
lines changed

3 files changed

+36
-1
lines changed
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<?xml version="1.0"?>
2+
<!--
3+
/**
4+
* Copyright © Magento, Inc. All rights reserved.
5+
* See COPYING.txt for license details.
6+
*/
7+
-->
8+
<page xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="urn:magento:framework:View/Layout/etc/page_configuration.xsd">
9+
<body>
10+
<referenceContainer name="after.body.start">
11+
<block class="Magento\Ui\Block\Logger" name="logger" template="Magento_Ui::logger.phtml"/>
12+
<block class="Magento\Ui\Block\Wysiwyg\ActiveEditor" name="theme.active.editor" template="Magento_Ui::wysiwyg/active_editor.phtml" />
13+
</referenceContainer>
14+
</body>
15+
</page>
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
<?php
2+
/**
3+
* Copyright © Magento, Inc. All rights reserved.
4+
* See COPYING.txt for license details.
5+
*/
6+
7+
/** @var Magento\Ui\Block\Wysiwyg\ActiveEditor $block */
8+
/** @var \Magento\Framework\View\Helper\SecureHtmlRenderer $secureRenderer */
9+
10+
$wysiwygAdapterPath = /* @noEscape */ $block->getWysiwygAdapterPath();
11+
$scriptString = <<<script
12+
require.config({
13+
map: {
14+
'*': {
15+
wysiwygAdapter: '{$wysiwygAdapterPath}'
16+
}
17+
}
18+
});
19+
script;
20+
21+
echo /* @noEscape */ $secureRenderer->renderTag('script', [], $scriptString, false);

app/code/Magento/Ui/view/base/layout/default.xml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
<body>
1010
<referenceContainer name="after.body.start">
1111
<block class="Magento\Ui\Block\Logger" name="logger" template="Magento_Ui::logger.phtml"/>
12-
<block class="Magento\Ui\Block\Wysiwyg\ActiveEditor" name="theme.active.editor" template="Magento_Ui::wysiwyg/active_editor.phtml" />
1312
</referenceContainer>
1413
</body>
1514
</page>

0 commit comments

Comments
 (0)