<?
class frmEditor extends MForm
{

    public function __construct()
    {   
		parent::__construct('Editor');

        $value = $this->getFormValue('editor');
        $fields = array(
             new MEditor('editor',$value,'Editor'),
		);
		$this->setFields($fields);

        $buttons = new MButton('btnPost','Enviar');
        $this->setButtons($buttons);
        $this->eventHandler();
	}

    public function btnPost_click()
    {
        $value = $this->getFormValue('editor');
        $this->addField(new MLabel($value));
    }
}

?>
