editor css
This commit is contained in:
parent
b4e2a59ebf
commit
dc8f9402d0
|
@ -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;";
|
config.font_names = "Edgware Road;Berlin Safari;SG Grotesque;Tallys;GraublauWeb;Fontin;Tagesschrift;Neeon;";
|
||||||
|
|
||||||
|
|
||||||
|
|
12
edgware/static/css/customck.css
Normal file
12
edgware/static/css/customck.css
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
body, html {
|
||||||
|
padding: 0;
|
||||||
|
margin: 0;
|
||||||
|
font-size: 12px;
|
||||||
|
font-family: Helvetica, sans-serif;
|
||||||
|
}
|
||||||
|
|
||||||
|
p, p * {
|
||||||
|
margin-top: 0px;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
|
@ -1286,13 +1286,14 @@ function replaceDiv( div ) {
|
||||||
|
|
||||||
// console.log(div);
|
// console.log(div);
|
||||||
// alert($(div).attr('classname'));
|
// alert($(div).attr('classname'));
|
||||||
height = parseInt($(div).css('height')) - 6;
|
height = parseInt($(div).css('height'));
|
||||||
height = toPx(height);
|
height = toPx(height);
|
||||||
width = parseInt($(div).css('width')) - 6;
|
width = parseInt($(div).css('width'));
|
||||||
width = toPx(width);
|
width = toPx(width);
|
||||||
|
|
||||||
editor = CKEDITOR.replace( div,
|
editor = CKEDITOR.replace( div,
|
||||||
{
|
{
|
||||||
|
width: width,
|
||||||
height: height,
|
height: height,
|
||||||
toolbar : 'Basic',
|
toolbar : 'Basic',
|
||||||
uiColor : '#9AB8F3',
|
uiColor : '#9AB8F3',
|
||||||
|
@ -1626,7 +1627,8 @@ $(".box").live("click", function(e){
|
||||||
box = boxObj.jq;
|
box = boxObj.jq;
|
||||||
if (box.css("direction") == 'rtl') {
|
if (box.css("direction") == 'rtl') {
|
||||||
setTimeout(function() { $($('iframe').get(0).contentDocument).find('html').attr("dir", "rtl") }, 500);
|
setTimeout(function() { $($('iframe').get(0).contentDocument).find('html').attr("dir", "rtl") }, 500);
|
||||||
}
|
}
|
||||||
|
$('iframe').attr("allowtransparency", "false");
|
||||||
box.draggable('disable');
|
box.draggable('disable');
|
||||||
box.resizable('disable');
|
box.resizable('disable');
|
||||||
text_edit_mode = true;
|
text_edit_mode = true;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user