BasePath = URL_MAIN.'/plugins/fckeditor/'; $oFCKeditor->ToolbarSet = (isset($params['toolbar']) ? $params['toolbar'] : 'Basic'); $oFCKeditor->InstanceName = $params['name']; if (isset($params['width'])) { $oFCKeditor->Width = $params['width']; } if (isset($params['height'])) { $oFCKeditor->Height = $params['height']; } if (isset($params['value']) && is_string($params['value'])) { $oFCKeditor->Value = $params['value']; } else if (Request::Check($params['name'])) { $oFCKeditor->Value = Request::Get($params['name']); } $smarty->assign('fck' . ucfirst($params['name']), $oFCKeditor); $ffParams = array('type' => 'hidden', 'name' => $params['name'] . 'FromFCK', 'id' => $params['name'] . 'FromFCK', 'style' => 'display: none;'); return $oFCKeditor->Create() . "\n" . smarty_function_formField($ffParams, $smarty); } ////Via Javascript //function smarty_function_insertFckEditor($params, &$smarty) { // $name = 'oFCKeditor' . ucfirst($params['name']); // // $ret = '"; // return $ret; //} ?>