Published: 27 Dec 2018 › Updated: 27 Dec 2018

ckeditor 데이터 읽기, 변경(getData, setData)
CKEDITOR.instances.textArearId.getData();
CKEDITOR.instances.textArearId.setData('DATA TO BE SET');
- textArearId는 textarea 태그의 id
자바스크립트에서 .html() 메소드로 바인딩하려는데 안돼서 계속 구글링만 하며 무진장 고생했으나
데이터 변경을 하려면 ckeditor에서 제공하는 메소드를 통해 접근해야 했다.
참고한 document - https://ckeditor.com/docs/
Leave ckeditor 데이터 읽기, 변경(getData, setData) to:
Read more #javascript posts
Best Posts From qumm
We have not curated any of qumm's posts yet. But you can encourage our curation team to review posts by visiting them regularly and by referring other readers. Because we give priority to frequently read content.