mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-28 23:59:57 +09:00
1. 게시물 관리에서 이동 복사시 분유없음 추가 및 bugfix
2. 에디터 모드 쿠키 기억 3. 비밀글 기능 옵션으로 (게시물 댓글) 4. 에디터 컴포넌트 사용하지 않을때 도움말 없앰 5. 첨부시 용량 제한 표기 오류 fix git-svn-id: http://xe-core.googlecode.com/svn/sandbox@5091 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
91f8519086
commit
769ee33f57
19 changed files with 92 additions and 23 deletions
|
|
@ -174,6 +174,24 @@ function editorStart(editor_sequence, primary_key, content_key, editor_height, f
|
|||
|
||||
// 자동저장 필드가 있다면 자동 저장 기능 활성화
|
||||
if(typeof(fo_obj._saved_doc_title)!="undefined" ) editorEnableAutoSave(fo_obj, editor_sequence);
|
||||
|
||||
|
||||
// 좋지는 않으나;; 스타일 변형을 막기 위해 start 할때 html이면 바꿔주자
|
||||
if (xGetCookie('editor_mode') == 'html'){
|
||||
var iframe_obj = editorGetIFrame(editor_sequence);
|
||||
if(xGetElementById('fileUploader_'+editor_sequence)) xGetElementById('fileUploader_'+editor_sequence).style.display='block';
|
||||
textarea_obj = editorGetTextArea(editor_sequence);
|
||||
textarea_obj.value = content;
|
||||
xWidth(textarea_obj, xWidth(iframe_obj.parentNode));
|
||||
xHeight(textarea_obj, xHeight(iframe_obj.parentNode));
|
||||
editorMode[editor_sequence] = 'html';
|
||||
if(xGetElementById('xeEditor_'+editor_sequence)) {
|
||||
xGetElementById('xeEditor_'+editor_sequence).className = 'xeEditor html';
|
||||
xGetElementById('use_rich_'+editor_sequence).className = '';
|
||||
xGetElementById('preview_html_'+editor_sequence).className = '';
|
||||
xGetElementById('use_html_'+editor_sequence).className = 'active';
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
@ -401,6 +419,13 @@ function editorChangeHeader(obj,srl) {
|
|||
**/
|
||||
|
||||
function editorChangeMode(mode, editor_sequence) {
|
||||
|
||||
if(mode == 'html' || mode ==''){
|
||||
var expire = new Date();
|
||||
expire.setTime(expire.getTime()+ (7000 * 24 * 3600000));
|
||||
xSetCookie('editor_mode', mode, expire);
|
||||
}
|
||||
|
||||
var iframe_obj = editorGetIFrame(editor_sequence);
|
||||
if(!iframe_obj) return;
|
||||
|
||||
|
|
|
|||
|
|
@ -221,6 +221,7 @@ function reloadFileList(settings) {
|
|||
var params = new Array();
|
||||
params["file_list_area_id"] = settings["fileListAreaID"];
|
||||
params["editor_sequence"] = settings["editorSequence"];
|
||||
params["mid"] = current_mid;
|
||||
var response_tags = new Array("error","message","files","upload_status","upload_target_srl","editor_sequence");
|
||||
exec_xml("file","getFileList", params, completeReloadFileList, response_tags, settings);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue