Changeset 5331
- Timestamp:
- 01/09/12 16:27:47 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/workflow/inc/smarty/wf_plugins/function.wf_fckeditor.php
r795 r5331 58 58 59 59 // BasePath must be specified once. 60 $base_arguments['BasePath'] = $GLOBALS['phpgw_info']['server']['webserver_url'] . SEP . ' workflow' . SEP . 'js' . SEP . 'fckeditor' . SEP;60 $base_arguments['BasePath'] = $GLOBALS['phpgw_info']['server']['webserver_url'] . SEP . 'library' . SEP . 'ckeditor' . SEP; 61 61 62 62 $base_arguments['InstanceName'] = $params['InstanceName']; … … 77 77 if($init) 78 78 { 79 $out .= '<script type="text/javascript" src="' . $base_arguments['BasePath'] . ' fckeditor.js"></script>';79 $out .= '<script type="text/javascript" src="' . $base_arguments['BasePath'] . 'ckeditor.js"></script>'; 80 80 } 81 $out .= '<textarea cols="80" id="'.$base_arguments['InstanceName'].'" name="'.$base_arguments['InstanceName'].'" rows="10">'.$base_arguments['Value'].'</textarea>'; 81 82 82 $out .= "\n<script type=\"text/javascript\">\n"; 83 $out .= "var oFCKeditor = new FCKeditor('" . $base_arguments['InstanceName'] . "');\n"; 83 $out .= '<script type="text/javascript">'. 84 'CKEDITOR.replace( \''.$base_arguments['InstanceName'].'\',{'. 85 'removePlugins : \'elementspath\','. 86 'skin : \'office2003\','. 87 'toolbar : \'Full\''. 88 '}'. 89 ');'; 84 90 85 91 foreach($base_arguments as $key => $value) … … 90 96 $value = '"' . preg_replace("/[\r\n]+/", '" + $0"', addslashes($value)) . '"'; 91 97 } 92 $out .= " oFCKeditor.$key = $value; ";98 $out .= "CKEDITOR.$key = $value; "; 93 99 } 94 100 … … 99 105 $value = '"' . preg_replace("/[\r\n]+/", '" + $0"', addslashes($value)) . '"'; 100 106 } 101 $out .= " oFCKeditor.Config[\"$key\"] = $value; ";107 $out .= "CKEDITOR.config[\"$key\"] = $value; "; 102 108 } 103 109 104 $out .= "\noFCKeditor.Create();\n";105 110 $out .= "</script>\n"; 106 111
Note: See TracChangeset
for help on using the changeset viewer.