살아 숨 쉬는 웹 - 블루비

FCKEditor 사용자 컨텐츠 삽입 FCKeditorAPITotal 902 : Today 5 : Yesterday 5

var oFCKeditor = new FCKeditor( 'FCKeditor1' ) ;
oFCKeditor.BasePath = sBasePath ;
oFCKeditor.Height = 300 ;
oFCKeditor.Value = '<p>This is some <strong>sample text<\/strong>. You are using <a href="http://www.fckeditor.net/">FCKeditor<\/a>.<\/p>' ;

oFCKeditor.Create();

window.onload = function(){
oEditor = FCKeditorAPI.GetInstance(oFCKeditor.InstanceName) ;
}
* onload 이벤트 이후에 FCKeditorAPI 핸들러를 사용할 수 있음

사용자 삽입 이미지

Insert Content 버튼을 클릭하게 되면 에디터의 커서 영역에 컨텐츠가 삽입되는 이미지 입니다.



















<button onclick="oEditor.InsertHtml('Hello World!!')" style="font-size:9pt;">Insert Content</button>

oEditor 로 정의된 FCKeditorAPI를 이용하여 InsertHthml method를 호출하여 사용자 컨텐츠를 삽입한다.


2008/10/14 12:46 2008/10/14 12:46
웹프로그래밍™/jQuery, Javascript 2008/10/14 12:46 by 블루비

TRACKBACK :: http://blueb.net/blog/trackback/1315

Leave a Comment
[로그인][오픈아이디란?]
1  ... 40 41 42 43 44 45 46 47 48  ... 799 
전체 (799)
웹표준, 웹접근성™ (5)
웹프로그래밍™ (367)
웹기획™ (0)
웹디자인™ (5)
서버™ (34)
데이터베이스™ (44)
개발자료 (9)
트랜드 (60)
Study English (2)
블루비 (73)
오피스 다이어리 (19)
Textcube (2)
이슈 (20)
컴퓨터 악세사리 (18)
엔터테인먼트 (24)
좋은글 (82)
재테크 (1)
이벤트 (4)