From 7e560ab1c287aaab32f7233852cc6fcdbe12f59b Mon Sep 17 00:00:00 2001 From: Sanj Date: Tue, 12 Jul 2011 21:02:11 +0530 Subject: [PATCH] quick fix for editor save button posn. --- edgware/static/css/editor.css | 2 +- edgware/static/js/editor.js | 12 +++++++++--- edgware/templates/editor.html | 4 +++- 3 files changed, 13 insertions(+), 5 deletions(-) diff --git a/edgware/static/css/editor.css b/edgware/static/css/editor.css index a141826..0cd2fef 100644 --- a/edgware/static/css/editor.css +++ b/edgware/static/css/editor.css @@ -335,7 +335,7 @@ margin-top:0px; } .save_text{ - margin-top:20px; + margin-top:30px; display:none; } diff --git a/edgware/static/js/editor.js b/edgware/static/js/editor.js index 1925949..79e71be 100644 --- a/edgware/static/js/editor.js +++ b/edgware/static/js/editor.js @@ -1289,6 +1289,9 @@ function replaceDiv( div ) { height = parseInt($(div).css('height')); height = toPx(height); width = parseInt($(div).css('width')); + if (width < 400) { + width = 400; + } width = toPx(width); editor = CKEDITOR.replace( div, @@ -1302,9 +1305,12 @@ function replaceDiv( div ) { skin: 'v2' }); } - - - +/* + editor.on("resize", function(e) { + alert("hi"); + console.log(e); + }); +*/ /* height = parseInt($(div).css('height')) - 6; height = toPx(height); diff --git a/edgware/templates/editor.html b/edgware/templates/editor.html index 252006d..b2af408 100644 --- a/edgware/templates/editor.html +++ b/edgware/templates/editor.html @@ -108,15 +108,17 @@