/** * Set the view object * * Ensures that the view object has the CKEditor view helper path set. * * @param \Zend_View_Interface $view * @return CKEditor_Form_CKEditor */ public function setView(\Zend_View_Interface $view = null) { if (null !== $view) { if (false === $view->getPluginLoader('helper')->getPaths('CKEditor_View_Helper')) { $view->addHelperPath('CKEditor/View/Helper', 'CKEditor_View_Helper'); } } if (!file_exists($this->basePath . '/ckeditor.js')) { throw new \Zend_Exception('Use setBasePath() to set the full path to the file ckeditor.php in the public folder of ckedit.'); } return parent::setView($view); }