public function setBasePath($basePath) {
        $basePath = (string) $basePath;
        if (file_exists($basePath . '/ckeditor.js')) {
            $this->basePath = $basePath;
        } else {
            throw new \Zend_Exception(sprintf('CKEditor.php not found at %s', $basePath));
        }

        return $this;
    }