Changeset 7557 for branches/2.4/expressoMail1_2/js/rich_text_editor.js
- Timestamp:
- 11/23/12 11:57:42 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.4/expressoMail1_2/js/rich_text_editor.js
r6754 r7557 363 363 element.setAttribute('contentEditable','true'); 364 364 } 365 cRichTextEditor.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 } 365 380 //Build the Object 366 381 RichTextEditor = new cRichTextEditor();
Note: See TracChangeset
for help on using the changeset viewer.