mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 11:44:10 +09:00
제로보드XE의 기본 스타일에서 body,p,div,ul,ol,li,dd,dt,span,fieldset,h1,h2,h3,h4,h5,h6 에 대해서만 margin, padding을 0으로 수정. 이로 인해 기존 스킨들에서 문제가 생길 수 있으며 계속 디버깅 해야 함
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3492 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
823ee82b1d
commit
b73c48ecbc
3 changed files with 5 additions and 7 deletions
|
|
@ -23,7 +23,7 @@ IE7 & IE6 & Below
|
|||
.nowrap { white-space:nowrap; }
|
||||
|
||||
/* default.css - Type Selector Definition */
|
||||
* { margin:0; padding:0; }
|
||||
body,p,div,ul,ol,li,dd,dt,span,fieldset,h1,h2,h3,h4,h5,h6 { margin:0; padding:0; }
|
||||
html { width:100%; }
|
||||
body { margin:0; font-size:.75em; _font-size:9pt; font-family:sans-serif;}
|
||||
*:first-child+html body { font-size:9pt; }
|
||||
|
|
@ -92,7 +92,6 @@ a.bold { font-weight:bold; }
|
|||
|
||||
/* xe content */
|
||||
div.xe_content { line-height:140%; }
|
||||
div.xe_content table { padding:1px; margin:1px; }
|
||||
div.xe_content ol { margin-left:40px; }
|
||||
div.xe_content ul { margin-left:40px; }
|
||||
div.xe_content blockquote { margin-left:40px; }
|
||||
|
|
|
|||
|
|
@ -183,7 +183,7 @@
|
|||
$member_srl = $source_list[$i]->member_srl;
|
||||
|
||||
// OL/LI 태그를 위한 치환 처리
|
||||
$source_list[$i]->content = preg_replace('!<(ol|ul|blockquote)>!is','<\\1 style="margin-left:40px;">',$source_list[$i]->content);
|
||||
//$source_list[$i]->content = preg_replace('!<(ol|ul|blockquote)>!is','<\\1 style="margin-left:40px;">',$source_list[$i]->content);
|
||||
|
||||
// url에 대해서 정규표현식으로 치환
|
||||
$source_list[$i]->content = preg_replace('!([^>^"^\'^=])(http|https|ftp|mms):\/\/([^ ^<^"^\']*)!is','$1<a href="$2://$3" onclick="window.open(this.href);return false;">$2://$3</a>',' '.$source_list[$i]->content);
|
||||
|
|
|
|||
|
|
@ -118,11 +118,10 @@ function editorStart(editor_sequence, primary_key, content_key, editor_height) {
|
|||
'<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">'+
|
||||
'<html lang="ko" xmlns="http://www.w3.org/1999/xhtml><head><meta http-equiv="content-type" content="text/html; charset=utf-8"/>'+
|
||||
//'<base href="'+request_uri+'" />'+
|
||||
'<link rel="stylesheet" href="'+request_uri+'common/css/default.css" type="text/css" />'+
|
||||
'<link rel="stylesheet" href="'+request_uri+editor_path+'css/editor.css" type="text/css" />'+
|
||||
//'<link rel="stylesheet" href="'+request_uri+'common/css/default.css" type="text/css" />'+
|
||||
//'<link rel="stylesheet" href="'+request_uri+editor_path+'css/editor.css" type="text/css" />'+
|
||||
'<style style="text/css">'+
|
||||
'body {font-size:9pt;margin:0px; height:'+editor_height+'px; background-color:transparent; line-height:140%;}'+
|
||||
'blockquote, ol, ul { margin-left:40px; }'+
|
||||
'body {font-size:9pt;height:'+editor_height+'px; background-color:transparent; line-height:140%;}'+
|
||||
'</style>'+
|
||||
'</head><body editor_sequence="'+editor_sequence+'">'+
|
||||
content+
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue