cheditor에디터 사용 시 글 내용 길어질때 스크롤 안내려가는 현상 정보
cheditor에디터 사용 시 글 내용 길어질때 스크롤 안내려가는 현상본문
처음 글 써보네요...
cheditor 에디터 사용시 글 내용 길어지면 overflow:auto 라서 스크롤은 생기는데 익스에서는
스크롤이 밑으로 안내려가서 작성되는 글이 안보여지는 현상이 발생해요
이 부분을 수정해봤어요
cheditor 버젼 5 사용하고요
openDoc : function (doc, contents) {
doc.open();
var html = '<html><head><title>'+this.config.docTitle+'</title><style></style>';
html += '<script>function scrollTop_ok() { document.body.scrollTop = document.body.scrollHeight;} setInterval("scrollTop_ok()",100);</script>'; // fixed by HYEM 2013-08-29
html += '</head><body>';
if (typeof(contents) === 'string') {
html += this.trimSpace(contents);
}
html += '</body></html>';
doc.write(html);
doc.close();
},
cheditor 에디터 사용시 글 내용 길어지면 overflow:auto 라서 스크롤은 생기는데 익스에서는
스크롤이 밑으로 안내려가서 작성되는 글이 안보여지는 현상이 발생해요
이 부분을 수정해봤어요
cheditor 버젼 5 사용하고요
openDoc : function (doc, contents) {
doc.open();
var html = '<html><head><title>'+this.config.docTitle+'</title><style></style>';
html += '<script>function scrollTop_ok() { document.body.scrollTop = document.body.scrollHeight;} setInterval("scrollTop_ok()",100);</script>'; // fixed by HYEM 2013-08-29
html += '</head><body>';
if (typeof(contents) === 'string') {
html += this.trimSpace(contents);
}
html += '</body></html>';
doc.write(html);
doc.close();
},
추천
0
0
댓글 2개
정보 감사드립니다.
좋은팁 감사합니다..