xquared 에디터 연동 관련 > 그누4 질문답변

그누4 질문답변

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

xquared 에디터 연동 관련 정보

xquared 에디터 연동 관련

첨부파일

write.skin.php (13.4K) 4회 다운로드 2010-12-10 22:55:08
xq.php (17.3K) 2회 다운로드 2010-12-10 22:58:47

본문

치에디터 빼고 xquared 에디터 연동 할려고 합니다.

치에디터에 관련된 소스 빼고 컨텐츠 부분 적용한 내용이

        <? if ($is_dhtml_editor) { ?>
        <textarea name="content" id="wr_content">
            &lt;p&gt;Hello &lt;a href="#"&gt;World&lt;/a&gt;!&lt;/p&gt;
        </textarea>

        <? } else { ?>
        <table width=100% cellpadding=0 cellspacing=0>
        <tr>
            <td width=50% align=left valign=bottom>
                <span style="cursor: pointer;" onclick="textarea_decrease('wr_content', 10);"><img src="<?=$board_skin_path?>/img/up.gif"></span>
                <span style="cursor: pointer;" onclick="textarea_original('wr_content', 10);"><img src="<?=$board_skin_path?>/img/start.gif"></span>
                <span style="cursor: pointer;" onclick="textarea_increase('wr_content', 10);"><img src="<?=$board_skin_path?>/img/down.gif"></span></td>
            <td width=50% align=right><? if ($write_min || $write_max) { ?><span id=char_count></span>글자<?}?></td>
        </tr>
        </table>
        <textarea id="wr_content" name="wr_content" class=tx style='width:100%; word-break:break-all;' rows=10 itemname="내용" required 
        <? if ($write_min || $write_max) { ?>onkeyup="check_byte('wr_content', 'char_count');"<?}?>><?=$content?></textarea>
        <? if ($write_min || $write_max) { ?><script language="javascript"> check_byte('wr_content', 'char_count'); </script><?}?>
        <? } ?>

입니다.

이러면
---------------------------
웹 페이지의 메시지
---------------------------
글쓰기에는 $wr_id 값을 사용하지 않습니다.
---------------------------
확인 
---------------------------
라는 오류를 내뱉더군요 ;;

그리고

    <?
    if ($is_dhtml_editor) echo cheditor3('wr_content');
    ?>

를 삭제하면 에디터가 안보이고 그대로 잇으면 잘보입니다 ;;
[ 설치 튜토리얼 : http://xquared.springnote.com/pages/472344 ]

놓친부분이 잇나요 ?
  • 복사

댓글 전체

write.skin.php의
    <?
    if ($g4[https_url])
        echo "f.action = '$g4[https_url]/$g4[bbs]/write_update.php';";
    else
        echo "f.action = './write_update.php';";
    ?>

를 함수 앞부분으로 옮겨보세요
아래의 위치처럼^^;

function fwrite_submit(f)
{

    <?
    if ($g4[https_url])
        echo "f.action = '$g4[https_url]/$g4[bbs]/write_update.php';";
    else
        echo "f.action = './write_update.php';";
    ?>


http://sir.co.kr/bbs/board.php?bo_table=g4_tiptech&wr_id=24495
© SIRSOFT
현재 페이지 제일 처음으로