PHP Magento Tips

Disable 'Insert Widget', 'Insert Image' and 'Insert Variable' Buttons From wysiwyg Editor In Magento

Rate this posting:
{[['']]}

To Disable 'Insert Widget', 'Insert Image' and 'Insert Variable' Buttons from your wysiwyg Configuration option you need to pass additional parameter in Array.

- Go to your YourNamespace/YourModule/Block/Adminhtml/YourEntity/Edit/Tab/Form.php file

and find below code:

$wysiwygConfig = Mage::getSingleton('cms/wysiwyg_config')->getConfig();

Replace it with

$wysiwygConfig = Mage::getSingleton('cms/wysiwyg_config')->getConfig(array('add_variables' => false, 'add_widgets' => false, 'add_images' => false));

- You are done.
Tag : Magento
0 Comments On "Disable 'Insert Widget', 'Insert Image' and 'Insert Variable' Buttons From wysiwyg Editor In Magento"

Back To Top