mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-04-23 13:59:32 +00:00
HTML Composing, see changelog
Monotone-Parent: b895c283a3da52c67fd91339f704dc8cd49b743f Monotone-Revision: 5f0e6bd5b6298ffdd908398135216841ba3b6909 Monotone-Author: crobert@inverse.ca Monotone-Date: 2009-06-23T17:53:18 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -570,6 +570,15 @@ function initMailEditor() {
|
||||
focusField.focus();
|
||||
|
||||
initializePriorityMenu();
|
||||
|
||||
var composeMode = UserDefaults["ComposeMessagesType"];
|
||||
if (composeMode == "html") {
|
||||
var oFCKeditor = new FCKeditor ('text');
|
||||
oFCKeditor.BasePath = "/SOGo.woa/WebServerResources/fckeditor/";
|
||||
oFCKeditor.ToolbarSet = 'Basic';
|
||||
oFCKeditor.ReplaceTextarea ();
|
||||
}
|
||||
onWindowResize (null);
|
||||
}
|
||||
|
||||
function initializePriorityMenu() {
|
||||
@@ -720,7 +729,14 @@ function onWindowResize(event) {
|
||||
textarea.setStyle({ 'top': hr.offsetTop + 'px' });
|
||||
|
||||
// Resize the textarea (message content)
|
||||
textarea.rows = Math.floor((window.height() - textarea.offsetTop) / rowheight);
|
||||
var composeMode = UserDefaults["ComposeMessagesType"];
|
||||
if (composeMode == "html") {
|
||||
var editor = $('text___Frame');
|
||||
editor.height = Math.floor(window.height() - editor.offsetTop) + "px";
|
||||
editor.style.height = Math.floor(window.height() - editor.offsetTop) + "px";
|
||||
editor.setStyle({ 'top': hr.offsetTop + 'px' });
|
||||
}
|
||||
textarea.rows = Math.floor((window.height() - textarea.offsetTop) / rowheight);
|
||||
}
|
||||
|
||||
function onMailEditorClose(event) {
|
||||
|
||||
Reference in New Issue
Block a user