Magento Admin Create and Save HTML to Database With a Form Field -


i working on module requires html entered later called upon , become part of customer facing widget output.

i've created administrative backend , working properly, when enter html field should storing data receive error. dont need wysiwyg able enter html value.

at point i've not done special when adding field fieldset. missing?

    $contentfield = $fieldset->addfield('inner_html', 'editor', array(         'name'      => 'inner_html',         'style'     => 'height:36em;width:36em',         'required'  => false,     )); 

try

$fieldset->addfield('inner_html', 'editor', array(      'name' => 'inner_html',      'label' => mage::helper('tag')->__('description'),      'title' => mage::helper('tag')->__('description'),      'style' => 'width:700px; height:350px;',      'config' => mage::getsingleton('cms/wysiwyg_config')->getconfig(array('add_variables' => false, 'add_widgets' => false,'files_browser_window_url'=>$this->getbaseurl().'admin/cms_wysiwyg_images/index/')),      'wysiwyg' => true,      'required' => false,  )); 

Comments

Popular posts from this blog

node.js - Bad Request - node js ajax post -

Why does Ruby on Rails generate add a blank line to the end of a file? -

keyboard - Smiles and long press feature in Android -