728x90
반응형
This CKEditor 4.16.2 version is not secure. Consider upgrading to the latest one, 4.25.0-lts.
CKEditor 4.16.2 버전을 사용했는데 웹 프로젝트를 실행시켜 에디터를 확인해보니 해당 안내문구가 나타났다.
이는 CKEditor 4.16.2 버전은 보안 취약점이 있을 수 있으므로, 4.25.0으로 업그레이드하라는 내용이다.
업그레이드 해줘야지
업그레이드 하면 라이센스 키 필요하고, 상업적 사용을 위해 유료로 전환해야 한다.
그냥 사용해야지 ...
1. 기존 코드 및 에디터 버전
CKEditor 4.16.2 버전을 사용한 코드는 아래와 같다.
noticeDetail.jsp
<!-- CKEditor 4 -->
<script src="https://cdn.ckeditor.com/4.16.2/standard/ckeditor.js"></script>
<script>
// CKEditor 초기화
document.addEventListener("DOMContentLoaded", function() {
CKEDITOR.replace('content', {
language: "ko"
});
});
</script>
화면
2. 에디터 버전 업그레이드 및 코드 수정
CKEditor 4.25로 바꿔주자
noticeDetail.jsp
<!-- CKEditor 4.25 -->
<script src="https://cdn.ckeditor.com/4.25.0-lts/standard/ckeditor.js"></script>
<script>
// CKEditor 초기화
document.addEventListener("DOMContentLoaded", function() {
CKEDITOR.replace('content', {
language: "ko"
});
});
</script>
화면
화면.....에는 CKEditor가 나타나지 않는다.
개발자 도구를 살펴보면 아래와 같이 나타난다.
ckeditor.js:370 [CKEDITOR]: The license key is missing or invalid.
If you suddenly started to see this message, this may mean you accidentally updated CKEditor 4 to the LTS version (4.23.0 and above). This version of the editor is under commercial terms and requires acquiring an "Extended Support Model" contract - https://ckeditor.com/ckeditor-4-support/
For more information about this error go to https://ckeditor.com/docs/ckeditor4/latest/guide/dev_errors.html#invalid-lts-license-key
CKEditor 4.23 - LTS 버전은 상업적 라이센스가 필요하다는 뜻이다.
라이센스 키가 없으면 사용할 수 없다.
따라서 돈이 없다면 라이센스가 필요없는 비상업적 버전을 사용해야 한다.
난 돈이 없다.
그래서 다시 4.16.2 버전으로 다시 바꾸었다.
그냥 안내문구 x 클릭하면 된다.
728x90
반응형