ckeditor4최신버전 그누보드5에 연동하기

비밀글로 보호된 게시글입니다

← 홈으로
tak2 · 2024.08.26 · 조회 2
ckeditor4최신버전 그누보드5에 연동하기
<p><a href="https://ckeditor.com/cke4/builder" rel="nofollow" style="box-sizing: border-box; color: rgb(0, 0, 0); text-decoration: none; font-family: sans-serif; text-align: justify;">https://ckeditor.com/cke4/builder</a>&nbsp;에서 원하는 사양의 에디터를 생성 후,<br><a href="https://sir.kr/g5_plugin/2907"><br>https://sir.kr/g5_plugin/2907<br></a>에서 하는 대로 하시면 됩니다<br><br type="_moz"><br>*<span style="font-family: sans-serif; text-align: justify;">Kaim 님의</span></p><p style="box-sizing: border-box; line-height: 1.6em; word-break: break-all; font-family: sans-serif; text-align: justify;">혹시 json타입으로 콜을 받아야 하시는 분들 이 이상 진행 안된다면&nbsp;<br style="box-sizing: border-box;"><br style="box-sizing: border-box;"><br style="box-sizing: border-box;">ckeditor.js 의 "\x26responseType" 를 "?\x26responseType" 로,&nbsp;<br style="box-sizing: border-box;"><br style="box-sizing: border-box;"><br style="box-sizing: border-box;">upload.php 파일의 마지막 2줄을&nbsp; 아래와 같이 바꿔주세요~!<br style="box-sizing: border-box;"><br style="box-sizing: border-box;">//echo "&lt;script&gt;window.parent.CKEDITOR.tools.callFunction($funcNum, '$save_url', '업로드완료');&lt;/script&gt;";<br style="box-sizing: border-box;"><br style="box-sizing: border-box;">$json = array(<br style="box-sizing: border-box;">"uploaded"=&gt; 1<br style="box-sizing: border-box;">,"fileName"=&gt; basename($save_url)<br style="box-sizing: border-box;">,"url"=&gt; $save_url);<br style="box-sizing: border-box;"><br style="box-sizing: border-box;">echo json_encode($json);<br style="box-sizing: border-box;"><br style="box-sizing: border-box;">?&gt;</p><p style="box-sizing: border-box; line-height: 1.6em; word-break: break-all; font-family: sans-serif; text-align: justify;">를 시도해도 안돤다면, imageUpload/config.php&nbsp; 파일의&nbsp;</p><p style="box-sizing: border-box; line-height: 1.6em; word-break: break-all; font-family: sans-serif; text-align: justify;">&lt;?php<br style="box-sizing: border-box;">include_once("_common.php");</p><p style="box-sizing: border-box; line-height: 1.6em; word-break: break-all; font-family: sans-serif; text-align: justify;">if(strpos($config['cf_editor'], 'ckeditor') === false ){<br style="box-sizing: border-box;">&nbsp; &nbsp; exit;<br style="box-sizing: border-box;">}의 false를 true로 변경해주세요.<br></p>