mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-26 22:59:57 +09:00
git-svn-id: http://xe-core.googlecode.com/svn/trunk@523 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
00fe8b71f6
commit
1cf29fc743
10 changed files with 72 additions and 84 deletions
|
|
@ -1,9 +1,25 @@
|
|||
#emoticon_area {
|
||||
width:230px;
|
||||
padding:10px 0px 10px 0px;
|
||||
.editor_area {
|
||||
width:400px;
|
||||
background-color:#F3F3F3;
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
#emoticon_area img {
|
||||
margin:2px;
|
||||
.editor_window {
|
||||
padding:4px;
|
||||
}
|
||||
|
||||
.editor_textarea {
|
||||
width:385px;
|
||||
height:400px;
|
||||
border:1px solid #888888;
|
||||
}
|
||||
|
||||
.editor_button {
|
||||
text-align:center;
|
||||
}
|
||||
|
||||
.editor_button input {
|
||||
margin-top:4px;
|
||||
background-color:#FFFFFF;
|
||||
border:1px solid #AAAAAA;
|
||||
}
|
||||
|
|
|
|||
16
modules/editor/components/html_editor/tpl/popup.html
Executable file
16
modules/editor/components/html_editor/tpl/popup.html
Executable file
|
|
@ -0,0 +1,16 @@
|
|||
<!--%import("popup.css")-->
|
||||
<!--%import("popup.js")-->
|
||||
|
||||
<div class="editor_area">
|
||||
|
||||
<form action='./' method='post' id='fo' onSubmit="return false" style="display:inline">
|
||||
<div class="editor_window">
|
||||
<div><textarea name="text" id='editor' class="editor_textarea"></textarea></div>
|
||||
<div class="editor_button">
|
||||
<input type='button' value='{$lang->cmd_insert}' onclick='insertHtml()' />
|
||||
<input type='button' value='{$lang->cmd_close}' onclick='window.close();' />
|
||||
</div>
|
||||
</div>
|
||||
</form>
|
||||
|
||||
</div>
|
||||
|
|
@ -1,8 +1,20 @@
|
|||
function insertImage(obj) {
|
||||
function setText() {
|
||||
if(typeof(opener)=='undefined') return;
|
||||
var text = opener.editorGetSelectedHtml(opener.editorPrevSrl);
|
||||
xGetElementById("editor").value = text;
|
||||
xGetElementById("editor").focus();
|
||||
}
|
||||
|
||||
opener.editorInsertEmoticon(obj);
|
||||
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