Ignore:
Timestamp:
11/23/12 11:57:42 (11 years ago)
Author:
eduardow
Message:

Ticket #3186 - Problema no salvamento de rascunhos no Expresso Mail.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/2.4/expressoMail1_2/js/rich_text_editor.js

    r6754 r7557  
    363363        element.setAttribute('contentEditable','true');  
    364364}  
     365cRichTextEditor.prototype.keydown = function (id,rec){  
     366    if (rec === undefined) rec = 1;  
     367    rec++;  
     368    if( CKEDITOR.instances['body_'+ id] === undefined ) return;      
     369    var element = CKEDITOR.instances['body_'+ id];    
     370      
     371    if(element.document){  
     372        element.document.on('keydown',function(){  
     373            $("#content_id_"+currentTab+" .save").button("enable");  
     374        });  
     375    } else {  
     376        if (rec <= 20)  
     377                setTimeout(function(){RichTextEditor.keydown(id,rec)},500);  
     378    }  
     379}  
    365380//Build the Object 
    366381RichTextEditor = new cRichTextEditor(); 
Note: See TracChangeset for help on using the changeset viewer.