This repository has been archived by the owner on Jun 24, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
63 changed files
with
31,723 additions
and
23,568 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,78 @@ | ||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml" lang="ko" xml:lang="ko"> | ||
<head> | ||
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> | ||
<title>네이버 :: Smart Editor 2 ™</title> | ||
<script type="text/javascript" src="./js/service/HuskyEZCreator.js" charset="utf-8"></script> | ||
</head> | ||
<body> | ||
<form action="sample/viewer/index.php" method="post"> | ||
<textarea name="ir1" id="ir1" rows="10" cols="100" style="width:766px; height:412px; display:none;"></textarea> | ||
<!--textarea name="ir1" id="ir1" rows="10" cols="100" style="width:100%; height:412px; min-width:610px; display:none;"></textarea--> | ||
<p> | ||
<input type="button" onclick="pasteHTML();" value="본문에 내용 넣기" /> | ||
<input type="button" onclick="showHTML();" value="본문 내용 가져오기" /> | ||
<input type="button" onclick="submitContents(this);" value="서버로 내용 전송" /> | ||
<input type="button" onclick="setDefaultFont();" value="기본 폰트 지정하기 (궁서_24)" /> | ||
</p> | ||
</form> | ||
|
||
<script type="text/javascript"> | ||
var oEditors = []; | ||
|
||
var sLang = "ko_KR"; // 언어 (ko_KR/ en_US/ ja_JP/ zh_CN/ zh_TW), default = ko_KR | ||
|
||
// 추가 글꼴 목록 | ||
//var aAdditionalFontSet = [["MS UI Gothic", "MS UI Gothic"], ["Comic Sans MS", "Comic Sans MS"],["TEST","TEST"]]; | ||
|
||
nhn.husky.EZCreator.createInIFrame({ | ||
oAppRef: oEditors, | ||
elPlaceHolder: "ir1", | ||
sSkinURI: "SmartEditor2Skin.html", | ||
htParams : { | ||
bUseToolbar : true, // 툴바 사용 여부 (true:사용/ false:사용하지 않음) | ||
bUseVerticalResizer : true, // 입력창 크기 조절바 사용 여부 (true:사용/ false:사용하지 않음) | ||
bUseModeChanger : true, // 모드 탭(Editor | HTML | TEXT) 사용 여부 (true:사용/ false:사용하지 않음) | ||
//bSkipXssFilter : true, // client-side xss filter 무시 여부 (true:사용하지 않음 / 그외:사용) | ||
//aAdditionalFontList : aAdditionalFontSet, // 추가 글꼴 목록 | ||
fOnBeforeUnload : function(){ | ||
//alert("완료!"); | ||
}, | ||
I18N_LOCALE : sLang | ||
}, //boolean | ||
fOnAppLoad : function(){ | ||
//예제 코드 | ||
//oEditors.getById["ir1"].exec("PASTE_HTML", ["로딩이 완료된 후에 본문에 삽입되는 text입니다."]); | ||
}, | ||
fCreator: "createSEditor2" | ||
}); | ||
|
||
function pasteHTML() { | ||
var sHTML = "<span style='color:#FF0000;'>이미지도 같은 방식으로 삽입합니다.<\/span>"; | ||
oEditors.getById["ir1"].exec("PASTE_HTML", [sHTML]); | ||
} | ||
|
||
function showHTML() { | ||
var sHTML = oEditors.getById["ir1"].getIR(); | ||
alert(sHTML); | ||
} | ||
|
||
function submitContents(elClickedObj) { | ||
oEditors.getById["ir1"].exec("UPDATE_CONTENTS_FIELD", []); // 에디터의 내용이 textarea에 적용됩니다. | ||
|
||
// 에디터의 내용에 대한 값 검증은 이곳에서 document.getElementById("ir1").value를 이용해서 처리하면 됩니다. | ||
|
||
try { | ||
elClickedObj.form.submit(); | ||
} catch(e) {} | ||
} | ||
|
||
function setDefaultFont() { | ||
var sDefaultFont = '궁서'; | ||
var nFontSize = 24; | ||
oEditors.getById["ir1"].setDefaultFont(sDefaultFont, nFontSize); | ||
} | ||
</script> | ||
|
||
</body> | ||
</html> |
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
@charset "UTF-8"; | ||
/* NHN Web Standardization Team (http://html.nhndesign.com/) HHJ 090226 */ | ||
/* COMMON */ | ||
body,.se2_inputarea{margin:0;padding:0;font-family:'돋움',Dotum,Helvetica,Sans-serif;font-size:12px;line-height:1.5} | ||
/* body,.se2_inputarea,.se2_inputarea th,.se2_inputarea td{margin:0;padding:0;font-family:'돋움',Dotum,Helvetica,Sans-serif;font-size:12px;line-height:1.5;color:#666} */ | ||
.se2_inputarea p,.se2_inputarea br{margin:0;padding:0} | ||
.se2_inputarea{margin:15px;word-wrap:break-word;*word-wrap:normal;*word-break:break-all} | ||
.se2_inputarea td{word-break:break-all} | ||
.se2_inputarea_890{width:741px;margin:20px 0 10px 64px} | ||
.se2_inputarea_698{width:548px;margin:20px 0 10px 64px} | ||
@media screen and (-webkit-min-device-pixel-ratio: 0) { | ||
.se2_inputarea td:empty:after,.se2_inputarea td > p:empty:after{content:"\00A0";line-height:1} | ||
} | ||
/* TEXT_TOOLBAR : QUOTE */ | ||
.se2_quote1{margin:0 0 30px 20px;padding:0 8px;border-left:2px solid #ccc;color:#888} | ||
.se2_quote2{margin:0 0 30px 13px;padding:0 8px 0 16px;background:url("../../img/bg_quote2.gif") 0 3px no-repeat;color:#888} | ||
.se2_quote3{margin:0 0 30px;padding:12px 10px 11px;border:1px dashed #ccc;color:#888} | ||
.se2_quote4{margin:0 0 30px;padding:12px 10px 11px;border:1px dashed #66b246;color:#888} | ||
.se2_quote5{margin:0 0 30px;padding:12px 10px 11px;border:1px dashed #ccc;background:#fafafa;color:#888} | ||
.se2_quote6{margin:0 0 30px;padding:12px 10px 11px;border:1px solid #e5e5e5;color:#888} | ||
.se2_quote7{margin:0 0 30px;padding:12px 10px 11px;border:1px solid #66b246;color:#888} | ||
.se2_quote8{margin:0 0 30px;padding:12px 10px 11px;border:1px solid #e5e5e5;background:#fafafa;color:#888} | ||
.se2_quote9{margin:0 0 30px;padding:12px 10px 11px;border:2px solid #e5e5e5;color:#888} | ||
.se2_quote10{margin:0 0 30px;padding:12px 10px 11px;border:2px solid #e5e5e5;background:#fafafa;color:#888} |
Oops, something went wrong.