Changeset 7520 for trunk/expressoMail1_2/js/rich_text_editor.js
- Timestamp:
- 11/14/12 15:35:36 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/rich_text_editor.js
r6699 r7520 176 176 save_link.unbind("click").click(function(){ 177 177 openTab.toPreserve[id] = true;save_msg(id); 178 $(".save").addClass("clicked"); 178 179 }); 179 180 save_link.button({ disabled: false }); … … 363 364 element.setAttribute('contentEditable','true'); 364 365 } 366 cRichTextEditor.prototype.keydown = function (id,rec){ 367 if (rec === undefined) rec = 1; 368 rec++; 369 if( CKEDITOR.instances['body_'+ id] === undefined ) return; 370 var element = CKEDITOR.instances['body_'+ id]; 371 372 if(element.document){ 373 element.document.on('keydown',function(){ 374 $("#content_id_"+currentTab+" .save").button("enable"); 375 }); 376 } else { 377 if (rec <= 20) 378 setTimeout(function(){RichTextEditor.keydown(id,rec)},500); 379 } 380 } 365 381 //Build the Object 366 382 RichTextEditor = new cRichTextEditor();
Note: See TracChangeset
for help on using the changeset viewer.