0

I have added a WYSIWYG editor in extension so that one can add a WYSIWYG editor in the attribute. So i added these think in the main.php

 array(
 'value' => 'wysiwyg',
 'label' => Mage::helper('catalog')->__('WYSIWYG Editor')
 ),

Now what i do for get the WYSIWYG editor in the category.

asked Oct 4, 2013 at 13:49
2
  • I am not sure what you are asking. Are you wanting to add a wysiwyg editor to one/all category attributes? Maybe if you include the code that you already have this would help us to understand. Commented Oct 4, 2013 at 14:11
  • Hey Ranjit, did you have any progress on this issue? Commented Oct 7, 2013 at 8:33

1 Answer 1

3

The wysiwyg editor is available on the textarea type input. So if you are using the installer script to add your attribute for example use these options. Don't forget to append the other options you might need there like label.

$installer->addAttribute(Mage_Catalog_Model_Category::ENTITY, 'your_attribute', array(
 [...]
 'type' => 'text',
 'input' => 'textarea',
 'wysiwyg_enabled' => true,
 [...]
));
answered Oct 4, 2013 at 14:12

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.