2017-12-20 4 views
0

CKEDITOR를 텍스트 영역에 통합 할 수 없습니다. 당신이 폴더 localhost,CKEDITOR를 텍스트 영역에 통합

<script type="text/javascript" src="localhost/ckeditor/ckeditor.js"></script> 

잘못 라인이없는 것으로보고 있기 때문에

<html> 
    <head> 
    <script type="text/javascript" src="localhost/ckeditor/ckeditor.js"></script> 
    </head> 
    <body bgcolor=Bisque> 

    <textarea class="ckeditor" id="body" name="body"> 
    Hii 
    </textarea> 

    <script type="text/javascript"> 
     CKEDITOR.replace('body'); 
    </script> 
    </body> 
</html> 
+0

콘솔에서 오류를 확인하십시오. 그것은 힌트를 줄 수 있습니다. –

+0

@NiranjanNRaju : 콘솔 오류를 점검했습니다. 괜찮아. –

+0

'localhost' 폴더가 정말로 있습니까? – Wizard

답변

0

: 다음은 코드입니다. 브라우저가 페이지와 동일한 디렉토리 수준의 localhost 폴더에서 ckeditor.js을로드하려고합니다. 나는 ckeditor 폴더가 서버 루트 폴더 안에 있다고 가정하므로 다음을 사용하십시오.

<script type="text/javascript" src="/ckeditor/ckeditor.js"></script>