API/Naver 네이버
네이버 스마트 에디터 API 사용 1
KIMSG
2017. 7. 25. 09:00
네이버에서 제공하는 가이드
네이버 스마트에디터를 다운 받는다.
다 붙여 넣는다. (include)

<script type="text/javascript" src="/smarteditor/js/HuskyEZCreator.js" charset="utf-8"></script>
경로에 맞게 선언
<textarea name="content" id="content" colspan="3"
style="width: 750px; height:300px; vertical-align:top;"></textarea>
여기의 content에 맞게 수정한다.
1 2 3 4 5 6 7 8 | var oEditors = []; nhn.husky.EZCreator.createInIFrame({ oAppRef: oEditors, elPlaceHolder: "content", sSkinURI: "/smarteditor/SmartEditor2Skin.html", fCreator: "createSEditor2" }); | cs |
그리고 나서 .......
클릭을 눌렀을때....
oEditors.getById["content"].exec("UPDATE_CONTENTS_FIELD", []);
이렇게 넣어주면 된다.....
sSkinURI 이곳의 주소를 잘 적어야 하고.....
끝
width를 바꾸려면...
HuskyEZCreator.js 의 113번째줄의
elBlocker.style.width = "700px";
와
높이를 바꾸면 된다.