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' );
}
댓글 0
번호 | 제목 | 글쓴이 | 날짜 | 조회 수 |
---|---|---|---|---|
16 | CryptoJS 를 이용한 암호화 | 황제낙엽 | 2023.02.15 | 472 |
15 | UTF-8 한글 초성 추출 (자바스크립트) | 황제낙엽 | 2019.05.07 | 476 |
14 | User Agent Parser들 | 황제낙엽 | 2017.11.20 | 5103 |
13 | code compressor & decompressor | 황제낙엽 | 2015.01.02 | 506 |
» | CKEditor 3 JavaScript API Documentation | 황제낙엽 | 2011.11.14 | 443 |
11 | 다양한 WYSIWYG 에디터 | 황제낙엽 | 2011.11.13 | 351 |
10 | daumopeneditor | 황제낙엽 | 2011.07.18 | 372 |
9 |
YUI Compressor in Java
![]() | 황제낙엽 | 2011.07.04 | 342 |
8 |
자바스크립트 정렬(javascript formatter) 도구 JavaScript Code Improver
![]() | 황제낙엽 | 2011.04.04 | 376 |
7 | YUI Logger(Yahoo) 를 동적으로 로드하는 북마크릿 | 황제낙엽 | 2010.10.03 | 358 |
6 | 이클립스에 Aptana 플러그인 설치하기 (자바스크립트 개발에 유용한 IDE) | 황제낙엽 | 2009.04.17 | 397 |
5 | 파이어폭스로 스크립트 디버깅하기 | 황제낙엽 | 2009.01.14 | 346 |
4 | 익스플로러용 스크립트 디버거 (Script Debugger for Windows NT 4.0 and Later) | 황제낙엽 | 2008.12.11 | 441 |
3 | 자바 스크립트 플러그인 | 황제낙엽 | 2005.11.22 | 401 |
2 |
JAVASCRIPT REFERENCE 파일
![]() | 황제낙엽 | 2005.11.22 | 435 |
1 |
JAVASCRIPT Debuger 프로그램
![]() | 황제낙엽 | 2005.11.22 | 320 |