mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 03:32:00 +09:00
#17620466 스킨에서 정하게
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5291 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
b561c21b47
commit
34819438c7
3 changed files with 93 additions and 62 deletions
|
|
@ -1,16 +1,15 @@
|
|||
<!--// 기본 js/언어파일 로드 -->
|
||||
<!--%import("../../tpl/js/editor_common.js")-->
|
||||
|
||||
<!--@if($colorset == "white_texteditor" || $colorset == "black_texteditor" )-->
|
||||
<!--@if($colorset == "white_texteditor" || $colorset == "black_texteditor" || $colorset == "white_text_nohtml" || $colorset == "black_text_nohtml")-->
|
||||
<!--@if($colorset == "black_texteditor")-->
|
||||
<!--%import("css/black.css")-->
|
||||
{@ $editor_class = "black" }
|
||||
<!--@else-->
|
||||
<!--%import("css/white.css")-->
|
||||
<!--@end-->
|
||||
|
||||
<!--%import("js/xe_interface.js")-->
|
||||
<div class="xeTextEditor {$editor_class}">
|
||||
<input type="hidden" id="htm_{$editor_sequence}" value="<!--@if($colorset == "white_text_nohtml" || $colorset == "black_text_nohtml")-->n<!--@end-->" />
|
||||
<textarea id="editor_{$editor_sequence}" style="height:{$editor_height}px;" cols="10" rows="10"></textarea>
|
||||
</div>
|
||||
<script type="text/javascript">//<![CDATA[
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
function editorStartTextarea(editor_sequence, content_key, primary_key) {
|
||||
var obj = xGetElementById('editor_'+editor_sequence);
|
||||
var use_html = xGetElementById('htm_'+editor_sequence).value;
|
||||
obj.form.setAttribute('editor_sequence', editor_sequence);
|
||||
|
||||
obj.style.width = '99%';
|
||||
|
|
@ -10,13 +11,26 @@ function editorStartTextarea(editor_sequence, content_key, primary_key) {
|
|||
editorRelKeys[editor_sequence]["func"] = editorGetContentTextarea;
|
||||
|
||||
var content = obj.form[content_key].value;
|
||||
content = content.replace(/<br([^>]*)>/ig,"\n");
|
||||
if(use_html=='n') {
|
||||
content = content.replace(/<br([^>]*)>/ig,"\n");
|
||||
content = content.replace(/</g, "<");
|
||||
content = content.replace(/>/g, ">");
|
||||
content = content.replace(/"/g, '"');
|
||||
content = content.replace(/&/g, "&");
|
||||
}
|
||||
obj.value = content;
|
||||
}
|
||||
|
||||
function editorGetContentTextarea(editor_sequence) {
|
||||
var obj = xGetElementById('editor_'+editor_sequence);
|
||||
var use_html = xGetElementById('htm_'+editor_sequence).value;
|
||||
var content = obj.value.trim();
|
||||
content = content.replace(/(\r\n|\n)/g, "<br />$1");
|
||||
if(use_html=='n') {
|
||||
content = content.replace(/&/g, "&");
|
||||
content = content.replace(/</g, "<");
|
||||
content = content.replace(/>/g, ">");
|
||||
content = content.replace(/\"/g, """);
|
||||
content = content.replace(/(\r\n|\n)/g, "<br />");
|
||||
}
|
||||
return content;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,57 +1,75 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<skin version="0.2">
|
||||
<title xml:lang="ko">XE 기본 에디터</title>
|
||||
<title xml:lang="zh-CN">XE编辑器默认皮肤</title>
|
||||
<title xml:lang="jp">XE基本エディター</title>
|
||||
<title xml:lang="zh-TW">XE預設編輯器面板</title>
|
||||
<description xml:lang="ko">개발 : zero (http://blog.nzeo.com)</description>
|
||||
<description xml:lang="zh-CN">程序 : zero (http://blog.nzeo.com)</description>
|
||||
<description xml:lang="jp">開発 : zero (http://blog.nzeo.com)</description>
|
||||
<description xml:lang="zh-TW">開發 : zero (http://blog.nzeo.com)</description>
|
||||
<version>0.1</version>
|
||||
<date>2007-02-28</date>
|
||||
|
||||
<author email_address="zero@zeroboard.com" link="http://blog.nzeo.com">
|
||||
<name xml:lang="ko">zero</name>
|
||||
<name xml:lang="zh-CN">Zero</name>
|
||||
<name xml:lang="jp">zero</name>
|
||||
<name xml:lang="zh-TW">zero</name>
|
||||
</author>
|
||||
<colorset>
|
||||
<color name="white">
|
||||
<title xml:lang="ko">하얀색(기본)</title>
|
||||
<title xml:lang="jp">白(デフォルト)</title>
|
||||
<title xml:lang="zh-CN">白色(基本)</title>
|
||||
<title xml:lang="en">White (default)</title>
|
||||
<title xml:lang="es">Blanco (por defecto)</title>
|
||||
<title xml:lang="zh-TW">白色(預設)</title>
|
||||
</color>
|
||||
<color name="black">
|
||||
<title xml:lang="ko">검은색</title>
|
||||
<title xml:lang="jp">黒</title>
|
||||
<title xml:lang="en">Black</title>
|
||||
<title xml:lang="ru">Черного</title>
|
||||
<title xml:lang="es">Negro</title>
|
||||
<title xml:lang="zh-CN">黑色</title>
|
||||
<title xml:lang="zh-TW">黑色</title>
|
||||
</color>
|
||||
<color name="white_texteditor">
|
||||
<title xml:lang="ko">하얀색 텍스트편집기</title>
|
||||
<title xml:lang="jp">White Text Editor</title>
|
||||
<title xml:lang="en">White Text Editor</title>
|
||||
<title xml:lang="ru">White Text Editor</title>
|
||||
<title xml:lang="es">White Text Editor</title>
|
||||
<title xml:lang="zh-CN">White Text Editor</title>
|
||||
<title xml:lang="zh-TW">白色文字編輯器</title>
|
||||
</color>
|
||||
<color name="black_texteditor">
|
||||
<title xml:lang="ko">검은색 텍스트편집기</title>
|
||||
<title xml:lang="jp">Black Text Editor</title>
|
||||
<title xml:lang="en">Black Text Editor</title>
|
||||
<title xml:lang="ru">Black Text Editor</title>
|
||||
<title xml:lang="es">Black Text Editor</title>
|
||||
<title xml:lang="zh-CN">Black Text Editor</title>
|
||||
<title xml:lang="zh-TW">黑色文字編輯器</title>
|
||||
</color>
|
||||
</colorset>
|
||||
</skin>
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<skin version="0.2">
|
||||
<title xml:lang="ko">XE 기본 에디터</title>
|
||||
<title xml:lang="zh-CN">XE编辑器默认皮肤</title>
|
||||
<title xml:lang="jp">XE基本エディター</title>
|
||||
<title xml:lang="zh-TW">XE預設編輯器面板</title>
|
||||
<description xml:lang="ko">개발 : zero (http://blog.nzeo.com)</description>
|
||||
<description xml:lang="zh-CN">程序 : zero (http://blog.nzeo.com)</description>
|
||||
<description xml:lang="jp">開発 : zero (http://blog.nzeo.com)</description>
|
||||
<description xml:lang="zh-TW">開發 : zero (http://blog.nzeo.com)</description>
|
||||
<version>0.1</version>
|
||||
<date>2007-02-28</date>
|
||||
|
||||
<author email_address="zero@zeroboard.com" link="http://blog.nzeo.com">
|
||||
<name xml:lang="ko">zero</name>
|
||||
<name xml:lang="zh-CN">Zero</name>
|
||||
<name xml:lang="jp">zero</name>
|
||||
<name xml:lang="zh-TW">zero</name>
|
||||
</author>
|
||||
<colorset>
|
||||
<color name="white">
|
||||
<title xml:lang="ko">하얀색(기본)</title>
|
||||
<title xml:lang="jp">白(デフォルト)</title>
|
||||
<title xml:lang="zh-CN">白色(基本)</title>
|
||||
<title xml:lang="en">White (default)</title>
|
||||
<title xml:lang="es">Blanco (por defecto)</title>
|
||||
<title xml:lang="zh-TW">白色(預設)</title>
|
||||
</color>
|
||||
<color name="black">
|
||||
<title xml:lang="ko">검은색</title>
|
||||
<title xml:lang="jp">黒</title>
|
||||
<title xml:lang="en">Black</title>
|
||||
<title xml:lang="ru">Черного</title>
|
||||
<title xml:lang="es">Negro</title>
|
||||
<title xml:lang="zh-CN">黑色</title>
|
||||
<title xml:lang="zh-TW">黑色</title>
|
||||
</color>
|
||||
<color name="white_texteditor">
|
||||
<title xml:lang="ko">하얀색 텍스트편집기</title>
|
||||
<title xml:lang="jp">White Text Editor</title>
|
||||
<title xml:lang="en">White Text Editor</title>
|
||||
<title xml:lang="ru">White Text Editor</title>
|
||||
<title xml:lang="es">White Text Editor</title>
|
||||
<title xml:lang="zh-CN">White Text Editor</title>
|
||||
<title xml:lang="zh-TW">白色文字編輯器</title>
|
||||
</color>
|
||||
<color name="black_texteditor">
|
||||
<title xml:lang="ko">검은색 텍스트편집기</title>
|
||||
<title xml:lang="jp">Black Text Editor</title>
|
||||
<title xml:lang="en">Black Text Editor</title>
|
||||
<title xml:lang="ru">Black Text Editor</title>
|
||||
<title xml:lang="es">Black Text Editor</title>
|
||||
<title xml:lang="zh-CN">Black Text Editor</title>
|
||||
<title xml:lang="zh-TW">黑色文字編輯器</title>
|
||||
</color>
|
||||
<color name="white_text_nohtml">
|
||||
<title xml:lang="ko">하얀색 텍스트편집기(HTML 사용 안함)</title>
|
||||
<title xml:lang="jp">White Text Editor(No HTML)</title>
|
||||
<title xml:lang="en">White Text Editor(No HTML)</title>
|
||||
<title xml:lang="ru">White Text Editor(No HTML)</title>
|
||||
<title xml:lang="es">White Text Editor(No HTML)</title>
|
||||
<title xml:lang="zh-CN">White Text Editor(No HTML)</title>
|
||||
<title xml:lang="zh-TW">白色文字編輯器(No HTML)</title>
|
||||
</color>
|
||||
<color name="black_text_nohtml">
|
||||
<title xml:lang="ko">검은색 텍스트편집기(HTML 사용 안함)</title>
|
||||
<title xml:lang="jp">Black Text Editor(No HTML)</title>
|
||||
<title xml:lang="en">Black Text Editor(No HTML)</title>
|
||||
<title xml:lang="ru">Black Text Editor(No HTML)</title>
|
||||
<title xml:lang="es">Black Text Editor(No HTML)</title>
|
||||
<title xml:lang="zh-CN">Black Text Editor(No HTML)</title>
|
||||
<title xml:lang="zh-TW">黑色文字編輯器(No HTML)</title>
|
||||
</color>
|
||||
</colorset>
|
||||
</skin>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue