editor css

This commit is contained in:
Sanj 2011-07-12 20:24:39 +05:30
parent b4e2a59ebf
commit dc8f9402d0
3 changed files with 18 additions and 4 deletions

View File

@ -15,7 +15,7 @@ CKEDITOR.editorConfig = function( config )
[
];
config.contentsCss = '/static/css/fonts.css';
config.contentsCss = ['/static/css/fonts.css', '/static/css/customck.css'];
config.font_names = "Edgware Road;Berlin Safari;SG Grotesque;Tallys;GraublauWeb;Fontin;Tagesschrift;Neeon;";

View File

@ -0,0 +1,12 @@
body, html {
padding: 0;
margin: 0;
font-size: 12px;
font-family: Helvetica, sans-serif;
}
p, p * {
margin-top: 0px;
}

View File

@ -1286,13 +1286,14 @@ function replaceDiv( div ) {
// console.log(div);
// alert($(div).attr('classname'));
height = parseInt($(div).css('height')) - 6;
height = parseInt($(div).css('height'));
height = toPx(height);
width = parseInt($(div).css('width')) - 6;
width = parseInt($(div).css('width'));
width = toPx(width);
editor = CKEDITOR.replace( div,
{
width: width,
height: height,
toolbar : 'Basic',
uiColor : '#9AB8F3',
@ -1626,7 +1627,8 @@ $(".box").live("click", function(e){
box = boxObj.jq;
if (box.css("direction") == 'rtl') {
setTimeout(function() { $($('iframe').get(0).contentDocument).find('html').attr("dir", "rtl") }, 500);
}
}
$('iframe').attr("allowtransparency", "false");
box.draggable('disable');
box.resizable('disable');
text_edit_mode = true;