| 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 | 1159 |
| 15 | UTF-8 한글 초성 추출 (자바스크립트) | 황제낙엽 | 2019.05.07 | 1133 |
| 14 | User Agent Parser들 | 황제낙엽 | 2017.11.20 | 9739 |
| 13 | code compressor & decompressor | 황제낙엽 | 2015.01.02 | 526 |
| » | CKEditor 3 JavaScript API Documentation | 황제낙엽 | 2011.11.14 | 1096 |
| 11 | 다양한 WYSIWYG 에디터 | 황제낙엽 | 2011.11.13 | 839 |
| 10 | daumopeneditor | 황제낙엽 | 2011.07.18 | 979 |
| 9 |
YUI Compressor in Java
| 황제낙엽 | 2011.07.04 | 1172 |
| 8 |
자바스크립트 정렬(javascript formatter) 도구 JavaScript Code Improver
| 황제낙엽 | 2011.04.04 | 1023 |
| 7 | YUI Logger(Yahoo) 를 동적으로 로드하는 북마크릿 | 황제낙엽 | 2010.10.03 | 851 |
| 6 | 이클립스에 Aptana 플러그인 설치하기 (자바스크립트 개발에 유용한 IDE) | 황제낙엽 | 2009.04.17 | 979 |
| 5 | 파이어폭스로 스크립트 디버깅하기 | 황제낙엽 | 2009.01.14 | 950 |
| 4 | 익스플로러용 스크립트 디버거 (Script Debugger for Windows NT 4.0 and Later) | 황제낙엽 | 2008.12.11 | 1158 |
| 3 | 자바 스크립트 플러그인 | 황제낙엽 | 2005.11.22 | 1086 |
| 2 |
JAVASCRIPT REFERENCE 파일
| 황제낙엽 | 2005.11.22 | 1178 |
| 1 |
JAVASCRIPT Debuger 프로그램
| 황제낙엽 | 2005.11.22 | 847 |
