quick fix for editor save button posn.

This commit is contained in:
Sanj 2011-07-12 21:02:11 +05:30
parent bec8814929
commit 7e560ab1c2
3 changed files with 13 additions and 5 deletions

View File

@ -335,7 +335,7 @@ margin-top:0px;
}
.save_text{
margin-top:20px;
margin-top:30px;
display:none;
}

View File

@ -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);

View File

@ -108,15 +108,17 @@
</script>
<script type="text/html" id="tmpl_textbox">
<div class="textbox_canvas">
<div class="textbox_canvas_content">
<%= html %>
</div>
</div>
<input onclick="removeEditor(this);" type="button" class="save_text" value="Save"/>
<div class="textbox_canvas_toolbox"></div>
<input onclick="removeEditor(this);" type="button" class="save_text" value="Save"/>
</script>
<script type="text/html" id="tmpl_imagebox">
<div class="imagebox_canvas">