fck.php0000644000175100000000000000417311031156033011177 0ustar nuriarootWidth = $width; } if($height){ $this->Height = $height; } $js = $this->webroot.'js/'; return<< fckLoader_$did = function () { var bFCKeditor_$did = new FCKeditor('$did'); bFCKeditor_$did.BasePath = '$js'; bFCKeditor_$did.ToolbarSet = '$toolbar'; bFCKeditor_$did.Width = $this->Width; bFCKeditor_$did.Height = $this->Height; bFCKeditor_$did.ReplaceTextarea(); } fckLoader_$did(); FCK_CODE; } function fileBrowserInput($fieldName, $htmlAttributes = array(), $return = false) { $output = $this->input($fieldName, $htmlAttributes, $return); if (!isset($htmlAttributes['id'])) { $htmlAttributes['id'] = $this->model . Inflector::camelize($this->field); } $output .= ''; $output .= 'select an image...'; return $output; } } ?>