mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-22 12:49:55 +09:00
html 에디터 컴포넌트 삭제
git-svn-id: http://xe-core.googlecode.com/svn/trunk@2234 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
07d5c1c017
commit
d1422ac385
6 changed files with 0 additions and 100 deletions
|
|
@ -1,37 +0,0 @@
|
|||
<?php
|
||||
/**
|
||||
* @class html_editor
|
||||
* @author zero (zero@nzeo.com)
|
||||
* @brief 직접 html code를 수정할 수 있는 컴포넌트
|
||||
**/
|
||||
|
||||
class html_editor extends EditorHandler {
|
||||
|
||||
// upload_target_srl 는 에디터에서 필수로 달고 다녀야 함....
|
||||
var $upload_target_srl = 0;
|
||||
var $component_path = '';
|
||||
|
||||
/**
|
||||
* @brief upload_target_srl과 컴포넌트의 경로를 받음
|
||||
**/
|
||||
function html_editor($upload_target_srl, $component_path) {
|
||||
$this->upload_target_srl = $upload_target_srl;
|
||||
$this->component_path = $component_path;
|
||||
}
|
||||
|
||||
/**
|
||||
* @brief popup window요청시 popup window에 출력할 내용을 추가하면 된다
|
||||
**/
|
||||
function getPopupContent() {
|
||||
// 템플릿을 미리 컴파일해서 컴파일된 소스를 return
|
||||
$tpl_path = $this->component_path.'tpl';
|
||||
$tpl_file = 'popup.html';
|
||||
|
||||
Context::set("tpl_path", $tpl_path);
|
||||
|
||||
$oTemplate = &TemplateHandler::getInstance();
|
||||
return $oTemplate->compile($tpl_path, $tpl_file);
|
||||
}
|
||||
|
||||
}
|
||||
?>
|
||||
Binary file not shown.
|
Before Width: | Height: | Size: 1.6 KiB |
|
|
@ -1,17 +0,0 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<component version="0.1">
|
||||
<title xml:lang="ko">HTML 코드 수정</title>
|
||||
<title xml:lang="jp">HTMLコード修正</title>
|
||||
<title xml:lang="zh-CN">HTML代码</title>
|
||||
<title xml:lang="en">Modify HTML Code</title>
|
||||
<author email_address="zero@zeroboard.com" link="http://www.zeroboard.com" date="2007. 2. 28">
|
||||
<name xml:lang="ko">제로</name>
|
||||
<name xml:lang="jp">Zero</name>
|
||||
<name xml:lang="zh-CN">zero</name>
|
||||
<name xml:lang="en">zero</name>
|
||||
<description xml:lang="ko">에디터에서 HTML 코드를 직접 수정하거나 추가할 수 있습니다.\n보안 문제로 인하여 가능한 끄는 것이 좋습니다.</description>
|
||||
<description xml:lang="jp">エディターにHTMLコードを直接修正したり、追加したりすることができます。セキュリティのため、使用しないことをお勧めします。</description>
|
||||
<description xml:lang="zh-CN">直接修改或插入html代码。\n因安全问题不推荐使用此项功能。</description>
|
||||
<description xml:lang="en">You can add/modify HTML code from editor by yourself.\nIt is recommended not to use this function for the security.</description>
|
||||
</author>
|
||||
</component>
|
||||
|
|
@ -1,4 +0,0 @@
|
|||
@charset "utf-8";
|
||||
@import url(../../../../../../modules/admin/tpl/css/admin.css);
|
||||
|
||||
#editor { width:590px; height:400px; }
|
||||
|
|
@ -1,22 +0,0 @@
|
|||
<!--%import("popup.css")-->
|
||||
<!--%import("popup.js")-->
|
||||
|
||||
<div id="popHeadder">
|
||||
<h1>{$component_info->title} ver. {$component_info->version}</h1>
|
||||
</div>
|
||||
|
||||
<form action='./' method='post' id='fo' onSubmit="return false" style="display:inline">
|
||||
|
||||
<div id="popBody">
|
||||
|
||||
<div><textarea name="text" id='editor' class="inputTypeText"></textarea></div>
|
||||
|
||||
</div>
|
||||
|
||||
<div id="popFooter" class="tCenter">
|
||||
<a href="#" onclick="insertHtml()" class="button"><span>{$lang->cmd_insert}</span></a>
|
||||
<a href="#" onclick="window.close(); return false;" class="button"><span>{$lang->cmd_close}</span></a>
|
||||
<a href="#" onclick="winopen('./?module=editor&act=dispEditorComponentInfo&component_name={$component_info->component_name}','ComponentInfo','left=10,top=10,width=10,height=10,resizable=no,scrollbars=no,toolbars=no');return false;" class="button"><span>{$lang->about_component}</span></a>
|
||||
</div>
|
||||
|
||||
</form>
|
||||
|
|
@ -1,20 +0,0 @@
|
|||
function setText() {
|
||||
if(typeof(opener)=='undefined') return;
|
||||
var text = opener.editorGetSelectedHtml(opener.editorPrevSrl);
|
||||
xGetElementById("editor").value = text;
|
||||
xGetElementById("editor").focus();
|
||||
}
|
||||
|
||||
function insertHtml() {
|
||||
var text = xGetElementById("editor").value;
|
||||
opener.editorFocus(opener.editorPrevSrl);
|
||||
|
||||
var iframe_obj = opener.editorGetIFrame(opener.editorPrevSrl)
|
||||
|
||||
opener.editorReplaceHTML(iframe_obj, text);
|
||||
opener.editorFocus(opener.editorPrevSrl);
|
||||
|
||||
window.close();
|
||||
}
|
||||
|
||||
xAddEventListener(window, 'load', setText);
|
||||
Loading…
Add table
Add a link
Reference in a new issue