mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-11 14:53:15 +09:00
157 lines
9.6 KiB
HTML
157 lines
9.6 KiB
HTML
<!--%import("js/editor.js")-->
|
|
<!--%import("css/editor.css")-->
|
|
<!--%import("./lang")-->
|
|
<!-- 에디터 활성화 -->
|
|
<script type="text/javascript">
|
|
var editor_path = "{$editor_path}";
|
|
editorInit("{$upload_target_srl}", {$enable_resizable}, {$editor_height});
|
|
</script>
|
|
|
|
<!-- 자동저장용 폼 -->
|
|
<!--@if($enable_autosave)-->
|
|
<input type="hidden" name="_saved_doc_title" value="{htmlspecialchars($saved_doc->title)}" />
|
|
<input type="hidden" name="_saved_doc_content" value="{htmlspecialchars($saved_doc->content)}" />
|
|
<input type="hidden" name="_saved_doc_message" value="{$lang->msg_load_saved_doc}" />
|
|
<!--@end-->
|
|
|
|
<!-- 에디터 -->
|
|
<div class="xeEditor">
|
|
|
|
<!--@if($enable_default_component)-->
|
|
<div class="optionABC">
|
|
<div class="optionA">
|
|
<div class="selectGroup">
|
|
<select onchange="editorChangeFontName(this,'{$upload_target_srl}')" id="editor_font_{$upload_target_srl}">
|
|
<option value="">{$lang->edit->fontname}</option>
|
|
<!--@foreach($lang->edit->fontlist as $key=>$obj)-->
|
|
<option style="font-family:{$obj}" value="{$obj}">{$obj}</option>
|
|
<!--@end-->
|
|
</select>
|
|
|
|
<select onchange="editorChangeFontSize(this,'{$upload_target_srl}')" id="editor_fontsize_{$upload_target_srl}">
|
|
<option value="" selected="selected">{$lang->edit->fontsize}</option>
|
|
<option value="1">8pt</option>
|
|
<option value="2">10pt</option>
|
|
<option value="3">12pt</option>
|
|
<option value="4">14pt</option>
|
|
<option value="5">18pt</option>
|
|
<option value="6">24pt</option>
|
|
<option value="7">36pt</option>
|
|
</select>
|
|
|
|
<select onchange="editorChangeHeader(this,'{$upload_target_srl}')" id="editor_header_{$upload_target_srl}">
|
|
<option value="">{$lang->edit->header}</option>
|
|
<!--@foreach($lang->edit->header_list as $key=>$obj)-->
|
|
<option value="{$key}">{$obj}</option>
|
|
<!--@end-->
|
|
</select>
|
|
</div>
|
|
|
|
<div class="buttonGroup">
|
|
<img src="./images/editor_btn_b.gif" width="23" height="63" title="{$lang->edit->help_bold}" alt="{$lang->edit->help_bold}" id="component_{$upload_target_srl}_Bold" onmouseover="eOptionOver(this)" onmouseout="eOptionOut(this)" />
|
|
<img src="./images/editor_btn_i.gif" width="23" height="63" title="{$lang->edit->help_italic}" alt="{$lang->edit->help_italic}" id="component_{$upload_target_srl}_Italic" onmouseover="eOptionOver(this)" onmouseout="eOptionOut(this)" />
|
|
<img src="./images/editor_btn_u.gif" width="23" height="63" title="{$lang->edit->help_underline}" alt="{$lang->edit->help_underline}" id="component_{$upload_target_srl}_Underline" onmouseover="eOptionOver(this)" onmouseout="eOptionOut(this)" />
|
|
<img src="./images/editor_btn_c.gif" width="23" height="63" title="{$lang->edit->help_fontcolor}" alt="{$lang->edit->help_fontcolor}" id="component_{$upload_target_srl}_colorpicker_text" onmouseover="eOptionOver(this)" onmouseout="eOptionOut(this)" />
|
|
<img src="./images/editor_btn_bg.gif" width="23" height="63" title="{$lang->edit->help_fontbgcolor}" alt="{$lang->edit->help_fontbgcolor}" id="component_{$upload_target_srl}_colorpicker_bg" onmouseover="eOptionOver(this)" onmouseout="eOptionOut(this)" />
|
|
</div>
|
|
</div>
|
|
|
|
<div class="optionB">
|
|
<div class="buttonGroup">
|
|
<img src="./images/editor_btn_al.gif" width="23" height="63" title="{$lang->edit->help_align_left}" alt="{$lang->edit->help_align_left}" id="component_{$upload_target_srl}_justifyleft" onmouseover="eOptionOver(this)" onmouseout="eOptionOut(this)" />
|
|
<img src="./images/editor_btn_ac.gif" width="23" height="63" title="{$lang->edit->help_align_center}" alt="{$lang->edit->help_align_center}" id="component_{$upload_target_srl}_justifycenter" onmouseover="eOptionOver(this)" onmouseout="eOptionOut(this)" />
|
|
<img src="./images/editor_btn_ar.gif" width="23" height="63" title="{$lang->edit->help_align_right}" alt="{$lang->edit->help_align_right}" id="component_{$upload_target_srl}_justifyright" onmouseover="eOptionOver(this)" onmouseout="eOptionOut(this)" />
|
|
<!--<img src="./images/editor_btn_aj.gif" width="23" height="63" onmouseover="eOptionOver(this)" onmouseout="eOptionOut(this)" />-->
|
|
</div>
|
|
|
|
<!--
|
|
<div class="buttonGroup">
|
|
<img src="./images/editor_btn_od.gif" title="{$lang->edit->help_remove_indent}" alt="{$lang->edit->help_remove_indent}" id="component_{$upload_target_srl}_outdent" width="23" height="63" onmouseover="eOptionOver(this)" onmouseout="eOptionOut(this)" />
|
|
<img src="./images/editor_btn_id.gif" width="23" height="63" title="{$lang->edit->help_add_indent}" alt="{$lang->edit->help_add_indent}" id="component_{$upload_target_srl}_indent" onmouseover="eOptionOver(this)" onmouseout="eOptionOut(this)" />
|
|
</div>
|
|
|
|
<div class="buttonGroup">
|
|
<img src="./images/editor_btn_ol.gif" title="{$lang->edit->help_list_number}" alt="{$lang->edit->help_list_number}" id="component_{$upload_target_srl}_insertorderedlist" width="23" height="63" onmouseover="eOptionOver(this)" onmouseout="eOptionOut(this)" />
|
|
<img src="./images/editor_btn_ul.gif" title="{$lang->edit->help_list_bullet}" alt="{$lang->edit->help_list_bullet}" id="component_{$upload_target_srl}_insertunorderedlist" width="23" height="63" onmouseover="eOptionOver(this)" onmouseout="eOptionOut(this)" />
|
|
</div>
|
|
|
|
<div class="buttonGroup">
|
|
<img src="./images/editor_btn_lh.gif" alt="Line hight" width="23" height="63" onmouseover="eOptionOver(this)" onmouseout="eOptionOut(this)" />
|
|
</div>
|
|
-->
|
|
</div>
|
|
|
|
<!--
|
|
<div class="optionC">
|
|
<div class="buttonGroup">
|
|
<img src="./images/editor_btn_tag.gif" alt="Tag" width="23" height="63" onmouseover="eOptionOver(this)" onmouseout="eOptionOut(this)" />
|
|
</div>
|
|
</div>
|
|
-->
|
|
</div>
|
|
<!--@end-->
|
|
|
|
<!--@if($enable_component)-->
|
|
<div class="optionDE">
|
|
<div class="optionE">
|
|
<div class="buttonGroup" id="editor_component_{$upload_target_srl}">
|
|
<!--@foreach($component_list as $component_name => $component)-->
|
|
<!--@if(substr($component_name,0,11)!="colorpicker")-->
|
|
<img src="../components/{$component_name}/icon.gif" alt="{$component->title}" title="{$component->title}" id="component_{$upload_target_srl}_{$component_name}" onmouseover="eOptionOver(this)" onmouseout="eOptionOut(this)" />
|
|
<!--@end-->
|
|
<!--@end-->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!--@end-->
|
|
|
|
<div class="textAreaWrap">
|
|
|
|
<div id="editorInfo">
|
|
<img src="./images/buttonClose.gif" alt="close" width="13" height="13" class="close" onclick="closeEditorInfo()">
|
|
{$lang->about_dblclick_in_editor}
|
|
<span id="for_ie_help_{$upload_target_srl}" style="display:none">{$lang->edit->help_use_paragrapth}</span>
|
|
</div>
|
|
|
|
<div class="editor_iframe_box" id="editor_iframe_area_{$upload_target_srl}"></div>
|
|
</div>
|
|
|
|
<div class="textAreaDragIndicator"><div class="textAreaDragIndicatorBar" id="editor_drag_bar_{$upload_target_srl}"></div></div>
|
|
|
|
|
|
<!--@if($allow_fileupload)-->
|
|
<!-- 첨부파일 영역 -->
|
|
<!--%import("./js/uploader.js")-->
|
|
<script type="text/javascript">
|
|
var zbxe_session_name = "{session_name()}";
|
|
var uploader_setting = { "allowed_filesize" : {$file_config->allowed_filesize}, "allowed_filetypes" : "{$file_config->allowed_filetypes}", "allowed_filetypes_description" : "{$file_config->allowed_filetypes}" }
|
|
editor_upload_init("{$upload_target_srl}");
|
|
</script>
|
|
|
|
<div class="fileAttach">
|
|
<input type="hidden" name="upload_target_srl" value="{$upload_target_srl}" />
|
|
|
|
<div class="preview" id="preview_uploaded_{$upload_target_srl}">
|
|
<img src="./images/blank.gif" alt="preview" width="100" height="100" />
|
|
</div>
|
|
|
|
<!-- 파일 업로드 영역 -->
|
|
<div class="fileListArea">
|
|
<select id="uploaded_file_list_{$upload_target_srl}" size="7" class="fileList" onclick="editor_preview(this, '{$upload_target_srl}');"></select>
|
|
<p class="info" id="uploader_status_{$upload_target_srl}"></p>
|
|
</div>
|
|
|
|
<ul class="fileUploadControl">
|
|
<li><a href="#" onclick="editor_upload_file('{$upload_target_srl}');return false;" class="uploaderButton"><img src="./images/blank.gif" alt="" class="leftCap" />{$lang->edit->upload_file}<img src="./images/blank.gif" alt="" class="rightCap" /></a></li>
|
|
|
|
<li><a href="#" onclick="editor_remove_file('{$upload_target_srl}');return false;" class="uploaderButton"><img src="./images/blank.gif" alt="" class="leftCap" />{$lang->edit->delete_selected}<img src="./images/blank.gif" alt="" class="rightCap" /></a></li>
|
|
|
|
<li><a href="#" onclick="editor_insert_file('{$upload_target_srl}');return false;" class="uploaderButton"><img src="./images/blank.gif" alt="" class="leftCap" />{$lang->edit->link_file}<img src="./images/blank.gif" alt="" class="rightCap" /></a></li>
|
|
</ul>
|
|
</div>
|
|
<!--@end-->
|
|
|
|
<div class="editor_autosaved_message" id="editor_autosaved_message">{$lang->msg_auto_saved} </div>
|
|
</div>
|
|
|
|
|