Changeset 5134 for trunk/expressoMail1_2/js/rich_text_editor.js
- Timestamp:
- 11/03/11 13:24:28 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/expressoMail1_2/js/rich_text_editor.js
r5083 r5134 99 99 var textArea = document.createElement("TEXTAREA"); 100 100 textArea.id = pObj; 101 textArea.style.height = '500';102 101 textArea.style.width = '100%'; 103 102 parentDiv.appendChild(textArea); … … 367 366 if(selection !== undefined && selection !== null) var selectionRanges = selection.getRanges(); 368 367 369 editor.insertHtml('<div><br type="_moz"></div>'+data); 368 var fontSize = ''; 369 var fontFamily = ''; 370 370 371 if(selection !== null) selection.selectRanges(selectionRanges); 371 if(typeof(preferences.font_size_editor) !== 'undefined') 372 fontSize = 'font-size:' + preferences.font_size_editor; 373 374 if(fontSize != '') 375 fontFamily = ';' 376 377 if(typeof(preferences.font_family_editor) !== 'undefined') 378 fontFamily += 'font-family:' + preferences.font_family_editor + ';'; 379 380 var divBr = '<div style="'+fontSize+fontFamily+'"><br type="_moz"></div>'; 372 381 373 editor.execCommand("autogrow"); //Atualiza tamanho do editor 382 editor.insertHtml(divBr+divBr+divBr+data); 383 384 if(selection !== null) selection.selectRanges(selectionRanges); 374 385 375 386 //Caso não for uma resposta votla o foco para o input to … … 396 407 CKEDITOR.remove(CKEDITOR.instances[id]); 397 408 409 var height = document.body.scrollHeight; 410 height -= 425; 411 398 412 $('#'+id).ckeditor( 399 413 function() {RichTextEditor.execPosInstance(id)}, 400 414 { 401 toolbar:'mail' 415 toolbar:'mail', 416 height: height 402 417 }); 403 418
Note: See TracChangeset
for help on using the changeset viewer.