묻고답하기

계속 같은데서 답을 못찾고 있네요..방법을 모르겠어요.ㅠㅠ

 

하나의 문서에서 여러개 에디터를 사용할때

document_srl은 하나의 값이고, editor_sequence값은 순차적으로 부여되는 것같습니다.

그러면 첨부파일을 각각 에디터에 업로드하더라도

계속 upload_target_srl값은 같아서 한 폴더에 함께 (files/attach/images/222/333)이런 식으로 한 폴더로 들어가서 해쉬코드만 다르게 붙여질수있나요?

즉, 두개의 에디터로 각각 첨부한 파일이 같은 upload_target_srl에 저장되게 할 수있는건가요?

 

제가 에디터 두개를 불러와서 파일을 각각 첨부해보니

upload_target_srl이 각각 따로 붙여져 들어가더군요... 하나의 upload_target_srl에 들어가게 하고싶은데요..가능한가요?

DB에는 document_srl값은 한개만 저장되고 upload_target_srl값은 두 에디터의 값 모드 들어갑니다..

한개의 문서에서 두개의 에디터를 사용했어도 같은 문서라면 upload_target_srl 값이 한개여 하는거 아닌가요.ㅠ

 

우선 게시판의 wirte_form.html에서


 <div class="editor">{$test_editor}</div>
 <div class="editor">{$test2_editor}</div>

설정해준 에디터 두개를 불러왔구요, 이 에디터의 설정은 board.view.php에서

 

function setTestEditor($document_srl = 0, $height = 100) {
            Context::set('document_srl', $document_srl);

            // 에디터 모듈의 getEditor를 호출하여 세팅
            $oEditorModel = &getModel('editor');
            $option->primary_key_name = 'document_srl';
            $option->content_key_name = 'content';
            $option->allow_fileupload = true;
            $option->enable_autosave = false;
            $option->enable_default_component = false;
            $option->enable_component = false;
            $option->resizable = true;
            $option->height = $height;
            $test_editor = $oEditorModel->getEditor($document_srl, $option);
            Context::set('test_editor', $test_editor);
        }
  function setTestEditor2($document_srl = 0, $height = 100) {
            Context::set('document_srl', $document_srl);

            // 에디터 모듈의 getEditor를 호출하여 세팅
            $oEditorModel = &getModel('editor');
            $option->primary_key_name = 'document_srl';
            $option->content_key_name = 'content';
            $option->allow_fileupload = true;
            $option->enable_autosave = false;
            $option->enable_default_component = false;
            $option->enable_component = false;
            $option->resizable = true;
            $option->height = $height;
            $test2_editor = $oEditorModel->getEditor($document_srl, $option);
            Context::set('test2_editor', $test2_editor);
        }

 

 

이렇게 선언해주고 가져다 사용하였습니다.. 왜 두개의 upload_target_srl값이 나오는지 모르겠습니다.ㅠㅠ

 

글쓴이 제목 최종 글
XE 공지 글 쓰기,삭제 운영방식 변경 공지 [16] 2019.03.05 by 남기남
Geeji 직접 만든 레이아웃에서 게시판 에디터가 비활성화 됩니다. [4] 2013.02.19 by Geeji
헤헤성 아이피당 회원가입 1번만 할 수 있게 할 수 있나요?~ [1] 2013.02.19 by sejin7940
구름* Code Highlighter 에디터컴포넌트 사용법이요. [2] 2013.02.19 by 황금63
riddlesun 에디터 한글 깨짐 현상 file  
모조키 getUrl() 은 어디서 불러오나요?? [3] 2013.02.19 by 푸시아
프머000 관리자 서브메뉴 문의드려요  
XE만세 로그아웃 버튼을 누를 시 확인창을 띄우고 싶습니다.. [1] 2013.02.19 by 송동우
곰사탕 [왕초보]외부페이지에 로그인 창 달기 질문ㅜㅜ도와주세요 [1] file 2013.02.19 by 송동우
Pumpcrew 글쓰기 및 댓글 관련 질문입니다.  
홍치즈 메인메뉴 이미지로 변경시 에러창이 뜹니다.  
vassily 로그인 안되는 문제 해결법 [1] 2013.02.19 by 송동우
머쓱해 SCM player 사용 방법 질문입니다 [1] 2013.02.19 by LI-NA
PEANUTSOUL 홈페이지 복사! 오프라인으로 도와주시는거 가능하신분! [1] 2013.02.19 by CM(OEZ)
konbau 브라우저에 따라서 달라지는 방문객 카운팅.....무슨 일일까요? [1] 2013.02.19 by 컴토피아
소이스 서버 이동 오류 [1] 2013.02.19 by 컴토피아
GGobugi 페이스북 페이지글을 가져오는 부분인데요...  
에키 Xe Default 2007 게시판의 파일 저장 경로가 어디인가요? [1] 2013.02.19 by 송동우
민규홍 [왕초보] 메인페이지 위젯 수정 할때 질문이요.. [1] file 2013.02.19 by 송동우
양파대롱 XE 독학 하는데 많이 어려울까요? (내용에 상황 적었습니다) [1] 2013.02.19 by DynamicLaser
EvangelineA.K.Macdowell 통합 게시판 출력이 가능할까요? [2] 2013.02.19 by monu
nimm 게시판 질문입니다.(도움부탁드립니다1!!) [1] 2013.02.19 by DynamicLaser
PC문제해결㉴ 초기 설치시 오류 발생했네요.ㅠ.ㅠ [1] 2013.02.19
가입명 상단 메뉴 윗 부분 (sketchbook5) file  
powerman 관리자가 모바일 게시판에 글등록시 일림푸쉬기능 [1] 2013.02.19 by DynamicLaser
에키 회원가입 폼 관리에서 사용자정의항목 추가 관련 질문 [1] 2013.02.19 by 송동우
sage하늘 초기화면에 대해 질문합니다.  
메테워 게시물삭제 애드온 관련질문 [1] 2013.02.19 by 송동우
nimm 파일첨부시에 질문이요(수정)  
곰사탕 게시판 비밀글을 메인에 노출이 안돼요 ㅜㅜ [1] 2013.02.19 by 송동우
sbshs77 윈도우 서버에서 아파치 ssl verify 가능하게 하려면..