Reading list Switch to dark mode

    How to add WYSIWYG functionality to Magento Config items

    Updated 23 February 2024

    First of all add this in any layout file, to load the editor in the config section:

        <update handle="editor"/>
        <reference name="head">
            <action method="setCanLoadTinyMce"><load>1</load></action>

    Now create your own field renderer. It has to be a block inside your module:

    class Namespace_Module_Block_Adminhtml_System_Config_Editor extends 
    implements Varien_Data_Form_Element_Renderer_Interface{
        protected function _getElementHtml(Varien_Data_Form_Element_Abstract $element){
            return parent::_getElementHtml($element);

    Now for the element inside the system.xml set the frontend_type ‘editor’ and the frontend_model your new block

    <fieldname translate="label">
        <label>Field label </label>

    Searching for an experienced
    Magento Company ?
    Find out More
    . . .

    Leave a Comment

    Your email address will not be published. Required fields are marked*

    Be the first to comment.

    Back to Top

    Message Sent!

    If you have more details or questions, you can reply to the received confirmation email.

    Back to Home