Changeset 5328


Ignore:
Timestamp:
01/09/12 09:44:48 (12 years ago)
Author:
niltonneto
Message:

Ticket #663 - Alterado caminho do CKEditor para utilizar lib da API.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/inc/class.uiconfig.inc.php

    r5123 r5328  
    294294                        if($appname=="admin") {                                                  
    295295                                /* 
    296                                  * FCK editor to agree term 
     296                                 * New CKEditor to agree term 
    297297                                 */ 
    298                                 include_once("news_admin/inc/fckeditor.php"); 
    299                                 $oFCKeditor = new FCKeditor('newsettings[agree_term]');//CreateObject('news_admin.fckeditor','newsettings[agree_term]'); 
    300                                 $oFCKeditor->BasePath = 'news_admin/templates/default/fckeditor/';  
    301                                 $oFCKeditor->ToolbarSet = 'Basic'; 
    302                                 $oFCKeditor->Value = isset($GLOBALS['phpgw_info']['server']['agree_term']) ? $GLOBALS['phpgw_info']['server']['agree_term'] : ''; 
    303                                 $t->set_var('agree_term_input',$oFCKeditor->Create());                   
     298                                $content = isset($GLOBALS['phpgw_info']['server']['agree_term']) ? $GLOBALS['phpgw_info']['server']['agree_term'] : ''; 
     299                                $ckeditor = '<script type="text/javascript" src="./library/ckeditor/ckeditor.js"></script> 
     300                                                        <textarea cols="80" id="newsettings[agree_term]" name="newsettings[agree_term]" rows="10">' . $content . '</textarea> 
     301                                                        <script type="text/javascript"> CKEDITOR.replace( \'newsettings[agree_term]\',{ 
     302                                                                removePlugins : \'elementspath\', 
     303                                                                skin : \'office2003\', 
     304                                                                toolbar : [["Source","Preview","-","Cut","Copy","Paste","-","Print", 
     305                                                                "Undo","Redo","-","Find","Replace","-","SelectAll" ], 
     306                                                                ["Table","HorizontalRule","SpecialChar","PageBreak","-","Bold", 
     307                                                                "Italic","Underline","Strike","-","Subscript","Superscript", 
     308                                                                "NumberedList","BulletedList","-","Outdent","Indent","Blockquote", 
     309                                                                "JustifyLeft","JustifyCenter","JustifyRight","JustifyBlock", 
     310                                                                "Link", "TextColor","BGColor","Maximize"], 
     311                                                                ["Styles","Format","Font","FontSize"]] 
     312                                                        });</script>'; 
     313                                $t->set_var('agree_term_input',$ckeditor); 
    304314                        } 
    305315                        $t->set_var('title',lang('Site Configuration')); 
Note: See TracChangeset for help on using the changeset viewer.