묻고답하기
게시글 본문에 초기값
2009.09.01 10:08
여기서 도움 많이 받고 있는 왕초보입니다,,^ ^
제가 지금 하고싶은건요,
게시판에서 쓰기를 눌렀을때, 본문에 표가 삽입되어있어, 그 표양식에 맞춰 내용을 입력하는 방식을 취하고 싶은데요...
게시판 본문에 초기값을 둘 수 있었으면.. 하는겁니다...
확장변수를 사용해서 폼을 만드는 방법이 있겠지만, 이럴경우엔 인쇄하기 눌렀을때 폼내용은 인쇄가 안되더라구요....
도움주세요.....^ ^;;;
댓글 3
-
khongchi
2009.09.01 12:00
-
왕초보
2009.09.01 13:50
답변 감사드립니다..
그런데
저는 1.0.1 버전을 사용하고 있어서...
조금은 다른듯한데....ㅠ
editor.html 파일 내용이 달라서 어느부분은 손대야 할지 모르겠어요...
-
왕초보
2009.09.01 14:02
editor.html 파일 내용입니다...
어느부분에 추가하여야 하는지.....
<!-- 스킨 css 로드 -->
<!--%import("css/xq_ui.css")-->
<!--%import("css/default.css")-->
<script type="text/javascript">
var editor_path = "{$editor_path}";
</script><!-- 기본 js/언어파일 로드 -->
<!--%import("../../tpl/js/editor_common.js")-->
<!--%import("js/xquared-min.js")-->
<!--%import("js/xe_interface.js")--><!-- 자동저장용 폼 -->
<!--@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" style="margin-top:5px; margin-bottom:5px;">
<!--@if($enable_component)-->
<!-- 확장 컴포넌트 출력 -->
<div class="optionDE">
<div class="optionE">
<div class="buttonGroup" id="editor_component_{$editor_sequence}">
<!--@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_{$editor_sequence}_{$component_name}" onmouseover="eOptionOver(this)" onmouseout="eOptionOut(this)" />
<!--@end-->
<!--@end-->
</div>
</div>
</div>
<!--@end--><!-- HTML 모드 사용 기능 및 자동저장 메세지 출력용 -->
<div class="editor_info">
<div class="editor_autosaved_message" id="editor_autosaved_message_{$editor_sequence}"> </div>
</div><!-- 에디터 출력 -->
<div id="xqEditor_{$editor_sequence}"></div>
<textarea id="editor_textarea_{$editor_sequence}" class="editor_iframe_textarea" style="display:none; height:{$editor_height}" rows="10" cols="10"></textarea><!-- 에디터 크기 조절 bar -->
<!--@if($enable_resizable)-->
<div class="textAreaDragIndicator"><div class="textAreaDragIndicatorBar" id="editor_drag_bar_{$editor_sequence}"></div></div>
<!--@end--><!--@if($allow_fileupload)-->
<!-- 첨부파일 영역 -->
<!--%import("../../tpl/js/uploader.js")-->
<script type="text/javascript">//<![CDATA[
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}" }
<!--@if(!$editor_manual_start)-->
editor_upload_init("{$editor_sequence}", editorGetForm_xq(document.getElementById("xqEditor_{$editor_sequence}")), "{$files_count}");
<!--@end-->
//]]></script><table cellspacing="0" class="fileAttach">
<col width="120" />
<col width="100%" />
<tr valign="top">
<td width="120"><div class="preview" id="preview_uploaded_{$editor_sequence}"><img src="./images/blank.gif" alt="preview" width="100" height="100" /></div></td>
<td>
<!-- 파일 업로드 영역 -->
<div class="fileListArea">
<select id="uploaded_file_list_{$editor_sequence}" multiple="multiple" size="5" class="fileList" onclick="editor_preview(this, '{$editor_sequence}');"></select>
</div>
<div class="fileUploadControl">
<a href="#" onclick="editor_upload_file('{$editor_sequence}');return false;" class="button"><span>{$lang->edit->upload_file}</span></a>
<a href="#" onclick="editor_remove_file('{$editor_sequence}');return false;" class="button"><span>{$lang->edit->delete_selected}</span></a>
<a href="#" onclick="editor_insert_file('{$editor_sequence}');return false;" class="button"><span>{$lang->edit->link_file}</span></a>
</div>
<div class="file_attach_info" id="uploader_status_{$editor_sequence}">{$upload_status}</div>
</td>
</tr>
</table>
<!--@end-->
</div>
<!-- 에디터 활성화 -->
<script type="text/javascript">//<![CDATA[
var auto_saved_msg = "{$lang->msg_auto_saved}";
var xed_{$editor_sequence};
if(document.getElementById("comment_{$editor_sequence}") == null || document.getElementById("comment_{$editor_sequence}").style.display != 'none') {
editorStart_xq(xed_{$editor_sequence}, document.getElementById("xqEditor_{$editor_sequence}"), {$editor_sequence}, "{$editor_content_key_name}", "{$editor_height}px", "{$editor_primary_key_name}");
}
//]]></script>
글쓴이 | 제목 | 최종 글 |
---|---|---|
XE | 공지 글 쓰기,삭제 운영방식 변경 공지 [16] | 2019.03.05 by 남기남 |
유영한 | 외부페이지에 회원가입폼을 넣으려고합니다........ [1] | 2009.09.01 by MX |
위젯 | 레이아웃을 만들었는데 위젯 적용이 안되네요 [2] | 2009.09.01 by MX |
냉이 | 업뎃후 홈페이지 로고 이미지가 않보여요,, | |
쿄육컨설팅 | 홈페이지 제작 하시는 본좌님 들께 질문 드립니다 | |
12345 | 달력 [7] | 2009.09.01 by 예리공주 |
해미 | 로고 옆 상단메뉴 출력 어떻게 해야하나요 ? | |
불덩어리 | 1.2.5 업데이트후 글쓰기시 오류발생.. [1] | 2009.09.01 by 디미 |
나그네 | XE 재설치 방법 문의... [6] | 2009.09.01 by 비나무 |
bluepark | 언어 설정 charset [1] | 2009.09.01 by 라르게덴 |
★리지 | content 위젯의 출력되는 내용에 소스 적용 되게 할 수 없나요? | |
해의눈물 | xe_member 테이블을 삭제해 버렸습니다. [2] | 2009.09.01 by 해의눈물 |
둠둠이 | 1.2.5업그레이드 후.. [2] | 2009.09.01 by HIKARU |
겨레사랑 | xe 1.2.5 업데이트시???? [2] | 2009.09.01 by HIKARU |
바다룡 | 한국어, 영어, 일본어를 같이 사용하고싶은데 어떻게해야할까요? [3] | 2009.09.01 by dotorymom |
mathzzang | 갑자기 게시판의 글자들이..커졌어요..ㅜㅜ [2] | 2009.09.01 by 도파 |
겨레사랑 | 카페(cafe)메인에서 카페주소 부분이 .... | |
루이쭈 | 메인화면에 최근 게시물 불러오는 방법 좀 알려주세요 ㅠㅠ [1] | 2009.09.01 by 깡왕 |
복고열전 | 플래닛 질문입니다. | |
청춘개똥 | 회원정보에 확장정보로 입력된 전화번호를 글쓰기할 때 불러오기.. ㅜㅜ [3] | 2009.09.01 by 청춘개똥 |
왕초보녀 | 위젯 출력이 안되요. |
선검색 후질문