Register the resize callback only for the HTML editor.

fixed #182
This commit is contained in:
Antoine Nguyen
2011-12-14 10:40:47 +01:00
parent affbfb2fd7
commit 7a52d4d738
+1 -2
View File
@@ -125,11 +125,10 @@ function sendmail_callback(evt) {
function compose_callback(resp) {
wm_updatelisting(resp);
window.addEvent("resize", resize_window_callback);
var editormode = resp.editor;
if (editormode == "html") {
window.addEvent("resize", resize_window_callback);
var instance = CKEDITOR.instances[editorid];
if (instance) {
CKEDITOR.remove(instance);