티스토리 뷰

gist.github.com/kyungilpark/a5901e43be5ef7222ef531a466678918#file-hp_se_quickeditor_image-js

 

hp_SE_QuickEditor_Image.js

hp_SE_QuickEditor_Image.js. GitHub Gist: instantly share code, notes, and snippets.

gist.github.com

위 링크에서 파일 다운로드

 

에디터폴더의 js 아래 추가

smarteditor/js/hp_SE_QuickEditor_Image.js

 

skin파일에 위 파일 링크 추가

smarteditor/SmartEditor2Skin.html

<script type="text/javascript" src="./js/hp_SE_QuickEditor_Image.js" charset="utf-8"></script>

위 링크 추가 시 주의할점

<script type="text/javascript" src="./js/SE2B_Configuration_General.js" charset="utf-8"></script>

설정파일 보다 하위에 추가

 

js폴더에 설정파일이 2개로 구분되어있을수도 있고 하나일수도 있는데 

nhn.husky.SE2M_Configuration.QuickEditor = {

위 코드가 검색되면 common 밑에 

Image : {
nImageMaxWidthSize : 9999,
nImageMaxHeightSize : 9999
}

값만 추가하고 검색이 안되면 SE2B_Configuration_General.js 파일이나 SE2B_Configuration_Service.js 파일에  아래 내용 추가

nhn.husky.SE2M_Configuration.QuickEditor = {
common : {
bUseConfig : false
},
Image : {
nImageMaxWidthSize : 9999,
nImageMaxHeightSize : 9999
}
};

js폴더 SE2BasicCreator.js 파일에 아래 내용 추가

oEditor.registerPlugin(new nhn.husky.SE_QuickEditor_Image(elAppContainer));	// 이미지 퀵에디터

 

마지막으로 husky_SE2B_Lang_ko_KR.js 파일이 검색 되면 언어설정 파일에 추가하고 파일 검색이 안되면 smarteditor2.js 파일 하단에 var oMessageMap = { 부분에 아래 내용 추가

'SE_QuickEditor_Image.exceedMaxSize' : '이미지 크기를 에디터 가로폭(${nEditorWidth}px)보다 크게 조절하실 수 없습니다.',

 

끝!

댓글