mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-18 18:02:15 +09:00
code_highlighter 에디터 컴포넌트 수정
- HTML모드 전환시 개행이 두배로 늘어나던 문제 수정 - 언어선택에서 HTML을 최상단으로 이동 - PHP/CSS 구문 수정 git-svn-id: http://xe-core.googlecode.com/svn/sandbox@3337 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
d17132422e
commit
96408798bc
5 changed files with 91 additions and 84 deletions
|
|
@ -49,7 +49,7 @@ class code_highlighter extends EditorHandler {
|
|||
if($option_nocontrols == 'Y' && $option_collapse !== 'Y') $code_type = $code_type.':nocontrols';
|
||||
$body = $xml_obj->body;
|
||||
|
||||
$body = preg_replace('@<br\\s*/?>@Ui' , "\r\n", $body);
|
||||
$body = preg_replace('@(<br\\s*/?>)(\n)?@i' , "\n", $body);
|
||||
$body = strip_tags($body);
|
||||
|
||||
if(!$GLOBALS['_called_code_highlighter_']) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue