질문
Q #10247
CI상에서 ckeditor 사용시 경로를 찾지 못합니다.
맘마
2013-01-02 18:24:22
현재 ckeditor 경로는 아래와 같이 되어 있습니다.
/static/ckeditor/
그래서
/static/ckeditor/ckeditor.js
이와 같이 경로를 잡아 주었는데
config.js, editor.css등 경로를 html내용이 있는 하위경로에서만 찾고 있어서 오류가 납니다.
ckeditor 경로 : /static/ckeditor/ckeditor.js
html불러 오는 경로: /report/bug_report_add/ 그래서 js랑 css경로들이 /report/config.js, /report/editor.css 이와같이 되어 있습니다.
혹시나 싶어서 /static/ckeditor/samples/test.htm에 제가 구성한 html내용들을 그데로 넣어서 봤더니 editor는 잘 실행이 됩니다.
ㅡ.ㅡ 왜 그럴까요.....
현재 CI, template은 template_를 사용하고 있으며 html이 있는 파일은 fancybox로 호출하여 불러 오고 있습니다.
어떤 연유로 경로를 못찾는건지 알려주시면 감사하겠습니다.
ckeditor 가 다른 설정을 뭘 해야되는게 없어서.... 난감하네요...
참고로 codeigniter의 기준 디렉토리는 index.php가 있는 곳입니다.