티스토리 뷰




네이버에서 제공하는 가이드


네이버 스마트에디터를 다운 받는다.

다 붙여 넣는다. (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";

높이를 바꾸면 된다.






반응형
공지사항
최근에 올라온 글
최근에 달린 댓글
Total
Today
Yesterday
링크
«   2024/05   »
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
글 보관함