Changeset 2572 for trunk/expressoMail1_2/js/jscode/rich_text_editor.js
- Timestamp:
- 04/16/10 17:36:06 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/jscode/rich_text_editor.js
r2561 r2572 6 6 this.buildEditor(); 7 7 this.saveFlag = 0; 8 } 8 }; 9 9 10 10 cRichTextEditor.prototype.loadEditor = function(ID) { … … 36 36 document.getElementById('fontname').selectedIndex = 0; 37 37 document.getElementById('fontsize').selectedIndex = 0; 38 } 38 }; 39 39 40 40 cRichTextEditor.prototype.createElementEditor = function(pObj) … … 65 65 parentDiv.appendChild(checkbox); 66 66 parentDiv.appendChild(text); 67 } 67 }; 68 68 69 69 cRichTextEditor.prototype.viewsource = function(source) { … … 100 100 } 101 101 } 102 } 102 }; 103 103 104 104 cRichTextEditor.prototype.buildEditor = function() { … … 203 203 tbody.appendChild(tr); 204 204 this.table.appendChild(tbody); 205 } 205 }; 206 206 207 207 cRichTextEditor.prototype.editorCommand = function(command, option) { … … 245 245 //mainField.focus(); 246 246 } catch (e) {/* alert(e);*/ } 247 } 247 }; 248 248 249 249 cRichTextEditor.prototype.createLink = function(){ … … 265 265 this.editorCommand("CreateLink", szURL); 266 266 } 267 } 267 }; 268 268 269 269 // It include the image file in emails body … … 309 309 save_msg(id,true); 310 310 setTimeout("RichTextEditor.insertImgHtml("+id+")",1000); 311 } 311 }; 312 312 313 313 cRichTextEditor.prototype.insertImgHtml = function (id){ … … 318 318 this.editorCommand('Image', './inc/show_embedded_attach.php?msg_folder=INBOX/'+draftsfolder+'&msg_num='+openTab.imapUid[id]+'&msg_part='+(openTab.countFile[id]+1)); 319 319 // this.editorCommand('Image', '.inc/gotodownload.php?msg_folder="+msg_folder+"&msg_number="+msg_number+"&idx_file="+idx_file+"&msg_part="+msg_part+params')); 320 } 320 }; 321 321 322 322 cRichTextEditor.prototype.insertTableHtml = function (){ … … 334 334 insertTable += "</tbody></table>"; 335 335 this.editorCommand('Table', insertTable); 336 } 336 }; 337 337 338 338 cRichTextEditor.prototype.createTable = function(){ … … 370 370 371 371 this.showWindow(form); 372 } 372 }; 373 373 374 374 cRichTextEditor.prototype.incrementField = function(id_val){ 375 375 var field_text = document.getElementById(id_val); 376 376 field_text.value = parseInt(field_text.value)+1; 377 } 377 }; 378 378 379 379 cRichTextEditor.prototype.decrementField = function(id_val){ … … 381 381 if (parseInt(field_text.value) > 0) 382 382 field_text.value = parseInt(field_text.value)-1; 383 } 383 }; 384 384 385 385 cRichTextEditor.prototype.createImage = function(){ … … 419 419 420 420 this.showWindow(form); 421 } 421 }; 422 422 cRichTextEditor.prototype.showWindow = function (div){ 423 423 … … 453 453 win = this.emwindow[div.id]; 454 454 win.open(); 455 } 455 }; 456 456 457 457 cRichTextEditor.prototype.Select = function(selectname) … … 466 466 } 467 467 mainField.focus(); 468 } 468 }; 469 469 470 470 cRichTextEditor.prototype.show_pc = function(command) … … 476 476 else 477 477 this.hide_pc(); 478 } 478 }; 479 479 480 480 cRichTextEditor.prototype.hide_pc = function() 481 481 { 482 482 document.getElementById("palettecolor").style.visibility="hidden"; 483 } 483 }; 484 484 485 485 cRichTextEditor.prototype.getOffsetTop = function(elm) { 486 var mOffsetTop = elm.offsetTop; 1486 var mOffsetTop = elm.offsetTop; 487 487 var mOffsetParent = elm.offsetParent; 488 488 while(mOffsetParent){ … … 491 491 } 492 492 return mOffsetTop; 493 } 493 }; 494 494 495 495 cRichTextEditor.prototype.getOffsetLeft = function(elm) { … … 501 501 } 502 502 return mOffsetLeft; 503 } 503 };
Note: See TracChangeset
for help on using the changeset viewer.