#162 에디팅시에는 ol,ul에 style을 미리 주어서 적용되게 하고 내용 출력시에는 ol, ul에 직접 style을 적용하도록 수정

git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2587 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
zero 2007-09-13 02:19:17 +00:00
parent cffa201a49
commit e4bd05cd9e
2 changed files with 5 additions and 0 deletions

View file

@ -153,6 +153,7 @@
$_SESSION['accessible'][$this->document_srl] = true;
$content = $this->get('content');
if($strlen) return cut_str(strip_tags($content),$strlen,'...');
return htmlspecialchars($content);
@ -165,6 +166,9 @@
$content = $this->get('content');
// OL/LI 태그를 위한 치환 처리
$content = preg_replace('!<(ol|ul)>!is','<\\1 style="margin-left:40px;">',$content);
if($add_document_info) return sprintf('<!--BeforeDocument(%d,%d)-->%s<!--AfterDocument(%d,%d)-->', $this->document_srl, $this->get('member_srl'), $content, $this->document_srl, $this->get('member_srl'));
return $content;

View file

@ -159,6 +159,7 @@ function editorStart(editor_sequence, primary_key, content_key, resizable, edito
'<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;}'+
'ol, ul { margin-left:40px; }'+
'</style>'+
'</head><body editor_sequence="'+editor_sequence+'">'+
content+