Comments (7)
http://amina.co.kr/bbs/board.php?bo_table=apms_qa&wr_id=9459
댓글에 내용대로 다해보아도 안됩니다.
from smarteditor2.
에디터 생성하실때 다음과 같이 옵션으로 세팅해주실 수 있습니다.
htParams.SE2M_FontName.htMainFont
옵션값입니다.
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, // 추가 글꼴 목록
SE2M_FontName: {
htMainFont: {'id': '궁서','name': '궁서','size': '36','url': '','cssUrl': ''} // 기본 글꼴 설정
},
fOnBeforeUnload : function(){
//alert("완료!");
},
I18N_LOCALE : sLang
}, //boolean
fOnAppLoad : function(){
//예제 코드
//oEditors.getById["ir1"].exec("PASTE_HTML", ["로딩이 완료된 후에 본문에 삽입되는 text입니다."]);
},
fCreator: "createSEditor2"
});
from smarteditor2.
네 해당 파일은 어떤 파일을 참고하면될까요?
from smarteditor2.
nhn.husky.EZCreator.createInIFrame
정의하는 샘플은 SmartEditor2.html
파일에 있습니다.
서비스에 적용하신 파일에서 수정하시면 됩니다.
from smarteditor2.
SmartEditor2.html
가 아닌 SmartEditor2noframe.html
방식으로 적용하셨다면 다음과 같이 수정하시면 됩니다.
var oEditor = createSEditor2(jindo.$("ir1"), {
bUseToolbar : true, // 툴바 사용 여부 (true:사용/ false:사용하지 않음)
bUseVerticalResizer : true, // 입력창 크기 조절바 사용 여부 (true:사용/ false:사용하지 않음)
bUseModeChanger : true, // 모드 탭(Editor | HTML | TEXT) 사용 여부 (true:사용/ false:사용하지 않음)
//bSkipXssFilter : true, // client-side xss filter 무시 여부 (true:사용하지 않음 / 그외:사용)
//aAdditionalFontList : [["MS UI Gothic", "MS UI Gothic"], ["Comic Sans MS", "Comic Sans MS"],["TEST","TEST"]], // 추가 글꼴 목록
SE2M_FontName : {
htMainFont: {'id': '궁서','name': '궁서','size': '36','url': '','cssUrl': ''} // 기본 글꼴 설정
},
fOnBeforeUnload : function(){
//예제 코드
//return "내용이 변경되었습니다.";
}
});
from smarteditor2.
from smarteditor2.
SmartEditor2.html
와 SmartEditor2noframe.html
는 단순한 샘플페이지입니다.
SmartEditor2.html
:iframe
으로 삽입하는 방식SmartEditor2noframe.html
: 서비스페이지에 직접 스마트에디터의 마크업을 삽입하는 방식
샘플페이지가 아닌 SE2를 적용하신 실제 서비스페이지를 수정하셔야 합니다.
nhn.husky.EZCreator.createInIFrame
혹은 var oEditor = createSEditor2
문자열로 찾아 맞게 수정하시면 될듯합니다.
잘 모르시겠다면 어짜피 별개의 파일들이라 다 찾아서 적용하셔도 됩니다. ^^
from smarteditor2.
Related Issues (20)
- textarea 내용 수정 문의 HOT 1
- 편집모드 컨트롤
- 에디터2.0 사진붙여넣기
- 네이버 스마트 에디터 2.0 이미지를 base64로 변환하여 에디터로 넣을수있나요?
- 네이버 스마트에디터 수정 시 내용을 불러오지 못함
- 스마트에디터 2.0 폐쇄망 환경 사용 문의
- react 지원여부 궁굼합니다
- 기본 글꼴 설정 관련 문의입니다.
- smarteditor2.min.js 문의
- 폰트 저작권 HOT 1
- smarteditor2 표 위치 조정 문의
- 이미지 업로드시 오류
- 이미지 퀵 업로드 시 403에러
- 스마트에디터 붙여넣기 막기 및 이미지 용량 제한
- 에디터 편집모드 Html만 사용하고싶어요
- 이미지 업로드시 오류발생
- 스마트 에디터2 초점이동
- Spring boot, security framework 환경에서의 모듈 사용 오류에 대해서
- 모바일 IOS사파리 첫줄에서 개행 후 한글입력시 첫줄에 입력되는 현상
- a question about editor mode initing
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smarteditor2.