Using Magento 1.4's WYSIWYG editor on custom admin pages

Using Magento 1.4's WYSIWYG editor on custom admin pages

July 15, 2026 · Illustrated author avatarBy Stefan Bogdanescu
Using Magento 1.4's WYSIWYG editor on custom admin pages

Integrating Magento 1.4’s WYSIWYG Editor into Custom Admin Pages

In Magento 1.4, Adobe introduced a new WYSIWYG editor called TinyMCE to improve the user experience when editing rich text content in the admin interface. While it comes pre-integrated with many default forms like the CMS pages and catalog descriptions, enabling this powerful tool for custom admin pages requires a bit of configuration.

Understanding Magento’s WYSIWYG Setup

Before we dive into integrating TinyMCE into your custom code, let’s first understand how Magento manages its WYSIWYG settings. The core config file that controls the editor is located at app/code/core/Mage/Adminhtml/etc/config.xml.

Here you’ll find the <wygwam_config> node, which specifies various editor configurations such as the allowed elements, styles, and plugins.

Enabling TinyMCE for Custom Textareas

To make TinyMCE work on your custom admin pages, you need to ensure that the textarea field is properly configured in your XML layout files. Here’s a step-by-step guide:

  1. In your module’s app/code/local/YourVendor/YourModule/etc/adminhtml/layout folder, create an XML file (e.g., your_module.xml) if it doesn’t exist.

  2. Open the existing layout file or this new one and add the following inside the <layout> tags:

<wygwam>
    <textarea id="your_textarea_id">
        <action method="setConfig" name="core_wysiwyg_tiny_mce"/>
    </textarea>
</wygwam>

Replace your_textarea_id with the actual ID of your textarea element.

  1. Save the file and clear your Magento cache (php bin/magento cache:clean).

Configuring Your Textarea in the Form

In your form definition, make sure to set the correct type for your field:

<reference name="content">
    <block type="core/text" name="your_textarea_field" template="adminhtml/system/wysiwyg.phtml"/>
</reference>

Replace your_textarea_field with a unique block ID and ensure that the corresponding PHTML file exists at the specified location.

Customizing TinyMCE for Your Needs

If you need to customize the editor further, such as adding additional plugins or configuring specific options, you can override the core_wysiwyg_tiny_mce action. Create a new XML file in your module’s etc/adminhtml/xmlconnect/your_module.xml:

<config>
    <nodes>
        <node>
            <name>tinymce_script</name>
            <textarea id="your_textarea_id">
                <action method="getTinyMce" name="core_wysiwyg_tiny_mce"/>
            </textarea>
        </node>
    </nodes>
</config>

Replace your_textarea_id with your field ID and update the configuration to suit your requirements. Remember to clear the cache after making changes.

Wrapping Up

Integrating Magento’s WYSIWYG editor into custom admin pages is a straightforward process once you understand how the system works under the hood. By following these steps, you can provide a seamless editing experience for your store administrators while keeping them productive and efficient.

As your business grows and you require more advanced features or customizations, I recommend exploring the Laravel Company’s Magento development services, where our team of experienced developers is ready to help you optimize your e-commerce platform.

Magento 1 Catalog Extensions Themes

Our network