안녕하세요.

 

스마트에디터를 모바일에서 사용할 경우 지정한 높이를 벗어나게 되면 상단 도구와 하단이 사라지게 되는 문제가 발생하는 경우가 있습니다.

 

해당 문제의 해결 방법은

 

smarteditor2/js/smarteditor2.js에 옵션 변경을 통해 해결 할 수 있습니다.

1. nBodyHeight = this._getResizeHeight(); >> 주석처리

2. smarteditor2/smart_editor2_inputarea.html 에서 <body class="se2_inputarea" style="display:table 추가"... >

 

 

여기저기 문제였다는 게시글은 있지만 해결책이 없는것 같아 이렇게 내용을 올리게 되었습니다.

 

또 이미지 크기의 해당 모바일 크기보다 커지는 경우 px로 잡히는 문제가 있는데요. 

해당 해결은 smarteditor2/css/smart_editor2_in.css안에다가 .se2_inputarea img { max-width:100%; }  해당 옵션을 넣어주면 됩니다.

 

스마트에디터의 모바일 크기가 px로 잡히게되어 모바일 크기를 넘어갈 경우의 해결방법은

smarteditor2/js/smarteditor2.js에서 $init : function(sDefaultEditing...{}함수안에

 

this.elEditingAreaContainer.style.width = oWdith.nSize + oWidth.sUnit;  >> 주석 처리

 

if(oWidth.sUnit === "px"){

     elAppContainer.style.width = (oWidth.nSize + 2) + "px";  >> 주석처리 

}

 

해당 두개의 width를 자동으로 잡는 부분만 주석 처리하시면 모바일 기기의 크기에 맞게 에디터가 나오게됩니다.

 

저처럼 하나하나 옵션을 살펴가며 고생하시지 마시고, 제가 올린글을 보면서 빠른 개발하시기를..

궁금하신거는 댓글 남겨주세요.

+ Recent posts