Question

I am trying to create a WYSIWGY field in category page in magento backend but it doesn't seem to work. I am writing an install script as:

'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',                        
                ),

But it only shows the textarea but not the WYSIWGY editor. Any idea where I'm doing wrong?

Was it helpful?

Solution

Try this instead. Basically it's just 'wysiwyg' => true to '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',                        
            ),
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top