From e4bd05cd9ecbf74f5ffc618a9ab2589d5ef55fcf Mon Sep 17 00:00:00 2001 From: zero Date: Thu, 13 Sep 2007 02:19:17 +0000 Subject: [PATCH] =?UTF-8?q?#162=20=EC=97=90=EB=94=94=ED=8C=85=EC=8B=9C?= =?UTF-8?q?=EC=97=90=EB=8A=94=20ol,ul=EC=97=90=20style=EC=9D=84=20?= =?UTF-8?q?=EB=AF=B8=EB=A6=AC=20=EC=A3=BC=EC=96=B4=EC=84=9C=20=EC=A0=81?= =?UTF-8?q?=EC=9A=A9=EB=90=98=EA=B2=8C=20=ED=95=98=EA=B3=A0=20=EB=82=B4?= =?UTF-8?q?=EC=9A=A9=20=EC=B6=9C=EB=A0=A5=EC=8B=9C=EC=97=90=EB=8A=94=20ol,?= =?UTF-8?q?=20ul=EC=97=90=20=EC=A7=81=EC=A0=91=20style=EC=9D=84=20?= =?UTF-8?q?=EC=A0=81=EC=9A=A9=ED=95=98=EB=8F=84=EB=A1=9D=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit git-svn-id: http://xe-core.googlecode.com/svn/sandbox@2587 201d5d3c-b55e-5fd7-737f-ddc643e51545 --- modules/document/document.item.php | 4 ++++ modules/editor/tpl/js/editor.js | 1 + 2 files changed, 5 insertions(+) diff --git a/modules/document/document.item.php b/modules/document/document.item.php index 42c723826..4f2e7d175 100644 --- a/modules/document/document.item.php +++ b/modules/document/document.item.php @@ -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); @@ -164,6 +165,9 @@ $_SESSION['accessible'][$this->document_srl] = true; $content = $this->get('content'); + + // OL/LI 태그를 위한 치환 처리 + $content = preg_replace('!<(ol|ul)>!is','<\\1 style="margin-left:40px;">',$content); if($add_document_info) return sprintf('%s', $this->document_srl, $this->get('member_srl'), $content, $this->document_srl, $this->get('member_srl')); diff --git a/modules/editor/tpl/js/editor.js b/modules/editor/tpl/js/editor.js index e2a41518f..a1f0d7ef3 100755 --- a/modules/editor/tpl/js/editor.js +++ b/modules/editor/tpl/js/editor.js @@ -159,6 +159,7 @@ function editorStart(editor_sequence, primary_key, content_key, resizable, edito ''+ ''+ ''+ content+