在magento后端创建一个WYSIWGY字段

时间:2012-02-09 12:25:40

标签: magento backend custom-backend

我正在尝试在magento后端的类别页面中创建一个WYSIWGY字段,但它似乎不起作用。我正在编写一个安装脚本:

'fabric_and_care' => array(
                    'type'              => 'text',
                    'backend'           => '',
                    'frontend'          => '',
                    'label'             => 'Fabric and Care Instructions',
                    'input'             => 'textarea',
                    'class'             => '',
                    'visible'           => true,
                    'required'          => false,
                    'user_defined'      => true,
                    'default'           => 0,
                    'searchable'        => false,
                    'filterable'        => false,
                    'comparable'        => false,
                    'visible_on_front'  => false,
                    'unique'            => false,
                    'wysiwyg'           => true,
                    'group'             => 'general',                        
                ),

但它只显示textarea而不是WYSIWGY编辑器。知道我哪里做错了吗?

1 个答案:

答案 0 :(得分:3)

试试这个。基本上它只是'wysiwyg' => true'wysiwyg_enabled' => true

    'fabric_and_care' => array(
                'type'              => 'text',
                'backend'           => '',
                'frontend'          => '',
                'label'             => 'Fabric and Care Instructions',
                'input'             => 'textarea',
                'class'             => '',
                'visible'           => true,
                'required'          => false,
                'user_defined'      => true,
                'default'           => 0,
                'searchable'        => false,
                'filterable'        => false,
                'comparable'        => false,
                'visible_on_front'  => false,
                'unique'            => false,
                'wysiwyg_enabled'           => true,
                'group'             => 'general',                        
            ),