Few days back when I tried to use Dojo editor in my application, I was served with error “plugin by name editor not found”.
As it is my custom to work until and unless I find solution, so I tried hard and worked for few days. At the end hard work pay off and find the solution.
Nothing was wrong with my code, however I was using Zend Framework version 1.6, when I updated my version and dojo toolkit the following fancy dojo editor was displayed on my page.
class forms_SimpleForm extends Zend_Dojo_Form
{
public function __construct($options = null)
{
parent::__construct($options);$editor=new Zend_Dojo_Form_Element_Editor(‘content’);
$editor->setLabel(‘Contents’);
$this->addElements(array(
$editor
));
}
}
?>That’s it. Have fun.
