fckeditor 상용 함수

삽입:

oEditor.FCKSelection.GetSelectedElement();
oEditor.FCK.InsertHtml("<br />");

FCKCommands.RegisterCommand('htmlcode',new FCKDialogCommand( 'htmlcode', FCKLang.htmlcodeBtn, FCKPlugins.Items['htmlcode'].Path + 'fck_htmlcode.html', 500, 420 ) ) ;
var ohtmlcode=new FCKToolbarButton('htmlcode',FCKLang.htmlcodeBtn);
ohtmlcode.IconPath=FCKPlugins.Items['htmlcode'].Path+'htmlcode.GIF';
FCKToolbarItems.RegisterItem('htmlcode',ohtmlcode);

// htmlcode
var FCKhtmlcode = new Object() ;

// ok 。
// 。

FCKhtmlcode.Add = function(strtemp,str)
{
FCK.InsertHtml("["+str+"]<br>"+strtemp+"<br>[/"+str+"]") ;
}

좋은 웹페이지 즐겨찾기