Show
Ignore:
Timestamp:
06/03/08 21:17:29 (6 months ago)
Author:
aarkerio
Message:

Fck editor

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/helpers/fck.php

    r61 r585  
    22class FckHelper extends Helper 
    33{ 
    4    public function load($id, $toolbar = 'Karamelo', $width = 700, $height = 450) { 
     4 public function load($id, $toolbar = 'Karamelo', $width = 700, $height = 450)  
     5 { 
    56         
    6         $did = ''; 
     7  $did = ''; 
    78         
    8         foreach (explode('/', $id) as $v)  
    9         { 
    10              $did .= ucfirst($v); 
    11         } 
     9 foreach (explode('/', $id) as $v)  
     10 { 
     11      $did .= ucfirst($v); 
     12 } 
    1213         
    1314return <<<FCK_CODE 
     
    1617var bFCKeditor_$did = new FCKeditor('$did'); 
    1718bFCKeditor_$did.BasePath = '/js/fckeditor/'; 
    18 bFCKeditor_$did.ToolbarSet = '$toolbar'; 
     19bFCKeditor_$did.ToolbarSet = "$toolbar"; 
    1920bFCKeditor_$did.Width = $width; 
    2021bFCKeditor_$did.Height = $height;