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/config.tpl

    r2802 r2876  
    11<!-- BEGIN header --> 
    22<script> 
    3 function FCKeditor_OnComplete( editorInstance ) 
     3function send_form( pForm ) 
    44{ 
    5         editorInstance.LinkedField.form.onsubmit = function( ) 
     5        ExpressoLivre.events.fire.onunload( ); 
     6        return ExpressoLivre.form( pForm ); 
     7} 
     8 
     9ExpressoLivre.events.onload( function( ) 
     10{ 
     11        CKEDITOR.replace( "agree_term", 
    612        { 
    7                 document.getElementById( 'newsettings[agree_term]' ).value = FCKeditorAPI.GetInstance( editorInstance.Name ).GetHTML( ); 
    8                 return ExpressoLivre.form( editorInstance.LinkedField.form ); 
    9         }; 
    10 } 
     13                toolbar : 
     14                [ 
     15                        [ 'Styles', 'Format' ], 
     16                        [ 'Bold', 'Italic', '-', 'NumberedList', 'BulletedList' ] 
     17                ] 
     18        } ); 
     19} ); 
     20 
     21ExpressoLivre.events.onunload( function( ) 
     22{ 
     23        CKEDITOR.instances.agree_term.destroy( ); 
     24} ); 
    1125</script> 
    12 <form method="POST" action="{action_url}"> 
     26<form method="POST" action="{action_url}" onsubmit="return send_form( this );"> 
    1327<table align="center" width="85%" callspacing="0"> 
    1428   <tr class="th"> 
Note: See TracChangeset for help on using the changeset viewer.