XpressEditor의 기본 서식을 default로 지정하도록 하고 default의 경우 p 태그의 margin/padding을 0으로 설정하도록 변경함.

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6573 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2009-06-17 06:06:58 +00:00
parent e8dbc31bc6
commit 7b179b93f9
4 changed files with 27 additions and 23 deletions

View file

@ -67,7 +67,7 @@
else $allow_fileupload = true; else $allow_fileupload = true;
// content_style 세팅 // content_style 세팅
if(!$option->content_style) $option->content_style = 'xeStyle'; if(!$option->content_style) $option->content_style = 'default';
Context::set('content_style', $option->content_style); Context::set('content_style', $option->content_style);
// 기본 글꼴 지정 // 기본 글꼴 지정

View file

@ -55,7 +55,7 @@ function editorStart_xe(editor_sequence, primary_key, content_key, editor_height
oEditor.getFrame = function(){ return oWYSIWYGIFrame;} oEditor.getFrame = function(){ return oWYSIWYGIFrame;}
var content = form[content_key].value; var content = form[content_key].value;
if(!content) content = '<p><br /></p>'; if(xFF && !content) content = '<p>&nbsp;</p>';
// src, href, url의 XE 상대경로를 http로 시작하는 full path로 변경 // src, href, url의 XE 상대경로를 http로 시작하는 full path로 변경
content = content.replace(/(src=|href=|url\()("|\')*([^"\'\)]+)("|\'|\))*(\s|>)*/ig, function(m0,m1,m2,m3,m4,m5) { content = content.replace(/(src=|href=|url\()("|\')*([^"\'\)]+)("|\'|\))*(\s|>)*/ig, function(m0,m1,m2,m3,m4,m5) {

View file

@ -1,21 +1,23 @@
@charset "utf-8"; @charset "utf-8";
/* NHN > UIT Center > Open UI Technology Team > Jeong Chan Myeong(dece24@nhncorp.com) */ /* NHN > UIT Center > Open UI Technology Team > Jeong Chan Myeong(dece24@nhncorp.com) */
html, body { height:100%; background-color:transparent; padding:0; margin:0;} html, body { height:100%; background-color:transparent; padding:0; margin:0;}
.xe_content{ color:#000; font-size:12px; line-height:1.5;} .xe_content{ color:#000; font-size:12px; line-height:1.5;}
.xe_content blockquote.q1, .xe_content blockquote.q1,
.xe_content blockquote.q2, .xe_content blockquote.q2,
.xe_content blockquote.q3, .xe_content blockquote.q3,
.xe_content blockquote.q4, .xe_content blockquote.q4,
.xe_content blockquote.q5, .xe_content blockquote.q5,
.xe_content blockquote.q6, .xe_content blockquote.q6,
.xe_content blockquote.q7{ padding:10px; margin:0 15px; } .xe_content blockquote.q7{ padding:10px; margin:0 15px; }
.xe_content blockquote.q1{ padding:0 10px; border-left:2px solid #ccc;} .xe_content blockquote.q1{ padding:0 10px; border-left:2px solid #ccc;}
.xe_content blockquote.q2{ padding:0 10px; background:url(./img/bg_qmark.gif) no-repeat left top;} .xe_content blockquote.q2{ padding:0 10px; background:url(./img/bg_qmark.gif) no-repeat left top;}
.xe_content blockquote.q3{ border:1px solid #d9d9d9;} .xe_content blockquote.q3{ border:1px solid #d9d9d9;}
.xe_content blockquote.q4{ border:1px solid #d9d9d9; background:#fbfbfb;} .xe_content blockquote.q4{ border:1px solid #d9d9d9; background:#fbfbfb;}
.xe_content blockquote.q5{ border:2px solid #707070;} .xe_content blockquote.q5{ border:2px solid #707070;}
.xe_content blockquote.q6{ border:1px dashed #707070;} .xe_content blockquote.q6{ border:1px dashed #707070;}
.xe_content blockquote.q7{ border:1px dashed #707070; background:#fbfbfb;} .xe_content blockquote.q7{ border:1px dashed #707070; background:#fbfbfb;}
.xe_content p { margin:0; padding:0; }

View file

@ -18,3 +18,5 @@
.xe_content blockquote.q5{ border:2px solid #707070;} .xe_content blockquote.q5{ border:2px solid #707070;}
.xe_content blockquote.q6{ border:1px dashed #707070;} .xe_content blockquote.q6{ border:1px dashed #707070;}
.xe_content blockquote.q7{ border:1px dashed #707070; background:#fbfbfb;} .xe_content blockquote.q7{ border:1px dashed #707070; background:#fbfbfb;}
.xe_content p { margin:0; padding:0; }