我正在尝试在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编辑器。知道我哪里做错了吗?
答案 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',
),