웹마스터 팁

저만 js 충돌로 골머리를 앓는 줄 알았는데, 많은 분들이 고민하고 계시더군요 ㅠ_ ㅠ

 

디자이너라 제이쿼리는 기본적인 것만 아는데

잘 알지도 못 하는 스크립트를 약간씩 수정하느라 고생했네요.

 

저같은 경우는 GNB랑 충돌했는데, 고생해서 만든 GNB라 도저히 포기할 수가 없어서 ㅠ_ ㅠ

 

에디터 모듈의 스킨에서 editor.html 파일을 여시고,

최하단부의 스크립트를 다음 스크립트로 대체하시면 됩니다!

 

파일 첨부 쪽 스크립트와 충돌하는 것이었어요.

 

초짜다보니 min.js 파일도 교체해보고 별 걸 다 해봤는데 결국 이걸로 해결이 되네요.

많은 분들이 해결되시길 바랍니다 :-)

 

 

------

 

    <!-- 에디터 활성화 -->
    <script type="text/javascript">//<![CDATA[
        var editor_path = "{$editor_path}";
        var auto_saved_msg = "{$lang->msg_auto_saved}";
        var oEditor = editorStart_xe("{$editor_sequence}", "{$editor_primary_key_name}", "{$editor_content_key_name}", "{$editor_height}", "{$colorset}", "{$content_style}",'{$content_font}','{$content_font_size}');
  
   <!--@if($allow_fileupload)-->
   <load target="../../tpl/js/uploader.js" />
   <load target="../../tpl/js/swfupload.js" />
   editorUploadInit({
                    "editorSequence" : {$editor_sequence},
                    "sessionName" : "{session_name()}",
                    "allowedFileSize" : "{$file_config->allowed_filesize}",
                    "allowedFileTypes" : "{$file_config->allowed_filetypes}",
                    "allowedFileTypesDescription" : "{$file_config->allowed_filetypes}",
                    "insertedFiles" : {(int)$files_count},
                    "replaceButtonID" : "swfUploadButton{$editor_sequence}",
                    "fileListAreaID" : "uploaded_file_list_{$editor_sequence}",
                    "previewAreaID" : "preview_uploaded_{$editor_sequence}",
                    "uploaderStatusID" : "uploader_status_{$editor_sequence}"
   });
   <!--@end-->
    //]]></script>