I would like to transform the default textarea editor in my custom admin module with this module : https://github.com/Magenerds/PageDesigner

It is a module to create responsive content with CMS et block, it is perfectly working. Demo: https://www.youtube.com/watch?v=E0wZzVPFhM0

Now, I need to use this functionnality in my custom module, I tried to modify the di.xml file to modify the behavior of my module, not result.

Default di.xml:

<?xml version="1.0"?>
 * This source file is subject to the Open Software License (OSL 3.0)
 * that is available through the world-wide-web at this URL:
 * http://opensource.org/licenses/osl-3.0.php
<config xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    <preference for="\Magento\Widget\Block\Adminhtml\Widget\Form"
    <preference for="Magento\Framework\App\Arguments\ValidationState"
    <preference for="Magenerds\PageDesigner\Utils\HtmlRendererInterface"

    <!-- Plugins -->
    <type name="\Magento\Cms\Model\Page">
        <plugin name="Magenerds_PageDesigner::cmsPageRenderJson"
                type="Magenerds\PageDesigner\Plugin\Cms\Model\Page\PagePlugin" sortOrder="100"/>
    <type name="Magento\Cms\Model\Page\DataProvider">
        <plugin name="Magenerds_PageDesigner::injectPageHtmlIntoJson"
                type="Magenerds\PageDesigner\Plugin\Cms\Model\Page\DataProviderPlugin" sortOrder="100"/>
    <type name="\Magento\Cms\Model\Block">
        <plugin name="Magenerds_PageDesigner::cmsBlockRenderJson"
                type="Magenerds\PageDesigner\Plugin\Cms\Model\Block\BlockPlugin" sortOrder="100"/>

    <type name="Magento\Cms\Model\Block\DataProvider">
        <plugin name="Magenerds_PageDesigner::injectPageHtmlIntoJson"
                type="Magenerds\PageDesigner\Plugin\Cms\Model\Block\DataProviderPlugin" sortOrder="100"/>

    <type name="Magento\Widget\Model\Widget">
        <plugin name="Magenerds_PageDesigner::widgetEncode"
    <type name="Magento\Widget\Block\Adminhtml\Widget\Options">
        <plugin name="Magenerds_PageDesigner::widgetDecodeBackend"

What is the best way to override my textarea with this module?

  • In your extension what you have try – Dhiren Vasoya Sep 2 '17 at 12:09
  • The problem is i do not know where to start, I tried to change the di.xml in the magendrs module but it does not work. – Mathieu Sep 2 '17 at 12:56
  • First main question, do I have to change the magenerds module to override my custom module or change my module to use the custom page designer field? – Mathieu Sep 3 '17 at 5:20
  • I suggest you to modif your module, so rest of the development working fine. – Dhiren Vasoya Sep 4 '17 at 2:54

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.