oEd
ITor.
fcKSelection.GetSelectedElement();
oEditor.FCK.InsertHt
ML("<
br />");
FCKCommands.RegisterCommand('htmlcode',new FCKDia
LOGCommand( 'htmlcode', FCKLang.htmlcode
BTn, FCKPlu
gins.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+"]") ;
}