Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

Does anybody know? 
 
marcelv91
Jr. Member
 
Total Posts:  29
Joined:  2013-03-01
 

I asked the question already around serveral sites, but somehow I don`t get any replies… But since I`m really stuck, I thought I could ask again.

I created a few small widgets for magento. Everything fine, but I can`t seem to figure out how to add a richtext (tinymce wysiwyg) field to my widget.

Only thing I find on this is: “use ‘wysiwyg’ => true” in “$fieldset->addField”. But I cannot use this in my custom widget, can I?

I understand that I can use addField to add a field to for example a product or CMS page.

But the only way of adding fields in my custom widget, as far as I know, is by adding parameters in my widget.xml. Other widget I build by following some tutorial returns a button, by using a custom type as parameter:

$removeButton = $this->getLayout()->createBlock(’adminhtml/widget_button’)
->setType(’button’)
->setClass(’delete’)
->setLabel($this->__(’Remove Image’))
->setOnclick(’document.getElementById(\\\\’’.$element->getId().’\\\\’).value=\\\\’\\\\’;if(document.getElementById(\\\\’’.$element->getId().’_image\\\\’))document.getElementById(\\\\’’.$element->getId().’_image\\\\’).parentNode.remove()’)
->setDisabled($element->getReadonly())
->setStyle(’margin-left:10px;margin-top:7px’);

But i just can`t figure out how to add a richtext field in either my Widget.xml or my phpfile for the custom type.

What am I missing? Hope someone can help me out.

 
Magento Community Magento Community
Magento Community
Magento Community
 
magneto800
Member
 
Avatar
Total Posts:  60
Joined:  2013-03-15
 

maybe THIS can help.

 
Magento Community Magento Community
Magento Community
Magento Community
 
marcelv91
Jr. Member
 
Total Posts:  29
Joined:  2013-03-01
 

Hi,
Thanks! Already given up on my posts, until I saw someone did actually reply.

But the link your refer to is specifically about Magento modules, and I am trying to do this in a widget. Or am I misunderstanding some key information.

I followed basig magento guide on how to create widget, but I haven`t dived into modules very deep yet.

Any ideas?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top