ACTIVE SERVER PAGE > ckeditor - ³»¿ë Ãß°¡¹æ¹ý (InsertHTML, setHtml, getDate) µî·ÏÀÏ : 2017-07-04 14:55 Á¶È¸¼ö : 52,894function InsertHTML(txt) { // ¿øÇÏ´Â ¿¡µðÅÍÀÇ ÀνºÅϽº¸¦ °¡Á®¿Â´Ù. (board_contents ´Â °´Ã¼À̸§À» ³Ö´Â´Ù) var oEditor = CKEDITOR.instances.board_contents // Check the active editing mode. if ( oEditor.mode == 'wysiwyg' ) { // Insert the desired HTML. oEditor.insertHtml( txt ); return true; } else alert( 'À§ÁöÀ¨ ¸ðµå¿©¾ß °¡´ÉÇÕ´Ï´Ù!' ); return false; } ±âÁ¸ ³»¿ë¿¡ ÄÁÅÙÃ÷¸¦ Ãß°¡ÇÒ ¶§´Â ¾Æ·¡Ã³·³, oEditor.insertHtml(txt) ±âÁ¸ ³»¿ë¿¡ ÄÁÅÙÃ÷¸¦ »èÁ¦ÇÏ°í Ãß°¡ÇÒ ¶§´Â ¾Æ·¡Ã³·³, oEditor.setData(txt); ±âÁ¸ ³»¿ëÀ» °¡Á®¿Ã¶§´Â ¾Æ·¡Ã³·³ oEditor.getData(txt);
|