mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-24 21:59:55 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@840 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
bb52da1052
commit
7e38ed91ff
144 changed files with 1 additions and 1 deletions
46
editor_components/html_editor/tpl/popup.css
Normal file
46
editor_components/html_editor/tpl/popup.css
Normal file
|
|
@ -0,0 +1,46 @@
|
|||
@charset "utf-8";
|
||||
|
||||
.editor_window {
|
||||
width:400px;
|
||||
background-color:#F3F3F3;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.editor_title {
|
||||
font-size:10pt;
|
||||
font-weight:bold;
|
||||
clear:both;
|
||||
height:20px;
|
||||
background-color:#555555;
|
||||
color:#EFEFEF;
|
||||
vertical-align:middle;
|
||||
padding-top:5px;
|
||||
border-bottom:1px solid #000000;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.editor_textarea {
|
||||
width:385px;
|
||||
height:400px;
|
||||
border:1px solid #888888;
|
||||
clear:both;
|
||||
font-size:9pt;
|
||||
margin:10px 0px 10px 0px;
|
||||
}
|
||||
|
||||
.editor_button_area {
|
||||
border-top:1px solid #AAAAAA;
|
||||
text-align:center;
|
||||
background-color:#EEEEEE;
|
||||
padding:2px 0px 2px 0px;
|
||||
clear:both;
|
||||
height:25px;
|
||||
}
|
||||
|
||||
.editor_button {
|
||||
margin-top:4px;
|
||||
background-color:#FFFFFF;
|
||||
border:1px solid #AAAAAA;
|
||||
height:18px;
|
||||
font-size:9pt;
|
||||
}
|
||||
15
editor_components/html_editor/tpl/popup.html
Executable file
15
editor_components/html_editor/tpl/popup.html
Executable file
|
|
@ -0,0 +1,15 @@
|
|||
<!--%import("popup.css")-->
|
||||
<!--%import("popup.js")-->
|
||||
|
||||
<div class="editor_window">
|
||||
<form action='./' method='post' id='fo' onSubmit="return false" style="display:inline">
|
||||
<div class="editor_title">{$component_info->title} ver. {$component_info->version} <a href="#" onclick="winopen('./?module=editor&act=viewComponentInfo&component_name={$component_info->component_name}','ComponentInfo','left=10,top=10,width=10,height=10,resizable=no,scrollbars=no,toolbars=no');return false;"><img src="../../../tpl/images/about_component.gif" title="{$lang->about_component}" alt="{$lang->about_component}" class="about_component_icon" border="0" /></a></div>
|
||||
|
||||
<div><textarea name="text" id='editor' class="editor_textarea"></textarea></div>
|
||||
|
||||
<div class="editor_button_area">
|
||||
<input type='button' class="editor_button" value='{$lang->cmd_insert}' onclick='insertHtml()' />
|
||||
<input type='button' class="editor_button" value='{$lang->cmd_close}' onclick='window.close();' />
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
20
editor_components/html_editor/tpl/popup.js
Normal file
20
editor_components/html_editor/tpl/popup.js
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
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