일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | ||||
4 | 5 | 6 | 7 | 8 | 9 | 10 |
11 | 12 | 13 | 14 | 15 | 16 | 17 |
18 | 19 | 20 | 21 | 22 | 23 | 24 |
25 | 26 | 27 | 28 | 29 | 30 | 31 |
- .htaccess
- 보안인증서
- 정부 서비스 가이드라인
- 자바스크립트
- 우분투 서버세팅
- 날짜비교
- 애니메이트
- 디지털 정부서비스ui/ux
- 정규식
- Vanilla JS
- 배열
- 날짜변환
- 301 리다이렉트
- Ajax
- ip직접접근차단
- iframe
- php8.3
- 글자 수 제한
- selinux
- post_type
- MySQL
- SSL
- 글자수제한
- 구글뷰어
- 리사이즈
- krds
- JavaScript
- virsualhost
- JS
- 비동기호출
- Today
- Total
더 나은 프로그래머가 되자
네이버 스마트에디터2에서 display none에서 display block 전환시 에디터 안나올때 본문
/plugin/editor/smarteditor2/js/service/HuskyEZCreator.js
HuskyEZCreator.js 69라인 정도
1 2 3 4 5 6 7 |
try{ elIFrame = document.createElement("<IFRAME frameborder=0 scrolling=no>"); }catch(e){ elIFrame = document.createElement("IFRAME"); elIFrame.setAttribute("frameborder", "0"); elIFrame.setAttribute("scrolling", "no"); } |
아래와 같이 class="class_smarteditor2" 추가
1 2 3 4 5 6 7 8 |
try{ elIFrame = document.createElement('<IFRAME frameborder="0" scrolling="no" class="class_smarteditor2">'); }catch(e){ elIFrame = document.createElement("IFRAME"); elIFrame.setAttribute("frameborder", "0"); elIFrame.setAttribute("scrolling", "no"); elIFrame.setAttribute("class", "class_smarteditor2"); } |
그런다음 스마트에디터를 호출하는 부분에서 display:block 시킬때
1 2 |
$('.class_smarteditor2').css('height', '300px'); // 스마트 에디터 height 지정 $('.class_smarteditor2').attr('src',$('.class_smarteditor2').attr('src')); // 스마트 에디터 iframe 새로고칭 |
이런식으로 지정해주면 됨.
'API > 네이버' 카테고리의 다른 글
스마트에디터2 파일 업로드 에러시 메세지 확인 smarteditor2 (0) | 2017.05.31 |
---|