cheditor 글쓰기 폼 수정하기 > 그누4 질문답변

그누4 질문답변

그누보드4 관련 질문은 QA 로 이전됩니다. QA 그누보드4 바로가기
기존 게시물은 열람만 가능합니다.

cheditor 글쓰기 폼 수정하기 정보

cheditor 글쓰기 폼 수정하기

본문

제가 서동요님의 제휴문의게시판을 쓰는데요
지금 질문답변 게시판처럼 cheditor를 불러들여서 내용쓰기폼을 쓰는 형식입니다.
그런데 저는 글자굵기라던가 이모티콘이라던가 폰트고르는거같은 상단의 기능을 뺴고 싶어서요.
얄팍하게 검색해본 결과
cheditor.js의 980번줄 부터가 그것에 해당하는 곳인지는 알았는데
조금만 건들려도 글쓰기폼자체가 없어져버립니다.
 
이거 어디를 지워야 단순하게 글만 쓸수 있게 될까요?
(자꾸 허접한 질문만 드려서 죄송해요, 흑)
  • 복사

댓글 전체

980줄 부터 1077줄 까지 입니다.

    // 메뉴 버튼 출력: 시작 *****/
    document.write("<table cellpadding=0 cellspacing=0 width=100% id='idToolbar"+myobj+"'style=\""+this.editorToolbar+"\">");
    document.write("<tr><td><table width=100% cellpadding=0 cellspacing=0><tr><td>");
    document.write("<table width=100% cellpadding=1 cellspacing=0>");
    document.write("<tr>");
