Changeset 585 for trunk/app/views/helpers
- Timestamp:
- 06/03/08 21:17:29 (6 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/helpers/fck.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/helpers/fck.php
r61 r585 2 2 class FckHelper extends Helper 3 3 { 4 public function load($id, $toolbar = 'Karamelo', $width = 700, $height = 450) { 4 public function load($id, $toolbar = 'Karamelo', $width = 700, $height = 450) 5 { 5 6 6 $did = '';7 $did = ''; 7 8 8 foreach (explode('/', $id) as $v)9 {10 $did .= ucfirst($v);11 }9 foreach (explode('/', $id) as $v) 10 { 11 $did .= ucfirst($v); 12 } 12 13 13 14 return <<<FCK_CODE … … 16 17 var bFCKeditor_$did = new FCKeditor('$did'); 17 18 bFCKeditor_$did.BasePath = '/js/fckeditor/'; 18 bFCKeditor_$did.ToolbarSet = '$toolbar';19 bFCKeditor_$did.ToolbarSet = "$toolbar"; 19 20 bFCKeditor_$did.Width = $width; 20 21 bFCKeditor_$did.Height = $height;
