Fixes for CKEDITOR

Monotone-Parent: 4b74905cc02ae0545c5ebcfdc467b052d5d42568
Monotone-Revision: 97c9c9c324c392626b96db873449bcc7892993b9

Monotone-Author: crobert@inverse.ca
Monotone-Date: 2009-08-26T15:08:56
Monotone-Branch: ca.inverse.sogo
This commit is contained in:
C Robert
2009-08-26 15:08:56 +00:00
parent 4f7130e8a0
commit 3c659d118e
5 changed files with 10 additions and 20 deletions

View File

@@ -581,15 +581,14 @@ function initMailEditor() {
if (composeMode == "html") {
CKEDITOR.replace('text',
{
skin: "v2",
toolbar :
toolbar :
[['Bold', 'Italic', '-', 'NumberedList',
'BulletedList', '-', 'Link', 'Unlink', 'Image',
'JustifyLeft','JustifyCenter','JustifyRight',
'JustifyBlock','Font','FontSize','-','TextColor',
'BGColor']
]
}
}
);
}
@@ -762,8 +761,8 @@ function onWindowResize(event) {
var ck_bottom = $("cke_bottom_text");
var content = $("cke_contents_text");
var top = hr.offsetTop;
ck_bottom.ancestors ().first ().style.display = "none";
var height = Math.floor(window.height() - top - ck_top.getHeight() - ck_bottom.getHeight());
height = height - 15;
if (Prototype.Browser.IE) {
editor.style.width = '';