/*
    document.write("<span title='실행 취소' style='cursor:pointer;'>" + obj.setIcon("undo.gif", 20, 20, myobj + ".exec('Undo',false)") + "</span>");
    document.write("<span title='되살리기' style='cursor:pointer;'>" + obj.setIcon("redo.gif", 20, 20, myobj + ".exec('Redo',false)") + "</span>");
    document.write("<span title='자르기' style='cursor:pointer;'>" + obj.setIcon("cut.gif", 20, 20, myobj + ".exec('Cut',false)") + "</span>");
    document.write("<span title='복사' style='cursor:pointer;'>" + obj.setIcon("copy.gif", 20, 20, myobj + ".exec('Copy',false)") + "</span>");
    document.write("<span title='붙이기' style='cursor:pointer;'>" + obj.setIcon("paste.gif", 20, 20, myobj + ".exec('Paste',false)") + "</span>");
    document.write("<span title='전체 선택' style='cursor:pointer;'>" + obj.setIcon("selectall.gif", 20, 20, myobj + ".exec('SelectAll',false)") + "</span>");
 
    document.write("<span title='속성 제거' style='cursor:pointer;'>" + obj.setIcon("removeformat.gif", 20, 20, myobj + ".exec('RemoveFormat',false)") + "</span>");
    document.write("<span title='굵게' style='cursor:pointer;'>" + obj.setIcon("bold.gif", 20, 20, myobj + ".exec('Bold',false)") + "</span>");
    document.write("<span title='기울기' style='cursor:pointer;'>" + obj.setIcon("italic.gif", 20, 20, myobj + ".exec('Italic',false)") + "</span>");
    document.write("<span title='밑줄' style='cursor:pointer;'>" + obj.setIcon("underline.gif", 20, 20, myobj + ".exec('Underline',false)") + "</span>");
    document.write("<span title='가운데줄' style='cursor:pointer;'>" + obj.setIcon("strike.gif", 20, 20, myobj + ".exec('Strikethrough',false)") + "</span>");
 
    document.write("<span title='위첨자' style='cursor:pointer;'>" + obj.setIcon("superscript.gif", 20, 20, myobj + ".exec('Superscript',false)") + "</span>");
    document.write("<span title='아래첨자' style='cursor:pointer;'>" + obj.setIcon("subscript.gif", 20, 20, myobj + ".exec('Subscript',false)") + "</span>");
 
    document.write("<span title='왼쪽 정렬' style='cursor:pointer;'>" + obj.setIcon("justifyleft.gif", 20, 20, myobj + ".exec('JustifyLeft',false)") + "</span>");
    document.write("<span title='가운데 정렬' style='cursor:pointer;'>" + obj.setIcon("justifycenter.gif", 20, 20, myobj + ".exec('JustifyCenter',false)") + "</span>");
    document.write("<span title='오른쪽 정렬' style='cursor:pointer;'>" + obj.setIcon("justifyright.gif", 20, 20, myobj + ".exec('JustifyRight',false)") + "</span>");
    document.write("<span title='양쪽 정렬' style='cursor:pointer;'>" + obj.setIcon("justifyfull.gif", 20, 20, myobj + ".exec('JustifyFull',false)") + "</span>");

    document.write("<span title='숫자 목록' style='cursor:pointer;'>" + obj.setIcon("orderedlist.gif", 20, 20, myobj + ".exec('InsertOrderedList',false)") + "</span>");
    document.write("<span title='점 목록' style='cursor:pointer;'>" + obj.setIcon("unorderedlist.gif", 20, 20, myobj + ".exec('InsertUnorderedList',false)") + "</span>");
    document.write("<span title='들여쓰기' style='cursor:pointer;'>" + obj.setIcon("indent.gif", 20, 20, myobj + ".exec('Indent',false)") + "</span>");
    document.write("<span title='내어쓰기' style='cursor:pointer;'>" + obj.setIcon("outdent.gif", 20, 20, myobj + ".exec('Outdent',false)") + "</span>");

    document.write("<span title='링크넣기' style='cursor:pointer;'>" + obj.setIcon("link.gif", 20, 20, myobj + ".insert('hlink')") + "</span>");
    document.write("<span title='링크삭제' style='cursor:pointer;'>" + obj.setIcon("unlink.gif", 20, 20, myobj + ".exec('UnLink',false)") + "</span>");
    document.write("<span title='미디어' style='cursor:pointer;'>" + obj.setIcon("media.gif", 20, 20, myobj + ".insert('media')") + "</span>");
    document.write("<span title='그림넣기' style='cursor:pointer;'>" + obj.setIcon("image.gif", 20, 20, myobj + ".insert('image')") + "</span>");
    document.write("<span title='테이블 만들기' style='cursor:pointer;'>" + obj.setIcon("table.gif", 20, 20, myobj + ".insert('table')") + "</span>");
    document.write("<span title='표정 아이콘' style='cursor:pointer;'>" + obj.setIcon("em.gif", 20, 20, myobj + ".insert('em')") + "</span>");

    //document.write("<span title='가로선' style='cursor:pointer;'>" + obj.setIcon("hr.gif", 20, 20, myobj + ".exec('InsertHorizontalRule',false)") + "</span>");
    document.write("<span title='글자색' style='cursor:pointer;'>" + obj.setIcon("forecolor.gif", 20, 20, myobj + ".insert('forecolor')") + "</span>");

    if (this.IE) {
       
        document.write("<span title='특수 문자' style='cursor:pointer;'>" + obj.setIcon("schar.gif", 20, 20, myobj + ".insertIE('schar')") + "</span>");
        document.write("<span title='가로선' style='cursor:pointer;' id='hr'>" + obj.setIcon("hr.gif", 20, 20, myobj + ".displayWindow('horizontalRule');windowPos2('hr','horizontalRule',-100)",false) + "</span>");
        document.write("<span title='글자색' style='cursor:pointer;' id='forecolor'>" + obj.setIcon("forecolor.gif", 20, 20, myobj + ".displayWindow('forecolor');windowPos2('forecolor','forecolor',-100)",false) + "</span>");
        document.write("<span title='배경색' style='cursor:pointer;' id='backcolor'>" + obj.setIcon("backcolor.gif", 20, 20, myobj + ".displayWindow('backcolor');windowPos('backcolor','backcolor',-100)",false) + "</span>");
        document.write("<span title='제목 유형' style='cursor:pointer;'>" + obj.setIcon("paragraph.gif", 53, 26, myobj + ".displayWindow('paragraph');windowPos(this,'paragraph')",false) + "</span>");
        document.write("<span title='글꼴 유형' style='cursor:pointer;'>" + obj.setIcon("fonttype.gif", 53, 26, myobj + ".displayWindow('fontType');windowPos(this,'fontType')",false) + "</span>");
        document.write("<span title='글자 크기' style='cursor:pointer;'>" + obj.setIcon("fontsize.gif", 53, 26, myobj + ".displayWindow('fontSize');windowPos(this,'fontSize')",false) + "</span>");
     
        document.write("<span title='배경색' style='cursor:pointer;'>" + obj.setIcon("backcolor.gif", 20, 20, myobj + ".insert('backcolor')") + "</span>");
    }
    else {
        document.write("<span title='배경색' style='cursor:pointer;'>" + obj.setIcon("backcolor.gif", 20, 20, myobj + ".insert('hilitecolor')") + "</span>");

     
        document.write("<span title='제목 유형' style='cursor:pointer;'><select style='font-size:9pt' id='formatblock' onchange='"+myobj+".exec(\"FormatBlock\", this.options[selectedIndex].value)'>" +
                    "<option value='<p>'>보통</option>" +
                    "<option value='<h1>'>제목 1</option>" +
                    "<option value='<h2>'>제목 2</option>" +
                    "<option value='<h3>'>제목 3</option>" +
                    "<option value='<h4>'>제목 4</option>" +
                    "<option value='<h5>'>제목 5</option>" +
                    "<option value='<h6>'>제목 6</option>" +
                    "<option value='<address>'>주소</option>" +
                    "<option value='<pre>'>PRE</option>" +
                    "</select></span>");
       
    }

    document.write("<select style='font-size:9pt' id='fontname' onchange='"+myobj+".exec(\"fontname\", this.options[selectedIndex].value)'>" +
                "<option value='굴림' selected>굴림</option>" +
                "<option value='돋움'>돋움</option>" +
                "<option value='바탕'>바탕</option>" +
                "<option value='궁서'>궁서</option>" +
                "<option value='Arial'>Arial</option>" +
                "<option value='Arial Black'>Arial Black</option>" +
                "<option value='Tahoma'>Tahoma</option>" +
                "<option value='Courier'>Courier</option>" +
                "<option value='Times New Roman'>Times New</option>" +
                "<option value='Verdana'>Verdana</option>" +
                "</select>");

    document.write("<select style='font-size:9pt' id='fontsize' onchange='"+myobj+".exec(\"fontsize\", this.options[selectedIndex].value)'>" +
                "<option value='1'>크기 1</option>" +
                "<option value='2' selected>크기 2</option>" +
                "<option value='3'>크기 3</option>" +
                "<option value='4'>크기 4</option>" +
                "<option value='5'>크기 5</option>" +
                "<option value='6'>크기 6</option>" +
                "<option value='7'>크기 7</option>" +
                "</select>");
*/
    //document.write("<span title='인쇄' style='cursor:pointer;'>" + obj.setIcon("print.gif", 20, 20, myobj + ".exec('Print',false)") + "</span>");
    document.write("</tr></table></td></tr></table></td></tr></table></td></tr><tr><td height='100%'>");
    // 메뉴 버튼 출력: 끝 *****/
독사님 친절하게 답변주셔서 감사합니다.
그런데 위의 내용은 저도 알고 있어서 해봤던 방법이예요.
위 부분을 삭제하고 올리면
글쓰기 부분이 공백으로 나타납니다.
테이블 자체가 없어져버려요.

<?=cheditor2('fwrite', 'wr_content', '100%', '350');?>

이렇게 불러오게 되있던데,
어떻게 해야하는지 잘 모르겠습니다.

나모를 써서 글쓰는 폼 부분만 제외하고 삭제해봐도 결과는 같습니다.
이유가 뭘까요.
이이익.
© SIRSOFT
현재 페이지 제일 처음으로