Git Product home page Git Product logo

Comments (7)

arsens24 avatar arsens24 commented on July 22, 2024

http://amina.co.kr/bbs/board.php?bo_table=apms_qa&wr_id=9459

댓글에 내용대로 다해보아도 안됩니다.

from smarteditor2.

kyungilpark avatar kyungilpark commented on July 22, 2024

에디터 생성하실때 다음과 같이 옵션으로 세팅해주실 수 있습니다.
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.

arsens24 avatar arsens24 commented on July 22, 2024

네 해당 파일은 어떤 파일을 참고하면될까요?

from smarteditor2.

kyungilpark avatar kyungilpark commented on July 22, 2024

nhn.husky.EZCreator.createInIFrame 정의하는 샘플은 SmartEditor2.html 파일에 있습니다.
서비스에 적용하신 파일에서 수정하시면 됩니다.

from smarteditor2.

kyungilpark avatar kyungilpark commented on July 22, 2024

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.

arsens24 avatar arsens24 commented on July 22, 2024

from smarteditor2.

kyungilpark avatar kyungilpark commented on July 22, 2024

SmartEditor2.htmlSmartEditor2noframe.html는 단순한 샘플페이지입니다.

  • SmartEditor2.html : iframe 으로 삽입하는 방식
  • SmartEditor2noframe.html : 서비스페이지에 직접 스마트에디터의 마크업을 삽입하는 방식

샘플페이지가 아닌 SE2를 적용하신 실제 서비스페이지를 수정하셔야 합니다.
nhn.husky.EZCreator.createInIFrame 혹은 var oEditor = createSEditor2 문자열로 찾아 맞게 수정하시면 될듯합니다.
잘 모르시겠다면 어짜피 별개의 파일들이라 다 찾아서 적용하셔도 됩니다. ^^

from smarteditor2.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.