sitelink1  
sitelink2  
sitelink3  
sitelink4 http://1 
extra_vars4 ko 
extra_vars5 http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.editor.html 
extra_vars6 sitelink1 
?

// The instanceReady event is fired, when an instance of CKEditor has finished
// its initialization.
CKEDITOR.on( 'instanceReady', function( ev )
{
 // Show the editor name and description in the browser status bar.
 document.getElementById( 'eMessage' ).innerHTML = '<p>Instance <code>' + ev.editor.name + '</code> loaded.</p>';

 // Show this sample buttons.
  document.getElementById( 'eButtons' ).style.display = 'block';
});

 

function InsertHTML()
{
 // Get the editor instance that we want to interact with.
 var oEditor = CKEDITOR.instances.editor1;
 var value = document.getElementById( 'htmlArea' ).value;

 // Check the active editing mode.
 if ( oEditor.mode == 'wysiwyg' )
 {
  // Insert HTML code.
  // http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.editor.html#insertHtml
  oEditor.insertHtml( value );
 }
 else
  alert( 'You must be in WYSIWYG mode!' );
}

 

function InsertText()
{
 // Get the editor instance that we want to interact with.
 var oEditor = CKEDITOR.instances.editor1;
 var value = document.getElementById( 'txtArea' ).value;

 // Check the active editing mode.
 if ( oEditor.mode == 'wysiwyg' )
 {
  // Insert as plain text.
  // http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.editor.html#insertText
  oEditor.insertText( value );
 }
 else
  alert( 'You must be in WYSIWYG mode!' );
}

 

function SetContents()
{
 // Get the editor instance that we want to interact with.
 var oEditor = CKEDITOR.instances.editor1;
 var value = document.getElementById( 'htmlArea' ).value;

 // Set editor contents (replace current contents).
 // http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.editor.html#setData
 oEditor.setData( value );
}

 

function GetContents()
{
 // Get the editor instance that you want to interact with.
 var oEditor = CKEDITOR.instances.editor1;

 // Get editor contents
 // http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.editor.html#getData
 alert( oEditor.getData() );
}

 

function ExecuteCommand( commandName )
{
 // Get the editor instance that we want to interact with.
 var oEditor = CKEDITOR.instances.editor1;

 // Check the active editing mode.
 if ( oEditor.mode == 'wysiwyg' )
 {
  // Execute the command.
  // http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.editor.html#execCommand
  oEditor.execCommand( commandName );
 }
 else
  alert( 'You must be in WYSIWYG mode!' );
}

 

function CheckDirty()
{
 // Get the editor instance that we want to interact with.
 var oEditor = CKEDITOR.instances.editor1;
 // Checks whether the current editor contents present changes when compared
 // to the contents loaded into the editor at startup
 // http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.editor.html#checkDirty
 alert( oEditor.checkDirty() );
}

 

function ResetDirty()
{
 // Get the editor instance that we want to interact with.
 var oEditor = CKEDITOR.instances.editor1;
 // Resets the "dirty state" of the editor (see CheckDirty())
 // http://docs.cksource.com/ckeditor_api/symbols/CKEDITOR.editor.html#resetDirty
 oEditor.resetDirty();
 alert( 'The "IsDirty" status has been reset' );
}

번호 제목 글쓴이 날짜 조회 수
177 익스플로러용 스크립트 디버거 (Script Debugger for Windows NT 4.0 and Later) 황제낙엽 2008.12.11 176
176 MS 익스플로러상에서 문제가 되는 Leak 모델 황제낙엽 2009.04.03 171
175 소스 보기 막기 황제낙엽 2005.11.18 168
174 문자열에서 역슬래시(backslash) 문자와 유니코드(Unicode)에 대한 고찰 file 황제낙엽 2021.06.03 160
173 [펌] 아사페릴의 사생활 - Javascript의 constructor 와 prototype 황제낙엽 2009.04.02 156
172 JAVASCRIPT REFERENCE 파일 file 황제낙엽 2005.11.22 153
» CKEditor 3 JavaScript API Documentation 황제낙엽 2011.11.14 147
170 Java 버전의 JavaScript 엔진 라이노 (Rhino) 황제낙엽 2008.07.14 146
169 [JavaScript Tutorials] More leakage patterns (해석중) 황제낙엽 2009.04.10 142
168 CORS 의 내용과 이에 대한 우회 방안들 file 황제낙엽 2021.12.05 139
167 CORS(Cross-Origin Resource Sharing) - 1 file 황제낙엽 2017.03.07 135
166 재사용 가능한 일회용 객체 황제낙엽 2008.08.08 133
165 inherits() 를 이용한 상속 황제낙엽 2012.07.18 129
164 HTTP 접근 제어 (CORS) 황제낙엽 2017.05.29 125
163 call() and apply() methods in Javascript 황제낙엽 2011.10.07 125
162 외부 라이브러리 (.js) 의 바람직한 동적 로딩 (The best way to load external JavaScript) 황제낙엽 2009.10.05 124
161 자동 형변환 (문자열 -> 숫자) 황제낙엽 2009.06.25 124
160 자바스크립트 학습용 유튜브 강의 (드림코딩 by 엘리) 황제낙엽 2021.03.07 122
159 무지개링크 (rainbowlink) file 황제낙엽 2005.07.16 122
158 Rhino 와 env.js 를 사용해서 자바 서버에서 javascript 를 구동해보자 file 황제낙엽 2012.02.15 116