Index: arms/html/detail_total_pdservice/content-container.html =================================================================== diff -u -r869c7dc9a51bd1e1ea88cd707e7e87c9961fba30 -r2fea2df524d487ec3221e520404e4a52aec1eb62 --- arms/html/detail_total_pdservice/content-container.html (.../content-container.html) (revision 869c7dc9a51bd1e1ea88cd707e7e87c9961fba30) +++ arms/html/detail_total_pdservice/content-container.html (.../content-container.html) (revision 2fea2df524d487ec3221e520404e4a52aec1eb62) @@ -21,8 +21,20 @@ id="file_description" class="font13" style="margin-top: 5px"> - 문서정보 + 제품(서비스) 컨텐츠 +
+
+
+
+ 기획 문서 +
Index: arms/js/detail_total_pdservice.js =================================================================== diff -u -r5838243fd18c6cc74e73538e0e6eec9deea6d148 -r2fea2df524d487ec3221e520404e4a52aec1eb62 --- arms/js/detail_total_pdservice.js (.../detail_total_pdservice.js) (revision 5838243fd18c6cc74e73538e0e6eec9deea6d148) +++ arms/js/detail_total_pdservice.js (.../detail_total_pdservice.js) (revision 2fea2df524d487ec3221e520404e4a52aec1eb62) @@ -66,6 +66,21 @@ //좌측 메뉴 $(".widget").widgster(); setSideMenu("sidebar_menu_product", "sidebar_menu_total_pdservice"); + + // --- 에디터 설정 --- // + var waitCKEDITOR = setInterval(function () { + try { + if (window.CKEDITOR) { + if(window.CKEDITOR.status == "loaded"){ + CKEDITOR.replace("detail_pdservice_contents",{ skin: "office2013" });//상세보기 + clearInterval(waitCKEDITOR); + } + } + } catch (err) { + console.log("CKEDITOR 로드가 완료되지 않아서 초기화 재시도 중..."); + } + }, 313 /*milli*/); + // 스크립트 실행 로직을 이곳에 추가합니다. getNodeInfo(); fileLoadByPdService(); @@ -124,7 +139,15 @@ async: false, dataType: "json" }).done(function (result) { - document.getElementById("file_description").innerHTML = result.c_pdservice_contents; + //document.getElementById("file_description").innerHTML = result.c_pdservice_contents; + + // CKEditor 로드된 후, 기획 정보 세팅 + CKEDITOR.on('instanceReady', function(event) { + var editor = event.editor; + if(editor.name === 'detail_pdservice_contents'){ + editor.setData(result.c_pdservice_contents); + } + }); }); }