게시판별 에디터를 다르게 사용하는 방법 좀 알려주세요

2015-10-05 (월) 15:00:49 2,858

게시판 스킨에서 설정이 따로 안되어서

스킨안의 write.php 에서 지정해 주면 될거 같은데요

smarteditor2를 하나 복사해서 smarteditor3 으로 만들었구요 

물론 게시판 스킨도 따로 복사했습니다.

아래부분에서 어디를 수정하면 smarteditor3을 사용할수 있을가요?

좀 알려주시면 감사하겠습니다.

<?php if($write_min || $write_max) { ?>

<!-- 최소/최대 글자 수 사용 시 -->

<div class="well well-sm" style="margin-bottom:15px;">

현재 <strong><span id="char_count"></span></strong> 글자이며, 최소 <strong><?php echo $write_min; ?></strong> 글자 이상, 최대 <strong><?php echo $write_max; ?></strong> 글자 이하까지 쓰실 수 있습니다.

</div>

<?php } ?>

<?php echo $editor_html; // 에디터 사용시는 에디터로, 아니면 textarea 로 노출 ?>

|

답변 1개

아래와 같이 변경해주세요

<?php if ($bo_table=="notice") echo $editor2_html; //다른에디터를 $editor2_html로 지정  ?>

<?php else echo $editor_html; // 에디터 사용시는 에디터로, 아니면 textarea 로 노출 ?> 

답변을 작성하려면 로그인이 필요합니다.