mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-21 19:35:38 +00:00
HTML composition, take 2
Monotone-Parent: dbd490c81ea6cac4c12b2e17661e2fef43219e68 Monotone-Revision: 0801dc9f1e4fdc49ea44fc0450fb025c2639ed26 Monotone-Author: crobert@inverse.ca Monotone-Date: 2009-06-25T19:18:02 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -30,25 +30,30 @@ function onChoiceChanged(event) {
|
||||
}
|
||||
|
||||
function initPreferences() {
|
||||
CKEDITOR.replace('signature',
|
||||
{
|
||||
skin: "v2",
|
||||
height: "90px",
|
||||
toolbar :
|
||||
[['Bold', 'Italic', '-', 'Link',
|
||||
'Font','FontSize','-','TextColor',
|
||||
'BGColor']
|
||||
]
|
||||
}
|
||||
);
|
||||
|
||||
_setupEvents(true);
|
||||
if (typeof (initAdditionalPreferences) != "undefined")
|
||||
initAdditionalPreferences();
|
||||
$("replyPlacementList").observe ("change", onReplyPlacementListChange);
|
||||
onReplyPlacementListChange();
|
||||
|
||||
var oFCKeditor = new FCKeditor ('signature');
|
||||
oFCKeditor.BasePath = "/SOGo.woa/WebServerResources/fckeditor/";
|
||||
oFCKeditor.ToolbarSet = 'Basic';
|
||||
oFCKeditor.ReplaceTextarea ();
|
||||
$('signature___Frame').style.height = "150px";
|
||||
$('signature___Frame').height = "150px";
|
||||
$("composeMessagesType").observe ("change", onComposeMessagesTypeChange);
|
||||
|
||||
if (UserDefaults["ComposeMessagesType"] != "html") {
|
||||
$("signature").style.display = 'inline';
|
||||
$('signature___Frame').style.display = 'none';
|
||||
$('cke_signature').style.display = 'none';
|
||||
}
|
||||
|
||||
$("composeMessagesType").observe ("change", onComposeMessagesTypeChange);
|
||||
}
|
||||
|
||||
function onReplyPlacementListChange() {
|
||||
@@ -63,9 +68,9 @@ function onReplyPlacementListChange() {
|
||||
}
|
||||
|
||||
function onComposeMessagesTypeChange () {
|
||||
var textArea = $('signature');
|
||||
var oEditor = FCKeditorAPI.GetInstance('signature');
|
||||
var editor = $('signature___Frame');
|
||||
/* var textArea = $('signature');
|
||||
var oEditor = CKeditorAPI.GetInstance('signature');
|
||||
var editor = $('cke_signature');
|
||||
|
||||
if ($("composeMessagesType").value == 0) {
|
||||
textArea.style.display = 'inline';
|
||||
@@ -76,7 +81,7 @@ function onComposeMessagesTypeChange () {
|
||||
textArea.style.display = 'none';
|
||||
editor.style.display = '';
|
||||
oEditor.SetHTML(textArea.value);
|
||||
}
|
||||
}*/
|
||||
}
|
||||
|
||||
document.observe("dom:loaded", initPreferences);
|
||||
|
||||
Reference in New Issue
Block a user