Ignore:
Timestamp:
05/28/10 09:36:15 (14 years ago)
Author:
rodsouza
Message:

Ticket #663 - Atualizando o ckeditor do módulo admin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/templates/default/mainscreen_message.tpl

    r2802 r2876  
    11<!-- BEGIN form --> 
    2 <div align="center">{error_message}</div> 
    3 <form method="POST" action="{form_action}" onsubmit="return ExpressoLivre.form( this );"> 
     2{scripts} 
     3<form method="POST" action="{form_action}" onsubmit="return send_form( this );"> 
    44 <table border="0" align="center" > 
    5 <input type="hidden" name="select_lang" value="{select_lang}"> 
    6 <input type="hidden" name="section" value="{section}"> 
     5  <input type="hidden" name="select_lang" value="{select_lang}"> 
     6  <input type="hidden" name="section" value="{section}"> 
    77  {rows} 
    88 </table> 
     
    3636  </tr> 
    3737<!-- END row_2 --> 
     38<!-- BEGIN edit --> 
     39  <tr > 
     40    <td colspan="2"> 
     41         <br /> 
     42          {message} 
     43         <br /> 
     44        </td> 
     45  </tr> 
     46<!-- END edit --> 
     47<!-- BEGIN edit_script --> 
     48<script> 
     49function send_form( pForm ) 
     50{ 
     51        ExpressoLivre.events.fire.onunload( ); 
     52        return ExpressoLivre.form( pForm ); 
     53} 
     54 
     55ExpressoLivre.events.onload( function( ) 
     56{ 
     57        CKEDITOR.replace( "message", 
     58        { 
     59                toolbar : 
     60                [ 
     61                        [ 'Styles', 'Format' ], 
     62                        [ 'Bold', 'Italic', '-', 'NumberedList', 'BulletedList' ] 
     63                ], 
     64                width : 500 
     65        } ); 
     66} ); 
     67 
     68ExpressoLivre.events.onunload( function( ) 
     69{ 
     70        CKEDITOR.instances.message.destroy( ); 
     71} ); 
     72</script> 
     73<!-- END edit_script --> 
Note: See TracChangeset for help on using the changeset viewer.