cheditor5 사용시 아래 바가 마우스 따라 다니는 현상
본문
답변 1
cheditor5에서 하단 바가 마우스를 따라다니는 문제는
일반적으로 CSS 또는 JavaScript에서 position: fixed; 속성이 적용되었기 때문일 겁니다.
*관련 CSS 수정 - position: fixed 또는 absolute 제거 - 예시
- plugin/editor/cheditor5/cssui.css에 아래의 주석 달린 두 줄 추가하여 보실래요~
.cheditor-resizebar {
height: 11px;
overflow: hidden;
border-left: 1px #ccc solid;
border-right: 1px #ccc solid;
cursor: s-resize;
background: #eee url(../icons/splitter.gif) no-repeat center top;
position: static !important; /* 위치 고정을 방지 추가 */
bottom: auto !important; /* 아래 고정 추가 */
}
*관련 스크립트에서 position: fixed를 제거하는 코드를 추가 (선택적 사용)
window.onload = function() {
var resizeBar = document.querySelector(".cheditor-resizebar");
if (resizeBar) {
resizeBar.style.position = "static";
resizeBar.style.bottom = "auto";
}
};